Lines Matching defs:cur_slot
220 pkcs11_slot_t *cur_slot;
257 cur_slot = slottable->st_slots[i];
259 if (cur_slot->sl_wfse_state == WFSE_EVENT) {
263 (void) pthread_mutex_lock(&cur_slot->sl_mutex);
264 cur_slot->sl_wfse_state = WFSE_CLEAR;
265 (void) pthread_mutex_unlock(&cur_slot->sl_mutex);
294 cur_slot = slottable->st_slots[i];
308 (void) pthread_mutex_lock(&cur_slot->sl_mutex);
309 if (cur_slot->sl_wfse_state == WFSE_ACTIVE) {
311 &cur_slot->sl_mutex);
315 cur_slot->sl_wfse_state = WFSE_ACTIVE;
322 (void) pthread_mutex_unlock(&cur_slot->sl_mutex);
327 (void) pthread_mutex_lock(&cur_slot->sl_mutex);
329 cur_slot->sl_wfse_state = WFSE_CLEAR;
331 (void) pthread_mutex_unlock(&cur_slot->sl_mutex);
441 cur_slot = slottable->st_slots[i];
456 (void) pthread_mutex_lock(&cur_slot->sl_mutex);
457 if ((cur_slot->sl_wfse_state == WFSE_ACTIVE) ||
458 (cur_slot->sl_no_wfse)) {
459 (void) pthread_mutex_unlock(&cur_slot->sl_mutex);
465 cur_slot->sl_wfse_state = WFSE_ACTIVE;
472 if (cur_slot->sl_wfse_args == NULL) {
473 cur_slot->sl_wfse_args = malloc(sizeof (wfse_args_t));
475 if (cur_slot->sl_wfse_args == NULL) {
477 &cur_slot->sl_mutex);
483 cur_slot->sl_wfse_args->flags = flags;
484 cur_slot->sl_wfse_args->pReserved = pReserved;
485 cur_slot->sl_wfse_args->slotid = i;
489 if (pthread_create(&cur_slot->sl_tid, NULL,
491 (void *)cur_slot->sl_wfse_args) != 0) {
492 (void) pthread_mutex_unlock(&cur_slot->sl_mutex);
496 (void) pthread_mutex_unlock(&cur_slot->sl_mutex);