Lines Matching refs:devfn

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