Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/pci/pcie/
Daspm.c133 pcie_capability_clear_and_set_word(child, PCI_EXP_LNKCTL, in pcie_set_clkpm_nocheck()
166 pcie_capability_read_word(child, PCI_EXP_LNKCTL, &reg16); in pcie_clkpm_cap_init()
206 pcie_capability_read_word(child, PCI_EXP_LNKCTL, &reg16); in pcie_aspm_configure_common_clock()
212 pcie_capability_write_word(child, PCI_EXP_LNKCTL, reg16); in pcie_aspm_configure_common_clock()
216 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, &reg16); in pcie_aspm_configure_common_clock()
222 pcie_capability_write_word(parent, PCI_EXP_LNKCTL, reg16); in pcie_aspm_configure_common_clock()
226 pcie_capability_write_word(parent, PCI_EXP_LNKCTL, reg16); in pcie_aspm_configure_common_clock()
244 pcie_capability_write_word(child, PCI_EXP_LNKCTL, in pcie_aspm_configure_common_clock()
246 pcie_capability_write_word(parent, PCI_EXP_LNKCTL, parent_reg); in pcie_aspm_configure_common_clock()
298 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &reg16); in pcie_get_aspm_reg()
[all …]
/linux-4.4.14/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-4.4.14/drivers/infiniband/hw/mthca/
Dmthca_reset.c251 linkctl = hca_header[(hca_pcie_cap + PCI_EXP_LNKCTL) / 4]; in mthca_reset()
252 if (pcie_capability_write_word(mdev->pdev, PCI_EXP_LNKCTL, in mthca_reset()
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Dcik.c1618 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in cik_pcie_gen3_enable()
1619 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in cik_pcie_gen3_enable()
1622 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
1625 pci_write_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
1653 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in cik_pcie_gen3_enable()
1654 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in cik_pcie_gen3_enable()
1670 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); in cik_pcie_gen3_enable()
1673 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
1675 pci_read_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, &tmp16); in cik_pcie_gen3_enable()
1678 pci_write_config_word(adev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
/linux-4.4.14/drivers/staging/rtl8192e/rtl8192e/
Drtl_pci.c32 pcie_capability_read_word(priv->pdev, PCI_EXP_LNKCTL, &LinkCtrlReg); in _rtl92e_parse_pci_configuration()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dpcie.c223 pcie_capability_read_word(dd->pcidev, PCI_EXP_LNKCTL, &dd->pcie_lnkctl); in hfi1_pcie_ddinit()
456 pcie_capability_write_word(dd->pcidev, PCI_EXP_LNKCTL, dd->pcie_lnkctl); in restore_pci_variables()
1083 pcie_capability_read_word(dd->pcidev, PCI_EXP_LNKCTL, &lnkctl); in do_pcie_gen3_transition()
1085 pcie_capability_write_word(dd->pcidev, PCI_EXP_LNKCTL, lnkctl); in do_pcie_gen3_transition()
/linux-4.4.14/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 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, &aspm); in ath_pci_aspm_init()
/linux-4.4.14/arch/powerpc/kernel/
Deeh_pe.c735 eeh_ops->read_config(pdn, cap + PCI_EXP_LNKCTL, 2, &val); in eeh_bridge_check_link()
737 eeh_ops->write_config(pdn, cap + PCI_EXP_LNKCTL, 2, val); in eeh_bridge_check_link()
/linux-4.4.14/drivers/pci/hotplug/
Dpciehp_hpc.c341 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &lnk_ctrl); in __pciehp_link_set()
348 pcie_capability_write_word(pdev, PCI_EXP_LNKCTL, lnk_ctrl); in __pciehp_link_set()
/linux-4.4.14/drivers/pci/host/
Dpci-mvebu.c71 PCISWCAP_EXP_LNKCTL = PCISWCAP + PCI_EXP_LNKCTL,
583 *value = mvebu_readl(port, PCIE_CAP_PCIEXP + PCI_EXP_LNKCTL); in mvebu_sw_pci_bridge_read()
739 mvebu_writel(port, value, PCIE_CAP_PCIEXP + PCI_EXP_LNKCTL); in mvebu_sw_pci_bridge_write()
Dpcie-altera.c98 pcie_capability_set_word(dev, PCI_EXP_LNKCTL, in altera_pcie_retrain()
/linux-4.4.14/arch/x86/pci/
Dfixup.c279 dev->pcie_cap + PCI_EXP_LNKCTL; in pcie_rootport_aspm_quirk()
/linux-4.4.14/drivers/mfd/
Drtsx_pcr.c71 rtsx_pci_update_cfg_byte(pcr, pcr->pcie_cap + PCI_EXP_LNKCTL, in rtsx_pci_enable_aspm()
77 rtsx_pci_update_cfg_byte(pcr, pcr->pcie_cap + PCI_EXP_LNKCTL, in rtsx_pci_disable_aspm()
1054 rtsx_pci_write_config_byte(pcr, pcr->pcie_cap + PCI_EXP_LNKCTL + 1, 1); in rtsx_pci_init_hw()
/linux-4.4.14/include/uapi/linux/
Dpci_regs.h521 #define PCI_EXP_LNKCTL 16 /* Link Control */ macro
/linux-4.4.14/drivers/gpu/drm/radeon/
Dsi.c7470 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in si_pcie_gen3_enable()
7471 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in si_pcie_gen3_enable()
7474 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable()
7477 pci_write_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable()
7499 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in si_pcie_gen3_enable()
7500 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in si_pcie_gen3_enable()
7516 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); in si_pcie_gen3_enable()
7519 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable()
7521 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, &tmp16); in si_pcie_gen3_enable()
7524 pci_write_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in si_pcie_gen3_enable()
Dcik.c9844 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in cik_pcie_gen3_enable()
9845 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in cik_pcie_gen3_enable()
9848 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
9851 pci_write_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
9873 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &bridge_cfg); in cik_pcie_gen3_enable()
9874 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, &gpu_cfg); in cik_pcie_gen3_enable()
9890 pci_read_config_word(root, bridge_pos + PCI_EXP_LNKCTL, &tmp16); in cik_pcie_gen3_enable()
9893 pci_write_config_word(root, bridge_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
9895 pci_read_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, &tmp16); in cik_pcie_gen3_enable()
9898 pci_write_config_word(rdev->pdev, gpu_pos + PCI_EXP_LNKCTL, tmp16); in cik_pcie_gen3_enable()
/linux-4.4.14/drivers/pci/
Daccess.c622 case PCI_EXP_LNKCTL: in pcie_capability_reg_implemented()
Dpci.c978 pcie_capability_read_word(dev, PCI_EXP_LNKCTL, &cap[i++]); in pci_save_pcie_state()
1000 pcie_capability_write_word(dev, PCI_EXP_LNKCTL, cap[i++]); in pci_restore_pcie_state()
Dprobe.c1448 pcie_capability_clear_and_set_word(dev, PCI_EXP_LNKCTL, in program_hpp_type2()
Dquirks.c4200 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &cap[i++]); in quirk_intel_qat_vf_cap()
/linux-4.4.14/drivers/media/pci/cobalt/
Dcobalt-driver.c222 pci_read_config_word(pci_dev, offset + PCI_EXP_LNKCTL, &ctrl); in cobalt_pcie_status_show()
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
Dpci.c1566 pcie_capability_write_word(ar_pci->pdev, PCI_EXP_LNKCTL, in ath10k_pci_hif_start()
2388 pcie_capability_read_word(ar_pci->pdev, PCI_EXP_LNKCTL, in ath10k_pci_hif_power_up()
2390 pcie_capability_write_word(ar_pci->pdev, PCI_EXP_LNKCTL, in ath10k_pci_hif_power_up()
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
Dnetdev.c6421 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &pdev_aspmc); in __e1000e_disable_aspm()
6425 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, in __e1000e_disable_aspm()
6451 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &pdev_aspmc); in __e1000e_disable_aspm()
6461 pcie_capability_clear_word(pdev, PCI_EXP_LNKCTL, aspm_dis_mask); in __e1000e_disable_aspm()
6464 pcie_capability_clear_word(parent, PCI_EXP_LNKCTL, in __e1000e_disable_aspm()
/linux-4.4.14/drivers/net/wireless/iwlegacy/
Dcommon.c1241 pcie_capability_read_word(il->pci_dev, PCI_EXP_LNKCTL, &lctl); in il_power_initialize()
4297 pcie_capability_read_word(il->pci_dev, PCI_EXP_LNKCTL, &lctl); in il_apm_init()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/
Dpci.c425 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &linkctrl_reg); in rtl_pci_parse_configuration()
/linux-4.4.14/drivers/net/wireless/iwlwifi/pcie/
Dtrans.c217 pcie_capability_read_word(trans_pcie->pci_dev, PCI_EXP_LNKCTL, &lctl); in iwl_pcie_apm_config()
/linux-4.4.14/drivers/net/ethernet/realtek/
Dr8169.c5609 pcie_capability_clear_word(pdev, PCI_EXP_LNKCTL, in rtl_disable_clock_request()
5615 pcie_capability_set_word(pdev, PCI_EXP_LNKCTL, in rtl_enable_clock_request()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
Dt3_hw.c3303 pcie_capability_read_word(adap->pdev, PCI_EXP_LNKCTL, &val); in config_pcie()
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dtg3.c4034 pcie_capability_set_word(tp->pdev, PCI_EXP_LNKCTL, in tg3_power_down_prepare()
5069 pcie_capability_clear_word(tp->pdev, PCI_EXP_LNKCTL, in tg3_setup_copper_phy()
5072 pcie_capability_set_word(tp->pdev, PCI_EXP_LNKCTL, in tg3_setup_copper_phy()
16398 pcie_capability_read_word(tp->pdev, PCI_EXP_LNKCTL, &lnkctl); in tg3_get_invariants()
/linux-4.4.14/drivers/net/ethernet/marvell/
Dsky2.c3356 sky2_pci_write16(hw, pdev->pcie_cap + PCI_EXP_LNKCTL, in sky2_reset()