Lines Matching defs:where
34 struct pci_bus *bus, unsigned int devfn, int where, u32 * data)
47 ((where / 4) << MSC01_PCI_CFGADDR_RNUM_SHF)));
76 int where, int size, u32 * val)
80 if ((size == 2) && (where & 1))
82 else if ((size == 4) && (where & 3))
85 if (msc_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where,
90 *val = (data >> ((where & 3) << 3)) & 0xff;
92 *val = (data >> ((where & 3) << 3)) & 0xffff;
100 int where, int size, u32 val)
104 if ((size == 2) && (where & 1))
106 else if ((size == 4) && (where & 3))
113 where, &data))
117 data = (data & ~(0xff << ((where & 3) << 3))) |
118 (val << ((where & 3) << 3));
120 data = (data & ~(0xffff << ((where & 3) << 3))) |
121 (val << ((where & 3) << 3));
124 if (msc_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where,