| /OK3568_Linux_fs/kernel/drivers/pci/ |
| H A D | of.c | 175 u32 bus_range[2]; in of_pci_parse_bus_range() local 178 error = of_property_read_u32_array(node, "bus-range", bus_range, in of_pci_parse_bus_range() 179 ARRAY_SIZE(bus_range)); in of_pci_parse_bus_range() 184 res->start = bus_range[0]; in of_pci_parse_bus_range() 185 res->end = bus_range[1]; in of_pci_parse_bus_range() 267 struct resource *bus_range; in devm_of_pci_get_host_bridge_resources() local 276 bus_range = devm_kzalloc(dev, sizeof(*bus_range), GFP_KERNEL); in devm_of_pci_get_host_bridge_resources() 277 if (!bus_range) in devm_of_pci_get_host_bridge_resources() 282 err = of_pci_parse_bus_range(dev_node, bus_range); in devm_of_pci_get_host_bridge_resources() 284 bus_range->start = busno; in devm_of_pci_get_host_bridge_resources() [all …]
|
| H A D | ecam.c | 32 unsigned int bus_range, bus_range_max, bsz; in pci_ecam_create() local 48 bus_range = resource_size(&cfg->busr); in pci_ecam_create() 50 if (bus_range > bus_range_max) { in pci_ecam_create() 51 bus_range = bus_range_max; in pci_ecam_create() 52 cfg->busr.end = busr->start + bus_range - 1; in pci_ecam_create() 72 cfg->winp = kcalloc(bus_range, sizeof(*cfg->winp), GFP_KERNEL); in pci_ecam_create() 75 for (i = 0; i < bus_range; i++) { in pci_ecam_create() 83 cfg->win = pci_remap_cfgspace(cfgres->start, bus_range * bsz); in pci_ecam_create()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/52xx/ |
| H A D | efika.c | 72 const int *bus_range; in efika_pcisetup() local 97 bus_range = of_get_property(pcictrl, "bus-range", &len); in efika_pcisetup() 98 if (bus_range == NULL || len < 2 * sizeof(int)) { in efika_pcisetup() 104 if (bus_range[1] == bus_range[0]) in efika_pcisetup() 106 bus_range[0]); in efika_pcisetup() 109 bus_range[0], bus_range[1]); in efika_pcisetup() 121 hose->first_busno = bus_range[0]; in efika_pcisetup() 122 hose->last_busno = bus_range[1]; in efika_pcisetup()
|
| H A D | mpc52xx_pci.c | 369 const int *bus_range; in mpc52xx_add_bridge() local 381 bus_range = of_get_property(node, "bus-range", &len); in mpc52xx_add_bridge() 382 if (bus_range == NULL || len < 2 * sizeof(int)) { in mpc52xx_add_bridge() 385 bus_range = NULL; in mpc52xx_add_bridge() 400 hose->first_busno = bus_range ? bus_range[0] : 0; in mpc52xx_add_bridge() 401 hose->last_busno = bus_range ? bus_range[1] : 0xff; in mpc52xx_add_bridge()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/embedded6xx/ |
| H A D | linkstation.c | 42 const int *bus_range; in linkstation_add_bridge() local 46 bus_range = of_get_property(dev, "bus-range", &len); in linkstation_add_bridge() 47 if (bus_range == NULL || len < 2 * sizeof(int)) in linkstation_add_bridge() 54 hose->first_busno = bus_range ? bus_range[0] : 0; in linkstation_add_bridge() 55 hose->last_busno = bus_range ? bus_range[1] : 0xff; in linkstation_add_bridge()
|
| H A D | storcenter.c | 45 const int *bus_range; in storcenter_add_bridge() local 53 bus_range = of_get_property(dev, "bus-range", &len); in storcenter_add_bridge() 54 hose->first_busno = bus_range ? bus_range[0] : 0; in storcenter_add_bridge() 55 hose->last_busno = bus_range ? bus_range[1] : 0xff; in storcenter_add_bridge()
|
| H A D | mvme5100.c | 108 const int *bus_range; in mvme5100_add_bridge() local 115 bus_range = of_get_property(dev, "bus-range", &len); in mvme5100_add_bridge() 121 hose->first_busno = bus_range ? bus_range[0] : 0; in mvme5100_add_bridge() 122 hose->last_busno = bus_range ? bus_range[1] : 0xff; in mvme5100_add_bridge()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/amigaone/ |
| H A D | setup.c | 36 const int *bus_range; in amigaone_add_bridge() local 46 bus_range = of_get_property(dev, "bus-range", &len); in amigaone_add_bridge() 47 if ((bus_range == NULL) || (len < 2 * sizeof(int))) in amigaone_add_bridge() 55 hose->first_busno = bus_range ? bus_range[0] : 0; in amigaone_add_bridge() 56 hose->last_busno = bus_range ? bus_range[1] : 0xff; in amigaone_add_bridge()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/maple/ |
| H A D | pci.c | 38 const int *bus_range; in fixup_one_level_bus_range() local 47 bus_range = of_get_property(node, "bus-range", &len); in fixup_one_level_bus_range() 48 if (bus_range != NULL && len > 2 * sizeof(int)) { in fixup_one_level_bus_range() 49 if (bus_range[1] > higher) in fixup_one_level_bus_range() 50 higher = bus_range[1]; in fixup_one_level_bus_range() 65 int *bus_range; in fixup_bus_range() local 76 bus_range = prop->value; in fixup_bus_range() 77 bus_range[1] = fixup_one_level_bus_range(bridge->child, bus_range[1]); in fixup_bus_range() 494 const int *bus_range; in maple_add_bridge() local 499 bus_range = of_get_property(dev, "bus-range", &len); in maple_add_bridge() [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/chrp/ |
| H A D | pci.c | 211 const int *bus_range; in chrp_find_bridges() local 243 bus_range = of_get_property(dev, "bus-range", &len); in chrp_find_bridges() 244 if (bus_range == NULL || len < 2 * sizeof(int)) { in chrp_find_bridges() 249 if (bus_range[1] == bus_range[0]) in chrp_find_bridges() 250 printk(KERN_INFO "PCI bus %d", bus_range[0]); in chrp_find_bridges() 253 bus_range[0], bus_range[1]); in chrp_find_bridges() 265 hose->first_busno = hose->self_busno = bus_range[0]; in chrp_find_bridges() 266 hose->last_busno = bus_range[1]; in chrp_find_bridges()
|
| /OK3568_Linux_fs/kernel/drivers/acpi/ |
| H A D | pci_mcfg.c | 31 struct resource bus_range; member 180 struct resource *bus_range) in pci_mcfg_quirk_matches() argument 187 resource_contains(&f->bus_range, bus_range)) in pci_mcfg_quirk_matches() 200 struct resource *bus_range = &root->secondary; in pci_mcfg_apply_quirks() local 205 if (pci_mcfg_quirk_matches(f, segment, bus_range)) { in pci_mcfg_apply_quirks() 211 cfgres, bus_range, *ecam_ops); in pci_mcfg_apply_quirks()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/sysdev/ |
| H A D | tsi108_pci.c | 188 const int *bus_range; in tsi108_setup_pci() local 201 bus_range = of_get_property(dev, "bus-range", &len); in tsi108_setup_pci() 202 if (bus_range == NULL || len < 2 * sizeof(int)) { in tsi108_setup_pci() 214 hose->first_busno = bus_range ? bus_range[0] : 0; in tsi108_setup_pci() 215 hose->last_busno = bus_range ? bus_range[1] : 0xff; in tsi108_setup_pci()
|
| H A D | fsl_pci.c | 521 const int *bus_range; in fsl_add_bridge() local 545 bus_range = of_get_property(dev, "bus-range", &len); in fsl_add_bridge() 546 if (bus_range == NULL || len < 2 * sizeof(int)) in fsl_add_bridge() 557 hose->first_busno = bus_range ? bus_range[0] : 0x0; in fsl_add_bridge() 558 hose->last_busno = bus_range ? bus_range[1] : 0xff; in fsl_add_bridge() 810 const int *bus_range; in mpc83xx_add_bridge() local 853 bus_range = of_get_property(dev, "bus-range", &len); in mpc83xx_add_bridge() 854 if (bus_range == NULL || len < 2 * sizeof(int)) { in mpc83xx_add_bridge() 864 hose->first_busno = bus_range ? bus_range[0] : 0; in mpc83xx_add_bridge() 865 hose->last_busno = bus_range ? bus_range[1] : 0xff; in mpc83xx_add_bridge()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/kernel/ |
| H A D | rtas_pci.c | 213 const __be32 *bus_range; in phb_set_bus_ranges() local 216 bus_range = of_get_property(dev, "bus-range", &len); in phb_set_bus_ranges() 217 if (bus_range == NULL || len < 2 * sizeof(int)) { in phb_set_bus_ranges() 221 phb->first_busno = be32_to_cpu(bus_range[0]); in phb_set_bus_ranges() 222 phb->last_busno = be32_to_cpu(bus_range[1]); in phb_set_bus_ranges()
|
| H A D | pci_32.c | 77 const int *bus_range; in make_one_node_map() local 82 bus_range = of_get_property(node, "bus-range", &len); in make_one_node_map() 83 if (bus_range == NULL || len < 2 * sizeof(int)) { in make_one_node_map() 88 pci_to_OF_bus_map[pci_bus] = bus_range[0]; in make_one_node_map()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/powermac/ |
| H A D | pci.c | 62 const int * bus_range; in fixup_one_level_bus_range() local 71 bus_range = of_get_property(node, "bus-range", &len); in fixup_one_level_bus_range() 72 if (bus_range != NULL && len > 2 * sizeof(int)) { in fixup_one_level_bus_range() 73 if (bus_range[1] > higher) in fixup_one_level_bus_range() 74 higher = bus_range[1]; in fixup_one_level_bus_range() 89 int *bus_range, len; in fixup_bus_range() local 97 bus_range = prop->value; in fixup_bus_range() 98 bus_range[1] = fixup_one_level_bus_range(bridge->child, bus_range[1]); in fixup_bus_range() 777 const int *bus_range; in pmac_add_bridge() local 786 bus_range = of_get_property(dev, "bus-range", &len); in pmac_add_bridge() [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/4xx/ |
| H A D | pci.c | 327 const int *bus_range; in ppc4xx_probe_pci_bridge() local 354 bus_range = of_get_property(np, "bus-range", NULL); in ppc4xx_probe_pci_bridge() 368 hose->first_busno = bus_range ? bus_range[0] : 0x0; in ppc4xx_probe_pci_bridge() 369 hose->last_busno = bus_range ? bus_range[1] : 0xff; in ppc4xx_probe_pci_bridge() 531 const int *bus_range; in ppc4xx_probe_pcix_bridge() local 560 bus_range = of_get_property(np, "bus-range", NULL); in ppc4xx_probe_pcix_bridge() 574 hose->first_busno = bus_range ? bus_range[0] : 0x0; in ppc4xx_probe_pcix_bridge() 575 hose->last_busno = bus_range ? bus_range[1] : 0xff; in ppc4xx_probe_pcix_bridge() 1916 const int *bus_range; in ppc4xx_pciex_port_setup_hose() local 1927 bus_range = of_get_property(port->node, "bus-range", NULL); in ppc4xx_pciex_port_setup_hose() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/pci/ |
| H A D | fsl_pci_init.c | 896 u32 bus_range[2]; in ft_fsl_pci_setup() local 915 bus_range[0] = 0; in ft_fsl_pci_setup() 916 bus_range[1] = hose->last_busno - hose->first_busno; in ft_fsl_pci_setup() 917 fdt_setprop(blob, off, "bus-range", &bus_range[0], 2*4); in ft_fsl_pci_setup()
|
| /OK3568_Linux_fs/kernel/drivers/pci/controller/ |
| H A D | pcie-xilinx-cpm.c | 501 struct resource *bus_range) in xilinx_cpm_pcie_parse_dt() argument 516 port->cfg = pci_ecam_create(dev, res, bus_range, in xilinx_cpm_pcie_parse_dt()
|
| H A D | pcie-altera.c | 94 struct resource bus_range; member
|