Home
last modified time | relevance | path

Searched refs:slot_count (Results 1 – 14 of 14) sorted by relevance

/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelSlottable.c32 CK_ULONG slot_count = 0; variable
62 slot_count = pl->pl_count; in kernel_get_slot_number()
181 if (rv != CKR_OK || slot_count == 0) { in kernel_slottable_init()
186 slot_table = malloc(sizeof (kernel_slot_t *) * slot_count); in kernel_slottable_init()
192 for (i = 0; i < slot_count; i++) { in kernel_slottable_init()
217 pl = malloc(slot_count * sizeof (crypto_get_provider_list_t)); in kernel_slottable_init()
223 pl->pl_count = slot_count; in kernel_slottable_init()
240 for (i = 0; i < slot_count; i++) { in kernel_slottable_init()
248 for (i = 0; i < slot_count; i++) { in kernel_slottable_init()
H A DkernelSlotToken.c55 *pulCount = slot_count; in C_GetSlotList()
59 if (*pulCount < slot_count) { in C_GetSlotList()
60 *pulCount = slot_count; in C_GetSlotList()
64 *pulCount = slot_count; in C_GetSlotList()
71 for (i = 0; i < slot_count; i++) { in C_GetSlotList()
89 if (slotID >= slot_count) { in C_GetSlotInfo()
143 if (slotID >= slot_count) in C_GetTokenInfo()
237 if (slotID >= slot_count) in C_GetMechanismList()
371 if (slotID >= slot_count) in C_GetMechanismInfo()
H A DkernelGeneral.c282 for (i = 0; i < slot_count; i++) { in C_Finalize()
309 if (slot_count > 0) { in finalize_common()
310 for (i = 0; i < slot_count; i++) { in finalize_common()
315 slot_count = 0; in finalize_common()
375 for (i = 0; i < slot_count; i++) { in cleanup_library()
H A DkernelSlot.h90 extern CK_ULONG slot_count;
H A DkernelSessionUtil.c486 for (slotID = 0; slotID < slot_count; slotID++) { in kernel_acquire_all_slots_mutexes()
517 for (slotID = 0; slotID < slot_count; slotID++) { in kernel_release_all_slots_mutexes()
H A DkernelSession.c55 if (slotID >= slot_count) { in C_OpenSession()
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/
H A Dtokens.c45 CK_ULONG slot_count = 0; in pk_tokens() local
62 if ((rv = get_token_slots(&slots, &slot_count)) != CKR_OK) { in pk_tokens()
70 if (slot_count == 0) { in pk_tokens()
79 for (i = 0; i < slot_count; i++) { in pk_tokens()
H A Dcommon.h101 CK_ULONG *slot_count);
H A Dcommon.c327 get_token_slots(CK_SLOT_ID_PTR *slot_list, CK_ULONG *slot_count) in get_token_slots() argument
350 *slot_count = 0; in get_token_slots()
363 *slot_count = tmp_count; in get_token_slots()
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dpk11tokens.c96 CK_ULONG *slot_count) in kmf_get_token_slots() argument
125 *slot_count = 0; in kmf_get_token_slots()
139 *slot_count = tmp_count; in kmf_get_token_slots()
297 CK_ULONG slot_count = 0; in kmf_pk11_token_lookup() local
338 kmf_rv = kmf_get_token_slots(handle, &slot_list, &slot_count); in kmf_pk11_token_lookup()
345 if (slot_count == 0) { in kmf_pk11_token_lookup()
351 for (i = 0; i < slot_count; i++) { in kmf_pk11_token_lookup()
394 if (i < slot_count) { in kmf_pk11_token_lookup()
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/
H A DmetaSlotManager.c70 CK_ULONG slot_count = 0; in meta_slotManager_initialize() local
86 slot_count++; in meta_slotManager_initialize()
93 if (slot_count < 1) { in meta_slotManager_initialize()
98 slots = calloc(slot_count, sizeof (slot_data_t)); in meta_slotManager_initialize()
108 for (i = 0; i < slot_count; i++) { in meta_slotManager_initialize()
113 num_slots = slot_count; in meta_slotManager_initialize()
H A Dpkcs11Conf.c270 uint_t slot_count = 0; in pkcs11_slot_mapping() local
571 slot_count++; in pkcs11_slot_mapping()
621 if (slot_count == 0) { in pkcs11_slot_mapping()
H A DmetaUtil.c859 mechinfo_t ***slots, unsigned long *slot_count, boolean_t token_only, in get_slotlist_for_mech() argument
885 *slot_count = 1; in get_slotlist_for_mech()
907 *slot_count = mech_support_info->num_supporting_slots; in get_slotlist_for_mech()
1468 unsigned long i, slot_count = 0; in meta_derive_key() local
1510 &(session->mech_support_info), &slots, &slot_count, in meta_derive_key()
1537 for (i = 0; i < slot_count; i++) { in meta_derive_key()
/illumos-gate/usr/src/cmd/cmd-crypto/cryptoadm/
H A Dadm_uef.c195 CK_ULONG slot_count; in list_mechlist_for_lib() local
286 rv = prov_funcs->C_GetSlotList(FALSE, NULL_PTR, &slot_count); in list_mechlist_for_lib()
291 } else if (slot_count == 0) { in list_mechlist_for_lib()
300 prov_slots = malloc(slot_count * sizeof (CK_SLOT_ID)); in list_mechlist_for_lib()
308 rv = prov_funcs->C_GetSlotList(FALSE, prov_slots, &slot_count); in list_mechlist_for_lib()
317 (void) printf(gettext("Number of slots: %d\n"), slot_count); in list_mechlist_for_lib()
321 for (i = 0; i < slot_count; i++) { in list_mechlist_for_lib()