Lines Matching refs:where
38 unsigned int devfn, int where, in bonito64_pcibios_config_access() argument
47 int reg = where & ~3; in bonito64_pcibios_config_access()
102 int where, int size, u32 * val) in bonito64_pcibios_read() argument
106 if ((size == 2) && (where & 1)) in bonito64_pcibios_read()
108 else if ((size == 4) && (where & 3)) in bonito64_pcibios_read()
111 if (bonito64_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in bonito64_pcibios_read()
116 *val = (data >> ((where & 3) << 3)) & 0xff; in bonito64_pcibios_read()
118 *val = (data >> ((where & 3) << 3)) & 0xffff; in bonito64_pcibios_read()
126 int where, int size, u32 val) in bonito64_pcibios_write() argument
130 if ((size == 2) && (where & 1)) in bonito64_pcibios_write()
132 else if ((size == 4) && (where & 3)) in bonito64_pcibios_write()
139 where, &data)) in bonito64_pcibios_write()
143 data = (data & ~(0xff << ((where & 3) << 3))) | in bonito64_pcibios_write()
144 (val << ((where & 3) << 3)); in bonito64_pcibios_write()
146 data = (data & ~(0xffff << ((where & 3) << 3))) | in bonito64_pcibios_write()
147 (val << ((where & 3) << 3)); in bonito64_pcibios_write()
150 if (bonito64_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where, in bonito64_pcibios_write()