Lines Matching refs:where
63 int where) in pci_cfg_read_32bit() argument
69 pci_cfg_addr(bus->number, devfn, where & ~3)); in pci_cfg_read_32bit()
75 int where, u32 data) in pci_cfg_write_32bit() argument
80 pci_cfg_addr(bus->number, devfn, where & ~3)); in pci_cfg_write_32bit()
85 int where, int size, u32 *val) in nlm_pcibios_read() argument
89 if ((size == 2) && (where & 1)) in nlm_pcibios_read()
91 else if ((size == 4) && (where & 3)) in nlm_pcibios_read()
94 data = pci_cfg_read_32bit(bus, devfn, where); in nlm_pcibios_read()
97 *val = (data >> ((where & 3) << 3)) & 0xff; in nlm_pcibios_read()
99 *val = (data >> ((where & 3) << 3)) & 0xffff; in nlm_pcibios_read()
108 int where, int size, u32 val) in nlm_pcibios_write() argument
112 if ((size == 2) && (where & 1)) in nlm_pcibios_write()
114 else if ((size == 4) && (where & 3)) in nlm_pcibios_write()
117 data = pci_cfg_read_32bit(bus, devfn, where); in nlm_pcibios_write()
120 data = (data & ~(0xff << ((where & 3) << 3))) | in nlm_pcibios_write()
121 (val << ((where & 3) << 3)); in nlm_pcibios_write()
123 data = (data & ~(0xffff << ((where & 3) << 3))) | in nlm_pcibios_write()
124 (val << ((where & 3) << 3)); in nlm_pcibios_write()
128 pci_cfg_write_32bit(bus, devfn, where, data); in nlm_pcibios_write()