Lines Matching refs:devfn
27 static u32 get_base_addr(unsigned int seg, int bus, unsigned devfn) in get_base_addr() argument
39 static void pci_exp_set_dev_base(unsigned int base, int bus, int devfn) in pci_exp_set_dev_base() argument
41 u32 dev_base = base | PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12); in pci_exp_set_dev_base()
52 unsigned int devfn, int reg, int len, u32 *value) in pci_mmcfg_read() argument
57 if ((bus > 255) || (devfn > 255) || (reg > 4095)) { in pci_mmcfg_read()
63 base = get_base_addr(seg, bus, devfn); in pci_mmcfg_read()
71 pci_exp_set_dev_base(base, bus, devfn); in pci_mmcfg_read()
91 unsigned int devfn, int reg, int len, u32 value) in pci_mmcfg_write() argument
96 if ((bus > 255) || (devfn > 255) || (reg > 4095)) in pci_mmcfg_write()
100 base = get_base_addr(seg, bus, devfn); in pci_mmcfg_write()
108 pci_exp_set_dev_base(base, bus, devfn); in pci_mmcfg_write()