Lines Matching refs:index

219 	unsigned long index, num_found = 0;  in meta_mechManager_get_slots()  local
230 found = find_mech_index(mech_support_info->mech, &index); in meta_mechManager_get_slots()
237 if (!mechlist[index].slots[i].initialized || in meta_mechManager_get_slots()
238 !mechlist[index].slots[i].supported) in meta_mechManager_get_slots()
242 info = mechlist[index].slots[i].mechanism_info; in meta_mechManager_get_slots()
250 = &mechlist[index].slots[i]; in meta_mechManager_get_slots()
284 unsigned long index = 0; in meta_mechManager_update_mech() local
288 rv = meta_mechManager_allocmechs(&mech, 1, &index); in meta_mechManager_update_mech()
298 found = find_mech_index(mech, &index); in meta_mechManager_update_mech()
307 if (force_refresh || !mechlist[index].slots[slot].initialized) { in meta_mechManager_update_mech()
308 rv = update_slotmech(mech, slot, index); in meta_mechManager_update_mech()
335 unsigned long index = 0; in meta_mechManager_update_slot() local
396 &index); in meta_mechManager_update_slot()
403 found = find_mech_index(slot_mechlist[mechnum], &index); in meta_mechManager_update_slot()
410 rv = update_slotmech(slot_mechlist[mechnum], slotnum, index); in meta_mechManager_update_slot()
444 unsigned long index) in update_slotmech() argument
450 mechlist[index].slots[slotnum].slotnum = slotnum; in update_slotmech()
464 mechlist[index].slots[slotnum].initialized = B_TRUE; in update_slotmech()
465 mechlist[index].slots[slotnum].supported = B_FALSE; in update_slotmech()
466 bzero(&mechlist[index].slots[slotnum].mechanism_info, in update_slotmech()
473 mechlist[index].slots[slotnum].initialized = B_TRUE; in update_slotmech()
474 mechlist[index].slots[slotnum].supported = B_TRUE; in update_slotmech()
475 mechlist[index].slots[slotnum].mechanism_info = info; in update_slotmech()
478 mechlist[index].slots[slotnum].initialized = B_TRUE; in update_slotmech()
479 mechlist[index].slots[slotnum].supported = B_FALSE; in update_slotmech()
480 bzero(&mechlist[index].slots[slotnum].mechanism_info, in update_slotmech()
504 unsigned long i, index = 0; in meta_mechManager_allocmechs() local
510 found = find_mech_index(new_mechs[i], &index); in meta_mechManager_allocmechs()
513 *index_hint = index; in meta_mechManager_allocmechs()
532 found = find_mech_index(new_mechs[i], &index); in meta_mechManager_allocmechs()
566 (void) memmove(&mechlist[index+1], &mechlist[index], in meta_mechManager_allocmechs()
567 (num_mechs - index) * sizeof (mechlist_t)); in meta_mechManager_allocmechs()
570 mechlist[index].type = new_mechs[i]; in meta_mechManager_allocmechs()
571 mechlist[index].slots = new_mechinfos; in meta_mechManager_allocmechs()
603 find_mech_index(CK_MECHANISM_TYPE mechanism, unsigned long *index) in find_mech_index() argument
619 *index = i; in find_mech_index()
651 unsigned long index; in meta_mechManager_slot_supports_mech() local
662 found = find_mech_index(mechanism, &index); in meta_mechManager_slot_supports_mech()
667 if ((mechlist[index].slots[slotnum].initialized) && in meta_mechManager_slot_supports_mech()
668 (mechlist[index].slots[slotnum].supported)) { in meta_mechManager_slot_supports_mech()
670 info = mechlist[index].slots[slotnum].mechanism_info; in meta_mechManager_slot_supports_mech()
677 *slot_info = &(mechlist[index].slots[slotnum]); in meta_mechManager_slot_supports_mech()