Lines Matching refs:tmp16
1568 u16 tmp16; in cik_pcie_gen3_enable() local
1621 tmp16 = bridge_cfg | PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
1622 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
1624 tmp16 = gpu_cfg | PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
1625 pci_write_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
1649 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_DEVSTA, &tmp16); in cik_pcie_gen3_enable()
1650 if (tmp16 & PCI_EXP_DEVSTA_TRPND) in cik_pcie_gen3_enable()
1670 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); in cik_pcie_gen3_enable()
1671 tmp16 &= ~PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
1672 tmp16 |= (bridge_cfg & PCI_EXP_LNKCTL_HAWD); in cik_pcie_gen3_enable()
1673 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
1675 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, &tmp16); in cik_pcie_gen3_enable()
1676 tmp16 &= ~PCI_EXP_LNKCTL_HAWD; in cik_pcie_gen3_enable()
1677 tmp16 |= (gpu_cfg & PCI_EXP_LNKCTL_HAWD); in cik_pcie_gen3_enable()
1678 pci_write_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
1681 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL2, &tmp16); in cik_pcie_gen3_enable()
1682 tmp16 &= ~((1 << 4) | (7 << 9)); in cik_pcie_gen3_enable()
1683 tmp16 |= (bridge_cfg2 & ((1 << 4) | (7 << 9))); in cik_pcie_gen3_enable()
1684 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL2, tmp16); in cik_pcie_gen3_enable()
1686 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL2, &tmp16); in cik_pcie_gen3_enable()
1687 tmp16 &= ~((1 << 4) | (7 << 9)); in cik_pcie_gen3_enable()
1688 tmp16 |= (gpu_cfg2 & ((1 << 4) | (7 << 9))); in cik_pcie_gen3_enable()
1689 pci_write_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL2, tmp16); in cik_pcie_gen3_enable()
1704 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL2, &tmp16); in cik_pcie_gen3_enable()
1705 tmp16 &= ~0xf; in cik_pcie_gen3_enable()
1707 tmp16 |= 3; /* gen3 */ in cik_pcie_gen3_enable()
1709 tmp16 |= 2; /* gen2 */ in cik_pcie_gen3_enable()
1711 tmp16 |= 1; /* gen1 */ in cik_pcie_gen3_enable()
1712 pci_write_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL2, tmp16); in cik_pcie_gen3_enable()