Home
last modified time | relevance | path

Searched refs:lnkcap (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/pci/controller/dwc/
H A Dpci-layerscape-ep.c48 u32 lnkcap; member
96 dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCAP, pcie->lnkcap); in ls_pcie_ep_event_handler()
276 pcie->lnkcap = dw_pcie_readl_dbi(pci, offset + PCI_EXP_LNKCAP); in ls_pcie_ep_probe()
H A Dpcie-designware.c741 u32 lnkcap, lwsc, plc; in dw_pcie_link_set_max_link_width() local
780 lnkcap = dw_pcie_readl_dbi(pci, cap + PCI_EXP_LNKCAP); in dw_pcie_link_set_max_link_width()
781 lnkcap &= ~PCI_EXP_LNKCAP_MLW; in dw_pcie_link_set_max_link_width()
782 lnkcap |= FIELD_PREP(PCI_EXP_LNKCAP_MLW, num_lanes); in dw_pcie_link_set_max_link_width()
783 dw_pcie_writel_dbi(pci, cap + PCI_EXP_LNKCAP, lnkcap); in dw_pcie_link_set_max_link_width()
/linux/drivers/pci/
H A Dpci-bridge-emul.h50 __le32 lnkcap; member
H A Dpci.c6225 u32 lnkcap2, lnkcap; in pcie_get_supported_speeds() local
6236 pcie_capability_read_dword(dev, PCI_EXP_LNKCAP, &lnkcap); in pcie_get_supported_speeds()
6237 speeds &= GENMASK(lnkcap & PCI_EXP_LNKCAP_SLS, 0); in pcie_get_supported_speeds()
6244 if ((lnkcap & PCI_EXP_LNKCAP_SLS) == PCI_EXP_LNKCAP_SLS_5_0GB) in pcie_get_supported_speeds()
6246 else if ((lnkcap & PCI_EXP_LNKCAP_SLS) == PCI_EXP_LNKCAP_SLS_2_5GB) in pcie_get_supported_speeds()
6275 u32 lnkcap; in pcie_get_width_cap() local
6277 pcie_capability_read_dword(dev, PCI_EXP_LNKCAP, &lnkcap); in pcie_get_width_cap()
6278 if (lnkcap) in pcie_get_width_cap()
6279 return FIELD_GET(PCI_EXP_LNKCAP_MLW, lnkcap); in pcie_get_width_cap()
/linux/drivers/cxl/core/
H A Dpci.c42 u32 lnkcap, port_num; in match_add_dports() local
52 &lnkcap)) in match_add_dports()
59 port_num = FIELD_GET(PCI_EXP_LNKCAP_PN, lnkcap); in match_add_dports()
/linux/drivers/gpu/drm/radeon/
H A Dsi.c7355 u32 lnkcap; in si_program_aspm() local
7358 pcie_capability_read_dword(root, PCI_EXP_LNKCAP, &lnkcap); in si_program_aspm()
7359 if (lnkcap & PCI_EXP_LNKCAP_CLKPM) in si_program_aspm()
H A Dcik.c9722 u32 lnkcap; in cik_program_aspm() local
9725 pcie_capability_read_dword(root, PCI_EXP_LNKCAP, &lnkcap); in cik_program_aspm()
9726 if (lnkcap & PCI_EXP_LNKCAP_CLKPM) in cik_program_aspm()