Lines Matching defs:pos
79 int pos;
90 pos = pci_find_capability(dev, PCI_CAP_ID_EXP);
91 if (!pos)
95 pci_read_config_word(dev, pos + PCI_EXP_DEVCTL, ®16);
97 pci_write_config_word(dev, pos + PCI_EXP_DEVCTL, reg16);
101 pci_read_config_word(dev, pos + PCI_EXP_LNKCTL, ®16);
104 pci_write_config_word(dev, pos + PCI_EXP_LNKCTL, reg16);
108 pos = 256;
110 pci_read_config_dword(dev, pos, ®32);
113 } while ((pos = PCI_EXT_CAP_NEXT(reg32)));
114 if (!pos)
118 pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_MASK, ®32);
120 pci_write_config_dword(dev, pos + PCI_ERR_UNCOR_MASK, reg32);
123 pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_SEVER, ®32);
125 pci_write_config_dword(dev, pos + PCI_ERR_UNCOR_SEVER, reg32);
128 pci_read_config_dword(dev, pos + PCI_ERR_COR_MASK, ®32);
130 pci_write_config_dword(dev, pos + PCI_ERR_COR_MASK, reg32);
133 pci_read_config_dword(dev, pos + PCI_ERR_CAP, ®32);
135 pci_write_config_dword(dev, pos + PCI_ERR_CAP, reg32);