Home
last modified time | relevance | path

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

123

/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/linux/drivers/pci/pcie/
H A 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()
692 pcie_capability_clear_word(child, PCI_EXP_LNKCTL, in pcie_config_aspm_l1ss()
694 pcie_capability_clear_word(parent, PCI_EXP_LNKCTL, in pcie_config_aspm_l1ss()
[all …]
/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/linux/drivers/staging/rtl8192e/rtl8192e/
H A Drtl_pci.c21 pcie_capability_read_word(priv->pdev, PCI_EXP_LNKCTL, &link_ctrl_reg); in _rtl92e_parse_pci_configuration()
/openbmc/linux/drivers/net/wireless/ath/ath9k/
H A 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()
/openbmc/linux/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.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()
/openbmc/linux/drivers/pci/controller/dwc/
H A 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()
H A 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()
/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/linux/drivers/net/wireless/ath/ath11k/
H A 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()
/openbmc/linux/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()
/openbmc/linux/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.c617 PCI_EXP_LNKCTL, &linkctl); in altera_pcie_retrain()
620 PCI_EXP_LNKCTL, linkctl); in altera_pcie_retrain()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfw_reset.c446 err = pcie_capability_set_word(bridge, PCI_EXP_LNKCTL, PCI_EXP_LNKCTL_LD); in mlx5_pci_link_toggle()
450 err = pcie_capability_clear_word(bridge, PCI_EXP_LNKCTL, PCI_EXP_LNKCTL_LD); in mlx5_pci_link_toggle()
/openbmc/linux/drivers/net/wireless/ath/ath12k/
H A Dpci.c803 pcie_capability_read_word(ab_pci->pdev, PCI_EXP_LNKCTL, in ath12k_pci_aspm_disable()
812 pcie_capability_clear_word(ab_pci->pdev, PCI_EXP_LNKCTL, in ath12k_pci_aspm_disable()
821 pcie_capability_clear_and_set_word(ab_pci->pdev, PCI_EXP_LNKCTL, in ath12k_pci_aspm_restore()
/openbmc/linux/drivers/net/wwan/iosm/
H A Diosm_ipc_pcie.c153 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &value); in ipc_pcie_check_aspm_enabled()
/openbmc/linux/drivers/pci/
H A Dpci-bridge-emul.c218 [PCI_EXP_LNKCTL / 4] = {
H A Daccess.c385 case PCI_EXP_LNKCTL: in pcie_capability_reg_implemented()
/openbmc/qemu/hw/pci/
H A Dpcie.c352 pci_long_test_and_set_mask(dev->wmask + pos + PCI_EXP_LNKCTL, in pcie_cap_lnkctl_init()
358 uint8_t *lnkctl = dev->config + dev->exp.exp_cap + PCI_EXP_LNKCTL; in pcie_cap_lnkctl_reset()

123