Searched refs:gpu_pos (Results 1 – 3 of 3) sorted by relevance
/dragonfly/sys/dev/drm/amd/amdgpu/ |
H A D | cik.c | 1380 int bridge_pos, gpu_pos; in cik_pcie_gen3_enable() local 1419 gpu_pos = pci_pcie_cap(adev->pdev); in cik_pcie_gen3_enable() 1420 if (!gpu_pos) in cik_pcie_gen3_enable() 1431 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in cik_pcie_gen3_enable() 1437 pci_write_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable() 1461 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_DEVSTA, &tmp16); in cik_pcie_gen3_enable() 1487 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, &tmp16); in cik_pcie_gen3_enable() 1490 pci_write_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable() 1498 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL2, &tmp16); in cik_pcie_gen3_enable() 1516 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL2, &tmp16); in cik_pcie_gen3_enable() [all …]
|
/dragonfly/sys/dev/drm/radeon/ |
H A D | si.c | 7084 int bridge_pos, gpu_pos; in si_pcie_gen3_enable() local 7131 gpu_pos = pci_pcie_cap(rdev->pdev); in si_pcie_gen3_enable() 7132 if (!gpu_pos) in si_pcie_gen3_enable() 7143 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in si_pcie_gen3_enable() 7149 pci_write_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable() 7167 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_DEVSTA, &tmp16); in si_pcie_gen3_enable() 7193 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, &tmp16); in si_pcie_gen3_enable() 7196 pci_write_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable() 7204 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL2, &tmp16); in si_pcie_gen3_enable() 7221 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL2, &tmp16); in si_pcie_gen3_enable() [all …]
|
H A D | cik.c | 9471 int bridge_pos, gpu_pos; in cik_pcie_gen3_enable() local 9518 gpu_pos = pci_pcie_cap(rdev->pdev); in cik_pcie_gen3_enable() 9519 if (!gpu_pos) in cik_pcie_gen3_enable() 9530 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in cik_pcie_gen3_enable() 9536 pci_write_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable() 9554 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_DEVSTA, &tmp16); in cik_pcie_gen3_enable() 9580 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, &tmp16); in cik_pcie_gen3_enable() 9583 pci_write_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable() 9591 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL2, &tmp16); in cik_pcie_gen3_enable() 9608 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL2, &tmp16); in cik_pcie_gen3_enable() [all …]
|