| /illumos-gate/usr/src/uts/common/sys/scsi/adapters/pmcs/ |
| H A D | pmcs_iomb.h | 681 #define GET_IQ_ENTRY(hwp, qnum) \ argument 682 ((ADDQI(hwp->shadow_iqpi[qnum], 1, hwp->ioq_depth) == \ 683 pmcs_rd_iqci(hwp, qnum)) ? NULL : \ 684 &hwp->iqp[qnum][hwp->shadow_iqpi[qnum] * (PMCS_QENTRY_SIZE >> 2)]) 691 #define INC_IQ_ENTRY(hwp, qnum) \ argument 694 ASSERT(mutex_owned(&(hwp)->iqp_lock[qnum])); \ 695 htag = hwp->iqp[qnum][(hwp->shadow_iqpi[qnum] * \ 697 mutex_enter(&(hwp)->dbglock); \ 698 pmcs_iqp_trace(hwp, qnum); \ 699 mutex_exit(&(hwp)->dbglock); \ [all …]
|
| H A D | pmcs_def.h | 431 #define SCHEDULE_WORK(hwp, wrk) \ argument 432 (void) atomic_set_long_excl(&hwp->work_flags, wrk) 438 #define WORK_SCHEDULED(hwp, wrk) \ argument 439 (atomic_clear_long_excl(&hwp->work_flags, wrk) == 0) 446 #define WORK_IS_SCHEDULED(hwp, wrk) \ argument 447 ((atomic_and_ulong_nv(&hwp->work_flags, (ulong_t)-1) & (1 << wrk)) != 0) 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 \ 469 [hwp->cq_info.cq_next_disp_thr]; \ [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
|
| /illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
| H A D | modhash.c | 142 hash_walk_t *hwp; in modent_walk_init() local 166 hwp = mdb_alloc(HW_SIZE(mh.mh_nchains), UM_NOSLEEP); in modent_walk_init() 167 if (hwp == NULL) { in modent_walk_init() 173 (void) memcpy(&hwp->hwalk_hash, &mh, sizeof (hwp->hwalk_hash)); in modent_walk_init() 175 retv = mdb_vread(hwp->hwalk_hash.mh_entries + 1, in modent_walk_init() 180 mdb_free(hwp, HW_SIZE(mh.mh_nchains)); in modent_walk_init() 186 hwp->hwalk_msd.msd_hash_index = -1; 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() [all …]
|
| /illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
| H A D | hc.c | 1277 hc_walk_sibling(topo_mod_t *mod, tnode_t *node, struct hc_walk *hwp, in hc_walk_sibling() argument 1281 topo_walk_t *wp = hwp->hcw_wp; in hc_walk_sibling() 1289 if (hc_match(mod, np, hwp->hcw_fmri, name, inst, in hc_walk_sibling() 1293 status = wp->tw_cb(mod, np, hwp); in hc_walk_sibling() 1295 status = wp->tw_cb(wp->tw_thp, np, hwp); in hc_walk_sibling() 1320 struct hc_walk *hwp = (struct hc_walk *)pdata; in hc_walker() local 1326 i = hwp->hcw_index; in hc_walker() 1327 if (i > hwp->hcw_end) { in hc_walker() 1328 if (hwp->hcw_fac != NULL) { in hc_walker() 1329 if ((err = hwp->hcw_cb(mod, node, hwp->hcw_priv)) in hc_walker() [all …]
|
| /illumos-gate/usr/src/cmd/fm/fmd/common/ |
| H A D | fmd_mdb.c | 315 hashwalk_data_t *hwp; in hash_walk_init() local 323 hwp = mdb_alloc(sizeof (hashwalk_data_t), UM_SLEEP); in hash_walk_init() 324 hwp->hw_hash = mdb_zalloc(len, UM_SLEEP); in hash_walk_init() 325 (void) mdb_vread(hwp->hw_hash, len, addr); in hash_walk_init() 326 hwp->hw_hashlen = hashlen; in hash_walk_init() 327 hwp->hw_hashidx = 0; in hash_walk_init() 328 hwp->hw_name = name; in hash_walk_init() 329 hwp->hw_data = mdb_zalloc(size, UM_SLEEP); in hash_walk_init() 330 hwp->hw_size = size; in hash_walk_init() 331 hwp->hw_next = next; in hash_walk_init() [all …]
|
| /illumos-gate/usr/src/uts/i86pc/io/ |
| H A D | immu_dvma.c | 1853 hw_pdte_t *hwp; in PTE_clear_all() local 1870 hwp = shwp; in PTE_clear_all() 1871 for (; npages > 0 && idx <= IMMU_PGTABLE_MAXIDX; idx++, hwp++) { in PTE_clear_all() 1872 PDTE_CLEAR_P(*hwp); in PTE_clear_all() 2012 PTE_set_one(immu_t *immu, hw_pdte_t *hwp, paddr_t paddr, in PTE_set_one() argument 2021 pte = *hwp; in PTE_set_one() 2092 *hwp = pte; in PTE_set_one() 2106 hw_pdte_t *hwp; in PTE_set_all() local 2124 hwp = shwp; in PTE_set_all() 2138 for (; nvpages > 0 && idx <= IMMU_PGTABLE_MAXIDX; idx++, hwp++) { in PTE_set_all() [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/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)
|