Home
last modified time | relevance | path

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

/titanic_50/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.c57 *pulCount = slot_count; in C_GetSlotList()
61 if (*pulCount < slot_count) { in C_GetSlotList()
62 *pulCount = slot_count; in C_GetSlotList()
66 *pulCount = slot_count; in C_GetSlotList()
73 for (i = 0; i < slot_count; i++) { in C_GetSlotList()
91 if (slotID >= slot_count) { in C_GetSlotInfo()
145 if (slotID >= slot_count) in C_GetTokenInfo()
239 if (slotID >= slot_count) in C_GetMechanismList()
373 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()
/titanic_50/usr/src/cmd/cmd-crypto/pktool/
H A Dtokens.c47 CK_ULONG slot_count = 0; in pk_tokens() local
64 if ((rv = get_token_slots(&slots, &slot_count)) != CKR_OK) { in pk_tokens()
72 if (slot_count == 0) { in pk_tokens()
81 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()
/titanic_50/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()
/titanic_50/usr/src/lib/pkcs11/libpkcs11/common/
H A DmetaSlotManager.c72 CK_ULONG slot_count = 0; in meta_slotManager_initialize() local
88 slot_count++; in meta_slotManager_initialize()
95 if (slot_count < 1) { in meta_slotManager_initialize()
100 slots = calloc(slot_count, sizeof (slot_data_t)); in meta_slotManager_initialize()
110 for (i = 0; i < slot_count; i++) { in meta_slotManager_initialize()
115 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()
/titanic_50/usr/src/lib/libtnf/
H A Dstruct.c81 count = slotinfo->slot_count; in get_slot_indexed()
93 count = slotinfo->slot_count; in get_slot_named()
138 return (slotinfo->slot_count); in tnf_get_slot_count()
H A Dlibtnf.h79 unsigned slot_count; member
H A Dinfo.c364 slotinfo->slot_count = count; in init_slots()
/titanic_50/usr/src/cmd/cmd-crypto/cryptoadm/
H A Dadm_uef.c194 CK_ULONG slot_count; in list_mechlist_for_lib() local
285 rv = prov_funcs->C_GetSlotList(FALSE, NULL_PTR, &slot_count); in list_mechlist_for_lib()
290 } else if (slot_count == 0) { in list_mechlist_for_lib()
299 prov_slots = malloc(slot_count * sizeof (CK_SLOT_ID)); in list_mechlist_for_lib()
307 rv = prov_funcs->C_GetSlotList(FALSE, prov_slots, &slot_count); in list_mechlist_for_lib()
316 (void) printf(gettext("Number of slots: %d\n"), slot_count); in list_mechlist_for_lib()
320 for (i = 0; i < slot_count; i++) { in list_mechlist_for_lib()