Lines Matching defs:offset
26 .offset = PCI_CAP_LIST_ID,
68 static int vpd_address_write(struct pci_dev *dev, int offset, u16 value,
75 return pci_write_config_word(dev, offset, value);
80 .offset = PCI_VPD_ADDR,
86 .offset = PCI_VPD_DATA,
94 static int pm_caps_read(struct pci_dev *dev, int offset, u16 *value,
100 err = pci_read_config_word(dev, offset, &real_value);
114 static int pm_ctrl_write(struct pci_dev *dev, int offset, u16 new_value,
121 err = pci_read_config_word(dev, offset, &old_value);
130 err = pci_write_config_word(dev, offset, new_value);
148 static void *pm_ctrl_init(struct pci_dev *dev, int offset)
153 err = pci_read_config_word(dev, offset, &value);
159 err = pci_write_config_word(dev, offset, value);
168 .offset = PCI_PM_PMC,
173 .offset = PCI_PM_CTRL,
180 .offset = PCI_PM_PPB_EXTENSIONS,
185 .offset = PCI_PM_DATA_REGISTER,
206 static void *msi_field_init(struct pci_dev *dev, int offset)
211 static void *msix_field_init(struct pci_dev *dev, int offset)
216 static int msi_msix_flags_write(struct pci_dev *dev, int offset, u16 new_value,
227 err = pci_read_config_word(dev, offset, &old_value);
255 return pci_write_config_word(dev, offset, new_value);
260 .offset = PCI_MSIX_FLAGS,
271 .offset = PCI_MSI_FLAGS,