Home
last modified time | relevance | path

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

/drivers/pci/
Dof.c175 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()
264 struct resource *bus_range; in devm_of_pci_get_host_bridge_resources() local
273 bus_range = devm_kzalloc(dev, sizeof(*bus_range), GFP_KERNEL); in devm_of_pci_get_host_bridge_resources()
274 if (!bus_range) in devm_of_pci_get_host_bridge_resources()
279 err = of_pci_parse_bus_range(dev_node, bus_range); in devm_of_pci_get_host_bridge_resources()
281 bus_range->start = busno; in devm_of_pci_get_host_bridge_resources()
[all …]
Decam.c32 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()
/drivers/pci/controller/
Dpcie-cadence-host.c33 struct resource *bus_range; member
50 if (busn == rc->bus_range->start) { in cdns_pci_map_bus()
80 if (busn == rc->bus_range->start + 1) in cdns_pci_map_bus()
141 struct resource *bus_range = rc->bus_range; in cdns_pcie_host_init_address_translation() local
156 desc1 = CDNS_PCIE_AT_OB_REGION_DESC1_BUS(bus_range->start); in cdns_pcie_host_init_address_translation()
210 struct resource *bus_range = NULL; in cdns_pcie_host_init() local
214 err = pci_parse_request_of_pci_ranges(dev, resources, &bus_range); in cdns_pcie_host_init()
218 rc->bus_range = bus_range; in cdns_pcie_host_init()
219 rc->pcie.bus = bus_range->start; in cdns_pcie_host_init()
Dpci-host-common.c26 struct resource *bus_range = NULL; in gen_pci_init() local
30 err = pci_parse_request_of_pci_ranges(dev, resources, &bus_range); in gen_pci_init()
40 cfg = pci_ecam_create(dev, &cfgres, bus_range, ops); in gen_pci_init()
Dpcie-altera.c94 struct resource bus_range; member
/drivers/acpi/
Dpci_mcfg.c31 struct resource bus_range; member
152 struct resource *bus_range) in pci_mcfg_quirk_matches() argument
159 resource_contains(&f->bus_range, bus_range)) in pci_mcfg_quirk_matches()
172 struct resource *bus_range = &root->secondary; in pci_mcfg_apply_quirks() local
177 if (pci_mcfg_quirk_matches(f, segment, bus_range)) { in pci_mcfg_apply_quirks()
183 cfgres, bus_range, *ecam_ops); in pci_mcfg_apply_quirks()