Lines Matching refs:offset
32 static void *command_init(struct pci_dev *dev, int offset) in command_init() argument
49 static int command_read(struct pci_dev *dev, int offset, u16 *value, void *data) in command_read() argument
51 int ret = pci_read_config_word(dev, offset, value); in command_read()
60 static int command_write(struct pci_dev *dev, int offset, u16 value, void *data) in command_write() argument
125 err = pci_read_config_word(dev, offset, &val); in command_write()
132 return pci_write_config_word(dev, offset, value); in command_write()
135 static int rom_write(struct pci_dev *dev, int offset, u32 value, void *data) in rom_write() argument
152 pci_read_config_dword(dev, offset, &tmpval); in rom_write()
155 pci_write_config_dword(dev, offset, bar->val); in rom_write()
169 static int bar_write(struct pci_dev *dev, int offset, u32 value, void *data) in bar_write() argument
186 pci_read_config_dword(dev, offset, &tmpval); in bar_write()
189 pci_write_config_dword(dev, offset, bar->val); in bar_write()
197 static int bar_read(struct pci_dev *dev, int offset, u32 * value, void *data) in bar_read() argument
213 struct pci_bar_info *bar_info, int offset, in read_dev_bar() argument
219 if (offset == PCI_ROM_ADDRESS || offset == PCI_ROM_ADDRESS1) in read_dev_bar()
222 pos = (offset - PCI_BASE_ADDRESS_0) / 4; in read_dev_bar()
238 static void *bar_init(struct pci_dev *dev, int offset) in bar_init() argument
245 read_dev_bar(dev, bar, offset, ~0); in bar_init()
251 static void *rom_init(struct pci_dev *dev, int offset) in rom_init() argument
258 read_dev_bar(dev, bar, offset, ~PCI_ROM_ADDRESS_ENABLE); in rom_init()
264 static void bar_reset(struct pci_dev *dev, int offset, void *data) in bar_reset() argument
271 static void bar_release(struct pci_dev *dev, int offset, void *data) in bar_release() argument
276 static int xen_pcibk_read_vendor(struct pci_dev *dev, int offset, in xen_pcibk_read_vendor() argument
284 static int xen_pcibk_read_device(struct pci_dev *dev, int offset, in xen_pcibk_read_device() argument
292 static int interrupt_read(struct pci_dev *dev, int offset, u8 * value, in interrupt_read() argument
300 static int bist_write(struct pci_dev *dev, int offset, u8 value, void *data) in bist_write() argument
305 err = pci_read_config_byte(dev, offset, &cur_value); in bist_write()
311 err = pci_write_config_byte(dev, offset, value); in bist_write()
319 .offset = PCI_VENDOR_ID,
324 .offset = PCI_DEVICE_ID,
329 .offset = PCI_COMMAND,
337 .offset = PCI_INTERRUPT_LINE,
342 .offset = PCI_INTERRUPT_PIN,
348 .offset = PCI_CACHE_LINE_SIZE,
354 .offset = PCI_LATENCY_TIMER,
359 .offset = PCI_BIST,
369 .offset = reg_offset, \
380 .offset = reg_offset, \