/kernel/linux/linux-6.6/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() 272 pcie->lnkcap = dw_pcie_readl_dbi(pci, offset + PCI_EXP_LNKCAP); in ls_pcie_ep_probe()
|
H A D | pcie-designware.c | 737 u32 lnkcap, lwsc, plc; in dw_pcie_link_set_max_link_width() local 776 lnkcap = dw_pcie_readl_dbi(pci, cap + PCI_EXP_LNKCAP); in dw_pcie_link_set_max_link_width() 777 lnkcap &= ~PCI_EXP_LNKCAP_MLW; in dw_pcie_link_set_max_link_width() 778 lnkcap |= FIELD_PREP(PCI_EXP_LNKCAP_MLW, num_lanes); 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()
|
/kernel/linux/linux-5.10/drivers/pci/ |
H A D | pci-bridge-emul.h | 50 __le32 lnkcap; member
|
H A D | pci.c | 5891 u32 lnkcap2, lnkcap; in pcie_get_speed_cap() local 5908 pcie_capability_read_dword(dev, PCI_EXP_LNKCAP, &lnkcap); in pcie_get_speed_cap() 5909 if ((lnkcap & PCI_EXP_LNKCAP_SLS) == PCI_EXP_LNKCAP_SLS_5_0GB) in pcie_get_speed_cap() 5911 else if ((lnkcap & PCI_EXP_LNKCAP_SLS) == PCI_EXP_LNKCAP_SLS_2_5GB) in pcie_get_speed_cap() 5927 u32 lnkcap; in pcie_get_width_cap() local 5929 pcie_capability_read_dword(dev, PCI_EXP_LNKCAP, &lnkcap); in pcie_get_width_cap() 5930 if (lnkcap) in pcie_get_width_cap() 5931 return (lnkcap & PCI_EXP_LNKCAP_MLW) >> 4; in pcie_get_width_cap()
|
/kernel/linux/linux-6.6/drivers/pci/ |
H A D | pci-bridge-emul.h | 50 __le32 lnkcap; member
|
H A D | pci.c | 6308 u32 lnkcap2, lnkcap; in pcie_get_speed_cap() local 6325 pcie_capability_read_dword(dev, PCI_EXP_LNKCAP, &lnkcap); in pcie_get_speed_cap() 6326 if ((lnkcap & PCI_EXP_LNKCAP_SLS) == PCI_EXP_LNKCAP_SLS_5_0GB) in pcie_get_speed_cap() 6328 else if ((lnkcap & PCI_EXP_LNKCAP_SLS) == PCI_EXP_LNKCAP_SLS_2_5GB) in pcie_get_speed_cap() 6344 u32 lnkcap; in pcie_get_width_cap() local 6346 pcie_capability_read_dword(dev, PCI_EXP_LNKCAP, &lnkcap); in pcie_get_width_cap() 6347 if (lnkcap) in pcie_get_width_cap() 6348 return FIELD_GET(PCI_EXP_LNKCAP_MLW, lnkcap); in pcie_get_width_cap()
|
H A D | quirks.c | 112 u32 lnkcap; in pcie_failed_link_retrain() local 115 pcie_capability_read_dword(dev, PCI_EXP_LNKCAP, &lnkcap); in pcie_failed_link_retrain() 117 lnkctl2 |= lnkcap & PCI_EXP_LNKCAP_SLS; in pcie_failed_link_retrain()
|
/kernel/linux/linux-6.6/drivers/cxl/core/ |
H A D | pci.c | 40 u32 lnkcap, port_num; in match_add_dports() local 50 &lnkcap)) in match_add_dports() 57 port_num = FIELD_GET(PCI_EXP_LNKCAP_PN, lnkcap); in match_add_dports()
|
/kernel/linux/linux-5.10/drivers/pci/controller/ |
H A D | pcie-brcmstb.c | 405 u32 lnkcap = readl(pcie->base + BRCM_PCIE_CAP_REGS + PCI_EXP_LNKCAP); in brcm_pcie_set_gen() local 407 lnkcap = (lnkcap & ~PCI_EXP_LNKCAP_SLS) | gen; in brcm_pcie_set_gen() 408 writel(lnkcap, pcie->base + BRCM_PCIE_CAP_REGS + PCI_EXP_LNKCAP); in brcm_pcie_set_gen()
|
/kernel/linux/linux-5.10/drivers/pci/pcie/ |
H A D | aspm.c | 318 static u32 calc_l0s_latency(u32 lnkcap) in calc_l0s_latency() argument 320 u32 encoding = (lnkcap & PCI_EXP_LNKCAP_L0SEL) >> 12; in calc_l0s_latency() 336 static u32 calc_l1_latency(u32 lnkcap) in calc_l1_latency() argument 338 u32 encoding = (lnkcap & PCI_EXP_LNKCAP_L1EL) >> 15; in calc_l1_latency()
|
/kernel/linux/linux-6.6/drivers/pci/pcie/ |
H A D | aspm.c | 268 static u32 calc_l0s_latency(u32 lnkcap) in calc_l0s_latency() argument 270 u32 encoding = (lnkcap & PCI_EXP_LNKCAP_L0SEL) >> 12; in calc_l0s_latency() 286 static u32 calc_l1_latency(u32 lnkcap) in calc_l1_latency() argument 288 u32 encoding = (lnkcap & PCI_EXP_LNKCAP_L1EL) >> 15; in calc_l1_latency()
|
/kernel/linux/linux-6.6/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 | 381 u32 lnkcap = readl(pcie->base + BRCM_PCIE_CAP_REGS + PCI_EXP_LNKCAP); in brcm_pcie_set_gen() local 383 lnkcap = (lnkcap & ~PCI_EXP_LNKCAP_SLS) | gen; in brcm_pcie_set_gen() 384 writel(lnkcap, pcie->base + BRCM_PCIE_CAP_REGS + PCI_EXP_LNKCAP); in brcm_pcie_set_gen()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | cik.c | 1724 u32 lnkcap; in cik_program_aspm() local 1727 pcie_capability_read_dword(root, PCI_EXP_LNKCAP, &lnkcap); in cik_program_aspm() 1728 if (lnkcap & PCI_EXP_LNKCAP_CLKPM) in cik_program_aspm()
|
H A D | si.c | 2447 u32 lnkcap; in si_program_aspm() local 2450 pcie_capability_read_dword(root, PCI_EXP_LNKCAP, &lnkcap); in si_program_aspm() 2451 if (lnkcap & PCI_EXP_LNKCAP_CLKPM) in si_program_aspm()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | cik.c | 1789 u32 lnkcap; in cik_program_aspm() local 1792 pcie_capability_read_dword(root, PCI_EXP_LNKCAP, &lnkcap); in cik_program_aspm() 1793 if (lnkcap & PCI_EXP_LNKCAP_CLKPM) in cik_program_aspm()
|
H A D | si.c | 2564 u32 lnkcap; in si_program_aspm() local 2567 pcie_capability_read_dword(root, PCI_EXP_LNKCAP, &lnkcap); in si_program_aspm() 2568 if (lnkcap & PCI_EXP_LNKCAP_CLKPM) in si_program_aspm()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
H A D | si.c | 7392 u32 lnkcap; in si_program_aspm() local 7395 pcie_capability_read_dword(root, PCI_EXP_LNKCAP, &lnkcap); in si_program_aspm() 7396 if (lnkcap & PCI_EXP_LNKCAP_CLKPM) in si_program_aspm()
|
H A D | cik.c | 9750 u32 lnkcap; in cik_program_aspm() local 9753 pcie_capability_read_dword(root, PCI_EXP_LNKCAP, &lnkcap); in cik_program_aspm() 9754 if (lnkcap & PCI_EXP_LNKCAP_CLKPM) in cik_program_aspm()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
H A D | si.c | 7384 u32 lnkcap; in si_program_aspm() local 7387 pcie_capability_read_dword(root, PCI_EXP_LNKCAP, &lnkcap); in si_program_aspm() 7388 if (lnkcap & PCI_EXP_LNKCAP_CLKPM) in si_program_aspm()
|
H A D | cik.c | 9732 u32 lnkcap; in cik_program_aspm() local 9735 pcie_capability_read_dword(root, PCI_EXP_LNKCAP, &lnkcap); in cik_program_aspm() 9736 if (lnkcap & PCI_EXP_LNKCAP_CLKPM) in cik_program_aspm()
|