Lines Matching refs:offset
25 .offset = PCI_CAP_LIST_ID,
67 static int vpd_address_write(struct pci_dev *dev, int offset, u16 value, in vpd_address_write() argument
74 return pci_write_config_word(dev, offset, value); in vpd_address_write()
79 .offset = PCI_VPD_ADDR,
85 .offset = PCI_VPD_DATA,
93 static int pm_caps_read(struct pci_dev *dev, int offset, u16 *value, in pm_caps_read() argument
99 err = pci_read_config_word(dev, offset, &real_value); in pm_caps_read()
113 static int pm_ctrl_write(struct pci_dev *dev, int offset, u16 new_value, in pm_ctrl_write() argument
120 err = pci_read_config_word(dev, offset, &old_value); in pm_ctrl_write()
130 err = pci_write_config_word(dev, offset, new_value); in pm_ctrl_write()
148 static void *pm_ctrl_init(struct pci_dev *dev, int offset) in pm_ctrl_init() argument
153 err = pci_read_config_word(dev, offset, &value); in pm_ctrl_init()
159 err = pci_write_config_word(dev, offset, value); in pm_ctrl_init()
168 .offset = PCI_PM_PMC,
173 .offset = PCI_PM_CTRL,
180 .offset = PCI_PM_PPB_EXTENSIONS,
185 .offset = PCI_PM_DATA_REGISTER,