Lines Matching defs:where
94 unsigned int dev_fn, unsigned char where, u32 *data)
132 offset = (function << 8) | (where & ~0x3);
160 access_type, bus->number, device, where, *data, offset);
190 int where, u8 *val)
195 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data);
196 if (where & 1)
198 if (where & 2)
205 int where, u16 *val)
210 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data);
211 if (where & 2)
218 int where, u32 *val)
222 ret = config_access(PCI_ACCESS_READ, bus, devfn, where, val);
227 int where, u8 val)
231 if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data))
234 data = (data & ~(0xff << ((where & 3) << 3))) |
235 (val << ((where & 3) << 3));
237 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data))
244 int where, u16 val)
248 if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data))
251 data = (data & ~(0xffff << ((where & 3) << 3))) |
252 (val << ((where & 3) << 3));
254 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data))
261 int where, u32 val)
263 if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &val))
270 int where, int size, u32 *val)
275 int rc = read_config_byte(bus, devfn, where, &_val);
282 int rc = read_config_word(bus, devfn, where, &_val);
288 return read_config_dword(bus, devfn, where, val);
293 int where, int size, u32 val)
297 return write_config_byte(bus, devfn, where, (u8) val);
299 return write_config_word(bus, devfn, where, (u16) val);
301 return write_config_dword(bus, devfn, where, val);