• Home
  • Raw
  • Download

Lines Matching refs:where

42 calc_cfg_addr(struct pci_bus *bus, unsigned int devfn, int where)  in calc_cfg_addr()  argument
47 addr |= ((devfn & 0xff) << PCI_CFG_FUNC_SHIFT) | (where & 0xfc); in calc_cfg_addr()
53 config_access(unsigned int pci_cmd, struct pci_bus *bus, unsigned int devfn, int where, unsigned in… in config_access() argument
57 unsigned long ioaddr = calc_cfg_addr(bus, devfn, where); in config_access()
113 read_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 * val) in read_config_byte() argument
121 err = config_access(PCI_CMD_CONFIG_READ, bus, devfn, where, ~(1 << (where & 3)), &data); in read_config_byte()
122 switch (where & 0x03) { in read_config_byte()
141 read_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 * val) in read_config_word() argument
149 if (where & 0x01) in read_config_word()
152 err = config_access(PCI_CMD_CONFIG_READ, bus, devfn, where, ~(3 << (where & 3)), &data); in read_config_word()
153 switch (where & 0x02) { in read_config_word()
166 read_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 * val) in read_config_dword() argument
172 if (where & 0x03) in read_config_dword()
175 err = config_access(PCI_CMD_CONFIG_READ, bus, devfn, where, 0, val); in read_config_dword()
181 write_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 val) in write_config_byte() argument
189 switch (where & 0x03) { in write_config_byte()
203 err = config_access(PCI_CMD_CONFIG_WRITE, bus, devfn, where, ~(1 << (where & 3)), &data); in write_config_byte()
209 write_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 val) in write_config_word() argument
217 if (where & 0x01) in write_config_word()
220 switch (where & 0x02) { in write_config_word()
227 err = config_access(PCI_CMD_CONFIG_WRITE, bus, devfn, where, ~(3 << (where & 3)), &data); in write_config_word()
233 write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 val) in write_config_dword() argument
239 if (where & 0x03) in write_config_dword()
242 err = config_access(PCI_CMD_CONFIG_WRITE, bus, devfn, where, 0, &val); in write_config_dword()
247 static int config_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * val) in config_read() argument
252 int rc = read_config_byte(bus, devfn, where, &_val); in config_read()
258 int rc = read_config_word(bus, devfn, where, &_val); in config_read()
263 return read_config_dword(bus, devfn, where, val); in config_read()
267 static int config_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) in config_write() argument
271 return write_config_byte(bus, devfn, where, (u8) val); in config_write()
273 return write_config_word(bus, devfn, where, (u16) val); in config_write()
275 return write_config_dword(bus, devfn, where, val); in config_write()