Lines Matching refs:where
34 struct pci_bus *bus, unsigned int devfn, int where, u32 * data) in msc_pcibios_config_access() argument
47 ((where / 4) << MSC01_PCI_CFGADDR_RNUM_SHF))); in msc_pcibios_config_access()
76 int where, int size, u32 * val) in msc_pcibios_read() argument
80 if ((size == 2) && (where & 1)) in msc_pcibios_read()
82 else if ((size == 4) && (where & 3)) in msc_pcibios_read()
85 if (msc_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, in msc_pcibios_read()
90 *val = (data >> ((where & 3) << 3)) & 0xff; in msc_pcibios_read()
92 *val = (data >> ((where & 3) << 3)) & 0xffff; in msc_pcibios_read()
100 int where, int size, u32 val) in msc_pcibios_write() argument
104 if ((size == 2) && (where & 1)) in msc_pcibios_write()
106 else if ((size == 4) && (where & 3)) in msc_pcibios_write()
113 where, &data)) in msc_pcibios_write()
117 data = (data & ~(0xff << ((where & 3) << 3))) | in msc_pcibios_write()
118 (val << ((where & 3) << 3)); in msc_pcibios_write()
120 data = (data & ~(0xffff << ((where & 3) << 3))) | in msc_pcibios_write()
121 (val << ((where & 3) << 3)); in msc_pcibios_write()
124 if (msc_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where, in msc_pcibios_write()