Lines Matching refs:flags
104 void *pci_map_bar(pci_dev_t pdev, int bar, int flags) in pci_map_bar() argument
119 return pci_bus_to_virt(pdev, pci_bus_addr, flags, 0, MAP_NOCACHE); in pci_map_bar()
146 unsigned long flags, in __pci_hose_bus_to_phys() argument
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()
174 unsigned long flags) in pci_hose_bus_to_phys() argument
188 if ((flags & PCI_REGION_TYPE) == PCI_REGION_MEM) { in pci_hose_bus_to_phys()
190 flags, PCI_REGION_SYS_MEMORY, &phys_addr); in pci_hose_bus_to_phys()
195 ret = __pci_hose_bus_to_phys(hose, bus_addr, flags, 0, &phys_addr); in pci_hose_bus_to_phys()
205 unsigned long flags, in __pci_hose_phys_to_bus() argument
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()
243 unsigned long flags) in pci_hose_phys_to_bus() argument
257 if ((flags & PCI_REGION_TYPE) == PCI_REGION_MEM) { in pci_hose_phys_to_bus()
259 flags, PCI_REGION_SYS_MEMORY, &bus_addr); in pci_hose_phys_to_bus()
264 ret = __pci_hose_phys_to_bus(hose, phys_addr, flags, 0, &bus_addr); in pci_hose_phys_to_bus()