Home
last modified time | relevance | path

Searched refs:bus_range (Results 1 – 22 of 22) sorted by relevance

/linux-6.12.1/arch/powerpc/platforms/52xx/
Defika.c71 const int *bus_range; in efika_pcisetup() local
96 bus_range = of_get_property(pcictrl, "bus-range", &len); in efika_pcisetup()
97 if (bus_range == NULL || len < 2 * sizeof(int)) { in efika_pcisetup()
103 if (bus_range[1] == bus_range[0]) in efika_pcisetup()
105 bus_range[0]); in efika_pcisetup()
108 bus_range[0], bus_range[1]); in efika_pcisetup()
120 hose->first_busno = bus_range[0]; in efika_pcisetup()
121 hose->last_busno = bus_range[1]; in efika_pcisetup()
Dmpc52xx_pci.c360 const int *bus_range; in mpc52xx_add_bridge() local
372 bus_range = of_get_property(node, "bus-range", &len); in mpc52xx_add_bridge()
373 if (bus_range == NULL || len < 2 * sizeof(int)) { in mpc52xx_add_bridge()
376 bus_range = NULL; in mpc52xx_add_bridge()
391 hose->first_busno = bus_range ? bus_range[0] : 0; in mpc52xx_add_bridge()
392 hose->last_busno = bus_range ? bus_range[1] : 0xff; in mpc52xx_add_bridge()
/linux-6.12.1/arch/powerpc/platforms/embedded6xx/
Dlinkstation.c41 const int *bus_range; in linkstation_add_bridge() local
45 bus_range = of_get_property(dev, "bus-range", &len); in linkstation_add_bridge()
46 if (bus_range == NULL || len < 2 * sizeof(int)) in linkstation_add_bridge()
53 hose->first_busno = bus_range ? bus_range[0] : 0; in linkstation_add_bridge()
54 hose->last_busno = bus_range ? bus_range[1] : 0xff; in linkstation_add_bridge()
Dstorcenter.c44 const int *bus_range; in storcenter_add_bridge() local
52 bus_range = of_get_property(dev, "bus-range", &len); in storcenter_add_bridge()
53 hose->first_busno = bus_range ? bus_range[0] : 0; in storcenter_add_bridge()
54 hose->last_busno = bus_range ? bus_range[1] : 0xff; in storcenter_add_bridge()
Dmvme5100.c108 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()
/linux-6.12.1/arch/powerpc/platforms/amigaone/
Dsetup.c37 const int *bus_range; in amigaone_add_bridge() local
47 bus_range = of_get_property(dev, "bus-range", &len); in amigaone_add_bridge()
48 if ((bus_range == NULL) || (len < 2 * sizeof(int))) in amigaone_add_bridge()
56 hose->first_busno = bus_range ? bus_range[0] : 0; in amigaone_add_bridge()
57 hose->last_busno = bus_range ? bus_range[1] : 0xff; in amigaone_add_bridge()
/linux-6.12.1/drivers/pci/
Dof.c195 u32 bus_range[2]; in of_pci_parse_bus_range() local
198 error = of_property_read_u32_array(node, "bus-range", bus_range, in of_pci_parse_bus_range()
199 ARRAY_SIZE(bus_range)); in of_pci_parse_bus_range()
204 res->start = bus_range[0]; in of_pci_parse_bus_range()
205 res->end = bus_range[1]; in of_pci_parse_bus_range()
329 struct resource *bus_range; in devm_of_pci_get_host_bridge_resources() local
338 bus_range = devm_kzalloc(dev, sizeof(*bus_range), GFP_KERNEL); in devm_of_pci_get_host_bridge_resources()
339 if (!bus_range) in devm_of_pci_get_host_bridge_resources()
344 err = of_pci_parse_bus_range(dev_node, bus_range); in devm_of_pci_get_host_bridge_resources()
346 bus_range->start = busno; in devm_of_pci_get_host_bridge_resources()
[all …]
Decam.c33 unsigned int bus_range, bus_range_max, bsz; in pci_ecam_create() local
54 bus_range = resource_size(&cfg->busr); in pci_ecam_create()
56 if (bus_range > bus_range_max) { in pci_ecam_create()
57 bus_range = bus_range_max; in pci_ecam_create()
58 cfg->busr.end = busr->start + bus_range - 1; in pci_ecam_create()
78 cfg->winp = kcalloc(bus_range, sizeof(*cfg->winp), GFP_KERNEL); in pci_ecam_create()
82 cfg->win = pci_remap_cfgspace(cfgres->start, bus_range * bsz); in pci_ecam_create()
Dof_property.c94 u32 bus_range[] = { pdev->subordinate->busn_res.start, in of_pci_prop_bus_range() local
97 return of_changeset_add_prop_u32_array(ocs, np, "bus-range", bus_range, in of_pci_prop_bus_range()
98 ARRAY_SIZE(bus_range)); in of_pci_prop_bus_range()
/linux-6.12.1/arch/powerpc/platforms/maple/
Dpci.c38 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 …]
/linux-6.12.1/arch/powerpc/platforms/chrp/
Dpci.c210 const int *bus_range; in chrp_find_bridges() local
242 bus_range = of_get_property(dev, "bus-range", &len); in chrp_find_bridges()
243 if (bus_range == NULL || len < 2 * sizeof(int)) { in chrp_find_bridges()
248 if (bus_range[1] == bus_range[0]) in chrp_find_bridges()
249 printk(KERN_INFO "PCI bus %d", bus_range[0]); in chrp_find_bridges()
252 bus_range[0], bus_range[1]); in chrp_find_bridges()
264 hose->first_busno = hose->self_busno = bus_range[0]; in chrp_find_bridges()
265 hose->last_busno = bus_range[1]; in chrp_find_bridges()
/linux-6.12.1/arch/powerpc/kernel/
Drtas_pci.c214 const __be32 *bus_range; in phb_set_bus_ranges() local
217 bus_range = of_get_property(dev, "bus-range", &len); in phb_set_bus_ranges()
218 if (bus_range == NULL || len < 2 * sizeof(int)) { in phb_set_bus_ranges()
222 phb->first_busno = be32_to_cpu(bus_range[0]); in phb_set_bus_ranges()
223 phb->last_busno = be32_to_cpu(bus_range[1]); in phb_set_bus_ranges()
Dpci_32.c76 const int *bus_range; in make_one_node_map() local
81 bus_range = of_get_property(node, "bus-range", &len); in make_one_node_map()
82 if (bus_range == NULL || len < 2 * sizeof(int)) { in make_one_node_map()
87 pci_to_OF_bus_map[pci_bus] = bus_range[0]; in make_one_node_map()
/linux-6.12.1/drivers/acpi/
Dpci_mcfg.c31 struct resource bus_range; member
204 struct resource *bus_range) in pci_mcfg_quirk_matches() argument
211 resource_contains(&f->bus_range, bus_range)) in pci_mcfg_quirk_matches()
224 struct resource *bus_range = &root->secondary; in pci_mcfg_apply_quirks() local
229 if (pci_mcfg_quirk_matches(f, segment, bus_range)) { in pci_mcfg_apply_quirks()
235 cfgres, bus_range, *ecam_ops); in pci_mcfg_apply_quirks()
/linux-6.12.1/arch/powerpc/sysdev/
Dtsi108_pci.c189 const int *bus_range; in tsi108_setup_pci() local
202 bus_range = of_get_property(dev, "bus-range", &len); in tsi108_setup_pci()
203 if (bus_range == NULL || len < 2 * sizeof(int)) { in tsi108_setup_pci()
215 hose->first_busno = bus_range ? bus_range[0] : 0; in tsi108_setup_pci()
216 hose->last_busno = bus_range ? bus_range[1] : 0xff; in tsi108_setup_pci()
Dfsl_pci.c527 const int *bus_range; in fsl_add_bridge() local
551 bus_range = of_get_property(dev, "bus-range", &len); in fsl_add_bridge()
552 if (bus_range == NULL || len < 2 * sizeof(int)) in fsl_add_bridge()
563 hose->first_busno = bus_range ? bus_range[0] : 0x0; in fsl_add_bridge()
564 hose->last_busno = bus_range ? bus_range[1] : 0xff; in fsl_add_bridge()
816 const int *bus_range; in mpc83xx_add_bridge() local
859 bus_range = of_get_property(dev, "bus-range", &len); in mpc83xx_add_bridge()
860 if (bus_range == NULL || len < 2 * sizeof(int)) { in mpc83xx_add_bridge()
870 hose->first_busno = bus_range ? bus_range[0] : 0; in mpc83xx_add_bridge()
871 hose->last_busno = bus_range ? bus_range[1] : 0xff; in mpc83xx_add_bridge()
/linux-6.12.1/arch/powerpc/platforms/powermac/
Dpci.c63 const int * bus_range; in fixup_one_level_bus_range() local
72 bus_range = of_get_property(node, "bus-range", &len); in fixup_one_level_bus_range()
73 if (bus_range != NULL && len > 2 * sizeof(int)) { in fixup_one_level_bus_range()
74 if (bus_range[1] > higher) in fixup_one_level_bus_range()
75 higher = bus_range[1]; in fixup_one_level_bus_range()
90 int *bus_range, len; in fixup_bus_range() local
98 bus_range = prop->value; in fixup_bus_range()
99 bus_range[1] = fixup_one_level_bus_range(bridge->child, bus_range[1]); in fixup_bus_range()
778 const int *bus_range; in pmac_add_bridge() local
787 bus_range = of_get_property(dev, "bus-range", &len); in pmac_add_bridge()
[all …]
/linux-6.12.1/arch/powerpc/platforms/44x/
Dpci.c328 const int *bus_range; in ppc4xx_probe_pci_bridge() local
355 bus_range = of_get_property(np, "bus-range", NULL); in ppc4xx_probe_pci_bridge()
369 hose->first_busno = bus_range ? bus_range[0] : 0x0; in ppc4xx_probe_pci_bridge()
370 hose->last_busno = bus_range ? bus_range[1] : 0xff; in ppc4xx_probe_pci_bridge()
532 const int *bus_range; in ppc4xx_probe_pcix_bridge() local
558 bus_range = of_get_property(np, "bus-range", NULL); in ppc4xx_probe_pcix_bridge()
572 hose->first_busno = bus_range ? bus_range[0] : 0x0; in ppc4xx_probe_pcix_bridge()
573 hose->last_busno = bus_range ? bus_range[1] : 0xff; in ppc4xx_probe_pcix_bridge()
1814 const int *bus_range; in ppc4xx_pciex_port_setup_hose() local
1824 bus_range = of_get_property(port->node, "bus-range", NULL); in ppc4xx_pciex_port_setup_hose()
[all …]
/linux-6.12.1/arch/loongarch/pci/
Dacpi.c97 int bsz, bus_range, err; in arch_pci_ecam_create() local
113 bus_range = resource_size(cfgres) >> ops->bus_shift; in arch_pci_ecam_create()
130 cfg->win = pci_remap_cfgspace(cfgres->start, bus_range * bsz); in arch_pci_ecam_create()
/linux-6.12.1/drivers/pci/controller/
Dpcie-xilinx-cpm.c508 struct resource *bus_range) in xilinx_cpm_pcie_parse_dt() argument
523 port->cfg = pci_ecam_create(dev, res, bus_range, in xilinx_cpm_pcie_parse_dt()
Dpcie-xilinx-dma-pl.c734 struct resource *bus_range) in xilinx_pl_dma_pcie_parse_dt() argument
748 port->cfg = pci_ecam_create(dev, res, bus_range, &xilinx_pl_dma_pcie_ops); in xilinx_pl_dma_pcie_parse_dt()
Dpcie-altera.c92 struct resource bus_range; member