Lines Matching refs:offset

21 static int command_read(struct pci_dev *dev, int offset, u16 *value, void *data)
26 ret = xen_pcibk_read_config_word(dev, offset, value, data);
40 static int command_write(struct pci_dev *dev, int offset, u16 value, void *data)
86 return pci_write_config_word(dev, offset, value);
89 static int rom_write(struct pci_dev *dev, int offset, u32 value, void *data)
106 pci_read_config_dword(dev, offset, &tmpval);
109 pci_write_config_dword(dev, offset, bar->val);
123 static int bar_write(struct pci_dev *dev, int offset, u32 value, void *data)
140 pci_read_config_dword(dev, offset, &tmpval);
143 pci_write_config_dword(dev, offset, bar->val);
151 static int bar_read(struct pci_dev *dev, int offset, u32 * value, void *data)
167 struct pci_bar_info *bar_info, int offset,
173 if (offset == PCI_ROM_ADDRESS || offset == PCI_ROM_ADDRESS1)
176 pos = (offset - PCI_BASE_ADDRESS_0) / 4;
192 static void *bar_init(struct pci_dev *dev, int offset)
199 read_dev_bar(dev, bar, offset, ~0);
205 static void *rom_init(struct pci_dev *dev, int offset)
212 read_dev_bar(dev, bar, offset, ~PCI_ROM_ADDRESS_ENABLE);
218 static void bar_reset(struct pci_dev *dev, int offset, void *data)
225 static void bar_release(struct pci_dev *dev, int offset, void *data)
230 static int xen_pcibk_read_vendor(struct pci_dev *dev, int offset,
238 static int xen_pcibk_read_device(struct pci_dev *dev, int offset,
246 static int interrupt_read(struct pci_dev *dev, int offset, u8 * value,
254 static int bist_write(struct pci_dev *dev, int offset, u8 value, void *data)
259 err = pci_read_config_byte(dev, offset, &cur_value);
265 err = pci_write_config_byte(dev, offset, value);
273 .offset = PCI_VENDOR_ID,
278 .offset = PCI_DEVICE_ID,
283 .offset = PCI_COMMAND,
289 .offset = PCI_INTERRUPT_LINE,
294 .offset = PCI_INTERRUPT_PIN,
300 .offset = PCI_CACHE_LINE_SIZE,
306 .offset = PCI_LATENCY_TIMER,
311 .offset = PCI_BIST,
321 .offset = reg_offset, \
332 .offset = reg_offset, \