• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/linux/linux/arch/mips/mips-boards/generic/

Lines Matching refs:where

55 	struct pci_dev *dev, unsigned char where, u32 *data)
82 ((where / 4) << GT_PCI0_CFGADDR_REGNUM_SHF) |
157 pci_addr |= (where & ~0x3) << PCI_CFG_TYPE0_REG_SHF;
221 ((where /4 ) << MSC01_PCI_CFGADDR_RNUM_SHF) |
260 static int mips_pcibios_read_config_byte (struct pci_dev *dev, int where,
265 if (mips_pcibios_config_access(PCI_ACCESS_READ, dev, where, &data))
268 *val = (data >> ((where & 3) << 3)) & 0xff;
273 static int mips_pcibios_read_config_word (struct pci_dev *dev, int where,
278 if (where & 1)
281 if (mips_pcibios_config_access(PCI_ACCESS_READ, dev, where, &data))
284 *val = (data >> ((where & 3) << 3)) & 0xffff;
289 static int mips_pcibios_read_config_dword (struct pci_dev *dev, int where,
294 if (where & 3)
297 if (mips_pcibios_config_access(PCI_ACCESS_READ, dev, where, &data))
305 static int mips_pcibios_write_config_byte (struct pci_dev *dev, int where,
310 if (mips_pcibios_config_access(PCI_ACCESS_READ, dev, where, &data))
313 data = (data & ~(0xff << ((where & 3) << 3))) |
314 (val << ((where & 3) << 3));
316 if (mips_pcibios_config_access(PCI_ACCESS_WRITE, dev, where, &data))
322 static int mips_pcibios_write_config_word (struct pci_dev *dev, int where,
327 if (where & 1)
330 if (mips_pcibios_config_access(PCI_ACCESS_READ, dev, where, &data))
333 data = (data & ~(0xffff << ((where & 3) << 3))) |
334 (val << ((where & 3) << 3));
336 if (mips_pcibios_config_access(PCI_ACCESS_WRITE, dev, where, &data))
343 static int mips_pcibios_write_config_dword(struct pci_dev *dev, int where,
346 if (where & 3)
349 if (mips_pcibios_config_access(PCI_ACCESS_WRITE, dev, where, &val))
513 unsigned long where, size;
516 where = PCI_BASE_ADDRESS_0 + (resource * 4);
518 pci_read_config_dword(dev, where, &reg);
520 pci_write_config_dword(dev, where, reg);