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