Lines Matching refs:where
17 struct pci_bus *bus, unsigned int devfn, int where, u32 *val) in nile4_pcibios_config_access() argument
31 vrc_pciregs[(0x200 + where) >> 2] = *val; in nile4_pcibios_config_access()
33 *val = vrc_pciregs[(0x200 + where) >> 2]; in nile4_pcibios_config_access()
52 | (where & ~3)); in nile4_pcibios_config_access()
55 (where & ~3); in nile4_pcibios_config_access()
75 int where, int size, u32 *val) in nile4_pcibios_read() argument
80 if ((size == 2) && (where & 1)) in nile4_pcibios_read()
82 else if ((size == 4) && (where & 3)) in nile4_pcibios_read()
85 err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in nile4_pcibios_read()
91 *val = (data >> ((where & 3) << 3)) & 0xff; in nile4_pcibios_read()
93 *val = (data >> ((where & 3) << 3)) & 0xffff; in nile4_pcibios_read()
101 int where, int size, u32 val) in nile4_pcibios_write() argument
106 if ((size == 2) && (where & 1)) in nile4_pcibios_write()
108 else if ((size == 4) && (where & 3)) in nile4_pcibios_write()
111 err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in nile4_pcibios_write()
117 data = (data & ~(0xff << ((where & 3) << 3))) | in nile4_pcibios_write()
118 (val << ((where & 3) << 3)); in nile4_pcibios_write()
120 data = (data & ~(0xffff << ((where & 3) << 3))) | in nile4_pcibios_write()
121 (val << ((where & 3) << 3)); in nile4_pcibios_write()
126 (PCI_ACCESS_WRITE, bus, devfn, where, &data)) in nile4_pcibios_write()