Lines Matching defs:where
36 static u32 iop3xx_cfg_address(struct pci_bus *bus, int devfn, int where)
46 addr |= PCI_FUNC(devfn) << 8 | (where & ~3);
55 * errors occur during a config cycle where there is no device, like during
110 iop3xx_read_config(struct pci_bus *bus, unsigned int devfn, int where,
113 unsigned long addr = iop3xx_cfg_address(bus, devfn, where);
114 u32 val = iop3xx_read(addr) >> ((where & 3) * 8);
125 iop3xx_write_config(struct pci_bus *bus, unsigned int devfn, int where,
128 unsigned long addr = iop3xx_cfg_address(bus, devfn, where);
136 where = (where & 3) * 8;
139 val &= ~(0xff << where);
141 val &= ~(0xffff << where);
143 *IOP3XX_OCCDR = val | value << where;