Home
last modified time | relevance | path

Searched refs:slots (Results 1 – 25 of 62) sorted by relevance

123

/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/
H A DmetaSlotManager.c51 slot_data_t *slots; variable
99 if (slots == NULL) { in meta_slotManager_initialize()
109 slots[i].fw_st_id = i + 1; in meta_slotManager_initialize()
118 if (slots) { in meta_slotManager_initialize()
119 free(slots); in meta_slotManager_initialize()
120 slots = NULL; in meta_slotManager_initialize()
139 if (slots == NULL) in meta_slotManager_finalize()
183 free(slots); in meta_slotManager_finalize()
184 slots = NULL; in meta_slotManager_finalize()
236 fw_st_id = slots[slot].fw_st_id; in meta_slotManager_find_object_token()
[all …]
H A DmetaMechManager.c55 mechinfo_t *slots; member
107 free(mechlist[i].slots); in meta_mechManager_finalize()
169 if (!mechlist[i].slots[j].initialized) in meta_mechManager_get_mechs()
172 if (mechlist[i].slots[j].supported) { in meta_mechManager_get_mechs()
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()
450 mechlist[index].slots[slotnum].slotnum = slotnum; in update_slotmech()
571 mechlist[index].slots = new_mechinfos; in meta_mechManager_allocmechs()
[all …]
H A DmetaSlotToken.c275 mechinfo_t **slots = NULL; in meta_GetMechanismInfo() local
302 slots = mech_support_info.supporting_slots; in meta_GetMechanismInfo()
305 (void) memcpy(pInfo, &(slots[0]->mechanism_info), in meta_GetMechanismInfo()
313 thisValue = slots[i]->mechanism_info.ulMinKeySize; in meta_GetMechanismInfo()
319 thisValue = slots[i]->mechanism_info.ulMaxKeySize; in meta_GetMechanismInfo()
324 pInfo->flags |= slots[i]->mechanism_info.flags; in meta_GetMechanismInfo()
H A DmetaUtil.c884 *slots = mech_support_info->supporting_slots; in get_slotlist_for_mech()
906 *slots = mech_support_info->supporting_slots; in get_slotlist_for_mech()
926 mechinfo_t **slots = NULL; in meta_generate_keys() local
1037 slotnum = slots[i]->slotnum; in meta_generate_keys()
1194 mechinfo_t **slots = NULL; in meta_wrap_key() local
1205 &(session->mech_support_info), &slots, &slotCount, in meta_wrap_key()
1215 slotnum = slots[i]->slotnum; in meta_wrap_key()
1310 mechinfo_t **slots = NULL; in meta_unwrap_key() local
1343 slotnum = slots[i]->slotnum; in meta_unwrap_key()
1467 mechinfo_t **slots = NULL; in meta_derive_key() local
[all …]
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/
H A Dtokens.c44 CK_SLOT_ID_PTR slots = NULL; in pk_tokens() local
62 if ((rv = get_token_slots(&slots, &slot_count)) != CKR_OK) { in pk_tokens()
80 if ((rv = C_GetTokenInfo(slots[i], &token_info)) != CKR_OK) { in pk_tokens()
94 free(slots); in pk_tokens()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddnode.c1151 int slots = dn->dn_num_slots - 1; in dnode_free_interior_slots() local
1153 if (slots == 0) in dnode_free_interior_slots()
1416 slots = 1; in dnode_hold_impl()
1419 dnode_slots_hold(dnc, idx, slots); in dnode_hold_impl()
1437 dnode_slots_rele(dnc, idx, slots); in dnode_hold_impl()
1461 dnode_slots_rele(dnc, idx, slots); in dnode_hold_impl()
1469 dnode_slots_rele(dnc, idx, slots); in dnode_hold_impl()
1484 dnode_slots_hold(dnc, idx, slots); in dnode_hold_impl()
1512 if (slots > 1) in dnode_hold_impl()
1556 dnode_slots_rele(dnc, idx, slots); in dnode_hold_impl()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dddi_ufm.c136 nvlist_t **images = NULL, **slots = NULL; in ufm_cache_fill() local
236 slots = kmem_zalloc(sizeof (nvlist_t *) * img->ufmi_nslots, in ufm_cache_fill()
241 slots[s] = fnvlist_alloc(); in ufm_cache_fill()
242 fnvlist_add_uint32(slots[s], DDI_UFM_NV_SLOT_ATTR, in ufm_cache_fill()
248 fnvlist_add_uint64(slots[s], in ufm_cache_fill()
253 fnvlist_add_string(slots[s], DDI_UFM_NV_SLOT_VERSION, in ufm_cache_fill()
256 fnvlist_add_nvlist(slots[s], in ufm_cache_fill()
261 slots, img->ufmi_nslots); in ufm_cache_fill()
262 free_nvlist_array(slots, img->ufmi_nslots); in ufm_cache_fill()
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_prop_decode.c967 int slots; in di_slot_names_decode() local
972 if (rawlen < sizeof (slots)) in di_slot_names_decode()
975 slots = impl_di_prop_int_from_prom(rawdata, sizeof (slots)); in di_slot_names_decode()
976 if (slots == 0) { in di_slot_names_decode()
981 maxslots = sizeof (slots) * 8; in di_slot_names_decode()
984 if (slots & (1 << i)) in di_slot_names_decode()
993 sp = (char *)(rawdata + sizeof (slots)); in di_slot_names_decode()
994 maxsp = sp + (rawlen - sizeof (slots)); in di_slot_names_decode()
997 if (slots & (1 << i)) { in di_slot_names_decode()
/illumos-gate/usr/src/uts/common/io/
H A Dufmtest.c348 nvlist_t **images, *misc, *miscdup = NULL, **slots; in ufmtest_fill_image() local
364 &slots, &ns) != 0) in ufmtest_fill_image()
386 nvlist_t **images, *misc, *miscdup = NULL, **slots; in ufmtest_fill_slot() local
401 &slots, &ns) != 0) in ufmtest_fill_slot()
407 if (nvlist_lookup_uint32(slots[slotno], DDI_UFM_NV_SLOT_ATTR, in ufmtest_fill_slot()
415 if (nvlist_lookup_string(slots[slotno], DDI_UFM_NV_SLOT_VERSION, in ufmtest_fill_slot()
421 if (nvlist_lookup_nvlist(slots[slotno], DDI_UFM_NV_SLOT_MISC, &misc) == in ufmtest_fill_slot()
/illumos-gate/usr/src/cmd/mdb/common/modules/mpt_sas/
H A Dmpt_sas.c454 struct mptsas_cmd c, *q, *slots; in display_slotinfo() local
489 if (mdb_vread(&slots[i], sizeof (mptsas_cmd_t), in display_slotinfo()
494 if ((slots[i].cmd_flags & CFLAG_CMDIOC) == 0) in display_slotinfo()
496 if (i != slots[i].cmd_slot) in display_slotinfo()
556 (i == slots[i].cmd_slot?" ":"BAD"), in display_slotinfo()
557 slots[i].cmd_slot, in display_slotinfo()
558 slots[i].cmd_flags, in display_slotinfo()
559 slots[i].cmd_pkt_flags, in display_slotinfo()
560 slots[i].cmd_pkt); in display_slotinfo()
561 (void) print_cdb(&slots[i]); in display_slotinfo()
[all …]
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_hio_guest.c449 uint8_t slots, mask, slot; in res_map_parse() local
456 slots = (uint8_t)(res_map & 0xff); in res_map_parse()
460 if (slots & mask) in res_map_parse()
486 tdc_grp->map = slots; in res_map_parse()
488 group->map = slots; in res_map_parse()
495 port->tx_dma_map = slots; in res_map_parse()
497 nxge->tx_set.owned.map |= slots; in res_map_parse()
508 rdc_grp->map = slots; in res_map_parse()
509 group->map = slots; in res_map_parse()
511 nxge->rx_set.owned.map |= slots; in res_map_parse()
/illumos-gate/usr/src/lib/fm/topo/modules/common/ufm/
H A Dtopo_ufm.c49 nvlist_t **slots; in topo_ufm_devinfo_image() local
59 ret = nvlist_lookup_nvlist_array(nvl, DDI_UFM_NV_IMAGE_SLOTS, &slots, in topo_ufm_devinfo_image()
106 ret = nvlist_lookup_uint32(slots[i], DDI_UFM_NV_SLOT_ATTR, in topo_ufm_devinfo_image()
136 (ret = nvlist_lookup_string(slots[i], in topo_ufm_devinfo_image()
151 (void) nvlist_lookup_nvlist(slots[i], DDI_UFM_NV_SLOT_MISC, in topo_ufm_devinfo_image()
/illumos-gate/usr/src/test/os-tests/tests/ddi_ufm/
H A Dufm-test.c148 nvlist_t *nvl = NULL, **images = NULL, **slots = NULL; in do_setfw() local
160 if ((slots = calloc(sizeof (nvlist_t *), in do_setfw()
166 if (nvlist_alloc(&slots[s], NV_UNIQUE_NAME, 0) != 0 || in do_setfw()
167 nvlist_add_string(slots[s], DDI_UFM_NV_SLOT_VERSION, in do_setfw()
169 nvlist_add_uint32(slots[s], DDI_UFM_NV_SLOT_ATTR, in do_setfw()
172 free_nvlist_arr(slots, in do_setfw()
179 slots, fwdata->ud_images[i].ui_nslots) != 0) { in do_setfw()
180 free_nvlist_arr(slots, fwdata->ud_images[i].ui_nslots); in do_setfw()
183 free_nvlist_arr(slots, fwdata->ud_images[i].ui_nslots); in do_setfw()
/illumos-gate/usr/src/cmd/fwflash/plugins/transport/common/
H A Dufm.c76 nvlist_t **images, **slots; in fw_readfw() local
104 &slots, &nslots) != 0) { in fw_readfw()
110 if (nvlist_lookup_uint64(slots[0], DDI_UFM_NV_SLOT_IMGSIZE, in fw_readfw()
541 nvlist_t **slots; in fw_devinfo() local
546 DDI_UFM_NV_IMAGE_SLOTS, &slots, &nslots) != 0) { in fw_devinfo()
565 if (nvlist_lookup_uint32(slots[s], DDI_UFM_NV_SLOT_ATTR, in fw_devinfo()
570 if (nvlist_lookup_string(slots[s], in fw_devinfo()
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_xu_index.c665 Dwarf_Unsigned slots = xuhdr->gx_slots_in_hash; in _dwarf_search_fission_for_key() local
666 Dwarf_Unsigned mask = slots -1; in _dwarf_search_fission_for_key()
672 if (slots > xuhdr->gx_section_length) { in _dwarf_search_fission_for_key()
678 "slots count of %u ",slots); in _dwarf_search_fission_for_key()
687 if ( (4*slots) > xuhdr->gx_section_length) { in _dwarf_search_fission_for_key()
693 "slots count *4 of %u ",slots*4); in _dwarf_search_fission_for_key()
727 primary_hash = (primary_hash + hashprime) % slots; in _dwarf_search_fission_for_key()
/illumos-gate/usr/src/uts/common/io/scsi/adapters/mpt_sas/
H A Dmptsas_raid.c575 mptsas_slots_t *slots = mpt->m_active; in mptsas_raid_action_system_shutdown() local
609 if (slots->m_slot[MPTSAS_TM_SLOT(mpt)] != NULL) { in mptsas_raid_action_system_shutdown()
622 slots->m_slot[MPTSAS_TM_SLOT(mpt)] = cmd; in mptsas_raid_action_system_shutdown()
755 slots->m_slot[MPTSAS_TM_SLOT(mpt)] = NULL; in mptsas_raid_action_system_shutdown()
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Ddnode.h95 #define DN_SLOTS_TO_BONUSLEN(slots) DN_BONUS_SIZE((slots) << DNODE_SHIFT) argument
398 int dnode_try_claim(objset_t *os, uint64_t object, int slots);
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4x_state.c272 slots_free(rfs4_slot_t *slots, size_t n) in slots_free() argument
277 rfs4_slot_t *slot = &slots[i]; in slots_free()
285 kmem_free(slots, sizeof (rfs4_slot_t) * n); in slots_free()
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/javelin/common/
H A Djavelin.c1273 int slots, start_slot; in tazmo_physical_slot() local
1299 slots = 20; in tazmo_physical_slot()
1302 slots = 2; in tazmo_physical_slot()
1310 slots = slots - 1; in tazmo_physical_slot()
1311 for (slot = start_slot; slot <= slots; slot++) { in tazmo_physical_slot()
/illumos-gate/usr/src/uts/i86pc/cpu/generic_cpu/
H A Dgcpu_mca.c1011 int slots; in gcpu_errorq_init() local
1026 slots = MAX(GCPU_MCA_ERRS_PERCPU * max_ncpus, GCPU_MCA_MIN_ERRORS); in gcpu_errorq_init()
1027 slots = MIN(slots, GCPU_MCA_MAX_ERRORS); in gcpu_errorq_init()
1030 NULL, slots, datasz, 1, ERRORQ_VITAL); in gcpu_errorq_init()
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/tazmo/common/
H A Dtazmo.c1482 int slots, start_slot; in tazmo_physical_slot() local
1508 slots = 20; in tazmo_physical_slot()
1511 slots = 2; in tazmo_physical_slot()
1515 for (slot = start_slot; slot <= slots; slot++) { in tazmo_physical_slot()
/illumos-gate/usr/src/uts/intel/io/intel_nb5000/
H A Dnb5000_init.c644 int slots; member
666 (rp->slots == nb_dimm_slots || in dimm_label()
701 rp->slots++; in check_memdevice()
718 r.slots = 0; in nb_smbios()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/grover/frutree/
H A Dsystem-board.info71 * set the SlotType for the cpu slots
153 * Populate PCI slots
H A Dpiclfrutree.info99 * set the SlotType for the disk slots
/illumos-gate/usr/src/uts/common/sys/rsm/
H A Drsm_in.h375 rsmipc_slot_t slots[RSMIPC_SZ]; member

123