Lines Matching refs:reg16

121 	u16 reg16;
129 pci_read_config_word(child, pos + PCI_EXP_LNKCTL, &reg16);
131 reg16 |= PCI_EXP_LNKCTL_CLKREQ_EN;
133 reg16 &= ~PCI_EXP_LNKCTL_CLKREQ_EN;
134 pci_write_config_word(child, pos + PCI_EXP_LNKCTL, reg16);
154 u16 reg16;
169 pci_read_config_word(child, pos + PCI_EXP_LNKCTL, &reg16);
170 if (!(reg16 & PCI_EXP_LNKCTL_CLKREQ_EN))
186 u16 reg16, parent_reg, child_reg[8];
199 pci_read_config_word(child, cpos + PCI_EXP_LNKSTA, &reg16);
200 if (!(reg16 & PCI_EXP_LNKSTA_SLC))
205 pci_read_config_word(parent, ppos + PCI_EXP_LNKSTA, &reg16);
206 if (!(reg16 & PCI_EXP_LNKSTA_SLC))
212 pci_read_config_word(child, cpos + PCI_EXP_LNKCTL, &reg16);
213 child_reg[PCI_FUNC(child->devfn)] = reg16;
215 reg16 |= PCI_EXP_LNKCTL_CCC;
217 reg16 &= ~PCI_EXP_LNKCTL_CCC;
218 pci_write_config_word(child, cpos + PCI_EXP_LNKCTL, reg16);
222 pci_read_config_word(parent, ppos + PCI_EXP_LNKCTL, &reg16);
223 parent_reg = reg16;
225 reg16 |= PCI_EXP_LNKCTL_CCC;
227 reg16 &= ~PCI_EXP_LNKCTL_CCC;
228 pci_write_config_word(parent, ppos + PCI_EXP_LNKCTL, reg16);
231 reg16 |= PCI_EXP_LNKCTL_RL;
232 pci_write_config_word(parent, ppos + PCI_EXP_LNKCTL, reg16);
237 pci_read_config_word(parent, ppos + PCI_EXP_LNKSTA, &reg16);
238 if (!(reg16 & PCI_EXP_LNKSTA_LT))
244 if (!(reg16 & PCI_EXP_LNKSTA_LT))
301 u16 reg16;
309 pci_read_config_word(pdev, pos + PCI_EXP_LNKCTL, &reg16);
310 info->enabled = reg16 & PCI_EXP_LNKCTL_ASPMC;
439 u16 reg16;
442 pci_read_config_word(pdev, pos + PCI_EXP_LNKCTL, &reg16);
443 reg16 &= ~0x3;
444 reg16 |= val;
445 pci_write_config_word(pdev, pos + PCI_EXP_LNKCTL, reg16);