Lines Matching refs:range
283 struct of_pci_range range; in devm_of_pci_get_host_bridge_resources() local
316 for_each_of_pci_range(&parser, &range) { in devm_of_pci_get_host_bridge_resources()
318 if ((range.flags & IORESOURCE_TYPE_BITS) == IORESOURCE_IO) in devm_of_pci_get_host_bridge_resources()
320 else if ((range.flags & IORESOURCE_TYPE_BITS) == IORESOURCE_MEM) in devm_of_pci_get_host_bridge_resources()
325 range_type, range.cpu_addr, in devm_of_pci_get_host_bridge_resources()
326 range.cpu_addr + range.size - 1, range.pci_addr); in devm_of_pci_get_host_bridge_resources()
332 if (range.cpu_addr == OF_BAD_ADDR || range.size == 0) in devm_of_pci_get_host_bridge_resources()
335 err = of_pci_range_to_resource(&range, dev_node, &tmp_res); in devm_of_pci_get_host_bridge_resources()
355 *io_base = range.cpu_addr; in devm_of_pci_get_host_bridge_resources()
360 pci_add_resource_offset(resources, res, res->start - range.pci_addr); in devm_of_pci_get_host_bridge_resources()
371 for_each_of_pci_range(&parser, &range) { in devm_of_pci_get_host_bridge_resources()
376 if (((range.flags & IORESOURCE_TYPE_BITS) != IORESOURCE_MEM) || in devm_of_pci_get_host_bridge_resources()
377 range.cpu_addr == OF_BAD_ADDR || range.size == 0) in devm_of_pci_get_host_bridge_resources()
381 "IB MEM", range.cpu_addr, in devm_of_pci_get_host_bridge_resources()
382 range.cpu_addr + range.size - 1, range.pci_addr); in devm_of_pci_get_host_bridge_resources()
385 err = of_pci_range_to_resource(&range, dev_node, &tmp_res); in devm_of_pci_get_host_bridge_resources()
396 res->start - range.pci_addr); in devm_of_pci_get_host_bridge_resources()