/Linux-v4.19/drivers/pci/pcie/ |
D | aspm.c | 159 pcie_capability_clear_and_set_word(child, PCI_EXP_LNKCTL, in pcie_set_clkpm_nocheck() 192 pcie_capability_read_word(child, PCI_EXP_LNKCTL, ®16); in pcie_clkpm_cap_init() 231 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, ®16); in pcie_aspm_configure_common_clock() 236 pcie_capability_read_word(child, PCI_EXP_LNKCTL, in pcie_aspm_configure_common_clock() 250 pcie_capability_read_word(child, PCI_EXP_LNKCTL, ®16); in pcie_aspm_configure_common_clock() 256 pcie_capability_write_word(child, PCI_EXP_LNKCTL, reg16); in pcie_aspm_configure_common_clock() 260 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, ®16); in pcie_aspm_configure_common_clock() 266 pcie_capability_write_word(parent, PCI_EXP_LNKCTL, reg16); in pcie_aspm_configure_common_clock() 270 pcie_capability_write_word(parent, PCI_EXP_LNKCTL, reg16); in pcie_aspm_configure_common_clock() 288 pcie_capability_write_word(child, PCI_EXP_LNKCTL, in pcie_aspm_configure_common_clock() [all …]
|
/Linux-v4.19/drivers/infiniband/hw/hfi1/ |
D | aspm.h | 116 pcie_capability_clear_and_set_word(parent, PCI_EXP_LNKCTL, in aspm_hw_enable_l1() 119 pcie_capability_clear_and_set_word(dd->pcidev, PCI_EXP_LNKCTL, in aspm_hw_enable_l1() 129 pcie_capability_clear_and_set_word(dd->pcidev, PCI_EXP_LNKCTL, in aspm_hw_disable_l1() 132 pcie_capability_clear_and_set_word(parent, PCI_EXP_LNKCTL, in aspm_hw_disable_l1()
|
D | pcie.c | 395 ret = pcie_capability_write_word(dd->pcidev, PCI_EXP_LNKCTL, in restore_pci_variables() 450 ret = pcie_capability_read_word(dd->pcidev, PCI_EXP_LNKCTL, in save_pci_variables()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/ |
D | reset.c | 150 linkctl = hca_header[(pcie_cap + PCI_EXP_LNKCTL) / 4]; in mlx4_reset() 152 PCI_EXP_LNKCTL, in mlx4_reset()
|
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/ |
D | cik.c | 1430 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in cik_pcie_gen3_enable() 1431 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in cik_pcie_gen3_enable() 1434 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable() 1437 pci_write_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable() 1465 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in cik_pcie_gen3_enable() 1466 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in cik_pcie_gen3_enable() 1482 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); in cik_pcie_gen3_enable() 1485 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, 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()
|
D | si.c | 1610 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in si_pcie_gen3_enable() 1611 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in si_pcie_gen3_enable() 1614 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable() 1617 pci_write_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable() 1638 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in si_pcie_gen3_enable() 1639 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in si_pcie_gen3_enable() 1654 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); in si_pcie_gen3_enable() 1657 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable() 1659 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, &tmp16); in si_pcie_gen3_enable() 1662 pci_write_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable()
|
/Linux-v4.19/drivers/infiniband/hw/mthca/ |
D | mthca_reset.c | 247 linkctl = hca_header[(hca_pcie_cap + PCI_EXP_LNKCTL) / 4]; in mthca_reset() 248 if (pcie_capability_write_word(mdev->pdev, PCI_EXP_LNKCTL, in mthca_reset()
|
/Linux-v4.19/drivers/staging/rtl8192e/rtl8192e/ |
D | rtl_pci.c | 32 pcie_capability_read_word(priv->pdev, PCI_EXP_LNKCTL, &LinkCtrlReg); in _rtl92e_parse_pci_configuration()
|
/Linux-v4.19/drivers/net/wireless/ath/ath9k/ |
D | pci.c | 839 pcie_capability_clear_word(pdev, PCI_EXP_LNKCTL, in ath_pci_aspm_init() 846 pcie_capability_clear_word(parent, PCI_EXP_LNKCTL, in ath_pci_aspm_init() 869 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, &aspm); in ath_pci_aspm_init()
|
/Linux-v4.19/drivers/pci/controller/ |
D | pcie-altera.c | 437 PCI_EXP_LNKCTL, &linkctl); in altera_pcie_retrain() 440 PCI_EXP_LNKCTL, linkctl); in altera_pcie_retrain()
|
D | pci-mvebu.c | 72 PCISWCAP_EXP_LNKCTL = PCISWCAP + PCI_EXP_LNKCTL, 604 *value = mvebu_readl(port, PCIE_CAP_PCIEXP + PCI_EXP_LNKCTL); in mvebu_sw_pci_bridge_read() 761 mvebu_writel(port, value, PCIE_CAP_PCIEXP + PCI_EXP_LNKCTL); in mvebu_sw_pci_bridge_write()
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | eeh_pe.c | 749 eeh_ops->read_config(pdn, cap + PCI_EXP_LNKCTL, 2, &val); in eeh_bridge_check_link() 751 eeh_ops->write_config(pdn, cap + PCI_EXP_LNKCTL, 2, val); in eeh_bridge_check_link()
|
/Linux-v4.19/drivers/pci/hotplug/ |
D | pciehp_hpc.c | 301 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &lnk_ctrl); in __pciehp_link_set() 308 pcie_capability_write_word(pdev, PCI_EXP_LNKCTL, lnk_ctrl); in __pciehp_link_set()
|
/Linux-v4.19/drivers/misc/cardreader/ |
D | rtsx_pcr.c | 73 rtsx_pci_update_cfg_byte(pcr, pcr->pcie_cap + PCI_EXP_LNKCTL, in rtsx_pci_enable_aspm() 79 rtsx_pci_update_cfg_byte(pcr, pcr->pcie_cap + PCI_EXP_LNKCTL, in rtsx_pci_disable_aspm() 1317 rtsx_pci_write_config_byte(pcr, pcr->pcie_cap + PCI_EXP_LNKCTL + 1, 1); in rtsx_pci_init_hw()
|
D | rts5249.c | 367 pcr->pcie_cap + PCI_EXP_LNKCTL, in rts5249_set_aspm()
|
D | rts5260.c | 634 rtsx_pci_update_cfg_byte(pcr, pcr->pcie_cap + PCI_EXP_LNKCTL, in rts5260_set_aspm()
|
/Linux-v4.19/drivers/pci/ |
D | access.c | 388 case PCI_EXP_LNKCTL: in pcie_capability_reg_implemented()
|
D | probe.c | 1856 pcie_capability_read_word(rp, PCI_EXP_LNKCTL, &lnkctl); in pcie_root_rcb_set() 1906 pcie_capability_clear_and_set_word(dev, PCI_EXP_LNKCTL, in program_hpp_type2()
|
/Linux-v4.19/drivers/gpu/drm/radeon/ |
D | si.c | 7143 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in si_pcie_gen3_enable() 7144 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in si_pcie_gen3_enable() 7147 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable() 7150 pci_write_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable() 7172 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in si_pcie_gen3_enable() 7173 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in si_pcie_gen3_enable() 7189 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); in si_pcie_gen3_enable() 7192 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable() 7194 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, &tmp16); in si_pcie_gen3_enable() 7197 pci_write_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable()
|
D | cik.c | 9560 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in cik_pcie_gen3_enable() 9561 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in cik_pcie_gen3_enable() 9564 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable() 9567 pci_write_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable() 9589 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in cik_pcie_gen3_enable() 9590 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in cik_pcie_gen3_enable() 9606 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); in cik_pcie_gen3_enable() 9609 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable() 9611 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, &tmp16); in cik_pcie_gen3_enable() 9614 pci_write_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
|
/Linux-v4.19/arch/x86/pci/ |
D | fixup.c | 280 dev->pcie_cap + PCI_EXP_LNKCTL; in pcie_rootport_aspm_quirk()
|
/Linux-v4.19/include/uapi/linux/ |
D | pci_regs.h | 535 #define PCI_EXP_LNKCTL 16 /* Link Control */ macro
|
/Linux-v4.19/drivers/media/pci/cobalt/ |
D | cobalt-driver.c | 213 pci_read_config_word(pci_dev, offset + PCI_EXP_LNKCTL, &ctrl); in cobalt_pcie_status_show()
|
/Linux-v4.19/drivers/net/wireless/ath/ath10k/ |
D | pci.c | 1946 pcie_capability_write_word(ar_pci->pdev, PCI_EXP_LNKCTL, in ath10k_pci_hif_start() 2799 pcie_capability_read_word(ar_pci->pdev, PCI_EXP_LNKCTL, in ath10k_pci_hif_power_up() 2801 pcie_capability_write_word(ar_pci->pdev, PCI_EXP_LNKCTL, in ath10k_pci_hif_power_up()
|
/Linux-v4.19/drivers/net/ethernet/intel/e1000e/ |
D | netdev.c | 6468 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &pdev_aspmc); in __e1000e_disable_aspm() 6472 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, in __e1000e_disable_aspm() 6498 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &pdev_aspmc); in __e1000e_disable_aspm() 6508 pcie_capability_clear_word(pdev, PCI_EXP_LNKCTL, aspm_dis_mask); in __e1000e_disable_aspm() 6511 pcie_capability_clear_word(parent, PCI_EXP_LNKCTL, in __e1000e_disable_aspm()
|