Lines Matching defs:devfn
188 static int read_config_byte(struct pci_bus *bus, unsigned int devfn,
192 int ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data);
202 static int read_config_word(struct pci_bus *bus, unsigned int devfn,
206 int ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data);
214 static int read_config_dword(struct pci_bus *bus, unsigned int devfn,
217 return config_access(PCI_ACCESS_READ, bus, devfn, where, val);
220 static int write_config_byte(struct pci_bus *bus, unsigned int devfn,
225 if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data))
231 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data))
237 static int write_config_word(struct pci_bus *bus, unsigned int devfn,
242 if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data))
248 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data))
254 static int write_config_dword(struct pci_bus *bus, unsigned int devfn,
257 return config_access(PCI_ACCESS_WRITE, bus, devfn, where, &val);
260 static int alchemy_pci_read(struct pci_bus *bus, unsigned int devfn,
266 int rc = read_config_byte(bus, devfn, where, &_val);
273 int rc = read_config_word(bus, devfn, where, &_val);
279 return read_config_dword(bus, devfn, where, val);
283 static int alchemy_pci_write(struct pci_bus *bus, unsigned int devfn,
288 return write_config_byte(bus, devfn, where, (u8) val);
290 return write_config_word(bus, devfn, where, (u16) val);
292 return write_config_dword(bus, devfn, where, val);