Lines Matching refs:where
39 static u32 iop3xx_cfg_address(struct pci_bus *bus, int devfn, int where) in iop3xx_cfg_address() argument
49 addr |= PCI_FUNC(devfn) << 8 | (where & ~3); in iop3xx_cfg_address()
113 iop3xx_read_config(struct pci_bus *bus, unsigned int devfn, int where, in iop3xx_read_config() argument
116 unsigned long addr = iop3xx_cfg_address(bus, devfn, where); in iop3xx_read_config()
117 u32 val = iop3xx_read(addr) >> ((where & 3) * 8); in iop3xx_read_config()
128 iop3xx_write_config(struct pci_bus *bus, unsigned int devfn, int where, in iop3xx_write_config() argument
131 unsigned long addr = iop3xx_cfg_address(bus, devfn, where); in iop3xx_write_config()
139 where = (where & 3) * 8; in iop3xx_write_config()
142 val &= ~(0xff << where); in iop3xx_write_config()
144 val &= ~(0xffff << where); in iop3xx_write_config()
146 *IOP3XX_OCCDR = val | value << where; in iop3xx_write_config()