Home
last modified time | relevance | path

Searched refs:PCI_EXP_LNKCTL (Results 1 – 25 of 52) sorted by relevance

123

/linux-6.15/drivers/net/wireless/mediatek/mt76/
H A Dpci.c14 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &aspm_conf); in mt76_pci_disable_aspm()
17 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, in mt76_pci_disable_aspm()
42 pcie_capability_clear_word(pdev, PCI_EXP_LNKCTL, aspm_conf); in mt76_pci_disable_aspm()
44 pcie_capability_clear_word(parent, PCI_EXP_LNKCTL, in mt76_pci_disable_aspm()
55 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &aspm_conf); in mt76_pci_aspm_supported()
58 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, in mt76_pci_aspm_supported()
/linux-6.15/drivers/pci/pcie/
H A Daspm.c156 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &clnkctl); in pci_restore_aspm_l1ss_state()
157 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, &plnkctl); in pci_restore_aspm_l1ss_state()
160 pcie_capability_write_word(pdev, PCI_EXP_LNKCTL, in pci_restore_aspm_l1ss_state()
162 pcie_capability_write_word(parent, PCI_EXP_LNKCTL, in pci_restore_aspm_l1ss_state()
203 pcie_capability_write_word(pdev, PCI_EXP_LNKCTL, clnkctl); in pci_restore_aspm_l1ss_state()
332 pcie_capability_read_word(dev, PCI_EXP_LNKCTL, &lnkctl); in pci_update_aspm_saved_state()
354 pcie_capability_clear_and_set_word(child, PCI_EXP_LNKCTL, in pcie_set_clkpm_nocheck()
437 pcie_capability_read_word(child, PCI_EXP_LNKCTL, in pcie_aspm_configure_common_clock()
831 pcie_capability_write_word(child, PCI_EXP_LNKCTL, in pcie_aspm_cap_init()
833 pcie_capability_write_word(parent, PCI_EXP_LNKCTL, in pcie_aspm_cap_init()
[all …]
H A Dbwctrl.c215 pcie_capability_set_word(port, PCI_EXP_LNKCTL, in pcie_bwnotif_enable()
229 pcie_capability_clear_word(port, PCI_EXP_LNKCTL, in pcie_bwnotif_disable()
/linux-6.15/drivers/infiniband/hw/hfi1/
H A Daspm.c69 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()
H A Dpcie.c313 ret = pcie_capability_write_word(dd->pcidev, PCI_EXP_LNKCTL, in restore_pci_variables()
372 ret = pcie_capability_read_word(dd->pcidev, PCI_EXP_LNKCTL, in save_pci_variables()
/linux-6.15/drivers/net/ethernet/mellanox/mlx4/
H A Dreset.c150 linkctl = hca_header[(pcie_cap + PCI_EXP_LNKCTL) / 4]; in mlx4_reset()
152 PCI_EXP_LNKCTL, in mlx4_reset()
/linux-6.15/drivers/infiniband/hw/mthca/
H A Dmthca_reset.c247 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-6.15/drivers/pci/controller/dwc/
H A Dpcie-intel-gw.c126 val = pcie_rc_cfg_rd(pcie, offset + PCI_EXP_LNKCTL); in intel_pcie_link_setup()
129 pcie_rc_cfg_wr(pcie, offset + PCI_EXP_LNKCTL, val); in intel_pcie_link_setup()
H A Dpcie-tegra194.c350 PCI_EXP_LNKCTL); in apply_bad_link_workaround()
353 PCI_EXP_LNKCTL, val); in apply_bad_link_workaround()
759 PCI_EXP_LNKCTL); in tegra_pcie_enable_system_interrupts()
761 dw_pcie_writew_dbi(&pcie->pci, pcie->pcie_cap_base + PCI_EXP_LNKCTL, in tegra_pcie_enable_system_interrupts()
/linux-6.15/drivers/net/wireless/ath/ath9k/
H A Dpci.c838 pcie_capability_clear_word(pdev, PCI_EXP_LNKCTL, in ath_pci_aspm_init()
845 pcie_capability_clear_word(parent, PCI_EXP_LNKCTL, in ath_pci_aspm_init()
868 ret = pcie_capability_read_word(parent, PCI_EXP_LNKCTL, &aspm); in ath_pci_aspm_init()
/linux-6.15/drivers/gpu/drm/amd/amdgpu/
H A Dcik.c1577 pcie_capability_set_word(root, PCI_EXP_LNKCTL, PCI_EXP_LNKCTL_HAWD); in cik_pcie_gen3_enable()
1578 pcie_capability_set_word(adev->pdev, PCI_EXP_LNKCTL, PCI_EXP_LNKCTL_HAWD); in cik_pcie_gen3_enable()
1608 pcie_capability_read_word(root, PCI_EXP_LNKCTL, in cik_pcie_gen3_enable()
1611 PCI_EXP_LNKCTL, in cik_pcie_gen3_enable()
1631 pcie_capability_clear_and_set_word(root, PCI_EXP_LNKCTL, in cik_pcie_gen3_enable()
1635 pcie_capability_clear_and_set_word(adev->pdev, PCI_EXP_LNKCTL, in cik_pcie_gen3_enable()
H A Dsi.c2268 pcie_capability_set_word(root, PCI_EXP_LNKCTL, PCI_EXP_LNKCTL_HAWD); in si_pcie_gen3_enable()
2269 pcie_capability_set_word(adev->pdev, PCI_EXP_LNKCTL, PCI_EXP_LNKCTL_HAWD); in si_pcie_gen3_enable()
2292 pcie_capability_read_word(root, PCI_EXP_LNKCTL, in si_pcie_gen3_enable()
2295 PCI_EXP_LNKCTL, in si_pcie_gen3_enable()
2314 pcie_capability_clear_and_set_word(root, PCI_EXP_LNKCTL, in si_pcie_gen3_enable()
2318 pcie_capability_clear_and_set_word(adev->pdev, PCI_EXP_LNKCTL, in si_pcie_gen3_enable()
/linux-6.15/drivers/pci/controller/cadence/
H A Dpcie-cadence-host.c139 pcie_cap_off + PCI_EXP_LNKCTL); in cdns_pcie_retrain()
141 cdns_pcie_rp_writew(pcie, pcie_cap_off + PCI_EXP_LNKCTL, in cdns_pcie_retrain()
/linux-6.15/arch/powerpc/kernel/
H A Deeh_pe.c669 eeh_ops->read_config(edev, cap + PCI_EXP_LNKCTL, 2, &val); in eeh_bridge_check_link()
671 eeh_ops->write_config(edev, cap + PCI_EXP_LNKCTL, 2, val); in eeh_bridge_check_link()
/linux-6.15/drivers/misc/cardreader/
H A Drts5228.c477 pcie_capability_clear_and_set_word(pcr->pci, PCI_EXP_LNKCTL, in rts5228_enable_aspm()
489 pcie_capability_clear_and_set_word(pcr->pci, PCI_EXP_LNKCTL, in rts5228_disable_aspm()
H A Drts5261.c555 pcie_capability_clear_and_set_word(pcr->pci, PCI_EXP_LNKCTL, in rts5261_enable_aspm()
568 pcie_capability_clear_and_set_word(pcr->pci, PCI_EXP_LNKCTL, in rts5261_disable_aspm()
H A Drts5264.c618 pcie_capability_clear_and_set_word(pcr->pci, PCI_EXP_LNKCTL, in rts5264_enable_aspm()
631 pcie_capability_clear_and_set_word(pcr->pci, PCI_EXP_LNKCTL, in rts5264_disable_aspm()
/linux-6.15/drivers/pci/controller/
H A Dpci-mvebu.c647 case PCI_EXP_LNKCTL: in mvebu_pci_bridge_emul_pcie_conf_read()
649 *value = mvebu_readl(port, PCIE_CAP_PCIEXP + PCI_EXP_LNKCTL) | in mvebu_pci_bridge_emul_pcie_conf_read()
804 case PCI_EXP_LNKCTL: in mvebu_pci_bridge_emul_pcie_conf_write()
812 mvebu_writel(port, new, PCIE_CAP_PCIEXP + PCI_EXP_LNKCTL); in mvebu_pci_bridge_emul_pcie_conf_write()
H A Dpcie-altera.c777 PCI_EXP_LNKCTL, &linkctl); in altera_pcie_retrain()
780 PCI_EXP_LNKCTL, linkctl); in altera_pcie_retrain()
/linux-6.15/drivers/net/wireless/ath/ath11k/
H A Dpci.c591 pcie_capability_read_word(ab_pci->pdev, PCI_EXP_LNKCTL, in ath11k_pci_aspm_disable()
600 pcie_capability_clear_word(ab_pci->pdev, PCI_EXP_LNKCTL, in ath11k_pci_aspm_disable()
609 pcie_capability_clear_and_set_word(ab_pci->pdev, PCI_EXP_LNKCTL, in ath11k_pci_aspm_restore()
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfw_reset.c490 err = pcie_capability_set_word(bridge, PCI_EXP_LNKCTL, PCI_EXP_LNKCTL_LD); in mlx5_pci_link_toggle()
494 err = pcie_capability_clear_word(bridge, PCI_EXP_LNKCTL, PCI_EXP_LNKCTL_LD); in mlx5_pci_link_toggle()
/linux-6.15/drivers/net/wireless/realtek/rtlwifi/
H A Dpci.c153 pcie_capability_read_word(rtlpci->pdev, PCI_EXP_LNKCTL, &init_aspm); in _rtl_pci_update_default_setting()
172 pcie_capability_clear_and_set_word(rtlpci->pdev, PCI_EXP_LNKCTL, in _rtl_pci_platform_switch_device_pci_aspm()
187 pcie_capability_clear_and_set_word(rtlpci->pdev, PCI_EXP_LNKCTL, in _rtl_pci_switch_clk_req()
224 pcie_capability_read_word(rtlpci->pdev, PCI_EXP_LNKCTL, &tmp_u1b); in rtl_pci_disable_aspm()
308 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &linkctrl_reg); in rtl_pci_parse_configuration()
/linux-6.15/drivers/net/wwan/iosm/
H A Diosm_ipc_pcie.c155 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &value); in ipc_pcie_check_aspm_enabled()
/linux-6.15/drivers/pci/
H A Dpci-bridge-emul.c218 [PCI_EXP_LNKCTL / 4] = {
/linux-6.15/drivers/net/wireless/ath/ath12k/
H A Dpci.c925 pcie_capability_read_word(ab_pci->pdev, PCI_EXP_LNKCTL, in ath12k_pci_aspm_disable()
934 pcie_capability_clear_word(ab_pci->pdev, PCI_EXP_LNKCTL, in ath12k_pci_aspm_disable()
964 pcie_capability_clear_and_set_word(ab_pci->pdev, PCI_EXP_LNKCTL, in ath12k_pci_aspm_restore()

123