Lines Matching defs:where
21 struct pci_bus *bus, unsigned int devfn, int where, u32 *val)
35 vrc_pciregs[(0x200 + where) >> 2] = *val;
37 *val = vrc_pciregs[(0x200 + where) >> 2];
56 | (where & ~3));
59 (where & ~3);
79 int where, int size, u32 *val)
85 if ((size == 2) && (where & 1))
87 else if ((size == 4) && (where & 3))
91 err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where,
99 *val = (data >> ((where & 3) << 3)) & 0xff;
101 *val = (data >> ((where & 3) << 3)) & 0xffff;
109 int where, int size, u32 val)
115 if ((size == 2) && (where & 1))
117 else if ((size == 4) && (where & 3))
121 err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where,
129 data = (data & ~(0xff << ((where & 3) << 3))) |
130 (val << ((where & 3) << 3));
132 data = (data & ~(0xffff << ((where & 3) << 3))) |
133 (val << ((where & 3) << 3));
138 (PCI_ACCESS_WRITE, bus, devfn, where, &data))