Lines Matching full:where
18 struct pci_bus *bus, unsigned int devfn, int where, u32 *val) in nile4_pcibios_config_access() argument
32 vrc_pciregs[(0x200 + where) >> 2] = *val; in nile4_pcibios_config_access()
34 *val = vrc_pciregs[(0x200 + where) >> 2]; in nile4_pcibios_config_access()
53 | (where & ~3)); in nile4_pcibios_config_access()
56 (where & ~3); in nile4_pcibios_config_access()
76 int where, int size, u32 *val) in nile4_pcibios_read() argument
81 if ((size == 2) && (where & 1)) in nile4_pcibios_read()
83 else if ((size == 4) && (where & 3)) in nile4_pcibios_read()
86 err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in nile4_pcibios_read()
92 *val = (data >> ((where & 3) << 3)) & 0xff; in nile4_pcibios_read()
94 *val = (data >> ((where & 3) << 3)) & 0xffff; in nile4_pcibios_read()
102 int where, int size, u32 val) in nile4_pcibios_write() argument
107 if ((size == 2) && (where & 1)) in nile4_pcibios_write()
109 else if ((size == 4) && (where & 3)) in nile4_pcibios_write()
112 err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in nile4_pcibios_write()
118 data = (data & ~(0xff << ((where & 3) << 3))) | in nile4_pcibios_write()
119 (val << ((where & 3) << 3)); in nile4_pcibios_write()
121 data = (data & ~(0xffff << ((where & 3) << 3))) | in nile4_pcibios_write()
122 (val << ((where & 3) << 3)); in nile4_pcibios_write()
127 (PCI_ACCESS_WRITE, bus, devfn, where, &data)) in nile4_pcibios_write()