Lines Matching refs:devfn

65 static int fixed_bar_cap(struct pci_bus *bus, unsigned int devfn)  in fixed_bar_cap()  argument
77 devfn, pos, 4, &pcie_cap)) in fixed_bar_cap()
86 devfn, pos + 4, 4, &cap_data); in fixed_bar_cap()
97 static int pci_device_update_fixed(struct pci_bus *bus, unsigned int devfn, in pci_device_update_fixed() argument
110 raw_pci_ext_ops->read(domain, busnum, devfn, in pci_device_update_fixed()
133 return raw_pci_ext_ops->write(domain, busnum, devfn, reg, 4, in pci_device_update_fixed()
138 return raw_pci_ext_ops->write(domain, busnum, devfn, reg, len, val); in pci_device_update_fixed()
152 static bool type1_access_ok(unsigned int bus, unsigned int devfn, int reg) in type1_access_ok() argument
164 if (bus == 0 && (devfn == PCI_DEVFN(2, 0) in type1_access_ok()
165 || devfn == PCI_DEVFN(0, 0) in type1_access_ok()
166 || devfn == PCI_DEVFN(3, 0))) in type1_access_ok()
171 static int pci_read(struct pci_bus *bus, unsigned int devfn, int where, in pci_read() argument
174 if (type1_access_ok(bus->number, devfn, where)) in pci_read()
176 devfn, where, size, value); in pci_read()
178 devfn, where, size, value); in pci_read()
181 static int pci_write(struct pci_bus *bus, unsigned int devfn, int where, in pci_write() argument
199 offset = fixed_bar_cap(bus, devfn); in pci_write()
202 return pci_device_update_fixed(bus, devfn, where, size, value, in pci_write()
211 if (type1_access_ok(bus->number, devfn, where)) in pci_write()
213 devfn, where, size, value); in pci_write()
214 return raw_pci_ext_ops->write(pci_domain_nr(bus), bus->number, devfn, in pci_write()
338 if (type1_access_ok(dev->bus->number, dev->devfn, PCI_DEVICE_ID)) in pci_d3delay_fixup()
395 offset = fixed_bar_cap(dev->bus, dev->devfn); in pci_fixed_bar_fixup()
396 if (!offset || PCI_DEVFN(2, 0) == dev->devfn || in pci_fixed_bar_fixup()
397 PCI_DEVFN(2, 2) == dev->devfn) in pci_fixed_bar_fixup()