Lines Matching refs:bus
19 static inline char __iomem *pci_dev_base(unsigned int seg, unsigned int bus, unsigned int devfn) in pci_dev_base() argument
21 struct pci_mmcfg_region *cfg = pci_mmconfig_lookup(seg, bus); in pci_dev_base()
24 return cfg->virt + (PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12)); in pci_dev_base()
28 static int pci_mmcfg_read_numachip(unsigned int seg, unsigned int bus, in pci_mmcfg_read_numachip() argument
34 if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) { in pci_mmcfg_read_numachip()
40 if (unlikely(bus == 0 && devfn >= limit)) { in pci_mmcfg_read_numachip()
46 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_read_numachip()
68 static int pci_mmcfg_write_numachip(unsigned int seg, unsigned int bus, in pci_mmcfg_write_numachip() argument
74 if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) in pci_mmcfg_write_numachip()
78 if (unlikely(bus == 0 && devfn >= limit)) in pci_mmcfg_write_numachip()
82 addr = pci_dev_base(seg, bus, devfn); in pci_mmcfg_write_numachip()