Lines Matching full:where

100 			 unsigned int dev_fn, unsigned char where, u32 *data)  in config_access()  argument
135 offset = (function << 8) | (where & ~0x3); in config_access()
161 access_type, bus->number, device, where, *data, offset); in config_access()
189 int where, u8 *val) in read_config_byte() argument
192 int ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); in read_config_byte()
194 if (where & 1) in read_config_byte()
196 if (where & 2) in read_config_byte()
203 int where, u16 *val) in read_config_word() argument
206 int ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); in read_config_word()
208 if (where & 2) in read_config_word()
215 int where, u32 *val) in read_config_dword() argument
217 return config_access(PCI_ACCESS_READ, bus, devfn, where, val); in read_config_dword()
221 int where, u8 val) in write_config_byte() argument
225 if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) in write_config_byte()
228 data = (data & ~(0xff << ((where & 3) << 3))) | in write_config_byte()
229 (val << ((where & 3) << 3)); in write_config_byte()
231 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) in write_config_byte()
238 int where, u16 val) in write_config_word() argument
242 if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) in write_config_word()
245 data = (data & ~(0xffff << ((where & 3) << 3))) | in write_config_word()
246 (val << ((where & 3) << 3)); in write_config_word()
248 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) in write_config_word()
255 int where, u32 val) in write_config_dword() argument
257 return config_access(PCI_ACCESS_WRITE, bus, devfn, where, &val); in write_config_dword()
261 int where, int size, u32 *val) in alchemy_pci_read() argument
266 int rc = read_config_byte(bus, devfn, where, &_val); in alchemy_pci_read()
273 int rc = read_config_word(bus, devfn, where, &_val); in alchemy_pci_read()
279 return read_config_dword(bus, devfn, where, val); in alchemy_pci_read()
284 int where, int size, u32 val) in alchemy_pci_write() argument
288 return write_config_byte(bus, devfn, where, (u8) val); in alchemy_pci_write()
290 return write_config_word(bus, devfn, where, (u16) val); in alchemy_pci_write()
292 return write_config_dword(bus, devfn, where, val); in alchemy_pci_write()