/illumos-gate/usr/src/uts/common/sys/scsi/adapters/pmcs/ |
H A D | pmcs_iomb.h | 682 ((ADDQI(hwp->shadow_iqpi[qnum], 1, hwp->ioq_depth) == \ 684 &hwp->iqp[qnum][hwp->shadow_iqpi[qnum] * (PMCS_QENTRY_SIZE >> 2)]) 695 htag = hwp->iqp[qnum][(hwp->shadow_iqpi[qnum] * \ 700 INCQI(hwp->shadow_iqpi[qnum], hwp->ioq_depth); \ 706 hwp->ftime[hwp->fti] = gethrtime(); \ 707 pmcs_wr_iqpi(hwp, qnum, hwp->shadow_iqpi[qnum]); \ 710 hwp->ftag_lines[hwp->fti] = __LINE__; \ 711 hwp->ftags[hwp->fti++] = htag; \ 716 INCQI(hwp->shadow_iqpi[qnum], hwp->ioq_depth); \ 722 pmcs_wr_iqpi(hwp, qnum, hwp->shadow_iqpi[qnum]); \ [all …]
|
H A D | pmcs_mpi.h | 46 #define PMCS_FW_TYPE(hwp) (hwp->fw & 0xf) argument 51 #define PMCS_FW_VARIANT(hwp) ((hwp->fw >> 4) & 0xf) argument 52 #define PMCS_FW_MAJOR(hwp) ((hwp->fw >> 24) & 0xff) argument 53 #define PMCS_FW_MINOR(hwp) ((hwp->fw >> 16) & 0xff) argument 54 #define PMCS_FW_MICRO(hwp) ((hwp->fw >> 8) & 0xff) argument 55 #define PMCS_FW_REV(hwp) ((hwp->fw >> 8) & 0xffffff) argument
|
H A D | pmcs_def.h | 431 #define SCHEDULE_WORK(hwp, wrk) \ argument 438 #define WORK_SCHEDULED(hwp, wrk) \ argument 446 #define WORK_IS_SCHEDULED(hwp, wrk) \ argument 465 #define PMCS_CQ_RUN_LOCKED(hwp) \ argument 466 if (!STAILQ_EMPTY(&hwp->cq) || hwp->iocomp_cb_head) { \ 468 cqti = &hwp->cq_info.cq_thr_info \ 472 hwp->cq_info.cq_threads) { \ 480 #define PMCS_CQ_RUN(hwp) \ argument 481 mutex_enter(&hwp->cq_lock); \ 482 PMCS_CQ_RUN_LOCKED(hwp); \ [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | modhash.c | 142 hash_walk_t *hwp; in modent_walk_init() local 167 if (hwp == NULL) { in modent_walk_init() 173 (void) memcpy(&hwp->hwalk_hash, &mh, sizeof (hwp->hwalk_hash)); in modent_walk_init() 187 hwp->hwalk_msd.msd_position = 0; in modent_walk_init() 188 hwp->hwalk_msd.msd_first_addr = 0; in modent_walk_init() 191 wsp->walk_data = hwp; in modent_walk_init() 206 hwp->hwalk_msd.msd_position = 0; in modent_walk_step() 208 hwp->hwalk_hash.mh_nchains) in modent_walk_step() 215 if (mdb_vread(&hwp->hwalk_msd.msd_mhe, sizeof (hwp->hwalk_msd.msd_mhe), in modent_walk_step() 225 hwp->hwalk_msd.msd_position++; in modent_walk_step() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | hc.c | 1309 i = hwp->hcw_index; in hc_walker() 1312 if ((err = hwp->hcw_cb(mod, node, hwp->hcw_priv)) in hc_walker() 1369 hwp->hcw_index++; in hc_walker() 1378 if ((err = hwp->hcw_cb(mod, node, hwp->hcw_priv)) != 0) { in hc_walker() 1412 struct hc_walk *hwp; in hc_walk_init() local 1443 hwp->hcw_index = 0; in hc_walk_init() 1445 hwp->hcw_cb = cb; in hc_walk_init() 1455 hwp->hcw_wp = wp; in hc_walk_init() 1457 return (hwp); in hc_walk_init() 1488 struct hc_walk *hwp; in hc_fmri_prop_get() local [all …]
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_mdb.c | 327 hwp->hw_hashidx = 0; in hash_walk_init() 328 hwp->hw_name = name; in hash_walk_init() 330 hwp->hw_size = size; in hash_walk_init() 331 hwp->hw_next = next; in hash_walk_init() 346 if (++hwp->hw_hashidx < hwp->hw_hashlen) in hash_walk_step() 347 wsp->walk_addr = hwp->hw_hash[hwp->hw_hashidx]; in hash_walk_step() 352 if (mdb_vread(hwp->hw_data, hwp->hw_size, wsp->walk_addr) == -1) { in hash_walk_step() 368 mdb_free(hwp->hw_hash, sizeof (uintptr_t) * hwp->hw_hashlen); in hash_walk_fini() 369 mdb_free(hwp->hw_data, hwp->hw_size); in hash_walk_fini() 395 if (++hwp->hw_hashidx < hwp->hw_hashlen) in ustat_walk_step() [all …]
|
/illumos-gate/usr/src/uts/common/crypto/api/ |
H A D | kcf_miscapi.c | 649 kcf_prov_mech_desc_t *hwp; in crypto_get_all_mech_info() local 692 for (hwp = me->me_hw_prov_chain; hwp != NULL; hwp = hwp->pm_next) in crypto_get_all_mech_info() 693 init_mechanism_info(&infos[cur_info++], hwp); in crypto_get_all_mech_info()
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | immu_dvma.c | 1854 hw_pdte_t *hwp; in PTE_clear_all() local 1871 hwp = shwp; in PTE_clear_all() 1873 PDTE_CLEAR_P(*hwp); in PTE_clear_all() 2022 pte = *hwp; in PTE_set_one() 2091 *hwp = pte; in PTE_set_one() 2105 hw_pdte_t *hwp; in PTE_set_all() local 2123 hwp = shwp; in PTE_set_all() 2179 pde = *hwp; in PDE_set_one() 2237 *hwp = pde; in PDE_set_one() 2250 hw_pdte_t *hwp; in PDE_set_all() local [all …]
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_intr.c | 73 #define EVT_PRT(hwp, msg, phy) \ argument 74 pmcs_prt(hwp, PMCS_PRT_DEBUG, NULL, NULL, "Phy 0x%x: %s", phy, # msg)
|