Lines Matching defs:where
37 unsigned int devfn, int where,
46 int reg = where & ~3;
122 int where, int size, u32 *val)
126 if ((size == 2) && (where & 1))
128 else if ((size == 4) && (where & 3))
131 if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where,
136 *val = (data >> ((where & 3) << 3)) & 0xff;
138 *val = (data >> ((where & 3) << 3)) & 0xffff;
146 int where, int size, u32 val)
150 if ((size == 2) && (where & 1))
152 else if ((size == 4) && (where & 3))
159 where, &data))
163 data = (data & ~(0xff << ((where & 3) << 3))) |
164 (val << ((where & 3) << 3));
166 data = (data & ~(0xffff << ((where & 3) << 3))) |
167 (val << ((where & 3) << 3));
170 if (loongson_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where,