Home
last modified time | relevance | path

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

12

/linux/drivers/pci/controller/
H A Dpcie-rockchip-host.c35 status = rockchip_pcie_read(rockchip, PCIE_RC_CONFIG_CR + PCI_EXP_LNKCTL); in rockchip_pcie_enable_bw_int()
37 rockchip_pcie_write(rockchip, status, PCIE_RC_CONFIG_CR + PCI_EXP_LNKCTL); in rockchip_pcie_enable_bw_int()
44 status = rockchip_pcie_read(rockchip, PCIE_RC_CONFIG_CR + PCI_EXP_LNKCTL); in rockchip_pcie_clr_bw_int()
46 rockchip_pcie_write(rockchip, status, PCIE_RC_CONFIG_CR + PCI_EXP_LNKCTL); in rockchip_pcie_clr_bw_int()
304 status = rockchip_pcie_read(rockchip, PCIE_RC_CONFIG_CR + PCI_EXP_LNKCTL); in rockchip_pcie_host_init_port()
306 rockchip_pcie_write(rockchip, status, PCIE_RC_CONFIG_CR + PCI_EXP_LNKCTL); in rockchip_pcie_host_init_port()
309 status = rockchip_pcie_read(rockchip, PCIE_RC_CONFIG_CR + PCI_EXP_LNKCTL); in rockchip_pcie_host_init_port()
311 rockchip_pcie_write(rockchip, status, PCIE_RC_CONFIG_CR + PCI_EXP_LNKCTL); in rockchip_pcie_host_init_port()
340 status = rockchip_pcie_read(rockchip, PCIE_RC_CONFIG_CR + PCI_EXP_LNKCTL); in rockchip_pcie_host_init_port()
342 rockchip_pcie_write(rockchip, status, PCIE_RC_CONFIG_CR + PCI_EXP_LNKCTL); in rockchip_pcie_host_init_port()
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-rockchip-ep.c521 status = rockchip_pcie_read(rockchip, PCIE_EP_CONFIG_BASE + PCI_EXP_LNKCTL); in rockchip_pcie_ep_retrain_link()
523 rockchip_pcie_write(rockchip, status, PCIE_EP_CONFIG_BASE + PCI_EXP_LNKCTL); in rockchip_pcie_ep_retrain_link()
H A Dpcie-altera.c777 PCI_EXP_LNKCTL, &linkctl); in altera_pcie_retrain()
780 PCI_EXP_LNKCTL, linkctl); in altera_pcie_retrain()
H A Dpci-aardvark.c881 case PCI_EXP_LNKCTL: { in advk_pci_bridge_emul_pcie_conf_read()
915 case PCI_EXP_LNKCTL: in advk_pci_bridge_emul_pcie_conf_write()
/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()
/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()
/linux/drivers/net/wireless/ath/ath9k/
H A Dpci.c838 pcie_capability_clear_word(pdev, PCI_EXP_LNKCTL, in ath_pci_aspm_init()
845 pcie_capability_clear_word(parent, PCI_EXP_LNKCTL, in ath_pci_aspm_init()
868 ret = pcie_capability_read_word(parent, PCI_EXP_LNKCTL, &aspm); in ath_pci_aspm_init()
/linux/drivers/misc/cardreader/
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()
H A Drtsx_pcr.c91 pcie_capability_clear_and_set_word(pcr->pci, PCI_EXP_LNKCTL, in rtsx_comm_set_aspm()
1290 pcie_capability_clear_and_set_word(pcr->pci, PCI_EXP_LNKCTL, in rtsx_pci_init_hw()
1393 pcie_capability_read_word(pcr->pci, PCI_EXP_LNKCTL, &cfg_val); in rtsx_pci_init_chip()
/linux/drivers/ntb/hw/amd/
H A Dntb_hw_amd.c208 rc = pcie_capability_read_dword(pdev, PCI_EXP_LNKCTL, &stat); in amd_ntb_get_link_status()
226 PCI_EXP_LNKCTL, in amd_ntb_get_link_status()
242 rc = pcie_capability_read_dword(pdev, PCI_EXP_LNKCTL, &stat); in amd_ntb_get_link_status()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfw_reset.c540 err = pcie_capability_set_word(bridge, PCI_EXP_LNKCTL, PCI_EXP_LNKCTL_LD); in mlx5_pci_link_toggle()
544 err = pcie_capability_clear_word(bridge, PCI_EXP_LNKCTL, PCI_EXP_LNKCTL_LD); in mlx5_pci_link_toggle()
/linux/drivers/infiniband/hw/hfi1/
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()
/linux/drivers/net/wwan/iosm/
H A Diosm_ipc_pcie.c155 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &value); in ipc_pcie_check_aspm_enabled()
/linux/drivers/pci/
H A Dpci-bridge-emul.c218 [PCI_EXP_LNKCTL / 4] = {
H A Dpci.c1651 pcie_capability_read_word(dev, PCI_EXP_LNKCTL, &cap[i++]); in pci_save_pcie_state()
1690 pcie_capability_write_word(dev, PCI_EXP_LNKCTL, cap[i++]); in pci_restore_pcie_state()
4556 pcie_capability_set_word(pdev, PCI_EXP_LNKCTL, PCI_EXP_LNKCTL_RL); in pcie_retrain_link()
4563 pcie_capability_clear_word(pdev, PCI_EXP_LNKCTL, PCI_EXP_LNKCTL_RL); in pcie_retrain_link()
/linux/drivers/media/pci/cobalt/
H A Dcobalt-driver.c210 pcie_capability_read_word(pci_dev, PCI_EXP_LNKCTL, &ctrl); in cobalt_pcie_status_show()
/linux/arch/x86/pci/
H A Dfixup.c283 dev->pcie_cap + PCI_EXP_LNKCTL; in pcie_rootport_aspm_quirk()
/linux/include/uapi/linux/
H A Dpci_regs.h564 #define PCI_EXP_LNKCTL 0x10 /* Link Control */ macro
/linux/drivers/pci/hotplug/
H A Dpciehp_hpc.c339 pcie_capability_clear_and_set_word(pdev, PCI_EXP_LNKCTL, in __pciehp_link_set()
/linux/drivers/net/wireless/ath/ath10k/
H A Dpci.c1969 pcie_capability_clear_and_set_word(ar_pci->pdev, PCI_EXP_LNKCTL, in ath10k_pci_hif_start()
2826 pcie_capability_read_word(ar_pci->pdev, PCI_EXP_LNKCTL, in ath10k_pci_hif_power_up()
2828 pcie_capability_clear_word(ar_pci->pdev, PCI_EXP_LNKCTL, in ath10k_pci_hif_power_up()
/linux/drivers/net/ethernet/intel/e1000e/
H A Dnetdev.c6804 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &pdev_aspmc); in __e1000e_disable_aspm()
6808 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, in __e1000e_disable_aspm()
6834 pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &pdev_aspmc); in __e1000e_disable_aspm()
6844 pcie_capability_clear_word(pdev, PCI_EXP_LNKCTL, aspm_dis_mask); in __e1000e_disable_aspm()
6847 pcie_capability_clear_word(parent, PCI_EXP_LNKCTL, in __e1000e_disable_aspm()
/linux/drivers/net/wireless/intel/iwlegacy/
H A Dcommon.c1223 pcie_capability_read_word(il->pci_dev, PCI_EXP_LNKCTL, &lctl); in il_power_initialize()
4257 ret = pcie_capability_read_word(il->pci_dev, PCI_EXP_LNKCTL, &lctl); in il_apm_init()
/linux/drivers/net/ethernet/chelsio/cxgb3/
H A Dt3_hw.c3273 pcie_capability_read_word(adap->pdev, PCI_EXP_LNKCTL, &val); in config_pcie()
/linux/drivers/net/ethernet/broadcom/
H A Dtg3.c4032 pcie_capability_set_word(tp->pdev, PCI_EXP_LNKCTL, in tg3_power_down_prepare()
5065 pcie_capability_clear_word(tp->pdev, PCI_EXP_LNKCTL, in tg3_setup_copper_phy()
5068 pcie_capability_set_word(tp->pdev, PCI_EXP_LNKCTL, in tg3_setup_copper_phy()
16516 pcie_capability_read_word(tp->pdev, PCI_EXP_LNKCTL, &lnkctl); in tg3_get_invariants()

12