Searched refs:lnkcap (Results 1 – 11 of 11) sorted by relevance
/linux/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 | 741 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 D | pci-bridge-emul.h | 50 __le32 lnkcap; member
|
H A D | pci.c | 6204 u32 lnkcap2, lnkcap; in pcie_get_speed_cap() local 6221 pcie_capability_read_dword(dev, PCI_EXP_LNKCAP, &lnkcap); in pcie_get_speed_cap() 6222 if ((lnkcap & PCI_EXP_LNKCAP_SLS) == PCI_EXP_LNKCAP_SLS_5_0GB) in pcie_get_speed_cap() 6224 else if ((lnkcap & PCI_EXP_LNKCAP_SLS) == PCI_EXP_LNKCAP_SLS_2_5GB) in pcie_get_speed_cap() 6240 u32 lnkcap; in pcie_get_width_cap() local 6242 pcie_capability_read_dword(dev, PCI_EXP_LNKCAP, &lnkcap); in pcie_get_width_cap() 6243 if (lnkcap) in pcie_get_width_cap() 6244 return FIELD_GET(PCI_EXP_LNKCAP_MLW, lnkcap); in pcie_get_width_cap()
|
H A D | quirks.c | 124 u32 lnkcap; in pcie_failed_link_retrain() local 127 pcie_capability_read_dword(dev, PCI_EXP_LNKCAP, &lnkcap); in pcie_failed_link_retrain() 129 lnkctl2 |= lnkcap & PCI_EXP_LNKCAP_SLS; in pcie_failed_link_retrain()
|
/linux/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 | 406 u32 lnkcap = readl(pcie->base + BRCM_PCIE_CAP_REGS + PCI_EXP_LNKCAP); in brcm_pcie_set_gen() local 408 lnkcap = (lnkcap & ~PCI_EXP_LNKCAP_SLS) | gen; in brcm_pcie_set_gen() 409 writel(lnkcap, pcie->base + BRCM_PCIE_CAP_REGS + PCI_EXP_LNKCAP); in brcm_pcie_set_gen()
|
/linux/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 | 2551 u32 lnkcap; in si_program_aspm() local 2554 pcie_capability_read_dword(root, PCI_EXP_LNKCAP, &lnkcap); in si_program_aspm() 2555 if (lnkcap & PCI_EXP_LNKCAP_CLKPM) in si_program_aspm()
|
/linux/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()
|