Lines Matching defs:where
165 static u32 ixp4xx_config_addr(u8 bus_num, u16 devfn, int where)
171 (where & ~3);
175 ((PCI_FUNC(devfn)) << 8) | (where & ~3) | 1;
203 static int local_read_config(int where, int size, u32 *value)
206 pr_debug("local_read_config from %d size %d\n", where, size);
207 n = where % 4;
208 crp_read(where & ~3, &data);
214 static int local_write_config(int where, int size, u32 value)
217 pr_debug("local_write_config %#x to %d size %d\n", value, where, size);
218 n = where % 4;
223 crp_write((where & ~3) | byte_enables, data);
238 static int ixp4xx_pci_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value)
243 pr_debug("read_config from %d size %d dev %d:%d:%d\n", where, size,
247 n = where % 4;
252 addr = ixp4xx_config_addr(bus_num, devfn, where);
261 static int ixp4xx_pci_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value)
266 pr_debug("write_config_byte %#x to %d size %d dev %d:%d:%d\n", value, where,
269 n = where % 4;
274 addr = ixp4xx_config_addr(bus_num, devfn, where);