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