Home
last modified time | relevance | path

Searched refs:pci_rp (Results 1 – 25 of 32) sorted by relevance

12

/illumos-gate/usr/src/uts/sun4/io/px/
H A Dpx_util.c312 pci_regspec_t *pci_rp; in px_name_child() local
356 ddi_prop_free(pci_rp); in px_name_child()
405 pci_regspec_t *pci_rp; in px_init_child() local
454 kmem_free(pci_rp, i); in px_init_child()
550 pci_regspec_t *pci_rp; in px_get_reg_set_size() local
561 (caddr_t)&pci_rp, &i) != DDI_SUCCESS) in px_get_reg_set_size()
567 size = pci_rp[rnumber].pci_size_low | in px_get_reg_set_size()
570 kmem_free(pci_rp, i); in px_get_reg_set_size()
588 pci_regspec_t *pci_rp; in px_get_nreg_set() local
595 (caddr_t)&pci_rp, &i) != DDI_SUCCESS) in px_get_nreg_set()
[all …]
H A Dpx_util.h49 pci_regspec_t *pci_rp);
50 extern int px_xlate_reg(px_t *px_p, pci_regspec_t *pci_rp,
/illumos-gate/usr/src/uts/i86pc/io/pci/
H A Dpci.c341 pci_regspec_t *pci_rp; in pci_bus_map() local
367 pci_rp = &pci_reg; in pci_bus_map()
392 ddi_prop_free(pci_rp); in pci_bus_map()
399 pci_reg = pci_rp[rnumber]; in pci_bus_map()
404 ddi_prop_free(pci_rp); in pci_bus_map()
406 pci_rp = &pci_reg; in pci_bus_map()
415 space = pci_rp->pci_phys_hi & PCI_REG_ADDR_M; in pci_bus_map()
440 (uint64_t)pci_rp->pci_phys_low; in pci_bus_map()
442 (uint64_t)pci_rp->pci_size_low; in pci_bus_map()
491 (uint64_t)pci_rp->pci_size_hi << 32; in pci_bus_map()
[all …]
H A Dpci_common.c82 pci_regspec_t *pci_rp; in pci_common_name_child() local
107 "reg", (int **)&pci_rp, (uint_t *)&length) != DDI_PROP_SUCCESS) { in pci_common_name_child()
114 dev = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in pci_common_name_child()
115 func = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); in pci_common_name_child()
120 ddi_prop_free(pci_rp); in pci_common_name_child()
991 pci_common_get_reg_prop(dev_info_t *dip, pci_regspec_t *pci_rp) in pci_common_get_reg_prop() argument
996 uint_t phys_hi = pci_rp->pci_phys_hi; in pci_common_get_reg_prop()
1021 pci_rp->pci_phys_mid = assigned_addr[i].pci_phys_mid; in pci_common_get_reg_prop()
1022 pci_rp->pci_phys_low = assigned_addr[i].pci_phys_low; in pci_common_get_reg_prop()
/illumos-gate/usr/src/uts/i86pc/io/pciex/
H A Dnpe.c511 pci_regspec_t *pci_rp; in npe_bus_map() local
528 pci_rp = &pci_reg; in npe_bus_map()
553 ddi_prop_free(pci_rp); in npe_bus_map()
560 pci_reg = pci_rp[rnumber]; in npe_bus_map()
565 ddi_prop_free(pci_rp); in npe_bus_map()
567 pci_rp = &pci_reg; in npe_bus_map()
618 (uint64_t)pci_rp->pci_phys_low; in npe_bus_map()
620 (uint64_t)pci_rp->pci_size_low; in npe_bus_map()
694 pci_rp->pci_phys_low = ecfginfo[0]; in npe_bus_map()
718 (uint64_t)pci_rp->pci_size_hi << 32; in npe_bus_map()
[all …]
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dpci_util.c219 uint32_t sz = pci_rp->pci_size_low; in pci_xlate_reg()
227 reg_begin += pci_rp->pci_phys_hi; in pci_xlate_reg()
311 pci_regspec_t *pci_rp; in name_child() local
348 func = PCI_REG_FUNC_G(pci_rp[0].pci_phys_hi); in name_child()
354 PCI_REG_DEV_G(pci_rp[0].pci_phys_hi)); in name_child()
355 ddi_prop_free(pci_rp); in name_child()
401 pci_regspec_t *pci_rp; in init_child() local
447 kmem_free(pci_rp, i); in init_child()
654 pci_regspec_t *pci_rp; in get_nreg_set() local
661 (caddr_t)&pci_rp, &i) != DDI_SUCCESS) in get_nreg_set()
[all …]
H A Dsimba.c651 pci_regspec_t *pci_rp; in simba_name_child() local
678 (int **)&pci_rp, &n) != DDI_SUCCESS) in simba_name_child()
682 slot = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in simba_name_child()
683 func = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); in simba_name_child()
690 ddi_prop_free(pci_rp); in simba_name_child()
716 pci_regspec_t *pci_rp; in simba_initchild() local
719 DDI_PROP_DONTPASS, "reg", (caddr_t)&pci_rp, &i) == in simba_initchild()
724 kmem_free(pci_rp, i); in simba_initchild()
H A Dpci_tools.c627 pci_nexus_regspec_t *pci_rp = NULL; in pcitool_bus_reg_ops() local
651 "reg", (int **)&pci_rp, &reglen) == DDI_SUCCESS) { in pcitool_bus_reg_ops()
670 base_addr = pci_rp[prg.barnum].phys_addr; in pcitool_bus_reg_ops()
671 max_addr = base_addr + pci_rp[prg.barnum].size; in pcitool_bus_reg_ops()
685 if (pci_rp != NULL) in pcitool_bus_reg_ops()
686 ddi_prop_free(pci_rp); in pcitool_bus_reg_ops()
H A Dpci_pci.c663 pci_regspec_t *pci_rp; in ppb_intr_ops() local
688 "reg", (caddr_t)&pci_rp, &reglen) != DDI_SUCCESS) in ppb_intr_ops()
694 d = PCI_REG_DEV_G(pci_rp[0].pci_phys_hi); in ppb_intr_ops()
703 kmem_free(pci_rp, reglen); in ppb_intr_ops()
734 pci_regspec_t *pci_rp; in ppb_name_child() local
769 "reg", (int **)&pci_rp, &n) != DDI_SUCCESS) { in ppb_name_child()
773 slot = PCI_REG_DEV_G(pci_rp[0].pci_phys_hi); in ppb_name_child()
774 func = PCI_REG_FUNC_G(pci_rp[0].pci_phys_hi); in ppb_name_child()
781 ddi_prop_free(pci_rp); in ppb_name_child()
H A Dpci.c1176 pci_regspec_t *pci_rp; in get_reg_set_size() local
1187 (caddr_t)&pci_rp, &i) != DDI_SUCCESS) in get_reg_set_size()
1191 kmem_free(pci_rp, i); in get_reg_set_size()
1195 size = pci_rp[rnumber].pci_size_low | in get_reg_set_size()
1196 ((uint64_t)pci_rp[rnumber].pci_size_hi << 32); in get_reg_set_size()
1197 kmem_free(pci_rp, i); in get_reg_set_size()
H A Ddb21554.c2149 pci_regspec_t *pci_rp; in db_intr_ops() local
2183 d = PCI_REG_DEV_G(pci_rp[0].pci_phys_hi); in db_intr_ops()
2195 kmem_free(pci_rp, reglen); in db_intr_ops()
2206 pci_regspec_t *pci_rp; in db_name_child() local
2233 (int **)&pci_rp, &n) != DDI_SUCCESS) in db_name_child()
2237 slot = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in db_name_child()
2245 ddi_prop_free(pci_rp); in db_name_child()
2407 pci_regspec_t *pci_rp; in db_create_pci_prop() local
2413 "reg", (caddr_t)&pci_rp, &length); in db_create_pci_prop()
2418 (uchar_t *)pci_rp, length); in db_create_pci_prop()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/
H A Dgfxp_pci.c86 pci_regspec_t *pci_rp; in gfxp_pci_get_bsf() local
92 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, in gfxp_pci_get_bsf()
99 *bus = PCI_REG_BUS_G(pci_rp->pci_phys_hi); in gfxp_pci_get_bsf()
100 *dev = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in gfxp_pci_get_bsf()
101 *func = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); in gfxp_pci_get_bsf()
106 ddi_prop_free(pci_rp); in gfxp_pci_get_bsf()
/illumos-gate/usr/src/uts/common/io/pciex/hotplug/
H A Dpcie_hp.c1047 pci_regspec_t *pci_rp; in pcie_hp_match_dev_func() local
1058 pci_dev = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in pcie_hp_match_dev_func()
1059 pci_func = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); in pcie_hp_match_dev_func()
1064 ddi_prop_free(pci_rp); in pcie_hp_match_dev_func()
1085 pci_regspec_t *pci_rp; in pcie_hp_match_dev() local
1095 pci_dev = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in pcie_hp_match_dev()
1100 ddi_prop_free(pci_rp); in pcie_hp_match_dev()
1123 pci_regspec_t *pci_rp; in pcie_hp_list_occupants() local
1134 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, in pcie_hp_list_occupants()
1142 pci_dev = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in pcie_hp_list_occupants()
[all …]
/illumos-gate/usr/src/uts/common/io/cardbus/
H A Dcardbus_hp.c854 pci_regspec_t *pci_rp; in cbus_configure() local
891 if (pci_rp->pci_phys_hi == 0) in cbus_configure()
895 bus = PCI_REG_BUS_G(pci_rp->pci_phys_hi); in cbus_configure()
896 device = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in cbus_configure()
902 ddi_prop_free(pci_rp); in cbus_configure()
972 pci_regspec_t *pci_rp; in cbus_unconfigure() local
991 if (pci_rp->pci_phys_hi == 0) in cbus_unconfigure()
994 bus = PCI_REG_BUS_G(pci_rp->pci_phys_hi); in cbus_unconfigure()
999 device = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in cbus_unconfigure()
1000 func = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); in cbus_unconfigure()
[all …]
H A Dcardbus.c988 pci_regspec_t *pci_rp; in cardbus_ctlops() local
997 if (pci_rp->pci_phys_hi == 0) in cardbus_ctlops()
1007 bus = PCI_REG_BUS_G(pci_rp->pci_phys_hi); in cardbus_ctlops()
1056 ddi_prop_free(pci_rp); in cardbus_ctlops()
1299 pci_regspec_t *pci_rp; in cardbus_name_child() local
1338 bus = PCI_REG_BUS_G(pci_rp->pci_phys_hi); in cardbus_name_child()
1340 func = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); in cardbus_name_child()
1341 ddi_prop_free(pci_rp); in cardbus_name_child()
1888 if (PCI_REG_ADDR_G(pci_rp->pci_phys_hi) == in pcirp2rp()
1896 rp->regspec_addr = pci_rp->pci_phys_low; in pcirp2rp()
[all …]
H A Dcardbus_cfg.c1836 pci_regspec_t *pci_rp; in cardbus_sum_resources() local
2094 pci_rp[i].pci_size_low + in cardbus_sum_resources()
2096 pci_rp[i].pci_size_low); in cardbus_sum_resources()
2100 pci_rp[i].pci_size_low, in cardbus_sum_resources()
2113 pci_rp[i].pci_size_low + in cardbus_sum_resources()
2115 pci_rp[i].pci_size_low); in cardbus_sum_resources()
2118 pci_rp[i].pci_size_low, in cardbus_sum_resources()
2127 pci_rp[i].pci_size_low + in cardbus_sum_resources()
2129 pci_rp[i].pci_size_low); in cardbus_sum_resources()
2132 pci_rp[i].pci_size_low, in cardbus_sum_resources()
[all …]
/illumos-gate/usr/src/uts/sun4u/sys/pci/
H A Dpci_util.h49 pci_regspec_t *pci_rp);
50 extern int pci_xlate_reg(pci_t *pci_p, pci_regspec_t *pci_rp,
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/
H A Doce_hw.c189 pci_regspec_t *pci_rp; in oce_get_bdf() local
195 0, "reg", (int **)&pci_rp, (uint_t *)&length); in oce_get_bdf()
204 dev->pci_bus = PCI_REG_BUS_G(pci_rp->pci_phys_hi); in oce_get_bdf()
205 dev->pci_device = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in oce_get_bdf()
206 dev->pci_function = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); in oce_get_bdf()
213 ddi_prop_free(pci_rp); in oce_get_bdf()
/illumos-gate/usr/src/uts/i86pc/io/psm/
H A Dpsm_common.c232 pci_regspec_t *pci_rp; in get_bdf() local
236 "reg", (int **)&pci_rp, (uint_t *)&len) != DDI_SUCCESS) in get_bdf()
240 ddi_prop_free(pci_rp); in get_bdf()
244 *bus = (int)PCI_REG_BUS_G(pci_rp->pci_phys_hi); in get_bdf()
246 *device = (int)PCI_REG_DEV_G(pci_rp->pci_phys_hi); in get_bdf()
248 *func = (int)PCI_REG_FUNC_G(pci_rp->pci_phys_hi); in get_bdf()
249 ddi_prop_free(pci_rp); in get_bdf()
/illumos-gate/usr/src/uts/sparc/io/pciex/
H A Dpcieb_sparc.c74 pci_regspec_t *pci_rp; in pcieb_plat_intr_ops() local
99 "reg", (caddr_t)&pci_rp, &reglen) != DDI_SUCCESS) in pcieb_plat_intr_ops()
105 PCI_REG_DEV_G(pci_rp[0].pci_phys_hi); in pcieb_plat_intr_ops()
115 kmem_free(pci_rp, reglen); in pcieb_plat_intr_ops()
/illumos-gate/usr/src/uts/common/io/aac/
H A Daac_ioctl.c643 pci_regspec_t *pci_rp; in aac_get_pci_info() local
649 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, &num) != in aac_get_pci_info()
653 ddi_prop_free(pci_rp); in aac_get_pci_info()
657 resp->bus = PCI_REG_BUS_G(pci_rp->pci_phys_hi); in aac_get_pci_info()
658 resp->slot = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in aac_get_pci_info()
659 ddi_prop_free(pci_rp); in aac_get_pci_info()
/illumos-gate/usr/src/uts/intel/io/hotplug/pcicfg/
H A Dpcicfg.c2456 pci_regspec_t *pci_rp; in pcicfg_sum_resources() local
2521 pci_rp[i].pci_size_low + in pcicfg_sum_resources()
2524 pci_rp[i].pci_size_low); in pcicfg_sum_resources()
2526 pci_rp[i].pci_size_low); in pcicfg_sum_resources()
2529 pci_rp[i].pci_size_low + in pcicfg_sum_resources()
2558 pci_rp[i].pci_size_low + in pcicfg_sum_resources()
2560 pci_rp[i].pci_size_low); in pcicfg_sum_resources()
2562 pci_rp[i].pci_size_low); in pcicfg_sum_resources()
2573 kmem_free(pci_rp, length); in pcicfg_sum_resources()
2885 pci_regspec_t *pci_rp; in pcicfg_match_dev() local
[all …]
/illumos-gate/usr/src/uts/intel/io/pci/
H A Dpci_pci.c589 pci_regspec_t *pci_rp; in ppb_name_child() local
619 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, &n) != DDI_SUCCESS) { in ppb_name_child()
624 slot = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in ppb_name_child()
625 func = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); in ppb_name_child()
632 ddi_prop_free(pci_rp); in ppb_name_child()
/illumos-gate/usr/src/uts/common/io/hotplug/pcihp/
H A Dpcihp.c608 pci_regspec_t *pci_rp; in pcihp_list_occupants() local
619 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, in pcihp_list_occupants()
627 pci_dev = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in pcihp_list_occupants()
632 ddi_prop_free(pci_rp); in pcihp_list_occupants()
3013 pci_regspec_t *pci_rp; in pcihp_configure() local
3030 pci_dev = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in pcihp_configure()
3035 ddi_prop_free(pci_rp); in pcihp_configure()
3141 pci_regspec_t *pci_rp; in pcihp_match_dev() local
3153 pci_dev = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in pcihp_match_dev()
3154 pci_func = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); in pcihp_match_dev()
[all …]
/illumos-gate/usr/src/uts/intel/io/mc-amd/
H A Dmcamd_drv.c1282 pci_regspec_t *pci_rp = NULL; in mc_read_smbios() local
1289 (caddr_t)&pci_rp, &m) == DDI_SUCCESS) { in mc_read_smbios()
1290 phys_hi = pci_rp->pci_phys_hi; in mc_read_smbios()
1293 kmem_free(pci_rp, m); in mc_read_smbios()
1294 pci_rp = NULL; in mc_read_smbios()
1313 if (pci_rp != NULL) in mc_read_smbios()
1314 kmem_free(pci_rp, m); in mc_read_smbios()

12