Lines Matching refs:devfn

47 				struct pci_bus *bus, unsigned int devfn,
50 unsigned int slot = PCI_SLOT(devfn);
51 u8 func = PCI_FUNC(devfn);
72 static int read_config_byte(struct pci_bus *bus, unsigned int devfn,
78 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data);
83 static int read_config_word(struct pci_bus *bus, unsigned int devfn,
89 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data);
94 static int read_config_dword(struct pci_bus *bus, unsigned int devfn,
104 if (bus->number == 0 && PCI_SLOT(devfn) > 21)
108 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, val);
129 write_config_byte(struct pci_bus *bus, unsigned int devfn, int where,
134 if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data))
140 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data))
148 write_config_word(struct pci_bus *bus, unsigned int devfn, int where,
153 if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data))
159 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data))
168 write_config_dword(struct pci_bus *bus, unsigned int devfn, int where,
171 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &val))
177 static int pci_config_read(struct pci_bus *bus, unsigned int devfn,
182 return read_config_byte(bus, devfn, where, (u8 *) val);
184 return read_config_word(bus, devfn, where, (u16 *) val);
186 return read_config_dword(bus, devfn, where, val);
190 static int pci_config_write(struct pci_bus *bus, unsigned int devfn,
195 return write_config_byte(bus, devfn, where, (u8) val);
197 return write_config_word(bus, devfn, where, (u16) val);
199 return write_config_dword(bus, devfn, where, val);