Lines Matching refs:where

43 	struct pci_dev *dev, unsigned char where, u32 *data)  in gt64120_config_access()  argument
64 (where & ~0x3) | in gt64120_config_access()
109 static int gt64120_read_config_byte (struct pci_dev *dev, int where, u8 *val) in gt64120_read_config_byte() argument
113 if (gt64120_config_access(PCI_ACCESS_READ, dev, where, &data)) in gt64120_read_config_byte()
116 *val = data >> ((where & 3) << 3); in gt64120_read_config_byte()
121 static int gt64120_read_config_word (struct pci_dev *dev, int where, u16 *val) in gt64120_read_config_word() argument
125 if (where & 1) in gt64120_read_config_word()
128 if (gt64120_config_access(PCI_ACCESS_READ, dev, where, &data)) in gt64120_read_config_word()
131 *val = data >> ((where & 3) << 3); in gt64120_read_config_word()
136 static int gt64120_read_config_dword (struct pci_dev *dev, int where, u32 *val) in gt64120_read_config_dword() argument
140 if (where & 3) in gt64120_read_config_dword()
143 if (gt64120_config_access(PCI_ACCESS_READ, dev, where, &data)) in gt64120_read_config_dword()
151 static int gt64120_write_config_byte (struct pci_dev *dev, int where, u8 val) in gt64120_write_config_byte() argument
155 if (gt64120_config_access(PCI_ACCESS_READ, dev, where, &data)) in gt64120_write_config_byte()
158 data = (data & ~(0xff << ((where & 3) << 3))) | in gt64120_write_config_byte()
159 (val << ((where & 3) << 3)); in gt64120_write_config_byte()
161 if (gt64120_config_access(PCI_ACCESS_WRITE, dev, where, &data)) in gt64120_write_config_byte()
167 static int gt64120_write_config_word (struct pci_dev *dev, int where, u16 val) in gt64120_write_config_word() argument
171 if (where & 1) in gt64120_write_config_word()
174 if (gt64120_config_access(PCI_ACCESS_READ, dev, where, &data)) in gt64120_write_config_word()
177 data = (data & ~(0xffff << ((where & 3) << 3))) | in gt64120_write_config_word()
178 (val << ((where & 3) << 3)); in gt64120_write_config_word()
180 if (gt64120_config_access(PCI_ACCESS_WRITE, dev, where, &data)) in gt64120_write_config_word()
186 static int gt64120_write_config_dword(struct pci_dev *dev, int where, u32 val) in gt64120_write_config_dword() argument
188 if (where & 3) in gt64120_write_config_dword()
191 if (gt64120_config_access(PCI_ACCESS_WRITE, dev, where, &val)) in gt64120_write_config_dword()