Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/net/wireless/mediatek/mt76/
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()
/linux-6.6.21/drivers/infiniband/hw/hfi1/
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()
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.6.21/drivers/pci/pcie/
Daspm.c148 pcie_capability_clear_and_set_word(child, PCI_EXP_LNKCTL, in pcie_set_clkpm_nocheck()
184 pcie_capability_read_word(child, PCI_EXP_LNKCTL, &reg16); in pcie_clkpm_cap_init()
223 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, &reg16); in pcie_aspm_configure_common_clock()
229 pcie_capability_read_word(child, PCI_EXP_LNKCTL, in pcie_aspm_configure_common_clock()
244 pcie_capability_read_word(child, PCI_EXP_LNKCTL, &reg16); in pcie_aspm_configure_common_clock()
246 pcie_capability_clear_and_set_word(child, PCI_EXP_LNKCTL, in pcie_aspm_configure_common_clock()
251 pcie_capability_clear_and_set_word(parent, PCI_EXP_LNKCTL, in pcie_aspm_configure_common_clock()
259 pcie_capability_clear_and_set_word(child, PCI_EXP_LNKCTL, in pcie_aspm_configure_common_clock()
262 pcie_capability_clear_and_set_word(parent, PCI_EXP_LNKCTL, in pcie_aspm_configure_common_clock()
618 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, &parent_lnkctl); in pcie_aspm_cap_init()
[all …]
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Dreset.c150 linkctl = hca_header[(pcie_cap + PCI_EXP_LNKCTL) / 4]; in mlx4_reset()
152 PCI_EXP_LNKCTL, in mlx4_reset()
/linux-6.6.21/drivers/infiniband/hw/mthca/
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.6.21/drivers/staging/rtl8192e/rtl8192e/
Drtl_pci.c21 pcie_capability_read_word(priv->pdev, PCI_EXP_LNKCTL, &link_ctrl_reg); in _rtl92e_parse_pci_configuration()
/linux-6.6.21/drivers/net/wireless/ath/ath9k/
Dpci.c840 pcie_capability_clear_word(pdev, PCI_EXP_LNKCTL, in ath_pci_aspm_init()
847 pcie_capability_clear_word(parent, PCI_EXP_LNKCTL, in ath_pci_aspm_init()
870 ret = pcie_capability_read_word(parent, PCI_EXP_LNKCTL, &aspm); in ath_pci_aspm_init()
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
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()
Dsi.c2279 pcie_capability_set_word(root, PCI_EXP_LNKCTL, PCI_EXP_LNKCTL_HAWD); in si_pcie_gen3_enable()
2280 pcie_capability_set_word(adev->pdev, PCI_EXP_LNKCTL, PCI_EXP_LNKCTL_HAWD); in si_pcie_gen3_enable()
2303 pcie_capability_read_word(root, PCI_EXP_LNKCTL, in si_pcie_gen3_enable()
2306 PCI_EXP_LNKCTL, in si_pcie_gen3_enable()
2325 pcie_capability_clear_and_set_word(root, PCI_EXP_LNKCTL, in si_pcie_gen3_enable()
2329 pcie_capability_clear_and_set_word(adev->pdev, PCI_EXP_LNKCTL, in si_pcie_gen3_enable()
/linux-6.6.21/drivers/pci/controller/dwc/
Dpcie-intel-gw.c127 val = pcie_rc_cfg_rd(pcie, offset + PCI_EXP_LNKCTL); in intel_pcie_link_setup()
130 pcie_rc_cfg_wr(pcie, offset + PCI_EXP_LNKCTL, val); in intel_pcie_link_setup()
Dpcie-tegra194.c361 PCI_EXP_LNKCTL); in apply_bad_link_workaround()
364 PCI_EXP_LNKCTL, val); in apply_bad_link_workaround()
766 PCI_EXP_LNKCTL); in tegra_pcie_enable_system_interrupts()
768 dw_pcie_writew_dbi(&pcie->pci, pcie->pcie_cap_base + PCI_EXP_LNKCTL, in tegra_pcie_enable_system_interrupts()
/linux-6.6.21/drivers/pci/controller/cadence/
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.6.21/arch/powerpc/kernel/
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.6.21/drivers/net/wireless/ath/ath11k/
Dpci.c576 pcie_capability_read_word(ab_pci->pdev, PCI_EXP_LNKCTL, in ath11k_pci_aspm_disable()
585 pcie_capability_clear_word(ab_pci->pdev, PCI_EXP_LNKCTL, in ath11k_pci_aspm_disable()
594 pcie_capability_clear_and_set_word(ab_pci->pdev, PCI_EXP_LNKCTL, in ath11k_pci_aspm_restore()
/linux-6.6.21/drivers/misc/cardreader/
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()
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()
/linux-6.6.21/drivers/pci/controller/
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()
Dpcie-altera.c617 PCI_EXP_LNKCTL, &linkctl); in altera_pcie_retrain()
620 PCI_EXP_LNKCTL, linkctl); in altera_pcie_retrain()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Dfw_reset.c443 err = pcie_capability_set_word(bridge, PCI_EXP_LNKCTL, PCI_EXP_LNKCTL_LD); in mlx5_pci_link_toggle()
447 err = pcie_capability_clear_word(bridge, PCI_EXP_LNKCTL, PCI_EXP_LNKCTL_LD); in mlx5_pci_link_toggle()
/linux-6.6.21/drivers/net/wireless/ath/ath12k/
Dpci.c788 pcie_capability_read_word(ab_pci->pdev, PCI_EXP_LNKCTL, in ath12k_pci_aspm_disable()
797 pcie_capability_clear_word(ab_pci->pdev, PCI_EXP_LNKCTL, in ath12k_pci_aspm_disable()
806 pcie_capability_clear_and_set_word(ab_pci->pdev, PCI_EXP_LNKCTL, in ath12k_pci_aspm_restore()
/linux-6.6.21/drivers/net/wwan/iosm/
Diosm_ipc_pcie.c153 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &value); in ipc_pcie_check_aspm_enabled()
/linux-6.6.21/drivers/pci/
Dpci-bridge-emul.c218 [PCI_EXP_LNKCTL / 4] = {
Daccess.c385 case PCI_EXP_LNKCTL: in pcie_capability_reg_implemented()
Dpci-acpi.c257 pcie_capability_read_word(rp, PCI_EXP_LNKCTL, &lnkctl); in pcie_root_rcb_set()
328 pcie_capability_clear_and_set_word(dev, PCI_EXP_LNKCTL, in program_hpx_type2()

12