Lines Matching defs:offset

34 static void *command_init(struct pci_dev *dev, int offset)
51 static int command_read(struct pci_dev *dev, int offset, u16 *value, void *data)
53 int ret = pci_read_config_word(dev, offset, value);
62 static int command_write(struct pci_dev *dev, int offset, u16 value, void *data)
117 err = pci_read_config_word(dev, offset, &val);
124 return pci_write_config_word(dev, offset, value);
127 static int rom_write(struct pci_dev *dev, int offset, u32 value, void *data)
143 pci_read_config_dword(dev, offset, &tmpval);
146 pci_write_config_dword(dev, offset, bar->val);
160 static int bar_write(struct pci_dev *dev, int offset, u32 value, void *data)
163 unsigned int pos = (offset - PCI_BASE_ADDRESS_0) / 4;
185 pci_read_config_dword(dev, offset, &tmpval);
188 pci_write_config_dword(dev, offset, bar->val);
196 static int bar_read(struct pci_dev *dev, int offset, u32 * value, void *data)
210 static void *bar_init(struct pci_dev *dev, int offset)
219 if (offset == PCI_ROM_ADDRESS || offset == PCI_ROM_ADDRESS1)
222 pos = (offset - PCI_BASE_ADDRESS_0) / 4;
247 static void bar_reset(struct pci_dev *dev, int offset, void *data)
254 static void bar_release(struct pci_dev *dev, int offset, void *data)
259 static int xen_pcibk_read_vendor(struct pci_dev *dev, int offset,
267 static int xen_pcibk_read_device(struct pci_dev *dev, int offset,
275 static int interrupt_read(struct pci_dev *dev, int offset, u8 * value,
283 static int bist_write(struct pci_dev *dev, int offset, u8 value, void *data)
288 err = pci_read_config_byte(dev, offset, &cur_value);
294 err = pci_write_config_byte(dev, offset, value);
302 .offset = PCI_VENDOR_ID,
307 .offset = PCI_DEVICE_ID,
312 .offset = PCI_COMMAND,
320 .offset = PCI_INTERRUPT_LINE,
325 .offset = PCI_INTERRUPT_PIN,
331 .offset = PCI_CACHE_LINE_SIZE,
337 .offset = PCI_LATENCY_TIMER,
342 .offset = PCI_BIST,
352 .offset = reg_offset, \
363 .offset = reg_offset, \