Lines Matching refs:res
150 struct pci_region *res; in __pci_hose_bus_to_phys() local
154 res = &hose->regions[i]; in __pci_hose_bus_to_phys()
156 if (((res->flags ^ flags) & PCI_REGION_TYPE) != 0) in __pci_hose_bus_to_phys()
159 if (res->flags & skip_mask) in __pci_hose_bus_to_phys()
162 if (bus_addr >= res->bus_start && in __pci_hose_bus_to_phys()
163 (bus_addr - res->bus_start) < res->size) { in __pci_hose_bus_to_phys()
164 *pa = (bus_addr - res->bus_start + res->phys_start); in __pci_hose_bus_to_phys()
209 struct pci_region *res; in __pci_hose_phys_to_bus() local
214 res = &hose->regions[i]; in __pci_hose_phys_to_bus()
216 if (((res->flags ^ flags) & PCI_REGION_TYPE) != 0) in __pci_hose_phys_to_bus()
219 if (res->flags & skip_mask) in __pci_hose_phys_to_bus()
222 bus_addr = phys_addr - res->phys_start + res->bus_start; in __pci_hose_phys_to_bus()
224 if (bus_addr >= res->bus_start && in __pci_hose_phys_to_bus()
225 (bus_addr - res->bus_start) < res->size) { in __pci_hose_phys_to_bus()