/Linux-v5.4/drivers/net/wireless/mediatek/mt76/ |
D | pci.c | 13 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &aspm_conf); in mt76_pci_disable_aspm() 16 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, in mt76_pci_disable_aspm() 41 pcie_capability_clear_word(pdev, PCI_EXP_LNKCTL, aspm_conf); in mt76_pci_disable_aspm() 43 pcie_capability_clear_word(parent, PCI_EXP_LNKCTL, in mt76_pci_disable_aspm()
|
/Linux-v5.4/drivers/pci/pcie/ |
D | bw_notification.c | 35 pcie_capability_read_word(dev, PCI_EXP_LNKCTL, &lnk_ctl); in pcie_enable_link_bandwidth_notification() 37 pcie_capability_write_word(dev, PCI_EXP_LNKCTL, lnk_ctl); in pcie_enable_link_bandwidth_notification() 44 pcie_capability_read_word(dev, PCI_EXP_LNKCTL, &lnk_ctl); in pcie_disable_link_bandwidth_notification() 46 pcie_capability_write_word(dev, PCI_EXP_LNKCTL, lnk_ctl); in pcie_disable_link_bandwidth_notification()
|
D | aspm.c | 156 pcie_capability_clear_and_set_word(child, PCI_EXP_LNKCTL, in pcie_set_clkpm_nocheck() 189 pcie_capability_read_word(child, PCI_EXP_LNKCTL, ®16); in pcie_clkpm_cap_init() 204 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, ®16); in pcie_retrain_link() 206 pcie_capability_write_word(parent, PCI_EXP_LNKCTL, reg16); in pcie_retrain_link() 214 pcie_capability_write_word(parent, PCI_EXP_LNKCTL, reg16); in pcie_retrain_link() 257 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, ®16); in pcie_aspm_configure_common_clock() 262 pcie_capability_read_word(child, PCI_EXP_LNKCTL, in pcie_aspm_configure_common_clock() 276 pcie_capability_read_word(child, PCI_EXP_LNKCTL, ®16); in pcie_aspm_configure_common_clock() 282 pcie_capability_write_word(child, PCI_EXP_LNKCTL, reg16); in pcie_aspm_configure_common_clock() 286 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, ®16); in pcie_aspm_configure_common_clock() [all …]
|
/Linux-v5.4/drivers/infiniband/hw/hfi1/ |
D | aspm.c | 69 pcie_capability_clear_and_set_word(parent, PCI_EXP_LNKCTL, in aspm_hw_enable_l1() 72 pcie_capability_clear_and_set_word(dd->pcidev, PCI_EXP_LNKCTL, in aspm_hw_enable_l1() 82 pcie_capability_clear_and_set_word(dd->pcidev, PCI_EXP_LNKCTL, in aspm_hw_disable_l1() 85 pcie_capability_clear_and_set_word(parent, PCI_EXP_LNKCTL, in aspm_hw_disable_l1()
|
D | pcie.c | 365 ret = pcie_capability_write_word(dd->pcidev, PCI_EXP_LNKCTL, in restore_pci_variables() 420 ret = pcie_capability_read_word(dd->pcidev, PCI_EXP_LNKCTL, in save_pci_variables()
|
/Linux-v5.4/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-v5.4/drivers/gpu/drm/amd/amdgpu/ |
D | cik.c | 1437 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in cik_pcie_gen3_enable() 1438 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in cik_pcie_gen3_enable() 1441 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable() 1444 pci_write_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable() 1472 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in cik_pcie_gen3_enable() 1473 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in cik_pcie_gen3_enable() 1489 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); in cik_pcie_gen3_enable() 1492 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable() 1494 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, &tmp16); in cik_pcie_gen3_enable() 1497 pci_write_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
|
D | si.c | 1685 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in si_pcie_gen3_enable() 1686 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in si_pcie_gen3_enable() 1689 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable() 1692 pci_write_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable() 1713 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in si_pcie_gen3_enable() 1714 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in si_pcie_gen3_enable() 1729 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); in si_pcie_gen3_enable() 1732 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable() 1734 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, &tmp16); in si_pcie_gen3_enable() 1737 pci_write_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable()
|
/Linux-v5.4/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-v5.4/drivers/staging/rtl8192e/rtl8192e/ |
D | rtl_pci.c | 21 pcie_capability_read_word(priv->pdev, PCI_EXP_LNKCTL, &LinkCtrlReg); in _rtl92e_parse_pci_configuration()
|
/Linux-v5.4/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-v5.4/drivers/pci/controller/ |
D | pci-mvebu.c | 453 case PCI_EXP_LNKCTL: in mvebu_pci_bridge_emul_pcie_conf_read() 454 *value = mvebu_readl(port, PCIE_CAP_PCIEXP + PCI_EXP_LNKCTL); in mvebu_pci_bridge_emul_pcie_conf_read() 539 case PCI_EXP_LNKCTL: in mvebu_pci_bridge_emul_pcie_conf_write() 548 mvebu_writel(port, new, PCIE_CAP_PCIEXP + PCI_EXP_LNKCTL); in mvebu_pci_bridge_emul_pcie_conf_write()
|
D | pcie-altera.c | 621 PCI_EXP_LNKCTL, &linkctl); in altera_pcie_retrain() 624 PCI_EXP_LNKCTL, linkctl); in altera_pcie_retrain()
|
D | pci-aardvark.c | 433 case PCI_EXP_LNKCTL: in advk_pci_bridge_emul_pcie_conf_read() 450 case PCI_EXP_LNKCTL: in advk_pci_bridge_emul_pcie_conf_write()
|
/Linux-v5.4/arch/powerpc/kernel/ |
D | eeh_pe.c | 737 eeh_ops->read_config(pdn, cap + PCI_EXP_LNKCTL, 2, &val); in eeh_bridge_check_link() 739 eeh_ops->write_config(pdn, cap + PCI_EXP_LNKCTL, 2, val); in eeh_bridge_check_link()
|
/Linux-v5.4/drivers/pci/ |
D | pci-bridge-emul.c | 208 [PCI_EXP_LNKCTL / 4] = {
|
D | access.c | 379 case PCI_EXP_LNKCTL: in pcie_capability_reg_implemented()
|
D | pci-acpi.c | 255 pcie_capability_read_word(rp, PCI_EXP_LNKCTL, &lnkctl); in pcie_root_rcb_set() 326 pcie_capability_clear_and_set_word(dev, PCI_EXP_LNKCTL, in program_hpx_type2()
|
/Linux-v5.4/drivers/pci/hotplug/ |
D | pciehp_hpc.c | 284 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &lnk_ctrl); in __pciehp_link_set() 291 pcie_capability_write_word(pdev, PCI_EXP_LNKCTL, lnk_ctrl); in __pciehp_link_set()
|
/Linux-v5.4/drivers/pci/controller/dwc/ |
D | pcie-tegra194.c | 336 PCI_EXP_LNKCTL); in apply_bad_link_workaround() 339 PCI_EXP_LNKCTL, val); in apply_bad_link_workaround() 605 PCI_EXP_LNKCTL); in tegra_pcie_enable_system_interrupts() 607 dw_pcie_writew_dbi(&pcie->pci, pcie->pcie_cap_base + PCI_EXP_LNKCTL, in tegra_pcie_enable_system_interrupts()
|
/Linux-v5.4/drivers/misc/cardreader/ |
D | rtsx_pcr.c | 61 rtsx_pci_update_cfg_byte(pcr, pcr->pcie_cap + PCI_EXP_LNKCTL, in rtsx_pci_enable_aspm() 67 rtsx_pci_update_cfg_byte(pcr, pcr->pcie_cap + PCI_EXP_LNKCTL, in rtsx_pci_disable_aspm() 1327 rtsx_pci_write_config_byte(pcr, pcr->pcie_cap + PCI_EXP_LNKCTL + 1, 1); in rtsx_pci_init_hw()
|
D | rts5260.c | 585 rtsx_pci_update_cfg_byte(pcr, pcr->pcie_cap + PCI_EXP_LNKCTL, in rts5260_set_aspm()
|
/Linux-v5.4/drivers/gpu/drm/radeon/ |
D | si.c | 7147 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in si_pcie_gen3_enable() 7148 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in si_pcie_gen3_enable() 7151 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable() 7154 pci_write_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable() 7176 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in si_pcie_gen3_enable() 7177 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in si_pcie_gen3_enable() 7193 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); in si_pcie_gen3_enable() 7196 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable() 7198 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, &tmp16); in si_pcie_gen3_enable() 7201 pci_write_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable()
|
/Linux-v5.4/arch/x86/pci/ |
D | fixup.c | 280 dev->pcie_cap + PCI_EXP_LNKCTL; in pcie_rootport_aspm_quirk()
|
/Linux-v5.4/include/uapi/linux/ |
D | pci_regs.h | 541 #define PCI_EXP_LNKCTL 16 /* Link Control */ macro
|