Lines Matching refs:bus
29 static char __iomem *get_virt(unsigned int seg, unsigned int *bus) in get_virt() argument
37 (cfg->start_bus_number <= *bus) && in get_virt()
38 (cfg->end_bus_number >= *bus)) { in get_virt()
39 *bus -= cfg->start_bus_number; in get_virt()
48 static char __iomem *pci_dev_base(unsigned int seg, unsigned int bus, unsigned int devfn) in pci_dev_base() argument
52 addr = get_virt(seg, &bus); in pci_dev_base()
55 return addr + ((bus << 20) | (devfn << 12)); in pci_dev_base()
58 int pci_mmcfg_read(unsigned int seg, unsigned int bus, in pci_mmcfg_read() argument
64 if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) { in pci_mmcfg_read()
69 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_read()
88 int pci_mmcfg_write(unsigned int seg, unsigned int bus, in pci_mmcfg_write() argument
94 if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) in pci_mmcfg_write()
97 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_write()