Home
last modified time | relevance | path

Searched refs:num_mech_infos (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/uts/common/crypto/api/
H A Dkcf_miscapi.c643 crypto_mechanism_info_t **mech_infos, uint_t *num_mech_infos, in crypto_get_all_mech_info() argument
699 *num_mech_infos = ninfos; in crypto_get_all_mech_info()
/illumos-gate/usr/src/uts/common/crypto/io/
H A Dcrypto.c1101 uint_t num_mech_infos = 0; in get_all_mechanism_info() local
1126 rv = crypto_get_all_mech_info(mech_type, &mech_infos, &num_mech_infos, in get_all_mechanism_info()
1136 STRUCT_FSET(get_all_mech, mi_count, num_mech_infos); in get_all_mechanism_info()
1139 if (num_mech_infos > req_count) { in get_all_mechanism_info()
1157 if (req_count == 0 || num_mech_infos == 0 || rv != CRYPTO_SUCCESS || in get_all_mechanism_info()
1166 u_minfos = kmem_alloc(num_mech_infos * STRUCT_SIZE(mi), KM_SLEEP); in get_all_mechanism_info()
1167 error = copyout_mechinfos(mode, arg + offset, num_mech_infos, in get_all_mechanism_info()
1169 kmem_free(u_minfos, num_mech_infos * STRUCT_SIZE(mi)); in get_all_mechanism_info()
1172 crypto_free_all_mech_info(mech_infos, num_mech_infos); in get_all_mechanism_info()