Lines Matching defs:slottable

35 pkcs11_slottable_t *slottable = NULL;
38 * pkcs11_slottable_initialize initizializes the global slottable.
39 * This slottable will contain information about the plugged in
72 slottable = stmp;
81 * increase the size of the slottable, as needed, to contain the next
90 (void) pthread_mutex_lock(&slottable->st_mutex);
93 newsize = slottable->st_last + increment + 1;
96 if (slottable->st_cur_size >= newsize) {
97 (void) pthread_mutex_unlock(&slottable->st_mutex);
102 (slottable->st_slots, newsize * sizeof (pkcs11_slot_t *));
105 (void) pthread_mutex_unlock(&slottable->st_mutex);
109 slottable->st_slots = tmpslots;
110 slottable->st_cur_size = newsize;
112 (void) pthread_mutex_unlock(&slottable->st_mutex);
144 (void) pthread_mutex_lock(&slottable->st_mutex);
146 slottable->st_last++;
148 *pslot_id = slottable->st_last;
150 slottable->st_slots[*pslot_id] = tmpslot;
152 (void) pthread_mutex_unlock(&slottable->st_mutex);
170 (void) pthread_mutex_lock(&slottable->st_mutex);
172 for (i = slottable->st_first; i <= slottable->st_last; i++) {
174 if (slottable->st_slots[i] != NULL) {
176 cur_slot = slottable->st_slots[i];
243 (void) pthread_cond_destroy(&slottable->st_wait_cond);
244 (void) pthread_mutex_destroy(&slottable->st_start_mutex);
245 (void) pthread_cond_destroy(&slottable->st_start_cond);
247 free(slottable->st_slots);
249 (void) pthread_mutex_unlock(&slottable->st_mutex);
251 (void) pthread_mutex_destroy(&slottable->st_mutex);
253 free(slottable);
255 slottable = NULL;
268 if ((slot_id < slottable->st_first) ||
269 (slot_id > slottable->st_last)) {
271 } else if (slottable->st_slots[slot_id] != NULL) {