/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_ethtool.c | 679 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 …]
|
D | en_rep.c | 344 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()
|
D | en.h | 1150 struct ethtool_link_ksettings *link_ksettings); 1152 const struct ethtool_link_ksettings *link_ksettings);
|
/drivers/staging/fsl-dpaa2/ethsw/ |
D | ethsw-ethtool.c | 57 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/ |
D | hinic_ethtool.c | 36 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/ |
D | en_ethtool.c | 744 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/ |
D | ethtool.c | 210 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/ |
D | cxgb4_ethtool.c | 593 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/ |
D | ena_ethtool.c | 272 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/ |
D | cxgb4vf_main.c | 1439 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/ |
D | tun.c | 244 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()
|