Lines Matching refs:lks
622 struct ethtool_link_ksettings *lks = &pdata->phy.lks; in xgbe_an73_incompat_link() local
628 if (!XGBE_ADV(lks, 1000baseKX_Full) && in xgbe_an73_incompat_link()
629 !XGBE_ADV(lks, 2500baseX_Full)) in xgbe_an73_incompat_link()
637 if (!XGBE_ADV(lks, 10000baseKR_Full)) in xgbe_an73_incompat_link()
961 struct ethtool_link_ksettings lks; in xgbe_an37_init() local
964 pdata->phy_if.phy_impl.an_advertising(pdata, &lks); in xgbe_an37_init()
968 if (XGBE_ADV(&lks, Pause)) in xgbe_an37_init()
973 if (XGBE_ADV(&lks, Asym_Pause)) in xgbe_an37_init()
1010 struct ethtool_link_ksettings lks; in xgbe_an73_init() local
1013 pdata->phy_if.phy_impl.an_advertising(pdata, &lks); in xgbe_an73_init()
1017 if (XGBE_ADV(&lks, 10000baseR_FEC)) in xgbe_an73_init()
1026 if (XGBE_ADV(&lks, 10000baseKR_Full)) in xgbe_an73_init()
1031 if (XGBE_ADV(&lks, 1000baseKX_Full) || in xgbe_an73_init()
1032 XGBE_ADV(&lks, 2500baseX_Full)) in xgbe_an73_init()
1041 if (XGBE_ADV(&lks, Pause)) in xgbe_an73_init()
1046 if (XGBE_ADV(&lks, Asym_Pause)) in xgbe_an73_init()
1334 struct ethtool_link_ksettings *lks = &pdata->phy.lks; in xgbe_phy_status_result() local
1337 XGBE_ZERO_LP_ADV(lks); in xgbe_phy_status_result()
1573 struct ethtool_link_ksettings *lks = &pdata->phy.lks; in xgbe_phy_best_advertised_speed() local
1575 if (XGBE_ADV(lks, 10000baseKR_Full)) in xgbe_phy_best_advertised_speed()
1577 else if (XGBE_ADV(lks, 10000baseT_Full)) in xgbe_phy_best_advertised_speed()
1579 else if (XGBE_ADV(lks, 2500baseX_Full)) in xgbe_phy_best_advertised_speed()
1581 else if (XGBE_ADV(lks, 2500baseT_Full)) in xgbe_phy_best_advertised_speed()
1583 else if (XGBE_ADV(lks, 1000baseKX_Full)) in xgbe_phy_best_advertised_speed()
1585 else if (XGBE_ADV(lks, 1000baseT_Full)) in xgbe_phy_best_advertised_speed()
1587 else if (XGBE_ADV(lks, 100baseT_Full)) in xgbe_phy_best_advertised_speed()
1589 else if (XGBE_ADV(lks, 10baseT_Full)) in xgbe_phy_best_advertised_speed()
1602 struct ethtool_link_ksettings *lks = &pdata->phy.lks; in xgbe_phy_init() local
1622 XGBE_LM_COPY(lks, advertising, lks, supported); in xgbe_phy_init()
1626 if (XGBE_ADV(lks, Autoneg)) { in xgbe_phy_init()
1643 XGBE_CLR_ADV(lks, Pause); in xgbe_phy_init()
1644 XGBE_CLR_ADV(lks, Asym_Pause); in xgbe_phy_init()
1647 XGBE_SET_ADV(lks, Pause); in xgbe_phy_init()
1648 XGBE_SET_ADV(lks, Asym_Pause); in xgbe_phy_init()
1653 if (XGBE_ADV(lks, Asym_Pause)) in xgbe_phy_init()
1654 XGBE_CLR_ADV(lks, Asym_Pause); in xgbe_phy_init()
1656 XGBE_SET_ADV(lks, Asym_Pause); in xgbe_phy_init()