Lines Matching full:where
64 int where) in pci_cfg_read_32bit() argument
69 where &= ~3; in pci_cfg_read_32bit()
83 } else if (bus->number == 0 && PCI_SLOT(devfn) == 1 && where == 0x954) { in pci_cfg_read_32bit()
87 pci_cfg_addr(bus->number, devfn, where)); in pci_cfg_read_32bit()
93 int where, u32 data) in pci_cfg_write_32bit() argument
98 pci_cfg_addr(bus->number, devfn, where & ~3)); in pci_cfg_write_32bit()
103 int where, int size, u32 *val) in nlm_pcibios_read() argument
107 if ((size == 2) && (where & 1)) in nlm_pcibios_read()
109 else if ((size == 4) && (where & 3)) in nlm_pcibios_read()
112 data = pci_cfg_read_32bit(bus, devfn, where); in nlm_pcibios_read()
115 *val = (data >> ((where & 3) << 3)) & 0xff; in nlm_pcibios_read()
117 *val = (data >> ((where & 3) << 3)) & 0xffff; in nlm_pcibios_read()
126 int where, int size, u32 val) in nlm_pcibios_write() argument
130 if ((size == 2) && (where & 1)) in nlm_pcibios_write()
132 else if ((size == 4) && (where & 3)) in nlm_pcibios_write()
135 data = pci_cfg_read_32bit(bus, devfn, where); in nlm_pcibios_write()
138 data = (data & ~(0xff << ((where & 3) << 3))) | in nlm_pcibios_write()
139 (val << ((where & 3) << 3)); in nlm_pcibios_write()
141 data = (data & ~(0xffff << ((where & 3) << 3))) | in nlm_pcibios_write()
142 (val << ((where & 3) << 3)); in nlm_pcibios_write()
146 pci_cfg_write_32bit(bus, devfn, where, data); in nlm_pcibios_write()