/titanic_41/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_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 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 …]
|
/titanic_41/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | modhash.c | 143 hash_walk_t *hwp; in modent_walk_init() local 167 hwp = mdb_alloc(HW_SIZE(mh.mh_nchains), UM_NOSLEEP); in modent_walk_init() 168 if (hwp == NULL) { in modent_walk_init() 174 (void) memcpy(&hwp->hwalk_hash, &mh, sizeof (hwp->hwalk_hash)); in modent_walk_init() 176 retv = mdb_vread(hwp->hwalk_hash.mh_entries + 1, in modent_walk_init() 181 mdb_free(hwp, HW_SIZE(mh.mh_nchains)); in modent_walk_init() 187 hwp->hwalk_msd.msd_hash_index = -1; in modent_walk_init() 188 hwp->hwalk_msd.msd_position = 0; in modent_walk_init() 189 hwp->hwalk_msd.msd_first_addr = NULL; in modent_walk_init() 192 wsp->walk_data = hwp; in modent_walk_init() [all …]
|
/titanic_41/usr/src/lib/fm/topo/libtopo/common/ |
H A D | hc.c | 1313 hc_walk_sibling(topo_mod_t *mod, tnode_t *node, struct hc_walk *hwp, in hc_walk_sibling() argument 1317 topo_walk_t *wp = hwp->hcw_wp; in hc_walk_sibling() 1325 if (hc_match(mod, np, hwp->hcw_fmri, name, inst, in hc_walk_sibling() 1329 status = wp->tw_cb(mod, np, hwp); in hc_walk_sibling() 1331 status = wp->tw_cb(wp->tw_thp, np, hwp); in hc_walk_sibling() 1356 struct hc_walk *hwp = (struct hc_walk *)pdata; in hc_walker() local 1362 i = hwp->hcw_index; in hc_walker() 1363 if (i > hwp->hcw_end) { in hc_walker() 1364 if (hwp->hcw_fac != NULL) { in hc_walker() 1365 if ((err = hwp->hcw_cb(mod, node, hwp->hcw_priv)) in hc_walker() [all …]
|
/titanic_41/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_mdb.c | 308 hashwalk_data_t *hwp; in hash_walk_init() local 316 hwp = mdb_alloc(sizeof (hashwalk_data_t), UM_SLEEP); in hash_walk_init() 317 hwp->hw_hash = mdb_zalloc(len, UM_SLEEP); in hash_walk_init() 318 (void) mdb_vread(hwp->hw_hash, len, addr); in hash_walk_init() 319 hwp->hw_hashlen = hashlen; in hash_walk_init() 320 hwp->hw_hashidx = 0; in hash_walk_init() 321 hwp->hw_name = name; in hash_walk_init() 322 hwp->hw_data = mdb_zalloc(size, UM_SLEEP); in hash_walk_init() 323 hwp->hw_size = size; in hash_walk_init() 324 hwp->hw_next = next; in hash_walk_init() [all …]
|
/titanic_41/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()
|
/titanic_41/usr/src/uts/i86pc/io/ |
H A D | immu_dvma.c | 1852 hw_pdte_t *hwp; in PTE_clear_all() local 1869 hwp = shwp; in PTE_clear_all() 1870 for (; npages > 0 && idx <= IMMU_PGTABLE_MAXIDX; idx++, hwp++) { in PTE_clear_all() 1871 PDTE_CLEAR_P(*hwp); in PTE_clear_all() 2011 PTE_set_one(immu_t *immu, hw_pdte_t *hwp, paddr_t paddr, in PTE_set_one() argument 2020 pte = *hwp; in PTE_set_one() 2089 *hwp = pte; in PTE_set_one() 2103 hw_pdte_t *hwp; in PTE_set_all() local 2121 hwp = shwp; in PTE_set_all() 2134 for (; nvpages > 0 && idx <= IMMU_PGTABLE_MAXIDX; idx++, hwp++) { in PTE_set_all() [all …]
|
/titanic_41/usr/src/uts/sun4u/starfire/io/ |
H A D | idn_xf.c | 1635 idn_cpu_per_board(pda_handle_t ph, cpuset_t cset, struct hwconfig *hwp) in idn_cpu_per_board() argument 1644 bset = hwp->dh_boardset; in idn_cpu_per_board() 1683 (!lbp && hwp->dh_mcadr[b])) { in idn_cpu_per_board()
|
/titanic_41/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)
|
/titanic_41/usr/src/uts/sun4u/starfire/sys/ |
H A D | idn.h | 3700 struct hwconfig *hwp);
|