Lines Matching refs:where
181 static u32 iop13xx_atux_cfg_address(struct pci_bus *bus, int devfn, int where) in iop13xx_atux_cfg_address() argument
191 addr |= PCI_FUNC(devfn) << 8 | ((where & 0xff) & ~3); in iop13xx_atux_cfg_address()
192 addr |= ((where & 0xf00) >> 8) << 24; /* upper register number */ in iop13xx_atux_cfg_address()
204 static u32 iop13xx_atue_cfg_address(struct pci_bus *bus, int devfn, int where) in iop13xx_atue_cfg_address() argument
214 (where & ~0x3); in iop13xx_atue_cfg_address()
279 iop13xx_atux_read_config(struct pci_bus *bus, unsigned int devfn, int where, in iop13xx_atux_read_config() argument
282 unsigned long addr = iop13xx_atux_cfg_address(bus, devfn, where); in iop13xx_atux_read_config()
283 u32 val = iop13xx_atux_read(addr) >> ((where & 3) * 8); in iop13xx_atux_read_config()
297 iop13xx_atux_write_config(struct pci_bus *bus, unsigned int devfn, int where, in iop13xx_atux_write_config() argument
300 unsigned long addr = iop13xx_atux_cfg_address(bus, devfn, where); in iop13xx_atux_write_config()
308 where = (where & 3) * 8; in iop13xx_atux_write_config()
311 val &= ~(0xff << where); in iop13xx_atux_write_config()
313 val &= ~(0xffff << where); in iop13xx_atux_write_config()
315 __raw_writel(val | value << where, IOP13XX_ATUX_OCCDR); in iop13xx_atux_write_config()
419 iop13xx_atue_read_config(struct pci_bus *bus, unsigned int devfn, int where, in iop13xx_atue_read_config() argument
423 unsigned long addr = iop13xx_atue_cfg_address(bus, devfn, where); in iop13xx_atue_read_config()
427 val = iop13xx_atue_read(addr) >> ((where & 3) * 8); in iop13xx_atue_read_config()
444 iop13xx_atue_write_config(struct pci_bus *bus, unsigned int devfn, int where, in iop13xx_atue_write_config() argument
447 unsigned long addr = iop13xx_atue_cfg_address(bus, devfn, where); in iop13xx_atue_write_config()
455 where = (where & 3) * 8; in iop13xx_atue_write_config()
458 val &= ~(0xff << where); in iop13xx_atue_write_config()
460 val &= ~(0xffff << where); in iop13xx_atue_write_config()
462 __raw_writel(val | value << where, IOP13XX_ATUE_OCCDR); in iop13xx_atue_write_config()