/titanic_44/usr/src/uts/common/io/pci-ide/ |
H A D | pci-ide.c | 112 static int pciide_pre26_rnumber_map(dev_info_t *mydip, int rnumber); 295 int rnumber; in pciide_ddi_ctlops() local 329 switch (rnumber = *(int *)arg) { in pciide_ddi_ctlops() 332 rnumber += (2 * controller); in pciide_ddi_ctlops() 335 rnumber = 4; in pciide_ddi_ctlops() 347 old_rnumber = rnumber; in pciide_ddi_ctlops() 352 rnumber = new_rnumber; in pciide_ddi_ctlops() 358 rnumber++; in pciide_ddi_ctlops() 364 return (ddi_ctlops(dip, dip, ctlop, &rnumber, result)); in pciide_ddi_ctlops() 374 rc = ddi_ctlops(dip, dip, ctlop, &rnumber, &tmp); in pciide_ddi_ctlops() [all …]
|
/titanic_44/usr/src/uts/sparc/os/ |
H A D | ddi_arch.c | 76 int rnumber = mp->map_obj.rnumber; in i_ddi_bus_map() local 82 rp = i_ddi_rnumber_to_regspec(rdip, rnumber); in i_ddi_bus_map() 85 cmn_err(CE_WARN, out_of_range, rnumber, in i_ddi_bus_map() 165 i_ddi_rnumber_to_regspec(dev_info_t *dip, int rnumber) in i_ddi_rnumber_to_regspec() argument 167 if (rnumber >= sparc_pd_getnreg(DEVI(dip))) in i_ddi_rnumber_to_regspec() 170 return (sparc_pd_getreg(DEVI(dip), rnumber)); in i_ddi_rnumber_to_regspec()
|
/titanic_44/usr/src/uts/intel/os/ |
H A D | ddi_arch.c | 66 int rnumber = mp->map_obj.rnumber; in i_ddi_bus_map() local 72 rp = i_ddi_rnumber_to_regspec(rdip, rnumber); in i_ddi_bus_map() 75 cmn_err(CE_WARN, out_of_range, rnumber, in i_ddi_bus_map() 181 i_ddi_rnumber_to_regspec(dev_info_t *dip, int rnumber) in i_ddi_rnumber_to_regspec() argument 183 if (rnumber >= sparc_pd_getnreg(DEVI(dip))) in i_ddi_rnumber_to_regspec() 186 return (sparc_pd_getreg(DEVI(dip), rnumber)); in i_ddi_rnumber_to_regspec()
|
/titanic_44/usr/src/uts/sun4u/io/ |
H A D | pmubus.c | 631 pmubus_mask(pmubus_obpregspec_t *regs, int32_t rnumber, in pmubus_mask() argument 637 for (i = 0; i <= rnumber; i++) in pmubus_mask() 666 int32_t rnumber = mp->map_obj.rnumber; in pmubus_map() local 688 rnumber = mp->map_obj.rnumber; in pmubus_map() 691 rnumber, (void *)mp->map_handlep)); in pmubus_map() 703 if (rnumber < 0 || rnumber >= n) { in pmubus_map() 710 pmubus_regs[rnumber].reg_addr_hi << 32) | in pmubus_map() 711 (uint64_t)pmubus_regs[rnumber].reg_addr_lo; in pmubus_map() 712 pmubus_rp.reg_size = pmubus_regs[rnumber].reg_size; in pmubus_map() 781 pmubus_mask(pmubus_regs, rnumber, in pmubus_map() [all …]
|
H A D | upa64s.c | 189 static int get_reg_set(dev_info_t *dip, dev_info_t *child, int rnumber, 191 static off_t get_reg_set_size(dev_info_t *child, int rnumber); 497 int rnumber, rval; in upa64s_map() local 537 mp->map_obj.rnumber, mp->map_handlep); in upa64s_map() 538 rnumber = mp->map_obj.rnumber; in upa64s_map() 539 if (rnumber < 0) in upa64s_map() 541 rval = get_reg_set(dip, rdip, rnumber, off, len, ®spec); in upa64s_map() 924 get_reg_set(dev_info_t *dip, dev_info_t *child, int rnumber, in get_reg_set() argument 938 if (rnumber >= n) { in get_reg_set() 947 rval = xlate_reg_prop(dip, &upa64s_rp[rnumber], off, len, rp); in get_reg_set() [all …]
|
H A D | isadma.c | 628 int32_t rnumber = mp->map_obj.rnumber; in isadma_map() local 641 child_regp = regp + rnumber; in isadma_map()
|
/titanic_44/usr/src/cmd/th_tools/ |
H A D | th_define.c | 291 else if (e1->rnumber < e2->rnumber) in hdl_cmp() 293 else if (e1->rnumber > e2->rnumber) in hdl_cmp() 497 edp->rnumber, in define_one_error() 1105 "Register set:", edp->rnumber); in log2errdefs() 1109 (void) fprintf(fp, "# %-24s%d\n", "DMA handle:", edp->rnumber); in log2errdefs() 1114 "Unknown Handle Type:", edp->rnumber); in log2errdefs() 1264 errdef->rnumber = hdl->rnumber; in add_edef() 1271 errdef->instance, errdef->rnumber, in add_edef() 1313 (char *)errdef->name, errdef->instance, errdef->rnumber, in collect_state() 1394 hi->ed.rnumber, hi->ed.access_type); in thr_collect() [all …]
|
/titanic_44/usr/src/uts/common/sys/ |
H A D | bofi.h | 113 int rnumber; /* as used by ddi_regs_map_setup() */ member 136 int rnumber; /* as used by ddi_regs_map_setup() */ member 181 int rnumber; member
|
H A D | ddimapreq.h | 52 int rnumber; member
|
H A D | ddi_implfuncs.h | 59 i_ddi_rnumber_to_regspec(dev_info_t *dip, int rnumber); 68 i_ddi_get_regspec(dev_info_t *dip, dev_info_t *rdip, uint_t rnumber,
|
H A D | sunddi.h | 536 ddi_map_regs(dev_info_t *dip, uint_t rnumber, caddr_t *kaddrp, 556 ddi_unmap_regs(dev_info_t *dip, uint_t rnumber, caddr_t *kaddrp, 570 ddi_rnumber_to_regspec(dev_info_t *dip, int rnumber); 656 uint_t rnumber, offset_t roff, size_t len, uint_t maxprot, 667 uint_t rnumber, offset_t roff, size_t len, uint_t maxprot, 715 ddi_device_acc_attr_t *accattrp, uint_t rnumber); 723 uint_t rnumber, uint_t *hat_flags); 1413 ddi_dev_regsize(dev_info_t *dev, uint_t rnumber, off_t *resultp); 1869 ddi_regs_map_setup(dev_info_t *dip, uint_t rnumber, caddr_t *addrp,
|
H A D | bofi_impl.h | 89 int rnumber; member
|
/titanic_44/usr/src/uts/common/io/ |
H A D | pci_intr_lib.c | 785 uint_t rnumber, breg, nregs; in pci_msix_init() local 839 for (i = 1, rnumber = 0; i < nregs/reg_size; i++) { in pci_msix_init() 846 rnumber = i; in pci_msix_init() 851 DDI_INTR_NEXDBG((CE_CONT, "pci_msix_init: MSI-X rnum = %d\n", rnumber)); in pci_msix_init() 853 if (rnumber == 0) { in pci_msix_init() 860 if ((ret = ddi_regs_map_setup(rdip, rnumber, in pci_msix_init() 888 for (i = 1, rnumber = 0; i < nregs/reg_size; i++) { in pci_msix_init() 895 rnumber = i; in pci_msix_init() 900 DDI_INTR_NEXDBG((CE_CONT, "pci_msix_init: PBA rnum = %d\n", rnumber)); in pci_msix_init() 902 if (rnumber == 0) { in pci_msix_init() [all …]
|
H A D | bofi.c | 957 errdef.rnumber = errdef_32.rnumber; in bofi_ioctl() 1047 errdef_32.rnumber = errdef.rnumber; in bofi_ioctl() 1529 hp->rnumber, hp->offset); in bofi_ioctl() 1535 hp->rnumber, hp->offset, in bofi_ioctl() 1541 " addr 0x%p\n", hp->rnumber, in bofi_ioctl() 1547 "handle no %d\n", hp->rnumber); in bofi_ioctl() 1630 hdlip->rnumber = hp->rnumber; in bofi_ioctl() 1782 (ep->errdef.rnumber == -1 || in bofi_errdef_alloc() 1783 hp->rnumber == ep->errdef.rnumber) && in bofi_errdef_alloc() 1793 (errdefp->rnumber == -1 || in bofi_errdef_alloc() [all …]
|
/titanic_44/usr/src/uts/i86pc/io/gfx_private/ |
H A D | gfxp_segmap.c | 62 ddi_device_acc_attr_t *accattrp, uint_t rnumber) in gfxp_ddi_segmap_setup() argument 84 if (ddi_device_mapping_check(dev, accattrp, rnumber, &hat_attr) == -1) in gfxp_ddi_segmap_setup()
|
/titanic_44/usr/src/uts/sun4u/opl/io/pcicmu/ |
H A D | pcmu_util.c | 428 pcmu_get_reg_set_size(dev_info_t *child, int rnumber) in pcmu_get_reg_set_size() argument 434 if (rnumber < 0) { in pcmu_get_reg_set_size() 446 if (rnumber >= (i / (int)sizeof (pci_regspec_t))) { in pcmu_get_reg_set_size() 451 size = pcmu_rp[rnumber].pci_size_low | in pcmu_get_reg_set_size() 452 ((uint64_t)pcmu_rp[rnumber].pci_size_hi << 32); in pcmu_get_reg_set_size()
|
/titanic_44/usr/src/uts/sun4/io/px/ |
H A D | px_util.c | 550 px_get_reg_set_size(dev_info_t *child, int rnumber) in px_get_reg_set_size() argument 556 if (rnumber < 0) in px_get_reg_set_size() 566 if (rnumber >= (i / (int)sizeof (pci_regspec_t))) in px_get_reg_set_size() 569 size = pci_rp[rnumber].pci_size_low | in px_get_reg_set_size() 570 ((uint64_t)pci_rp[rnumber].pci_size_hi << 32); in px_get_reg_set_size()
|
H A D | px_util.h | 56 extern off_t px_get_reg_set_size(dev_info_t *child, int rnumber);
|
/titanic_44/usr/src/uts/sun4/io/ |
H A D | ebus.c | 466 int rnumber, i, n; in ebus_map() local 494 rnumber = mp->map_obj.rnumber; in ebus_map() 497 rnumber, mp->map_handlep); in ebus_map() 506 if (rnumber < 0 || rnumber >= n) { in ebus_map() 510 ebus_rp = &ebus_regs[rnumber]; in ebus_map()
|
H A D | rootnex.c | 518 int rnumber = mp->map_obj.rnumber; in rootnex_map() local 520 rp = i_ddi_rnumber_to_regspec(rdip, rnumber); in rootnex_map() 523 "range rnumber <%d>, device <%s>", rnumber, in rootnex_map()
|
/titanic_44/usr/src/uts/sun4u/montecarlo/io/ |
H A D | acebus.c | 381 int rnumber, i, n; in acebus_map() local 409 rnumber = mp->map_obj.rnumber; in acebus_map() 412 rnumber, mp->map_handlep); in acebus_map() 420 if (rnumber < 0 || rnumber >= n) { in acebus_map() 424 ebus_rp = &ebus_regs[rnumber]; in acebus_map()
|
/titanic_44/usr/src/uts/intel/io/drm/ |
H A D | i915_drv.c | 794 int rnumber; in i915_map_regs() local 803 for (rnumber = 1; rnumber < nregs; rnumber++) { in i915_map_regs() 804 (void) ddi_dev_regsize(dip, rnumber, &size); in i915_map_regs() 811 if (rnumber >= nregs) { in i915_map_regs() 817 if (ddi_regs_map_setup(dip, rnumber, save_addr, in i915_map_regs() 820 "i915_map_regs: failed to map bar %d", rnumber); in i915_map_regs()
|
/titanic_44/usr/src/uts/i86pc/io/pci/ |
H A D | pci.c | 342 int rnumber; in pci_bus_map() local 372 rnumber = mp->map_obj.rnumber; in pci_bus_map() 391 if (rnumber >= nelems) { in pci_bus_map() 399 pci_reg = pci_rp[rnumber]; in pci_bus_map()
|
/titanic_44/usr/src/uts/sun4u/io/pci/ |
H A D | pci.c | 65 static off_t get_reg_set_size(dev_info_t *child, int rnumber); 502 r_no = mp->map_obj.rnumber; in pci_map() 1160 get_reg_set_size(dev_info_t *child, int rnumber) in get_reg_set_size() argument 1166 if (rnumber < 0) in get_reg_set_size() 1176 if (rnumber >= (i / (int)sizeof (pci_regspec_t))) { in get_reg_set_size() 1181 size = pci_rp[rnumber].pci_size_low | in get_reg_set_size() 1182 ((uint64_t)pci_rp[rnumber].pci_size_hi << 32); in get_reg_set_size()
|
/titanic_44/usr/src/uts/i86pc/io/pciex/ |
H A D | npe.c | 417 int rnumber; in npe_bus_map() local 445 rnumber = mp->map_obj.rnumber; in npe_bus_map() 464 if (rnumber >= nelem) { in npe_bus_map() 472 pci_reg = pci_rp[rnumber]; in npe_bus_map()
|