Home
last modified time | relevance | path

Searched refs:link_ksettings (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch-ethtool.c59 struct ethtool_link_ksettings *link_ksettings) in dpaa2_switch_get_link_ksettings() argument
69 link_ksettings); in dpaa2_switch_get_link_ksettings()
90 link_ksettings->base.autoneg = AUTONEG_ENABLE; in dpaa2_switch_get_link_ksettings()
92 link_ksettings->base.duplex = DUPLEX_FULL; in dpaa2_switch_get_link_ksettings()
93 link_ksettings->base.speed = state.rate; in dpaa2_switch_get_link_ksettings()
101 const struct ethtool_link_ksettings *link_ksettings) in dpaa2_switch_set_link_ksettings() argument
113 link_ksettings); in dpaa2_switch_set_link_ksettings()
132 cfg.rate = link_ksettings->base.speed; in dpaa2_switch_set_link_ksettings()
133 if (link_ksettings->base.autoneg == AUTONEG_ENABLE) in dpaa2_switch_set_link_ksettings()
137 if (link_ksettings->base.duplex == DUPLEX_HALF) in dpaa2_switch_set_link_ksettings()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_ethtool.c952 link_ksettings->link_modes.supported);\
964 struct ethtool_link_ksettings *link_ksettings) in get_fec_supported_advertised() argument
991 link_ksettings->link_modes.advertising); in get_fec_supported_advertised()
997 struct ethtool_link_ksettings *link_ksettings, in ptys2ethtool_supported_advertised_port() argument
1007 ethtool_link_ksettings_add_link_mode(link_ksettings, in ptys2ethtool_supported_advertised_port()
1010 ethtool_link_ksettings_add_link_mode(link_ksettings, in ptys2ethtool_supported_advertised_port()
1020 ethtool_link_ksettings_add_link_mode(link_ksettings, in ptys2ethtool_supported_advertised_port()
1023 ethtool_link_ksettings_add_link_mode(link_ksettings, in ptys2ethtool_supported_advertised_port()
1032 ethtool_link_ksettings_add_link_mode(link_ksettings, in ptys2ethtool_supported_advertised_port()
1034 ethtool_link_ksettings_add_link_mode(link_ksettings, in ptys2ethtool_supported_advertised_port()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c728 struct ethtool_link_ksettings *link_ksettings) in ethtool_get_ptys_link_ksettings() argument
757 ethtool_link_ksettings_zero_link_mode(link_ksettings, supported); in ethtool_get_ptys_link_ksettings()
758 ethtool_link_ksettings_zero_link_mode(link_ksettings, advertising); in ethtool_get_ptys_link_ksettings()
760 ptys2ethtool_update_supported_port(link_ksettings->link_modes.supported, in ethtool_get_ptys_link_ksettings()
764 ptys2ethtool_update_link_modes(link_ksettings->link_modes.supported, in ethtool_get_ptys_link_ksettings()
768 ptys2ethtool_update_link_modes(link_ksettings->link_modes.advertising, in ethtool_get_ptys_link_ksettings()
771 ethtool_link_ksettings_add_link_mode(link_ksettings, supported, in ethtool_get_ptys_link_ksettings()
773 ethtool_link_ksettings_add_link_mode(link_ksettings, supported, in ethtool_get_ptys_link_ksettings()
777 ethtool_link_ksettings_add_link_mode(link_ksettings, in ethtool_get_ptys_link_ksettings()
780 ethtool_link_ksettings_add_link_mode(link_ksettings, in ethtool_get_ptys_link_ksettings()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
H A Dethtool.c209 struct ethtool_link_ksettings *link_ksettings) in mlx5i_get_link_ksettings() argument
222 ethtool_link_ksettings_zero_link_mode(link_ksettings, supported); in mlx5i_get_link_ksettings()
223 ethtool_link_ksettings_zero_link_mode(link_ksettings, advertising); in mlx5i_get_link_ksettings()
226 link_ksettings->base.speed = speed; in mlx5i_get_link_ksettings()
227 link_ksettings->base.duplex = speed == SPEED_UNKNOWN ? DUPLEX_UNKNOWN : DUPLEX_FULL; in mlx5i_get_link_ksettings()
229 link_ksettings->base.port = PORT_OTHER; in mlx5i_get_link_ksettings()
231 link_ksettings->base.autoneg = AUTONEG_DISABLE; in mlx5i_get_link_ksettings()
/linux/net/ethtool/
H A Dcommon.c475 struct ethtool_link_ksettings *link_ksettings, in convert_legacy_settings_to_link_ksettings() argument
480 memset(link_ksettings, 0, sizeof(*link_ksettings)); in convert_legacy_settings_to_link_ksettings()
491 link_ksettings->link_modes.supported, in convert_legacy_settings_to_link_ksettings()
494 link_ksettings->link_modes.advertising, in convert_legacy_settings_to_link_ksettings()
497 link_ksettings->link_modes.lp_advertising, in convert_legacy_settings_to_link_ksettings()
499 link_ksettings->base.speed in convert_legacy_settings_to_link_ksettings()
501 link_ksettings->base.duplex in convert_legacy_settings_to_link_ksettings()
503 link_ksettings->base.port in convert_legacy_settings_to_link_ksettings()
505 link_ksettings->base.phy_address in convert_legacy_settings_to_link_ksettings()
507 link_ksettings->base.autoneg in convert_legacy_settings_to_link_ksettings()
[all …]
H A Dioctl.c382 const struct ethtool_link_ksettings *link_ksettings) in convert_link_ksettings_to_legacy_settings() argument
395 link_ksettings->link_modes.supported); in convert_link_ksettings_to_legacy_settings()
398 link_ksettings->link_modes.advertising); in convert_link_ksettings_to_legacy_settings()
401 link_ksettings->link_modes.lp_advertising); in convert_link_ksettings_to_legacy_settings()
402 ethtool_cmd_speed_set(legacy_settings, link_ksettings->base.speed); in convert_link_ksettings_to_legacy_settings()
404 = link_ksettings->base.duplex; in convert_link_ksettings_to_legacy_settings()
406 = link_ksettings->base.port; in convert_link_ksettings_to_legacy_settings()
408 = link_ksettings->base.phy_address; in convert_link_ksettings_to_legacy_settings()
410 = link_ksettings->base.autoneg; in convert_link_ksettings_to_legacy_settings()
412 = link_ksettings->base.mdio_support; in convert_link_ksettings_to_legacy_settings()
[all …]
H A Dcommon.h45 struct ethtool_link_ksettings *link_ksettings,
/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_ethtool.c146 static void set_link_speed(struct ethtool_link_ksettings *link_ksettings, in set_link_speed() argument
151 link_ksettings->base.speed = SPEED_10; in set_link_speed()
155 link_ksettings->base.speed = SPEED_100; in set_link_speed()
159 link_ksettings->base.speed = SPEED_1000; in set_link_speed()
163 link_ksettings->base.speed = SPEED_10000; in set_link_speed()
167 link_ksettings->base.speed = SPEED_25000; in set_link_speed()
171 link_ksettings->base.speed = SPEED_40000; in set_link_speed()
175 link_ksettings->base.speed = SPEED_100000; in set_link_speed()
179 link_ksettings->base.speed = SPEED_UNKNOWN; in set_link_speed()
257 *link_ksettings) in hinic_get_link_ksettings()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_ethtool.c663 struct ethtool_link_ksettings *link_ksettings) in get_link_ksettings() argument
666 struct ethtool_link_settings *base = &link_ksettings->base; in get_link_ksettings()
675 ethtool_link_ksettings_zero_link_mode(link_ksettings, supported); in get_link_ksettings()
676 ethtool_link_ksettings_zero_link_mode(link_ksettings, advertising); in get_link_ksettings()
677 ethtool_link_ksettings_zero_link_mode(link_ksettings, lp_advertising); in get_link_ksettings()
692 link_ksettings->link_modes.supported); in get_link_ksettings()
697 link_ksettings->link_modes.advertising); in get_link_ksettings()
699 link_ksettings->link_modes.lp_advertising); in get_link_ksettings()
708 ethtool_link_ksettings_add_link_mode(link_ksettings, in get_link_ksettings()
711 ethtool_link_ksettings_add_link_mode(link_ksettings, in get_link_ksettings()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ethtool.c1085 struct ethtool_link_ksettings *link_ksettings) in otx2_get_fec_info() argument
1112 linkmode_or(link_ksettings->link_modes.advertising, in otx2_get_fec_info()
1113 link_ksettings->link_modes.advertising, in otx2_get_fec_info()
1116 linkmode_or(link_ksettings->link_modes.supported, in otx2_get_fec_info()
1117 link_ksettings->link_modes.supported, in otx2_get_fec_info()
1124 *link_ksettings) in otx2_get_link_mode_info()
1178 linkmode_copy(link_ksettings->link_modes.advertising, in otx2_get_link_mode_info()
1181 linkmode_copy(link_ksettings->link_modes.supported, in otx2_get_link_mode_info()
/linux/drivers/net/ethernet/amazon/ena/
H A Dena_ethtool.c441 struct ethtool_link_ksettings *link_ksettings) in ena_get_link_ksettings() argument
454 link_ksettings->base.speed = link->speed; in ena_get_link_ksettings()
457 ethtool_link_ksettings_add_link_mode(link_ksettings, in ena_get_link_ksettings()
459 ethtool_link_ksettings_add_link_mode(link_ksettings, in ena_get_link_ksettings()
463 link_ksettings->base.autoneg = in ena_get_link_ksettings()
467 link_ksettings->base.duplex = DUPLEX_FULL; in ena_get_link_ksettings()
/linux/drivers/leds/trigger/
H A Dledtrig-netdev.c493 link_ksettings.base.speed == SPEED_##link_speed) \
514 struct ethtool_link_ksettings link_ksettings; in netdev_trig_link_speed_visible() local
516 ethtool_params_from_link_mode(&link_ksettings, mode); in netdev_trig_link_speed_visible()
/linux/drivers/net/ethernet/chelsio/cxgb4vf/
H A Dcxgb4vf_main.c1437 struct ethtool_link_ksettings *link_ksettings) in cxgb4vf_get_link_ksettings() argument
1440 struct ethtool_link_settings *base = &link_ksettings->base; in cxgb4vf_get_link_ksettings()
1449 ethtool_link_ksettings_zero_link_mode(link_ksettings, supported); in cxgb4vf_get_link_ksettings()
1450 ethtool_link_ksettings_zero_link_mode(link_ksettings, advertising); in cxgb4vf_get_link_ksettings()
1451 ethtool_link_ksettings_zero_link_mode(link_ksettings, lp_advertising); in cxgb4vf_get_link_ksettings()
1466 link_ksettings->link_modes.supported); in cxgb4vf_get_link_ksettings()
1468 link_ksettings->link_modes.advertising); in cxgb4vf_get_link_ksettings()
1470 link_ksettings->link_modes.lp_advertising); in cxgb4vf_get_link_ksettings()
1482 ethtool_link_ksettings_add_link_mode(link_ksettings, in cxgb4vf_get_link_ksettings()
1485 ethtool_link_ksettings_add_link_mode(link_ksettings, in cxgb4vf_get_link_ksettings()
/linux/include/linux/
H A Dethtool.h267 struct ethtool_link_ksettings *link_ksettings);
1189 ethtool_params_from_link_mode(struct ethtool_link_ksettings *link_ksettings,
/linux/drivers/net/
H A Dtun.c213 struct ethtool_link_ksettings link_ksettings; member
2333 tun_default_link_ksettings(dev, &tun->link_ksettings); in tun_setup()
3587 memcpy(cmd, &tun->link_ksettings, sizeof(*cmd)); in tun_get_link_ksettings()
3596 memcpy(&tun->link_ksettings, cmd, sizeof(*cmd)); in tun_set_link_ksettings()