PCI_EXP_LNKCAP_SLS
if ((linkcap & PCI_EXP_LNKCAP_SLS) != PCI_EXP_LNKCAP_SLS_8_0GB) {
linkcap & PCI_EXP_LNKCAP_SLS);
if ((lnk_cap_sls & PCI_EXP_LNKCAP_SLS) <= PCI_EXP_LNKCAP_SLS_2_5GB)
tmp &= ~PCI_EXP_LNKCAP_SLS;
phy_set_speed(imx_pcie->phy, FIELD_GET(PCI_EXP_LNKCAP_SLS, tmp));
tmp &= ~PCI_EXP_LNKCAP_SLS;
pci->max_link_speed = FIELD_GET(PCI_EXP_LNKCAP_SLS, cap);
link_speed = FIELD_GET(PCI_EXP_LNKCAP_SLS, cap);
cap &= ~((u32)PCI_EXP_LNKCAP_SLS);
orig = tmp & PCI_EXP_LNKCAP_SLS;
tmp &= ~PCI_EXP_LNKCAP_SLS;
if ((tmp & PCI_EXP_LNKCAP_SLS) != orig) {
tmp &= ~PCI_EXP_LNKCAP_SLS;
if ((linkcap & PCI_EXP_LNKCAP_SLS) <= PCI_EXP_LNKCAP_SLS_2_5GB)
u32p_replace_bits(&lnkcap, gen, PCI_EXP_LNKCAP_SLS);
speeds &= GENMASK(lnkcap & PCI_EXP_LNKCAP_SLS, 0);
if ((lnkcap & PCI_EXP_LNKCAP_SLS) == PCI_EXP_LNKCAP_SLS_5_0GB)
else if ((lnkcap & PCI_EXP_LNKCAP_SLS) == PCI_EXP_LNKCAP_SLS_2_5GB)
u32 lnkcap_sls = (lnkcap) & PCI_EXP_LNKCAP_SLS; \
bus->max_bus_speed = pcie_link_speed[linkcap & PCI_EXP_LNKCAP_SLS];
gai->pci.link_speed_max = FIELD_GET(PCI_EXP_LNKCAP_SLS, caps);
lspeed = FIELD_GET(PCI_EXP_LNKCAP_SLS, lstat);