Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/
Den_ethtool.c679 struct ethtool_link_ksettings *link_ksettings) in get_fec_supported_advertised() argument
699 __set_bit(offset, link_ksettings->link_modes.supported); in get_fec_supported_advertised()
704 __set_bit(offset, link_ksettings->link_modes.advertising); in get_fec_supported_advertised()
709 static void ptys2ethtool_supported_advertised_port(struct ethtool_link_ksettings *link_ksettings, in ptys2ethtool_supported_advertised_port() argument
720 ethtool_link_ksettings_add_link_mode(link_ksettings, in ptys2ethtool_supported_advertised_port()
723 ethtool_link_ksettings_add_link_mode(link_ksettings, in ptys2ethtool_supported_advertised_port()
733 ethtool_link_ksettings_add_link_mode(link_ksettings, in ptys2ethtool_supported_advertised_port()
736 ethtool_link_ksettings_add_link_mode(link_ksettings, in ptys2ethtool_supported_advertised_port()
745 ethtool_link_ksettings_add_link_mode(link_ksettings, in ptys2ethtool_supported_advertised_port()
747 ethtool_link_ksettings_add_link_mode(link_ksettings, in ptys2ethtool_supported_advertised_port()
[all …]
Den_rep.c344 struct ethtool_link_ksettings *link_ksettings) in mlx5e_uplink_rep_get_link_ksettings() argument
348 return mlx5e_ethtool_get_link_ksettings(priv, link_ksettings); in mlx5e_uplink_rep_get_link_ksettings()
352 const struct ethtool_link_ksettings *link_ksettings) in mlx5e_uplink_rep_set_link_ksettings() argument
356 return mlx5e_ethtool_set_link_ksettings(priv, link_ksettings); in mlx5e_uplink_rep_set_link_ksettings()
Den.h1150 struct ethtool_link_ksettings *link_ksettings);
1152 const struct ethtool_link_ksettings *link_ksettings);
/drivers/staging/fsl-dpaa2/ethsw/
Dethsw-ethtool.c57 struct ethtool_link_ksettings *link_ksettings) in ethsw_get_link_ksettings() argument
77 link_ksettings->base.autoneg = AUTONEG_ENABLE; in ethsw_get_link_ksettings()
79 link_ksettings->base.duplex = DUPLEX_FULL; in ethsw_get_link_ksettings()
80 link_ksettings->base.speed = state.rate; in ethsw_get_link_ksettings()
88 const struct ethtool_link_ksettings *link_ksettings) in ethsw_set_link_ksettings() argument
108 cfg.rate = link_ksettings->base.speed; in ethsw_set_link_ksettings()
109 if (link_ksettings->base.autoneg == AUTONEG_ENABLE) in ethsw_set_link_ksettings()
113 if (link_ksettings->base.duplex == DUPLEX_HALF) in ethsw_set_link_ksettings()
/drivers/net/ethernet/huawei/hinic/
Dhinic_ethtool.c36 static void set_link_speed(struct ethtool_link_ksettings *link_ksettings, in set_link_speed() argument
41 link_ksettings->base.speed = SPEED_10; in set_link_speed()
45 link_ksettings->base.speed = SPEED_100; in set_link_speed()
49 link_ksettings->base.speed = SPEED_1000; in set_link_speed()
53 link_ksettings->base.speed = SPEED_10000; in set_link_speed()
57 link_ksettings->base.speed = SPEED_25000; in set_link_speed()
61 link_ksettings->base.speed = SPEED_40000; in set_link_speed()
65 link_ksettings->base.speed = SPEED_100000; in set_link_speed()
69 link_ksettings->base.speed = SPEED_UNKNOWN; in set_link_speed()
76 *link_ksettings) in hinic_get_link_ksettings()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c744 struct ethtool_link_ksettings *link_ksettings) in ethtool_get_ptys_link_ksettings() argument
773 ethtool_link_ksettings_zero_link_mode(link_ksettings, supported); in ethtool_get_ptys_link_ksettings()
774 ethtool_link_ksettings_zero_link_mode(link_ksettings, advertising); in ethtool_get_ptys_link_ksettings()
776 ptys2ethtool_update_supported_port(link_ksettings->link_modes.supported, in ethtool_get_ptys_link_ksettings()
780 ptys2ethtool_update_link_modes(link_ksettings->link_modes.supported, in ethtool_get_ptys_link_ksettings()
784 ptys2ethtool_update_link_modes(link_ksettings->link_modes.advertising, in ethtool_get_ptys_link_ksettings()
787 ethtool_link_ksettings_add_link_mode(link_ksettings, supported, in ethtool_get_ptys_link_ksettings()
789 ethtool_link_ksettings_add_link_mode(link_ksettings, supported, in ethtool_get_ptys_link_ksettings()
793 ethtool_link_ksettings_add_link_mode(link_ksettings, in ethtool_get_ptys_link_ksettings()
796 ethtool_link_ksettings_add_link_mode(link_ksettings, in ethtool_get_ptys_link_ksettings()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
Dethtool.c210 struct ethtool_link_ksettings *link_ksettings) in mlx5i_get_link_ksettings() argument
220 ethtool_link_ksettings_zero_link_mode(link_ksettings, supported); in mlx5i_get_link_ksettings()
221 ethtool_link_ksettings_zero_link_mode(link_ksettings, advertising); in mlx5i_get_link_ksettings()
227 link_ksettings->base.duplex = DUPLEX_FULL; in mlx5i_get_link_ksettings()
228 link_ksettings->base.port = PORT_OTHER; in mlx5i_get_link_ksettings()
230 link_ksettings->base.autoneg = AUTONEG_DISABLE; in mlx5i_get_link_ksettings()
232 link_ksettings->base.speed = speed; in mlx5i_get_link_ksettings()
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ethtool.c593 struct ethtool_link_ksettings *link_ksettings) in get_link_ksettings() argument
596 struct ethtool_link_settings *base = &link_ksettings->base; in get_link_ksettings()
605 ethtool_link_ksettings_zero_link_mode(link_ksettings, supported); in get_link_ksettings()
606 ethtool_link_ksettings_zero_link_mode(link_ksettings, advertising); in get_link_ksettings()
607 ethtool_link_ksettings_zero_link_mode(link_ksettings, lp_advertising); in get_link_ksettings()
622 link_ksettings->link_modes.supported); in get_link_ksettings()
627 link_ksettings->link_modes.advertising); in get_link_ksettings()
629 link_ksettings->link_modes.lp_advertising); in get_link_ksettings()
638 ethtool_link_ksettings_add_link_mode(link_ksettings, in get_link_ksettings()
641 ethtool_link_ksettings_add_link_mode(link_ksettings, in get_link_ksettings()
[all …]
/drivers/net/ethernet/amazon/ena/
Dena_ethtool.c272 struct ethtool_link_ksettings *link_ksettings) in ena_get_link_ksettings() argument
285 link_ksettings->base.speed = link->speed; in ena_get_link_ksettings()
288 ethtool_link_ksettings_add_link_mode(link_ksettings, in ena_get_link_ksettings()
290 ethtool_link_ksettings_add_link_mode(link_ksettings, in ena_get_link_ksettings()
294 link_ksettings->base.autoneg = in ena_get_link_ksettings()
298 link_ksettings->base.duplex = DUPLEX_FULL; in ena_get_link_ksettings()
/drivers/net/ethernet/chelsio/cxgb4vf/
Dcxgb4vf_main.c1439 struct ethtool_link_ksettings *link_ksettings) in cxgb4vf_get_link_ksettings() argument
1442 struct ethtool_link_settings *base = &link_ksettings->base; in cxgb4vf_get_link_ksettings()
1451 ethtool_link_ksettings_zero_link_mode(link_ksettings, supported); in cxgb4vf_get_link_ksettings()
1452 ethtool_link_ksettings_zero_link_mode(link_ksettings, advertising); in cxgb4vf_get_link_ksettings()
1453 ethtool_link_ksettings_zero_link_mode(link_ksettings, lp_advertising); in cxgb4vf_get_link_ksettings()
1468 link_ksettings->link_modes.supported); in cxgb4vf_get_link_ksettings()
1470 link_ksettings->link_modes.advertising); in cxgb4vf_get_link_ksettings()
1472 link_ksettings->link_modes.lp_advertising); in cxgb4vf_get_link_ksettings()
1484 ethtool_link_ksettings_add_link_mode(link_ksettings, in cxgb4vf_get_link_ksettings()
1487 ethtool_link_ksettings_add_link_mode(link_ksettings, in cxgb4vf_get_link_ksettings()
/drivers/net/
Dtun.c244 struct ethtool_link_ksettings link_ksettings; member
2310 tun_default_link_ksettings(dev, &tun->link_ksettings); in tun_setup()
3523 memcpy(cmd, &tun->link_ksettings, sizeof(*cmd)); in tun_get_link_ksettings()
3532 memcpy(&tun->link_ksettings, cmd, sizeof(*cmd)); in tun_set_link_ksettings()