• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/mips/pci/

Lines Matching defs:where

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