| /linux-6.15/drivers/pci/controller/dwc/ |
| H A D | pci-layerscape-ep.c | 48 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 D | pcie-designware.c | 786 u32 lnkcap, lwsc, plc; in dw_pcie_link_set_max_link_width() local 825 lnkcap = dw_pcie_readl_dbi(pci, cap + PCI_EXP_LNKCAP); in dw_pcie_link_set_max_link_width() 826 lnkcap &= ~PCI_EXP_LNKCAP_MLW; in dw_pcie_link_set_max_link_width() 827 lnkcap |= FIELD_PREP(PCI_EXP_LNKCAP_MLW, num_lanes); in dw_pcie_link_set_max_link_width() 828 dw_pcie_writel_dbi(pci, cap + PCI_EXP_LNKCAP, lnkcap); in dw_pcie_link_set_max_link_width()
|
| /linux-6.15/drivers/pci/ |
| H A D | pci.h | 388 #define PCIE_LNKCAP_SLS2SPEED(lnkcap) \ argument 390 ((lnkcap) == PCI_EXP_LNKCAP_SLS_64_0GB ? PCIE_SPEED_64_0GT : \ 391 (lnkcap) == PCI_EXP_LNKCAP_SLS_32_0GB ? PCIE_SPEED_32_0GT : \ 392 (lnkcap) == PCI_EXP_LNKCAP_SLS_16_0GB ? PCIE_SPEED_16_0GT : \ 393 (lnkcap) == PCI_EXP_LNKCAP_SLS_8_0GB ? PCIE_SPEED_8_0GT : \ 394 (lnkcap) == PCI_EXP_LNKCAP_SLS_5_0GB ? PCIE_SPEED_5_0GT : \ 395 (lnkcap) == PCI_EXP_LNKCAP_SLS_2_5GB ? PCIE_SPEED_2_5GT : \
|
| H A D | pci-bridge-emul.h | 50 __le32 lnkcap; member
|
| H A D | pci.c | 6118 u32 lnkcap2, lnkcap; in pcie_get_supported_speeds() local 6129 pcie_capability_read_dword(dev, PCI_EXP_LNKCAP, &lnkcap); in pcie_get_supported_speeds() 6130 speeds &= GENMASK(lnkcap & PCI_EXP_LNKCAP_SLS, 0); in pcie_get_supported_speeds() 6137 if ((lnkcap & PCI_EXP_LNKCAP_SLS) == PCI_EXP_LNKCAP_SLS_5_0GB) in pcie_get_supported_speeds() 6139 else if ((lnkcap & PCI_EXP_LNKCAP_SLS) == PCI_EXP_LNKCAP_SLS_2_5GB) in pcie_get_supported_speeds() 6168 u32 lnkcap; in pcie_get_width_cap() local 6170 pcie_capability_read_dword(dev, PCI_EXP_LNKCAP, &lnkcap); in pcie_get_width_cap() 6171 if (lnkcap) in pcie_get_width_cap() 6172 return FIELD_GET(PCI_EXP_LNKCAP_MLW, lnkcap); in pcie_get_width_cap()
|
| H A D | quirks.c | 133 u32 lnkcap; in pcie_failed_link_retrain() local 136 pcie_capability_read_dword(dev, PCI_EXP_LNKCAP, &lnkcap); in pcie_failed_link_retrain() 137 ret = pcie_set_target_speed(dev, PCIE_LNKCAP_SLS2SPEED(lnkcap), false); in pcie_failed_link_retrain()
|
| /linux-6.15/drivers/pci/controller/ |
| H A D | pci-mvebu.c | 251 u32 ctrl, lnkcap, cmd, dev_rev, unmask, sspl; in mvebu_pcie_setup_hw() local 265 lnkcap = mvebu_readl(port, PCIE_CAP_PCIEXP + PCI_EXP_LNKCAP); in mvebu_pcie_setup_hw() 266 lnkcap &= ~PCI_EXP_LNKCAP_MLW; in mvebu_pcie_setup_hw() 267 lnkcap |= FIELD_PREP(PCI_EXP_LNKCAP_MLW, port->is_x4 ? 4 : 1); in mvebu_pcie_setup_hw() 268 mvebu_writel(port, lnkcap, PCIE_CAP_PCIEXP + PCI_EXP_LNKCAP); in mvebu_pcie_setup_hw()
|
| H A D | pcie-brcmstb.c | 415 u32 lnkcap = readl(pcie->base + PCIE_RC_CFG_PRIV1_LINK_CAPABILITY); in brcm_pcie_set_gen() local 417 u32p_replace_bits(&lnkcap, gen, PCI_EXP_LNKCAP_SLS); in brcm_pcie_set_gen() 418 writel(lnkcap, pcie->base + PCIE_RC_CFG_PRIV1_LINK_CAPABILITY); in brcm_pcie_set_gen()
|
| /linux-6.15/drivers/cxl/core/ |
| H A D | pci.c | 42 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-6.15/drivers/pci/pcie/ |
| H A D | aspm.c | 476 static u32 calc_l0s_latency(u32 lnkcap) in calc_l0s_latency() argument 478 u32 encoding = FIELD_GET(PCI_EXP_LNKCAP_L0SEL, lnkcap); in calc_l0s_latency() 494 static u32 calc_l1_latency(u32 lnkcap) in calc_l1_latency() argument 496 u32 encoding = FIELD_GET(PCI_EXP_LNKCAP_L1EL, lnkcap); in calc_l1_latency()
|
| /linux-6.15/drivers/gpu/drm/amd/amdgpu/ |
| H A D | cik.c | 1774 u32 lnkcap; in cik_program_aspm() local 1777 pcie_capability_read_dword(root, PCI_EXP_LNKCAP, &lnkcap); in cik_program_aspm() 1778 if (lnkcap & PCI_EXP_LNKCAP_CLKPM) in cik_program_aspm()
|
| H A D | si.c | 2540 u32 lnkcap; in si_program_aspm() local 2543 pcie_capability_read_dword(root, PCI_EXP_LNKCAP, &lnkcap); in si_program_aspm() 2544 if (lnkcap & PCI_EXP_LNKCAP_CLKPM) in si_program_aspm()
|
| /linux-6.15/drivers/gpu/drm/radeon/ |
| H A D | si.c | 7355 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 D | cik.c | 9722 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()
|