Searched refs:slottable (Results 1 – 8 of 8) sorted by relevance
92 slot_id = slottable->st_first; in C_GetSlotList()93 for (i = slottable->st_first; i <= slottable->st_last; i++) { in C_GetSlotList()241 (void) pthread_mutex_lock(&slottable->st_mutex); in C_WaitForSlotEvent()242 if ((slottable->st_blocking) || (slottable->st_wfse_active)) { in C_WaitForSlotEvent()243 (void) pthread_mutex_unlock(&slottable->st_mutex); in C_WaitForSlotEvent()246 slottable->st_wfse_active = B_TRUE; in C_WaitForSlotEvent()247 (void) pthread_mutex_unlock(&slottable->st_mutex); in C_WaitForSlotEvent()255 for (i = slottable->st_first; i <= slottable->st_last; i++) { in C_WaitForSlotEvent()257 cur_slot = slottable->st_slots[i]; in C_WaitForSlotEvent()273 (void) pthread_mutex_lock(&slottable->st_mutex); in C_WaitForSlotEvent()[all …]
35 pkcs11_slottable_t *slottable = NULL; variable72 slottable = stmp; in pkcs11_slottable_initialize()90 (void) pthread_mutex_lock(&slottable->st_mutex); in pkcs11_slottable_increase()93 newsize = slottable->st_last + increment + 1; in pkcs11_slottable_increase()96 if (slottable->st_cur_size >= newsize) { in pkcs11_slottable_increase()97 (void) pthread_mutex_unlock(&slottable->st_mutex); in pkcs11_slottable_increase()102 (slottable->st_slots, newsize * sizeof (pkcs11_slot_t *)); in pkcs11_slottable_increase()105 (void) pthread_mutex_unlock(&slottable->st_mutex); in pkcs11_slottable_increase()109 slottable->st_slots = tmpslots; in pkcs11_slottable_increase()110 slottable->st_cur_size = newsize; in pkcs11_slottable_increase()[all …]
145 if (slottable != NULL) { in pkcs11_fork_prepare()146 (void) pthread_mutex_lock(&slottable->st_mutex); in pkcs11_fork_prepare()149 for (i = slottable->st_first; in pkcs11_fork_prepare()150 i <= slottable->st_last; i++) { in pkcs11_fork_prepare()151 if (slottable->st_slots[i] != NULL) { in pkcs11_fork_prepare()153 &slottable->st_slots[i]->sl_mutex); in pkcs11_fork_prepare()170 if (slottable != NULL) { in pkcs11_fork_parent()172 for (i = slottable->st_first; in pkcs11_fork_parent()173 i <= slottable->st_last; i++) { in pkcs11_fork_parent()174 if (slottable->st_slots[i] != NULL) { in pkcs11_fork_parent()[all …]
172 slottable->st_first = 0; in setup_metaslot()175 slottable->st_slots[0] = NULL; in setup_metaslot()190 (void) pthread_mutex_lock(&slottable->st_mutex); in setup_metaslot()191 slottable->st_slots[0] = cur_slot; in setup_metaslot()192 (void) pthread_mutex_unlock(&slottable->st_mutex); in setup_metaslot()223 slottable->st_slots[0] = NULL; in setup_metaslot()572 cur_slot = slottable->st_slots[slot_id]; in pkcs11_slot_mapping()690 if (slottable->st_last == slottable->st_first) { in pkcs11_slot_mapping()692 cur_slot = slottable->st_slots[slottable->st_first]; in pkcs11_slot_mapping()703 fast_slot = slottable->st_first; in pkcs11_slot_mapping()[all …]
51 slottable->st_slots[fast_slot]->sl_norandom) { in C_SeedRandom()71 if (slottable->st_slots[slotid]->sl_norandom) in C_SeedRandom()104 slottable->st_slots[fast_slot]->sl_norandom) { in C_GenerateRandom()125 if (slottable->st_slots[slotid]->sl_norandom) in C_GenerateRandom()
114 #define FUNCLIST(slotID) (slottable->st_slots[(slotID)]->sl_func_list)120 #define TRUEID(slotID) (slottable->st_slots[(slotID)]->sl_id)123 extern pkcs11_slottable_t *slottable;
99 slottable->st_slots[METASLOT_FRAMEWORK_ID], in C_OpenSession()102 rv = pkcs11_session_add(slottable->st_slots[fw_st_id], in C_OpenSession()151 pkcs11_session_delete(slottable->st_slots[sessp->se_slotid], sessp); in C_CloseSession()199 slotp = slottable->st_slots[fw_st_id]; in C_CloseAllSessions()
87 for (i = (slottable->st_first) + 1; i <= slottable->st_last; i++) { in meta_slotManager_initialize()