Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/net/wireless/mediatek/mt76/
Dpci.c13 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/
Dbw_notification.c35 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()
Daspm.c156 pcie_capability_clear_and_set_word(child, PCI_EXP_LNKCTL, in pcie_set_clkpm_nocheck()
189 pcie_capability_read_word(child, PCI_EXP_LNKCTL, &reg16); in pcie_clkpm_cap_init()
204 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, &reg16); 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, &reg16); 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, &reg16); 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, &reg16); in pcie_aspm_configure_common_clock()
[all …]
/Linux-v5.4/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.c365 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/
Dreset.c150 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/
Dcik.c1437 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()
Dsi.c1685 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/
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-v5.4/drivers/staging/rtl8192e/rtl8192e/
Drtl_pci.c21 pcie_capability_read_word(priv->pdev, PCI_EXP_LNKCTL, &LinkCtrlReg); in _rtl92e_parse_pci_configuration()
/Linux-v5.4/drivers/net/wireless/ath/ath9k/
Dpci.c839 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/
Dpci-mvebu.c453 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()
Dpcie-altera.c621 PCI_EXP_LNKCTL, &linkctl); in altera_pcie_retrain()
624 PCI_EXP_LNKCTL, linkctl); in altera_pcie_retrain()
Dpci-aardvark.c433 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/
Deeh_pe.c737 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/
Dpci-bridge-emul.c208 [PCI_EXP_LNKCTL / 4] = {
Daccess.c379 case PCI_EXP_LNKCTL: in pcie_capability_reg_implemented()
Dpci-acpi.c255 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/
Dpciehp_hpc.c284 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/
Dpcie-tegra194.c336 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/
Drtsx_pcr.c61 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()
Drts5260.c585 rtsx_pci_update_cfg_byte(pcr, pcr->pcie_cap + PCI_EXP_LNKCTL, in rts5260_set_aspm()
/Linux-v5.4/drivers/gpu/drm/radeon/
Dsi.c7147 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/
Dfixup.c280 dev->pcie_cap + PCI_EXP_LNKCTL; in pcie_rootport_aspm_quirk()
/Linux-v5.4/include/uapi/linux/
Dpci_regs.h541 #define PCI_EXP_LNKCTL 16 /* Link Control */ macro

12