Lines Matching refs:devfn
17 #define PCI_CONF1_ADDRESS(bus, devfn, reg) \ argument
19 | (devfn << 8) | (reg & 0xFC))
22 unsigned int devfn, int reg, int len, u32 *value) in pci_conf1_read() argument
26 if (seg || (bus > 255) || (devfn > 255) || (reg > 4095)) { in pci_conf1_read()
33 outl(PCI_CONF1_ADDRESS(bus, devfn, reg), 0xCF8); in pci_conf1_read()
53 unsigned int devfn, int reg, int len, u32 value) in pci_conf1_write() argument
57 if (seg || (bus > 255) || (devfn > 255) || (reg > 4095)) in pci_conf1_write()
62 outl(PCI_CONF1_ADDRESS(bus, devfn, reg), 0xCF8); in pci_conf1_write()
96 unsigned int devfn, int reg, int len, u32 *value) in pci_conf2_read() argument
102 if ((bus > 255) || (devfn > 255) || (reg > 255)) { in pci_conf2_read()
107 dev = PCI_SLOT(devfn); in pci_conf2_read()
108 fn = PCI_FUNC(devfn); in pci_conf2_read()
138 unsigned int devfn, int reg, int len, u32 value) in pci_conf2_write() argument
144 if ((bus > 255) || (devfn > 255) || (reg > 255)) in pci_conf2_write()
147 dev = PCI_SLOT(devfn); in pci_conf2_write()
148 fn = PCI_FUNC(devfn); in pci_conf2_write()
198 int devfn; in pci_sanity_check() local
207 for (devfn = 0; devfn < 0x100; devfn++) { in pci_sanity_check()
208 if (o->read(0, 0, devfn, PCI_CLASS_DEVICE, 2, &x)) in pci_sanity_check()
213 if (o->read(0, 0, devfn, PCI_VENDOR_ID, 2, &x)) in pci_sanity_check()