Lines Matching refs:where
21 struct pci_bus *bus, unsigned int devfn, int where, u32 *val) in nile4_pcibios_config_access() argument
35 vrc_pciregs[(0x200 + where) >> 2] = *val; in nile4_pcibios_config_access()
37 *val = vrc_pciregs[(0x200 + where) >> 2]; in nile4_pcibios_config_access()
56 | (where & ~3)); in nile4_pcibios_config_access()
59 (where & ~3); in nile4_pcibios_config_access()
79 int where, int size, u32 *val) in nile4_pcibios_read() argument
85 if ((size == 2) && (where & 1)) in nile4_pcibios_read()
87 else if ((size == 4) && (where & 3)) in nile4_pcibios_read()
91 err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in nile4_pcibios_read()
99 *val = (data >> ((where & 3) << 3)) & 0xff; in nile4_pcibios_read()
101 *val = (data >> ((where & 3) << 3)) & 0xffff; in nile4_pcibios_read()
109 int where, int size, u32 val) in nile4_pcibios_write() argument
115 if ((size == 2) && (where & 1)) in nile4_pcibios_write()
117 else if ((size == 4) && (where & 3)) in nile4_pcibios_write()
121 err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in nile4_pcibios_write()
129 data = (data & ~(0xff << ((where & 3) << 3))) | in nile4_pcibios_write()
130 (val << ((where & 3) << 3)); in nile4_pcibios_write()
132 data = (data & ~(0xffff << ((where & 3) << 3))) | in nile4_pcibios_write()
133 (val << ((where & 3) << 3)); in nile4_pcibios_write()
138 (PCI_ACCESS_WRITE, bus, devfn, where, &data)) in nile4_pcibios_write()