Lines Matching refs:where
47 struct pci_bus *bus, unsigned int devfn, int where, u32 * data) in msc_pcibios_config_access() argument
60 ((where / 4) << MSC01_PCI_CFGADDR_RNUM_SHF))); in msc_pcibios_config_access()
89 int where, int size, u32 * val) in msc_pcibios_read() argument
93 if ((size == 2) && (where & 1)) in msc_pcibios_read()
95 else if ((size == 4) && (where & 3)) in msc_pcibios_read()
98 if (msc_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in msc_pcibios_read()
103 *val = (data >> ((where & 3) << 3)) & 0xff; in msc_pcibios_read()
105 *val = (data >> ((where & 3) << 3)) & 0xffff; in msc_pcibios_read()
113 int where, int size, u32 val) in msc_pcibios_write() argument
117 if ((size == 2) && (where & 1)) in msc_pcibios_write()
119 else if ((size == 4) && (where & 3)) in msc_pcibios_write()
126 where, &data)) in msc_pcibios_write()
130 data = (data & ~(0xff << ((where & 3) << 3))) | in msc_pcibios_write()
131 (val << ((where & 3) << 3)); in msc_pcibios_write()
133 data = (data & ~(0xffff << ((where & 3) << 3))) | in msc_pcibios_write()
134 (val << ((where & 3) << 3)); in msc_pcibios_write()
137 if (msc_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where, in msc_pcibios_write()