Home
last modified time | relevance | path

Searched refs:PCI_EXP_LNKSTA (Results 1 – 25 of 43) sorted by relevance

12

/openbmc/qemu/hw/pci/
H A Dpcie.c97 pci_set_word(exp_cap + PCI_EXP_LNKSTA, in pcie_cap_v1_fill()
105 pci_set_word(cmask + PCI_EXP_LNKSTA, 0); in pcie_cap_v1_fill()
513 pci_word_test_and_set_mask(exp_cap + PCI_EXP_LNKSTA, in pcie_cap_slot_plug_cb()
529 pci_word_test_and_set_mask(exp_cap + PCI_EXP_LNKSTA, in pcie_cap_slot_plug_cb()
568 pci_word_test_and_clear_mask(exp_cap + PCI_EXP_LNKSTA, in pcie_cap_slot_do_unplug()
1077 target->exp.exp_cap + PCI_EXP_LNKSTA, in pcie_sync_bridge_lnk()
1095 pci_word_test_and_clear_mask(exp_cap + PCI_EXP_LNKSTA, in pcie_sync_bridge_lnk()
1097 pci_word_test_and_set_mask(exp_cap + PCI_EXP_LNKSTA, lnksta & in pcie_sync_bridge_lnk()
/openbmc/linux/drivers/pci/controller/dwc/
H A Dpcie-tegra194.c320 val = dw_pcie_readw_dbi(pci, pcie->pcie_cap_base + PCI_EXP_LNKSTA); in tegra_pcie_icc_set()
348 val = dw_pcie_readw_dbi(pci, pcie->pcie_cap_base + PCI_EXP_LNKSTA); in apply_bad_link_workaround()
408 PCI_EXP_LNKSTA); in tegra_pcie_rp_irq_handler()
411 PCI_EXP_LNKSTA, val_w); in tegra_pcie_rp_irq_handler()
418 PCI_EXP_LNKSTA); in tegra_pcie_rp_irq_handler()
762 PCI_EXP_LNKSTA); in tegra_pcie_enable_system_interrupts()
928 PCI_EXP_LNKSTA); in tegra_pcie_dw_host_init()
930 dw_pcie_writew_dbi(pci, pcie->pcie_cap_base + PCI_EXP_LNKSTA, in tegra_pcie_dw_host_init()
1046 u32 val = dw_pcie_readw_dbi(pci, pcie->pcie_cap_base + PCI_EXP_LNKSTA); in tegra_pcie_dw_link_up()
1886 PCI_EXP_LNKSTA); in pex_ep_event_pex_rst_deassert()
[all …]
H A Dpcie-qcom.c1166 u16 val = readw(pci->dbi_base + offset + PCI_EXP_LNKSTA); in qcom_pcie_link_up()
1379 status = readw(pci->dbi_base + offset + PCI_EXP_LNKSTA); in qcom_pcie_icc_update()
H A Dpcie-qcom-ep.c293 status = readw(pci->dbi_base + offset + PCI_EXP_LNKSTA); in qcom_pcie_ep_icc_update()
H A Dpcie-designware.c666 val = dw_pcie_readw_dbi(pci, offset + PCI_EXP_LNKSTA); in dw_pcie_wait_for_link()
H A Dpci-imx6.c942 tmp = dw_pcie_readw_dbi(pci, offset + PCI_EXP_LNKSTA); in imx6_pcie_start_link()
/openbmc/u-boot/drivers/pci/
H A Dpcie_intel_fpga.c65 #define PCI_EXP_LNKSTA 18 /* Link Status */ macro
115 return !!(readw(RP_CFG_ADDR(pcie, RP_CAP_OFFSET + PCI_EXP_LNKSTA)) in intel_fpga_pcie_link_up()
/openbmc/linux/drivers/pci/controller/
H A Dpcie-altera.c144 PCI_EXP_LNKSTA); in s10_altera_pcie_link_up()
572 PCI_EXP_LNKSTA, &reg16); in altera_wait_link_retrain()
613 altera_read_cap_word(pcie, pcie->root_bus_nr, RP_DEVFN, PCI_EXP_LNKSTA, in altera_pcie_retrain()
H A Dpcie-iproc.c802 iproc_pci_raw_config_read32(pcie, 0, IPROC_PCI_EXP_CAP + PCI_EXP_LNKSTA, in iproc_pcie_check_link()
825 IPROC_PCI_EXP_CAP + PCI_EXP_LNKSTA, in iproc_pcie_check_link()
/openbmc/linux/drivers/pci/controller/cadence/
H A Dpcie-cadence-host.c91 lnk_stat = cdns_pcie_rp_readw(pcie, pcie_cap_off + PCI_EXP_LNKSTA); in cdns_pcie_host_training_complete()
136 lnk_stat = cdns_pcie_rp_readw(pcie, pcie_cap_off + PCI_EXP_LNKSTA); in cdns_pcie_retrain()
/openbmc/linux/drivers/media/pci/cobalt/
H A Dcobalt-driver.c211 pcie_capability_read_word(pci_dev, PCI_EXP_LNKSTA, &stat); in cobalt_pcie_status_show()
242 pcie_capability_read_word(pci_dev, PCI_EXP_LNKSTA, &link); in pcie_link_get_lanes()
/openbmc/linux/drivers/pci/hotplug/
H A Dpciehp_hpc.c240 ret = pcie_capability_read_word(pdev, PCI_EXP_LNKSTA, &lnk_status); in pciehp_check_link_active()
312 pcie_capability_read_word(pdev, PCI_EXP_LNKSTA, &lnk_status); in pciehp_check_link_status()
H A Dpnv_php.c784 pcie_capability_read_word(pdev, PCI_EXP_LNKSTA, &lsts); in pnv_php_interrupt()
/openbmc/linux/drivers/net/wwan/iosm/
H A Diosm_ipc_pcie.c173 pcie_capability_read_word(parent, PCI_EXP_LNKSTA, &link_status); in ipc_pcie_check_data_link_active()
/openbmc/linux/drivers/infiniband/hw/qib/
H A Dqib_pcie.c230 pcie_capability_read_word(dd->pcidev, PCI_EXP_LNKSTA, &linkstat); in qib_pcie_params()
/openbmc/linux/drivers/pci/
H A Daccess.c386 case PCI_EXP_LNKSTA: in pcie_capability_reg_implemented()
H A Dpci-sysfs.c212 err = pcie_capability_read_word(pci_dev, PCI_EXP_LNKSTA, &linkstat); in current_link_speed_show()
229 err = pcie_capability_read_word(pci_dev, PCI_EXP_LNKSTA, &linkstat); in current_link_width_show()
H A Dpci.c4975 pcie_capability_read_word(pdev, PCI_EXP_LNKSTA, &lnksta); in pcie_wait_for_link_status()
5027 pcie_capability_write_word(pdev, PCI_EXP_LNKSTA, PCI_EXP_LNKSTA_LBMS); in pcie_retrain_link()
5212 pcie_capability_read_word(dev, PCI_EXP_LNKSTA, &status); in pci_bridge_wait_for_secondary_bus()
6335 pcie_capability_read_word(dev, PCI_EXP_LNKSTA, &lnksta); in pcie_bandwidth_available()
/openbmc/linux/arch/powerpc/kernel/
H A Deeh_pe.c686 eeh_ops->read_config(edev, cap + PCI_EXP_LNKSTA, 2, &val); in eeh_bridge_check_link()
/openbmc/linux/drivers/pci/pcie/
H A Daspm.c213 pcie_capability_read_word(child, PCI_EXP_LNKSTA, &reg16); in pcie_aspm_configure_common_clock()
218 pcie_capability_read_word(parent, PCI_EXP_LNKSTA, &reg16); in pcie_aspm_configure_common_clock()
/openbmc/linux/include/uapi/linux/
H A Dpci_regs.h565 #define PCI_EXP_LNKSTA 0x12 /* Link Status */ macro
/openbmc/qemu/include/standard-headers/linux/
H A Dpci_regs.h566 #define PCI_EXP_LNKSTA 0x12 /* Link Status */ macro
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfw_reset.c463 err = pci_read_config_word(bridge, cap + PCI_EXP_LNKSTA, &reg16); in mlx5_pci_link_toggle()
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Dpcie.c220 ret = pcie_capability_read_word(dd->pcidev, PCI_EXP_LNKSTA, &linkstat); in update_lbus_info()
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A De1000_mac.c35 PCI_EXP_LNKSTA, in igb_get_bus_info_pcie()

12