Lines Matching refs:index

221 	unsigned long index, num_found = 0;  in meta_mechManager_get_slots()  local
232 found = find_mech_index(mech_support_info->mech, &index); in meta_mechManager_get_slots()
239 if (!mechlist[index].slots[i].initialized || in meta_mechManager_get_slots()
240 !mechlist[index].slots[i].supported) in meta_mechManager_get_slots()
244 info = mechlist[index].slots[i].mechanism_info; in meta_mechManager_get_slots()
252 = &mechlist[index].slots[i]; in meta_mechManager_get_slots()
286 unsigned long index = 0; in meta_mechManager_update_mech() local
290 rv = meta_mechManager_allocmechs(&mech, 1, &index); in meta_mechManager_update_mech()
300 found = find_mech_index(mech, &index); in meta_mechManager_update_mech()
309 if (force_refresh || !mechlist[index].slots[slot].initialized) { in meta_mechManager_update_mech()
310 rv = update_slotmech(mech, slot, index); in meta_mechManager_update_mech()
337 unsigned long index = 0; in meta_mechManager_update_slot() local
398 &index); in meta_mechManager_update_slot()
405 found = find_mech_index(slot_mechlist[mechnum], &index); in meta_mechManager_update_slot()
412 rv = update_slotmech(slot_mechlist[mechnum], slotnum, index); in meta_mechManager_update_slot()
446 unsigned long index) in update_slotmech() argument
452 mechlist[index].slots[slotnum].slotnum = slotnum; in update_slotmech()
466 mechlist[index].slots[slotnum].initialized = B_TRUE; in update_slotmech()
467 mechlist[index].slots[slotnum].supported = B_FALSE; in update_slotmech()
468 bzero(&mechlist[index].slots[slotnum].mechanism_info, in update_slotmech()
475 mechlist[index].slots[slotnum].initialized = B_TRUE; in update_slotmech()
476 mechlist[index].slots[slotnum].supported = B_TRUE; in update_slotmech()
477 mechlist[index].slots[slotnum].mechanism_info = info; in update_slotmech()
480 mechlist[index].slots[slotnum].initialized = B_TRUE; in update_slotmech()
481 mechlist[index].slots[slotnum].supported = B_FALSE; in update_slotmech()
482 bzero(&mechlist[index].slots[slotnum].mechanism_info, in update_slotmech()
506 unsigned long i, index = 0; in meta_mechManager_allocmechs() local
512 found = find_mech_index(new_mechs[i], &index); in meta_mechManager_allocmechs()
515 *index_hint = index; in meta_mechManager_allocmechs()
534 found = find_mech_index(new_mechs[i], &index); in meta_mechManager_allocmechs()
568 (void) memmove(&mechlist[index+1], &mechlist[index], in meta_mechManager_allocmechs()
569 (num_mechs - index) * sizeof (mechlist_t)); in meta_mechManager_allocmechs()
572 mechlist[index].type = new_mechs[i]; in meta_mechManager_allocmechs()
573 mechlist[index].slots = new_mechinfos; in meta_mechManager_allocmechs()
605 find_mech_index(CK_MECHANISM_TYPE mechanism, unsigned long *index) in find_mech_index() argument
621 *index = i; in find_mech_index()
653 unsigned long index; in meta_mechManager_slot_supports_mech() local
664 found = find_mech_index(mechanism, &index); in meta_mechManager_slot_supports_mech()
669 if ((mechlist[index].slots[slotnum].initialized) && in meta_mechManager_slot_supports_mech()
670 (mechlist[index].slots[slotnum].supported)) { in meta_mechManager_slot_supports_mech()
672 info = mechlist[index].slots[slotnum].mechanism_info; in meta_mechManager_slot_supports_mech()
679 *slot_info = &(mechlist[index].slots[slotnum]); in meta_mechManager_slot_supports_mech()