Searched refs:cur_slot (Results 1 – 3 of 3) sorted by relevance
79 pkcs11_slot_t *cur_slot; in setup_metaslot() local176 cur_slot = calloc(1, sizeof (pkcs11_slot_t)); in setup_metaslot()177 if (cur_slot == NULL) { in setup_metaslot()181 cur_slot->sl_wfse_state = WFSE_CLEAR; in setup_metaslot()182 cur_slot->sl_enabledpol = B_FALSE; in setup_metaslot()183 cur_slot->sl_no_wfse = B_FALSE; in setup_metaslot()184 (void) pthread_mutex_init(&cur_slot->sl_mutex, NULL); in setup_metaslot()191 slottable->st_slots[0] = cur_slot; in setup_metaslot()194 (void) pthread_mutex_lock(&cur_slot->sl_mutex); in setup_metaslot()195 cur_slot->sl_id = METASLOT_SLOTID; in setup_metaslot()[all …]
168 pkcs11_slot_t *cur_slot; in pkcs11_slottable_delete() local176 cur_slot = slottable->st_slots[i]; in pkcs11_slottable_delete()177 prov_id = cur_slot->sl_prov_id; in pkcs11_slottable_delete()179 (void) pthread_mutex_lock(&cur_slot->sl_mutex); in pkcs11_slottable_delete()187 if (cur_slot->sl_wfse_state == WFSE_ACTIVE) { in pkcs11_slottable_delete()189 (cur_slot->sl_tid); in pkcs11_slottable_delete()202 if ((cur_slot->sl_func_list != NULL) && in pkcs11_slottable_delete()204 (void) cur_slot-> in pkcs11_slottable_delete()209 if (cur_slot->sl_dldesc != NULL) { in pkcs11_slottable_delete()210 (void) dlclose(cur_slot->sl_dldesc); in pkcs11_slottable_delete()[all …]
220 pkcs11_slot_t *cur_slot; in C_WaitForSlotEvent() local257 cur_slot = slottable->st_slots[i]; in C_WaitForSlotEvent()259 if (cur_slot->sl_wfse_state == WFSE_EVENT) { in C_WaitForSlotEvent()263 (void) pthread_mutex_lock(&cur_slot->sl_mutex); in C_WaitForSlotEvent()264 cur_slot->sl_wfse_state = WFSE_CLEAR; in C_WaitForSlotEvent()265 (void) pthread_mutex_unlock(&cur_slot->sl_mutex); in C_WaitForSlotEvent()294 cur_slot = slottable->st_slots[i]; in C_WaitForSlotEvent()308 (void) pthread_mutex_lock(&cur_slot->sl_mutex); in C_WaitForSlotEvent()309 if (cur_slot->sl_wfse_state == WFSE_ACTIVE) { in C_WaitForSlotEvent()311 &cur_slot->sl_mutex); in C_WaitForSlotEvent()[all …]