Lines Matching refs:kset
2098 struct ethtool_link_ksettings *kset) in phylink_get_ksettings() argument
2100 phylink_merge_link_mode(kset->link_modes.advertising, state->advertising); in phylink_get_ksettings()
2101 linkmode_copy(kset->link_modes.lp_advertising, state->lp_advertising); in phylink_get_ksettings()
2102 if (kset->base.rate_matching == RATE_MATCH_NONE) { in phylink_get_ksettings()
2103 kset->base.speed = state->speed; in phylink_get_ksettings()
2104 kset->base.duplex = state->duplex; in phylink_get_ksettings()
2106 kset->base.autoneg = state->an_enabled ? AUTONEG_ENABLE : in phylink_get_ksettings()
2120 struct ethtool_link_ksettings *kset) in phylink_ethtool_ksettings_get() argument
2127 phy_ethtool_ksettings_get(pl->phydev, kset); in phylink_ethtool_ksettings_get()
2129 kset->base.port = pl->link_port; in phylink_ethtool_ksettings_get()
2131 linkmode_copy(kset->link_modes.supported, pl->supported); in phylink_ethtool_ksettings_get()
2140 phylink_get_ksettings(&link_state, kset); in phylink_ethtool_ksettings_get()
2156 phylink_get_ksettings(&link_state, kset); in phylink_ethtool_ksettings_get()
2170 const struct ethtool_link_ksettings *kset) in phylink_ethtool_ksettings_set() argument
2197 return phy_ethtool_ksettings_set(pl->phydev, kset); in phylink_ethtool_ksettings_set()
2203 linkmode_and(config.advertising, kset->link_modes.advertising, in phylink_ethtool_ksettings_set()
2207 switch (kset->base.autoneg) { in phylink_ethtool_ksettings_set()
2212 s = phy_lookup_setting(kset->base.speed, kset->base.duplex, in phylink_ethtool_ksettings_set()
2254 config.an_enabled = kset->base.autoneg == AUTONEG_ENABLE; in phylink_ethtool_ksettings_set()