/illumos-gate/usr/src/uts/sun4u/sys/pci/ |
H A D | pci_util.h | 49 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/i86pc/io/pci/ |
H A D | pci.c | 340 pci_regspec_t *pci_rp; local 365 pci_rp = &pci_reg; 366 if (pci_common_get_reg_prop(rdip, pci_rp) != DDI_SUCCESS) 381 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, 390 ddi_prop_free(pci_rp); 397 pci_reg = pci_rp[rnumber]; 402 ddi_prop_free(pci_rp); 404 pci_rp = &pci_reg; 405 if (pci_common_get_reg_prop(rdip, pci_rp) != DDI_SUCCESS) 413 space = pci_rp [all...] |
H A D | pci_common.h | 103 int pci_common_get_reg_prop(dev_info_t *dip, pci_regspec_t *pci_rp);
|
H A D | pci_common.c | 82 pci_regspec_t *pci_rp; local 107 "reg", (int **)&pci_rp, (uint_t *)&length) != DDI_PROP_SUCCESS) { 114 dev = PCI_REG_DEV_G(pci_rp->pci_phys_hi); 115 func = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); 120 ddi_prop_free(pci_rp); 989 pci_common_get_reg_prop(dev_info_t *dip, pci_regspec_t *pci_rp) argument 994 uint_t phys_hi = pci_rp->pci_phys_hi; 1019 pci_rp->pci_phys_mid = assigned_addr[i].pci_phys_mid; 1020 pci_rp->pci_phys_low = assigned_addr[i].pci_phys_low;
|
/illumos-gate/usr/src/uts/sun4/io/px/ |
H A D | px_util.c | 314 pci_regspec_t *pci_rp; local 345 "reg", (int **)&pci_rp, (uint_t *)®len) == DDI_SUCCESS) { 351 func = PCI_REG_FUNC_G(pci_rp[0].pci_phys_hi); 354 PCI_REG_DEV_G(pci_rp[0].pci_phys_hi), func); 357 PCI_REG_DEV_G(pci_rp[0].pci_phys_hi)); 358 ddi_prop_free(pci_rp); 407 pci_regspec_t *pci_rp; local 452 DDI_PROP_DONTPASS, "reg", (caddr_t)&pci_rp, &i) == 456 kmem_free(pci_rp, i); 552 pci_regspec_t *pci_rp; local 590 pci_regspec_t *pci_rp; local [all...] |
H A D | px_util.h | 49 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/pciex/ |
H A D | npe.c | 423 pci_regspec_t *pci_rp; local 439 pci_rp = &pci_reg; 440 if (pci_common_get_reg_prop(rdip, pci_rp) != DDI_SUCCESS) 455 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, 464 ddi_prop_free(pci_rp); 471 pci_reg = pci_rp[rnumber]; 476 ddi_prop_free(pci_rp); 478 pci_rp = &pci_reg; 479 if (pci_common_get_reg_prop(rdip, pci_rp) != DDI_SUCCESS) 487 space = pci_rp [all...] |
/illumos-gate/usr/src/uts/sun4u/io/pci/ |
H A D | pci_util.c | 145 * If the "reg" entry (*pci_rp) is relocatable, lookup "assigned-addresses" 211 pci_xlate_reg(pci_t *pci_p, pci_regspec_t *pci_rp, struct regspec *new_rp) argument 217 uint32_t space_type = PCI_REG_ADDR_G(pci_rp->pci_phys_hi); 218 uint32_t reg_end, reg_begin = pci_rp->pci_phys_low; 219 uint32_t sz = pci_rp->pci_size_low; 227 reg_begin += pci_rp->pci_phys_hi; 311 pci_regspec_t *pci_rp; local 342 "reg", (int **)&pci_rp, (uint_t *)®len) == DDI_SUCCESS) { 348 func = PCI_REG_FUNC_G(pci_rp[0].pci_phys_hi); 351 PCI_REG_DEV_G(pci_rp[ 401 pci_regspec_t *pci_rp; local 654 pci_regspec_t *pci_rp; local [all...] |
H A D | simba.c | 651 pci_regspec_t *pci_rp; local 678 (int **)&pci_rp, &n) != DDI_SUCCESS) 682 slot = PCI_REG_DEV_G(pci_rp->pci_phys_hi); 683 func = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); 690 ddi_prop_free(pci_rp); 716 pci_regspec_t *pci_rp; local 719 DDI_PROP_DONTPASS, "reg", (caddr_t)&pci_rp, &i) == 724 kmem_free(pci_rp, i);
|
H A D | pci_pci.c | 663 pci_regspec_t *pci_rp; local 688 "reg", (caddr_t)&pci_rp, ®len) != DDI_SUCCESS) 694 d = PCI_REG_DEV_G(pci_rp[0].pci_phys_hi); 703 kmem_free(pci_rp, reglen); 734 pci_regspec_t *pci_rp; local 769 "reg", (int **)&pci_rp, &n) != DDI_SUCCESS) { 773 slot = PCI_REG_DEV_G(pci_rp[0].pci_phys_hi); 774 func = PCI_REG_FUNC_G(pci_rp[0].pci_phys_hi); 781 ddi_prop_free(pci_rp);
|
H A D | pci.c | 1162 pci_regspec_t *pci_rp; local 1173 (caddr_t)&pci_rp, &i) != DDI_SUCCESS) 1177 kmem_free(pci_rp, i); 1181 size = pci_rp[rnumber].pci_size_low | 1182 ((uint64_t)pci_rp[rnumber].pci_size_hi << 32); 1183 kmem_free(pci_rp, i);
|
H A D | pci_tools.c | 627 pci_nexus_regspec_t *pci_rp = NULL; local 651 "reg", (int **)&pci_rp, ®len) == DDI_SUCCESS) { 670 base_addr = pci_rp[prg.barnum].phys_addr; 671 max_addr = base_addr + pci_rp[prg.barnum].size; 685 if (pci_rp != NULL) 686 ddi_prop_free(pci_rp);
|
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/ |
H A D | gfxp_pci.c | 88 pci_regspec_t *pci_rp; local 94 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, 101 *bus = PCI_REG_BUS_G(pci_rp->pci_phys_hi); 102 *dev = PCI_REG_DEV_G(pci_rp->pci_phys_hi); 103 *func = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); 108 ddi_prop_free(pci_rp);
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_hw.c | 189 pci_regspec_t *pci_rp; local 195 0, "reg", (int **)&pci_rp, (uint_t *)&length); 204 dev->pci_bus = PCI_REG_BUS_G(pci_rp->pci_phys_hi); 205 dev->pci_device = PCI_REG_DEV_G(pci_rp->pci_phys_hi); 206 dev->pci_function = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); 213 ddi_prop_free(pci_rp);
|
/illumos-gate/usr/src/uts/common/io/pciex/hotplug/ |
H A D | pcie_hp.c | 1046 pci_regspec_t *pci_rp; local 1051 "reg", (int **)&pci_rp, (uint_t *)&length) != DDI_PROP_SUCCESS) { 1057 pci_dev = PCI_REG_DEV_G(pci_rp->pci_phys_hi); 1058 pci_func = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); 1063 ddi_prop_free(pci_rp); 1084 pci_regspec_t *pci_rp; local 1089 "reg", (int **)&pci_rp, (uint_t *)&length) != DDI_PROP_SUCCESS) { 1094 pci_dev = PCI_REG_DEV_G(pci_rp->pci_phys_hi); 1099 ddi_prop_free(pci_rp); 1122 pci_regspec_t *pci_rp; local [all...] |
/illumos-gate/usr/src/uts/i86pc/io/psm/ |
H A D | psm_common.c | 232 pci_regspec_t *pci_rp; local 236 "reg", (int **)&pci_rp, (uint_t *)&len) != DDI_SUCCESS) 240 ddi_prop_free(pci_rp); 244 *bus = (int)PCI_REG_BUS_G(pci_rp->pci_phys_hi); 246 *device = (int)PCI_REG_DEV_G(pci_rp->pci_phys_hi); 248 *func = (int)PCI_REG_FUNC_G(pci_rp->pci_phys_hi); 249 ddi_prop_free(pci_rp);
|
/illumos-gate/usr/src/uts/common/io/cardbus/ |
H A D | cardbus_hp.c | 854 pci_regspec_t *pci_rp; local 879 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, 891 if (pci_rp->pci_phys_hi == 0) 895 bus = PCI_REG_BUS_G(pci_rp->pci_phys_hi); 896 device = PCI_REG_DEV_G(pci_rp->pci_phys_hi); 897 function = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); 902 ddi_prop_free(pci_rp); 972 pci_regspec_t *pci_rp; local 977 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, 991 if (pci_rp [all...] |
H A D | cardbus.c | 85 static void pcirp2rp(const pci_regspec_t *pci_rp, struct regspec *rp); 992 pci_regspec_t *pci_rp; local 997 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, 1001 if (pci_rp->pci_phys_hi == 0) 1011 bus = PCI_REG_BUS_G(pci_rp->pci_phys_hi); 1012 device = PCI_REG_DEV_G(pci_rp->pci_phys_hi); 1013 function = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); 1060 ddi_prop_free(pci_rp); 1303 pci_regspec_t *pci_rp; local 1338 "reg", (int **)&pci_rp, 1890 pcirp2rp(const pci_regspec_t *pci_rp, struct regspec *rp) argument [all...] |
H A D | cardbus_cfg.c | 1838 pci_regspec_t *pci_rp; local 2070 DDI_PROP_DONTPASS, "reg", (caddr_t)&pci_rp, 2092 switch (PCI_REG_ADDR_G(pci_rp[i].pci_phys_hi)) { 2096 pci_rp[i].pci_size_low + 2098 pci_rp[i].pci_size_low); 2102 pci_rp[i].pci_size_low, 2103 PCI_REG_REG_G(pci_rp[i].pci_phys_hi)); 2109 if (pci_rp[i].pci_size_low > entry->memory_gran) 2110 entry->memory_gran = pci_rp[i].pci_size_low; 2115 pci_rp[ [all...] |
/illumos-gate/usr/src/uts/sparc/io/pciex/ |
H A D | pcieb_sparc.c | 74 pci_regspec_t *pci_rp; local 99 "reg", (caddr_t)&pci_rp, ®len) != DDI_SUCCESS) 105 PCI_REG_DEV_G(pci_rp[0].pci_phys_hi); 115 kmem_free(pci_rp, reglen);
|
/illumos-gate/usr/src/uts/sun4u/montecarlo/io/ |
H A D | acebus.c | 928 pci_regspec_t *pci_rp, *prp; local 960 (int **)&pci_rp, (uint_t *)&length) != DDI_PROP_SUCCESS) { 972 prp = pci_rp + i; 980 ddi_prop_free(pci_rp); 996 prp = pci_rp + i; 1004 ddi_prop_free(pci_rp); 1013 ddi_prop_free(pci_rp);
|
/illumos-gate/usr/src/uts/intel/io/hotplug/pcicfg/ |
H A D | pcicfg.c | 2439 pci_regspec_t *pci_rp; local 2478 "reg", (caddr_t)&pci_rp, &length) != DDI_PROP_SUCCESS) { 2499 switch (PCI_REG_ADDR_G(pci_rp[i].pci_phys_hi)) { 2502 if (pci_rp[i].pci_phys_hi & PCI_REG_PF_M) { 2504 pci_rp[i].pci_size_low + 2507 pci_rp[i].pci_size_low); 2509 pci_rp[i].pci_size_low); 2512 pci_rp[i].pci_size_low + 2514 pci_rp[i].pci_size_low); 2516 pci_rp[ 2867 pci_regspec_t *pci_rp; local [all...] |
/illumos-gate/usr/src/uts/common/io/aac/ |
H A D | aac_ioctl.c | 643 pci_regspec_t *pci_rp; local 649 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, &num) != 653 ddi_prop_free(pci_rp); 657 resp->bus = PCI_REG_BUS_G(pci_rp->pci_phys_hi); 658 resp->slot = PCI_REG_DEV_G(pci_rp->pci_phys_hi); 659 ddi_prop_free(pci_rp);
|
/illumos-gate/usr/src/uts/intel/io/mc-amd/ |
H A D | mcamd_drv.c | 1282 pci_regspec_t *pci_rp = NULL; local 1289 (caddr_t)&pci_rp, &m) == DDI_SUCCESS) { 1290 phys_hi = pci_rp->pci_phys_hi; 1293 kmem_free(pci_rp, m); 1294 pci_rp = NULL; 1313 if (pci_rp != NULL) 1314 kmem_free(pci_rp, m);
|
/illumos-gate/usr/src/uts/common/io/hotplug/pcihp/ |
H A D | pcihp.c | 608 pci_regspec_t *pci_rp; local 619 DDI_PROP_DONTPASS, "reg", (int **)&pci_rp, 627 pci_dev = PCI_REG_DEV_G(pci_rp->pci_phys_hi); 632 ddi_prop_free(pci_rp); 3013 pci_regspec_t *pci_rp; local 3023 "reg", (int **)&pci_rp, (uint_t *)&length) != DDI_PROP_SUCCESS) { 3030 pci_dev = PCI_REG_DEV_G(pci_rp->pci_phys_hi); 3035 ddi_prop_free(pci_rp); 3141 pci_regspec_t *pci_rp; local 3147 "reg", (int **)&pci_rp, (uint_ [all...] |