Home
last modified time | relevance | path

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

12

/titanic_41/usr/src/uts/sun4/io/px/
H A Dpx_util.c314 pci_regspec_t *pci_rp; in px_name_child() local
345 "reg", (int **)&pci_rp, (uint_t *)&reglen) == DDI_SUCCESS) { in px_name_child()
351 func = PCI_REG_FUNC_G(pci_rp[0].pci_phys_hi); in px_name_child()
354 PCI_REG_DEV_G(pci_rp[0].pci_phys_hi), func); in px_name_child()
357 PCI_REG_DEV_G(pci_rp[0].pci_phys_hi)); in px_name_child()
358 ddi_prop_free(pci_rp); in px_name_child()
407 pci_regspec_t *pci_rp; in px_init_child() local
452 DDI_PROP_DONTPASS, "reg", (caddr_t)&pci_rp, &i) == in px_init_child()
456 kmem_free(pci_rp, i); in px_init_child()
552 pci_regspec_t *pci_rp; in px_get_reg_set_size() local
[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,
/titanic_41/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()
368 if (pci_common_get_reg_prop(rdip, pci_rp) != DDI_SUCCESS) in pci_bus_map()
383 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, &nelems) != 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()
407 if (pci_common_get_reg_prop(rdip, pci_rp) != DDI_SUCCESS) in pci_bus_map()
415 space = pci_rp->pci_phys_hi & PCI_REG_ADDR_M; 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()
989 pci_common_get_reg_prop(dev_info_t *dip, pci_regspec_t *pci_rp) in pci_common_get_reg_prop() argument
994 uint_t phys_hi = pci_rp->pci_phys_hi; in pci_common_get_reg_prop()
1019 pci_rp->pci_phys_mid = assigned_addr[i].pci_phys_mid; in pci_common_get_reg_prop()
1020 pci_rp->pci_phys_low = assigned_addr[i].pci_phys_low; in pci_common_get_reg_prop()
/titanic_41/usr/src/uts/i86pc/io/pciex/
H A Dnpe.c423 pci_regspec_t *pci_rp; in npe_bus_map() local
440 pci_rp = &pci_reg; in npe_bus_map()
441 if (pci_common_get_reg_prop(rdip, pci_rp) != DDI_SUCCESS) in npe_bus_map()
456 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, &nelem) != in npe_bus_map()
465 ddi_prop_free(pci_rp); in npe_bus_map()
472 pci_reg = pci_rp[rnumber]; in npe_bus_map()
477 ddi_prop_free(pci_rp); in npe_bus_map()
479 pci_rp = &pci_reg; in npe_bus_map()
480 if (pci_common_get_reg_prop(rdip, pci_rp) != DDI_SUCCESS) in npe_bus_map()
488 space = pci_rp->pci_phys_hi & PCI_REG_ADDR_M; in npe_bus_map()
[all …]
/titanic_41/usr/src/uts/sun4u/io/pci/
H A Dpci_util.c211 pci_xlate_reg(pci_t *pci_p, pci_regspec_t *pci_rp, struct regspec *new_rp) in pci_xlate_reg() argument
217 uint32_t space_type = PCI_REG_ADDR_G(pci_rp->pci_phys_hi); in pci_xlate_reg()
218 uint32_t reg_end, reg_begin = pci_rp->pci_phys_low; in pci_xlate_reg()
219 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
342 "reg", (int **)&pci_rp, (uint_t *)&reglen) == DDI_SUCCESS) { in name_child()
348 func = PCI_REG_FUNC_G(pci_rp[0].pci_phys_hi); in name_child()
351 PCI_REG_DEV_G(pci_rp[0].pci_phys_hi), func); in name_child()
354 PCI_REG_DEV_G(pci_rp[0].pci_phys_hi)); in name_child()
[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.c1162 pci_regspec_t *pci_rp; in get_reg_set_size() local
1173 (caddr_t)&pci_rp, &i) != DDI_SUCCESS) in get_reg_set_size()
1177 kmem_free(pci_rp, i); 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()
1183 kmem_free(pci_rp, i); in get_reg_set_size()
/titanic_41/usr/src/uts/i86pc/io/gfx_private/
H A Dgfxp_pci.c88 pci_regspec_t *pci_rp; in gfxp_pci_get_bsf() local
94 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, in gfxp_pci_get_bsf()
101 *bus = PCI_REG_BUS_G(pci_rp->pci_phys_hi); in gfxp_pci_get_bsf()
102 *dev = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in gfxp_pci_get_bsf()
103 *func = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); in gfxp_pci_get_bsf()
108 ddi_prop_free(pci_rp); in gfxp_pci_get_bsf()
/titanic_41/usr/src/uts/common/io/pciex/hotplug/
H A Dpcie_hp.c1046 pci_regspec_t *pci_rp; in pcie_hp_match_dev_func() local
1051 "reg", (int **)&pci_rp, (uint_t *)&length) != DDI_PROP_SUCCESS) { in pcie_hp_match_dev_func()
1057 pci_dev = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in pcie_hp_match_dev_func()
1058 pci_func = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); in pcie_hp_match_dev_func()
1063 ddi_prop_free(pci_rp); in pcie_hp_match_dev_func()
1084 pci_regspec_t *pci_rp; in pcie_hp_match_dev() local
1089 "reg", (int **)&pci_rp, (uint_t *)&length) != DDI_PROP_SUCCESS) { in pcie_hp_match_dev()
1094 pci_dev = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in pcie_hp_match_dev()
1099 ddi_prop_free(pci_rp); in pcie_hp_match_dev()
1122 pci_regspec_t *pci_rp; in pcie_hp_list_occupants() local
[all …]
/titanic_41/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,
/titanic_41/usr/src/uts/common/io/cardbus/
H A Dcardbus_hp.c854 pci_regspec_t *pci_rp; in cbus_configure() local
879 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, in cbus_configure()
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()
897 function = PCI_REG_FUNC_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
977 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, in cbus_unconfigure()
991 if (pci_rp->pci_phys_hi == 0) in cbus_unconfigure()
[all …]
H A Dcardbus.c85 static void pcirp2rp(const pci_regspec_t *pci_rp, struct regspec *rp);
992 pci_regspec_t *pci_rp; in cardbus_ctlops() local
997 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, in cardbus_ctlops()
1001 if (pci_rp->pci_phys_hi == 0) in cardbus_ctlops()
1011 bus = PCI_REG_BUS_G(pci_rp->pci_phys_hi); in cardbus_ctlops()
1012 device = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in cardbus_ctlops()
1013 function = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); in cardbus_ctlops()
1060 ddi_prop_free(pci_rp); in cardbus_ctlops()
1303 pci_regspec_t *pci_rp; in cardbus_name_child() local
1338 "reg", (int **)&pci_rp, &n) != DDI_SUCCESS) { in cardbus_name_child()
[all …]
H A Dcardbus_cfg.c1838 pci_regspec_t *pci_rp; in cardbus_sum_resources() local
2070 DDI_PROP_DONTPASS, "reg", (caddr_t)&pci_rp, in cardbus_sum_resources()
2092 switch (PCI_REG_ADDR_G(pci_rp[i].pci_phys_hi)) { in cardbus_sum_resources()
2096 pci_rp[i].pci_size_low + in cardbus_sum_resources()
2098 pci_rp[i].pci_size_low); in cardbus_sum_resources()
2102 pci_rp[i].pci_size_low, in cardbus_sum_resources()
2103 PCI_REG_REG_G(pci_rp[i].pci_phys_hi)); in cardbus_sum_resources()
2109 if (pci_rp[i].pci_size_low > entry->memory_gran) in cardbus_sum_resources()
2110 entry->memory_gran = pci_rp[i].pci_size_low; in cardbus_sum_resources()
2115 pci_rp[i].pci_size_low + in cardbus_sum_resources()
[all …]
/titanic_41/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()
/titanic_41/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()
/titanic_41/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()
/titanic_41/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()
/titanic_41/usr/src/uts/sun4u/montecarlo/io/
H A Dacebus.c928 pci_regspec_t *pci_rp, *prp; in acebus_update_props() local
960 (int **)&pci_rp, (uint_t *)&length) != DDI_PROP_SUCCESS) { in acebus_update_props()
972 prp = pci_rp + i; in acebus_update_props()
980 ddi_prop_free(pci_rp); in acebus_update_props()
996 prp = pci_rp + i; in acebus_update_props()
1004 ddi_prop_free(pci_rp); in acebus_update_props()
1013 ddi_prop_free(pci_rp); in acebus_update_props()
/titanic_41/usr/src/uts/intel/io/hotplug/pcicfg/
H A Dpcicfg.c2439 pci_regspec_t *pci_rp; in pcicfg_sum_resources() local
2478 "reg", (caddr_t)&pci_rp, &length) != DDI_PROP_SUCCESS) { in pcicfg_sum_resources()
2499 switch (PCI_REG_ADDR_G(pci_rp[i].pci_phys_hi)) { in pcicfg_sum_resources()
2502 if (pci_rp[i].pci_phys_hi & PCI_REG_PF_M) { in pcicfg_sum_resources()
2504 pci_rp[i].pci_size_low + in pcicfg_sum_resources()
2507 pci_rp[i].pci_size_low); in pcicfg_sum_resources()
2509 pci_rp[i].pci_size_low); in pcicfg_sum_resources()
2512 pci_rp[i].pci_size_low + in pcicfg_sum_resources()
2514 pci_rp[i].pci_size_low); in pcicfg_sum_resources()
2516 pci_rp[i].pci_size_low); in pcicfg_sum_resources()
[all …]
/titanic_41/usr/src/uts/intel/io/pci/
H A Dpci_pci.c579 pci_regspec_t *pci_rp; in ppb_name_child() local
609 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, &n) != DDI_SUCCESS) { in ppb_name_child()
614 slot = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in ppb_name_child()
615 func = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); in ppb_name_child()
622 ddi_prop_free(pci_rp); in ppb_name_child()
/titanic_41/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
3023 "reg", (int **)&pci_rp, (uint_t *)&length) != DDI_PROP_SUCCESS) { in pcihp_configure()
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
3147 "reg", (int **)&pci_rp, (uint_t *)&length) != DDI_PROP_SUCCESS) { in pcihp_match_dev()
[all …]
/titanic_41/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