• 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 refs:where

49 				unsigned char where, u32 *data)
55 PCI_CFG_SET(bus->number, slot, func, where);
74 int where, u8 *val)
79 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data);
80 *val = (data >> ((where & 3) << 3)) & 0xff;
85 int where, u16 *val)
90 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data);
91 *val = (data >> ((where & 3) << 3)) & 0xffff;
96 int where, u32 *val)
109 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, val);
115 if (where == PCI_VENDOR_ID) {
130 write_config_byte(struct pci_bus *bus, unsigned int devfn, int where,
135 if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data))
138 data = (data & ~(0xff << ((where & 3) << 3))) |
139 (val << ((where & 3) << 3));
141 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data))
149 write_config_word(struct pci_bus *bus, unsigned int devfn, int where,
154 if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data))
157 data = (data & ~(0xffff << ((where & 3) << 3))) |
158 (val << ((where & 3) << 3));
160 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data))
169 write_config_dword(struct pci_bus *bus, unsigned int devfn, int where,
172 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &val))
179 int where, int size, u32 *val)
183 return read_config_byte(bus, devfn, where, (u8 *) val);
185 return read_config_word(bus, devfn, where, (u16 *) val);
187 return read_config_dword(bus, devfn, where, val);
192 int where, int size, u32 val)
196 return write_config_byte(bus, devfn, where, (u8) val);
198 return write_config_word(bus, devfn, where, (u16) val);
200 return write_config_dword(bus, devfn, where, val);