Lines Matching defs:where
40 static u32 iop3xx_cfg_address(struct pci_bus *bus, int devfn, int where)
50 addr |= PCI_FUNC(devfn) << 8 | (where & ~3);
59 * errors occur during a config cycle where there is no device, like during
114 iop3xx_read_config(struct pci_bus *bus, unsigned int devfn, int where,
117 unsigned long addr = iop3xx_cfg_address(bus, devfn, where);
118 u32 val = iop3xx_read(addr) >> ((where & 3) * 8);
129 iop3xx_write_config(struct pci_bus *bus, unsigned int devfn, int where,
132 unsigned long addr = iop3xx_cfg_address(bus, devfn, where);
140 where = (where & 3) * 8;
143 val &= ~(0xff << where);
145 val &= ~(0xffff << where);
147 *IOP3XX_OCCDR = val | value << where;