/openbmc/linux/drivers/pci/controller/dwc/ |
H A D | pcie-fu740.c | 196 tmp = dw_pcie_readl_dbi(pci, cap_exp + PCI_EXP_LNKCAP); in fu740_pcie_start_link() 200 dw_pcie_writel_dbi(pci, cap_exp + PCI_EXP_LNKCAP, tmp); in fu740_pcie_start_link() 211 tmp = dw_pcie_readl_dbi(pci, cap_exp + PCI_EXP_LNKCAP); in fu740_pcie_start_link() 217 dw_pcie_writel_dbi(pci, cap_exp + PCI_EXP_LNKCAP, tmp); in fu740_pcie_start_link()
|
H A D | pci-layerscape-ep.c | 96 dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCAP, pcie->lnkcap); in ls_pcie_ep_event_handler() 272 pcie->lnkcap = dw_pcie_readl_dbi(pci, offset + PCI_EXP_LNKCAP); in ls_pcie_ep_probe()
|
H A D | pcie-qcom-ep.c | 465 val = dw_pcie_readl_dbi(pci, offset + PCI_EXP_LNKCAP); in qcom_pcie_perst_deassert() 468 dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCAP, val); in qcom_pcie_perst_deassert() 472 val = dw_pcie_readl_dbi(pci, offset + PCI_EXP_LNKCAP); in qcom_pcie_perst_deassert() 475 dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCAP, val); in qcom_pcie_perst_deassert()
|
H A D | pcie-designware.c | 704 cap = dw_pcie_readl_dbi(pci, offset + PCI_EXP_LNKCAP); in dw_pcie_link_set_max_speed() 731 dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCAP, cap | link_speed); in dw_pcie_link_set_max_speed() 776 lnkcap = dw_pcie_readl_dbi(pci, cap + PCI_EXP_LNKCAP); in dw_pcie_link_set_max_link_width() 779 dw_pcie_writel_dbi(pci, cap + PCI_EXP_LNKCAP, lnkcap); in dw_pcie_link_set_max_link_width()
|
H A D | pci-imx6.c | 885 tmp = dw_pcie_readl_dbi(pci, offset + PCI_EXP_LNKCAP); in imx6_pcie_start_link() 888 dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCAP, tmp); in imx6_pcie_start_link() 901 tmp = dw_pcie_readl_dbi(pci, offset + PCI_EXP_LNKCAP); in imx6_pcie_start_link() 904 dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCAP, tmp); in imx6_pcie_start_link()
|
H A D | pcie-qcom.c | 823 val = readl(pci->dbi_base + offset + PCI_EXP_LNKCAP); in qcom_pcie_post_init_2_3_3() 825 writel(val, pci->dbi_base + offset + PCI_EXP_LNKCAP); in qcom_pcie_post_init_2_3_3() 1148 val = readl(pci->dbi_base + offset + PCI_EXP_LNKCAP); in qcom_pcie_post_init_2_9_0() 1150 writel(val, pci->dbi_base + offset + PCI_EXP_LNKCAP); in qcom_pcie_post_init_2_9_0()
|
H A D | pcie-tegra194.c | 920 val = dw_pcie_readl_dbi(pci, pcie->pcie_cap_base + PCI_EXP_LNKCAP); in tegra_pcie_dw_host_init() 923 dw_pcie_writel_dbi(pci, pcie->pcie_cap_base + PCI_EXP_LNKCAP, val); in tegra_pcie_dw_host_init()
|
/openbmc/qemu/hw/pci/ |
H A D | pcie.c | 91 pci_set_long(exp_cap + PCI_EXP_LNKCAP, in pcie_cap_v1_fill() 119 pci_long_test_and_clear_mask(exp_cap + PCI_EXP_LNKCAP, in pcie_cap_fill_slot_lnk() 121 pci_long_test_and_set_mask(exp_cap + PCI_EXP_LNKCAP, in pcie_cap_fill_slot_lnk() 132 pci_long_test_and_set_mask(exp_cap + PCI_EXP_LNKCAP, in pcie_cap_fill_slot_lnk() 144 pci_long_test_and_set_mask(exp_cap + PCI_EXP_LNKCAP, in pcie_cap_fill_slot_lnk() 498 uint32_t lnkcap = pci_get_long(exp_cap + PCI_EXP_LNKCAP); in pcie_cap_slot_plug_cb() 560 uint32_t lnkcap = pci_get_long(exp_cap + PCI_EXP_LNKCAP); in pcie_cap_slot_do_unplug() 1071 uint16_t lnksta, lnkcap = pci_get_word(exp_cap + PCI_EXP_LNKCAP); in pcie_sync_bridge_lnk()
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | aspm.c | 35 pcie_capability_read_dword(dd->pcidev, PCI_EXP_LNKCAP, &dn); in aspm_hw_l1_supported() 38 pcie_capability_read_dword(parent, PCI_EXP_LNKCAP, &up); in aspm_hw_l1_supported()
|
H A D | pcie.c | 250 ret = pcie_capability_read_dword(dd->pcidev, PCI_EXP_LNKCAP, &linkcap); in pcie_speeds()
|
/openbmc/linux/drivers/pci/pcie/ |
H A D | aspm.c | 178 pcie_capability_read_dword(child, PCI_EXP_LNKCAP, ®32); in pcie_clkpm_cap_init() 385 pcie_capability_read_dword(link->pdev, PCI_EXP_LNKCAP, in pcie_aspm_check_latency() 387 pcie_capability_read_dword(dev, PCI_EXP_LNKCAP, in pcie_aspm_check_latency() 602 pcie_capability_read_dword(parent, PCI_EXP_LNKCAP, &parent_lnkcap); in pcie_aspm_cap_init() 603 pcie_capability_read_dword(child, PCI_EXP_LNKCAP, &child_lnkcap); in pcie_aspm_cap_init() 616 pcie_capability_read_dword(parent, PCI_EXP_LNKCAP, &parent_lnkcap); in pcie_aspm_cap_init() 617 pcie_capability_read_dword(child, PCI_EXP_LNKCAP, &child_lnkcap); in pcie_aspm_cap_init()
|
H A D | portdrv.c | 271 pcie_capability_read_dword(dev, PCI_EXP_LNKCAP, &linkcap); in get_port_device_capability()
|
/openbmc/linux/drivers/media/pci/cobalt/ |
H A D | cobalt-driver.c | 209 pcie_capability_read_dword(pci_dev, PCI_EXP_LNKCAP, &capa); in cobalt_pcie_status_show() 221 pcie_capability_read_dword(pci_bus_dev, PCI_EXP_LNKCAP, &capa); in cobalt_pcie_status_show() 253 pcie_capability_read_dword(pci_dev, PCI_EXP_LNKCAP, &link); in pcie_bus_link_get_lanes()
|
/openbmc/linux/drivers/pci/controller/ |
H A D | pci-mvebu.c | 265 lnkcap = mvebu_readl(port, PCIE_CAP_PCIEXP + PCI_EXP_LNKCAP); in mvebu_pcie_setup_hw() 268 mvebu_writel(port, lnkcap, PCIE_CAP_PCIEXP + PCI_EXP_LNKCAP); in mvebu_pcie_setup_hw() 636 case PCI_EXP_LNKCAP: in mvebu_pci_bridge_emul_pcie_conf_read() 643 *value = (mvebu_readl(port, PCIE_CAP_PCIEXP + PCI_EXP_LNKCAP) & in mvebu_pci_bridge_emul_pcie_conf_read()
|
H A D | pcie-brcmstb.c | 381 u32 lnkcap = readl(pcie->base + BRCM_PCIE_CAP_REGS + PCI_EXP_LNKCAP); in brcm_pcie_set_gen() 384 writel(lnkcap, pcie->base + BRCM_PCIE_CAP_REGS + PCI_EXP_LNKCAP); in brcm_pcie_set_gen()
|
H A D | pcie-altera.c | 608 altera_read_cap_word(pcie, pcie->root_bus_nr, RP_DEVFN, PCI_EXP_LNKCAP, in altera_pcie_retrain()
|
H A D | pcie-rcar-host.c | 471 rcar_rmw32(pcie, REXPCAP(PCI_EXP_LNKCAP), PCI_EXP_LNKCAP_DLLLARC, in rcar_pcie_hw_init()
|
/openbmc/linux/drivers/net/wwan/iosm/ |
H A D | iosm_ipc_pcie.c | 190 pcie_capability_read_dword(pdev, PCI_EXP_LNKCAP, &cap); in ipc_pcie_check_aspm_supported()
|
/openbmc/linux/drivers/pci/ |
H A D | pci-bridge-emul.c | 210 [PCI_EXP_LNKCAP / 4] = {
|
H A D | access.c | 384 case PCI_EXP_LNKCAP: in pcie_capability_reg_implemented()
|
H A D | probe.c | 820 pcie_capability_read_dword(bridge, PCI_EXP_LNKCAP, &linkcap); in pci_set_bus_speed() 1545 pcie_capability_read_dword(pdev, PCI_EXP_LNKCAP, ®32); in set_pcie_port_type()
|
/openbmc/linux/drivers/pci/controller/cadence/ |
H A D | pcie-cadence-host.c | 132 PCI_EXP_LNKCAP)); in cdns_pcie_retrain()
|
/openbmc/linux/include/uapi/linux/ |
H A D | pci_regs.h | 533 #define PCI_EXP_LNKCAP 0x0c /* Link Capabilities */ macro
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | pci_regs.h | 534 #define PCI_EXP_LNKCAP 0x0c /* Link Capabilities */ macro
|
/openbmc/linux/drivers/cxl/core/ |
H A D | pci.c | 49 if (pci_read_config_dword(pdev, pci_pcie_cap(pdev) + PCI_EXP_LNKCAP, in match_add_dports()
|