Lines Matching refs:bus_range
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()
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()
282 bus_range->end = bus_max; in devm_of_pci_get_host_bridge_resources()
283 bus_range->flags = IORESOURCE_BUS; in devm_of_pci_get_host_bridge_resources()
285 dev_node, bus_range); in devm_of_pci_get_host_bridge_resources()
287 if (bus_range->end > bus_range->start + bus_max) in devm_of_pci_get_host_bridge_resources()
288 bus_range->end = bus_range->start + bus_max; in devm_of_pci_get_host_bridge_resources()
290 pci_add_resource(resources, bus_range); in devm_of_pci_get_host_bridge_resources()
485 struct resource **bus_range) in pci_parse_request_of_pci_ranges() argument
517 if (bus_range) in pci_parse_request_of_pci_ranges()
518 *bus_range = res; in pci_parse_request_of_pci_ranges()