Lines Matching refs:where
48 struct pci_bus *bus, unsigned int devfn, int where, u32 * data) in msc_pcibios_config_access() argument
61 ((where / 4) << MSC01_PCI_CFGADDR_RNUM_SHF))); in msc_pcibios_config_access()
90 int where, int size, u32 * val) in msc_pcibios_read() argument
94 if ((size == 2) && (where & 1)) in msc_pcibios_read()
96 else if ((size == 4) && (where & 3)) in msc_pcibios_read()
99 if (msc_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in msc_pcibios_read()
104 *val = (data >> ((where & 3) << 3)) & 0xff; in msc_pcibios_read()
106 *val = (data >> ((where & 3) << 3)) & 0xffff; in msc_pcibios_read()
114 int where, int size, u32 val) in msc_pcibios_write() argument
118 if ((size == 2) && (where & 1)) in msc_pcibios_write()
120 else if ((size == 4) && (where & 3)) in msc_pcibios_write()
127 where, &data)) in msc_pcibios_write()
131 data = (data & ~(0xff << ((where & 3) << 3))) | in msc_pcibios_write()
132 (val << ((where & 3) << 3)); in msc_pcibios_write()
134 data = (data & ~(0xffff << ((where & 3) << 3))) | in msc_pcibios_write()
135 (val << ((where & 3) << 3)); in msc_pcibios_write()
138 if (msc_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where, in msc_pcibios_write()