Lines Matching refs:where
34 unsigned int devfn, int where,
43 int reg = where & ~3;
119 int where, int size, u32 *val)
123 if ((size == 2) && (where & 1))
125 else if ((size == 4) && (where & 3))
128 if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where,
133 *val = (data >> ((where & 3) << 3)) & 0xff;
135 *val = (data >> ((where & 3) << 3)) & 0xffff;
143 int where, int size, u32 val)
147 if ((size == 2) && (where & 1))
149 else if ((size == 4) && (where & 3))
156 where, &data))
160 data = (data & ~(0xff << ((where & 3) << 3))) |
161 (val << ((where & 3) << 3));
163 data = (data & ~(0xffff << ((where & 3) << 3))) |
164 (val << ((where & 3) << 3));
167 if (loongson_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where,