• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/arch/arm/mach-iop13xx/

Lines Matching defs:where

179  * @where: Desired register's address offset
184 static u32 iop13xx_atux_cfg_address(struct pci_bus *bus, int devfn, int where)
194 addr |= PCI_FUNC(devfn) << 8 | ((where & 0xff) & ~3);
195 addr |= ((where & 0xf00) >> 8) << 24; /* upper register number */
203 * @where: Desired register's address offset
207 static u32 iop13xx_atue_cfg_address(struct pci_bus *bus, int devfn, int where)
217 (where & ~0x3);
228 * errors occure during a config cycle where there is no device, like during
282 iop13xx_atux_read_config(struct pci_bus *bus, unsigned int devfn, int where,
285 unsigned long addr = iop13xx_atux_cfg_address(bus, devfn, where);
286 u32 val = iop13xx_atux_read(addr) >> ((where & 3) * 8);
300 iop13xx_atux_write_config(struct pci_bus *bus, unsigned int devfn, int where,
303 unsigned long addr = iop13xx_atux_cfg_address(bus, devfn, where);
311 where = (where & 3) * 8;
314 val &= ~(0xff << where);
316 val &= ~(0xffff << where);
318 __raw_writel(val | value << where, IOP13XX_ATUX_OCCDR);
335 * errors occure during a config cycle where there is no device, like during
422 iop13xx_atue_read_config(struct pci_bus *bus, unsigned int devfn, int where,
426 unsigned long addr = iop13xx_atue_cfg_address(bus, devfn, where);
430 val = iop13xx_atue_read(addr) >> ((where & 3) * 8);
447 iop13xx_atue_write_config(struct pci_bus *bus, unsigned int devfn, int where,
450 unsigned long addr = iop13xx_atue_cfg_address(bus, devfn, where);
458 where = (where & 3) * 8;
461 val &= ~(0xff << where);
463 val &= ~(0xffff << where);
465 __raw_writel(val | value << where, IOP13XX_ATUE_OCCDR);