/openbmc/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | pci.c | 14 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 D | aspm.c | 69 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 D | pcie.c | 313 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 D | aspm.c | 148 pcie_capability_clear_and_set_word(child, PCI_EXP_LNKCTL, in pcie_set_clkpm_nocheck() 184 pcie_capability_read_word(child, PCI_EXP_LNKCTL, ®16); in pcie_clkpm_cap_init() 223 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, ®16); 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, ®16); 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 D | reset.c | 150 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 D | mthca_reset.c | 247 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 D | rtl_pci.c | 21 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 D | pci.c | 840 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 D | cik.c | 1577 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 D | si.c | 2279 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 D | pcie-intel-gw.c | 127 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 D | pcie-tegra194.c | 361 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 D | pcie-cadence-host.c | 139 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 D | eeh_pe.c | 669 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 D | pci.c | 576 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 D | rts5228.c | 477 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 D | rts5261.c | 555 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 D | pci-mvebu.c | 647 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 D | pcie-altera.c | 617 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 D | fw_reset.c | 446 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 D | pci.c | 803 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 D | iosm_ipc_pcie.c | 153 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &value); in ipc_pcie_check_aspm_enabled()
|
/openbmc/linux/drivers/pci/ |
H A D | pci-bridge-emul.c | 218 [PCI_EXP_LNKCTL / 4] = {
|
H A D | access.c | 385 case PCI_EXP_LNKCTL: in pcie_capability_reg_implemented()
|
/openbmc/qemu/hw/pci/ |
H A D | pcie.c | 352 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()
|