Lines Matching refs:link_ksettings
147 static void set_link_speed(struct ethtool_link_ksettings *link_ksettings, in set_link_speed() argument
152 link_ksettings->base.speed = SPEED_10; in set_link_speed()
156 link_ksettings->base.speed = SPEED_100; in set_link_speed()
160 link_ksettings->base.speed = SPEED_1000; in set_link_speed()
164 link_ksettings->base.speed = SPEED_10000; in set_link_speed()
168 link_ksettings->base.speed = SPEED_25000; in set_link_speed()
172 link_ksettings->base.speed = SPEED_40000; in set_link_speed()
176 link_ksettings->base.speed = SPEED_100000; in set_link_speed()
180 link_ksettings->base.speed = SPEED_UNKNOWN; in set_link_speed()
258 *link_ksettings) in hinic_get_link_ksettings()
268 ethtool_link_ksettings_zero_link_mode(link_ksettings, supported); in hinic_get_link_ksettings()
269 ethtool_link_ksettings_zero_link_mode(link_ksettings, advertising); in hinic_get_link_ksettings()
271 link_ksettings->base.speed = SPEED_UNKNOWN; in hinic_get_link_ksettings()
272 link_ksettings->base.autoneg = AUTONEG_DISABLE; in hinic_get_link_ksettings()
273 link_ksettings->base.duplex = DUPLEX_UNKNOWN; in hinic_get_link_ksettings()
280 link_ksettings->base.port = settings.port; in hinic_get_link_ksettings()
287 set_link_speed(link_ksettings, port_cap.speed); in hinic_get_link_ksettings()
288 link_ksettings->base.duplex = in hinic_get_link_ksettings()
294 ethtool_link_ksettings_add_link_mode(link_ksettings, in hinic_get_link_ksettings()
298 link_ksettings->base.autoneg = AUTONEG_ENABLE; in hinic_get_link_ksettings()
325 linkmode_copy(link_ksettings->link_modes.supported, in hinic_get_link_ksettings()
327 linkmode_copy(link_ksettings->link_modes.advertising, in hinic_get_link_ksettings()