/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | metaSlotManager.c | 51 slot_data_t *slots; variable 98 slots = calloc(slot_count, sizeof (slot_data_t)); in meta_slotManager_initialize() 99 if (slots == NULL) { in meta_slotManager_initialize() 109 slots[i].fw_st_id = i + 1; in meta_slotManager_initialize() 111 &(slots[i].tokenobject_list_lock), NULL); 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() 157 session = slots[slot].session_pool.idle_list_head; in meta_slotManager_finalize() [all …]
|
H A D | metaMechManager.c | 55 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() 307 if (force_refresh || !mechlist[index].slots[slot].initialized) { in meta_mechManager_update_mech() 450 mechlist[index].slots[slotnum].slotnum = slotnum; in update_slotmech() [all …]
|
H A D | metaSlotToken.c | 275 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 D | metaUtil.c | 859 mechinfo_t ***slots, unsigned long *slot_count, boolean_t token_only, in get_slotlist_for_mech() argument 884 *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 1017 &(session->mech_support_info), &slots, &slotCount, token_only, in meta_generate_keys() 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 [all …]
|
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/ |
H A D | tokens.c | 44 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 D | dnode.c | 1037 dnode_slots_hold(dnode_children_t *children, int idx, int slots) in dnode_slots_hold() argument 1039 ASSERT3S(idx + slots, <=, DNODES_PER_BLOCK); in dnode_slots_hold() 1041 for (int i = idx; i < idx + slots; i++) { in dnode_slots_hold() 1048 dnode_slots_rele(dnode_children_t *children, int idx, int slots) in dnode_slots_rele() argument 1050 ASSERT3S(idx + slots, <=, DNODES_PER_BLOCK); in dnode_slots_rele() 1052 for (int i = idx; i < idx + slots; i++) { in dnode_slots_rele() 1063 dnode_slots_enter(dnode_children_t *children, int idx, int slots, in dnode_slots_enter() argument 1066 ASSERT3S(idx + slots, <=, DNODES_PER_BLOCK); in dnode_slots_enter() 1069 for (int i = idx; i < idx + slots; i++) { in dnode_slots_enter() 1086 dnode_set_slots(dnode_children_t *children, int idx, int slots, void *ptr) in dnode_set_slots() argument [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | ddi_ufm.c | 136 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 D | devinfo_prop_decode.c | 967 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 D | ufmtest.c | 348 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 D | mpt_sas.c | 454 struct mptsas_cmd c, *q, *slots; in display_slotinfo() local 484 slots = mdb_alloc(sizeof (mptsas_cmd_t) * nslots, UM_SLEEP); in display_slotinfo() 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() [all …]
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_hio_guest.c | 449 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 D | topo_ufm.c | 49 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 D | ufm-test.c | 148 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 D | ufm.c | 76 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 D | dwarf_xu_index.c | 665 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 D | mptsas_raid.c | 575 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 D | dnode.h | 95 #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 D | nfs4x_state.c | 272 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 D | javelin.c | 1273 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 D | gcpu_mca.c | 1011 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 D | tazmo.c | 1482 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 D | nb5000_init.c | 644 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 D | system-board.info | 71 * set the SlotType for the cpu slots 153 * Populate PCI slots
|
H A D | piclfrutree.info | 99 * set the SlotType for the disk slots
|
/illumos-gate/usr/src/uts/common/sys/rsm/ |
H A D | rsm_in.h | 375 rsmipc_slot_t slots[RSMIPC_SZ]; member
|