Lines Matching refs:cmd

868 				 struct ethtool_link_ksettings *cmd)  in mlxsw_sp_port_get_link_supported()  argument
874 ethtool_link_ksettings_add_link_mode(cmd, supported, Asym_Pause); in mlxsw_sp_port_get_link_supported()
875 ethtool_link_ksettings_add_link_mode(cmd, supported, Autoneg); in mlxsw_sp_port_get_link_supported()
876 ethtool_link_ksettings_add_link_mode(cmd, supported, Pause); in mlxsw_sp_port_get_link_supported()
878 ops->from_ptys_supported_port(mlxsw_sp, eth_proto_cap, cmd); in mlxsw_sp_port_get_link_supported()
880 cmd->link_modes.supported); in mlxsw_sp_port_get_link_supported()
886 struct ethtool_link_ksettings *cmd) in mlxsw_sp_port_get_link_advertise() argument
895 ethtool_link_ksettings_add_link_mode(cmd, advertising, Autoneg); in mlxsw_sp_port_get_link_advertise()
897 cmd->link_modes.advertising); in mlxsw_sp_port_get_link_advertise()
952 struct ethtool_link_ksettings *cmd) in mlxsw_sp_port_get_link_ksettings() argument
970 mlxsw_sp_port_get_link_supported(mlxsw_sp, eth_proto_cap, cmd); in mlxsw_sp_port_get_link_ksettings()
972 mlxsw_sp_port_get_link_advertise(mlxsw_sp, eth_proto_admin, autoneg, cmd); in mlxsw_sp_port_get_link_ksettings()
974 cmd->base.autoneg = autoneg ? AUTONEG_ENABLE : AUTONEG_DISABLE; in mlxsw_sp_port_get_link_ksettings()
975 cmd->base.port = mlxsw_sp_port_connector_port(connector_type); in mlxsw_sp_port_get_link_ksettings()
977 eth_proto_oper, cmd); in mlxsw_sp_port_get_link_ksettings()
984 const struct ethtool_link_ksettings *cmd) in mlxsw_sp_port_set_link_ksettings() argument
1003 autoneg = cmd->base.autoneg == AUTONEG_ENABLE; in mlxsw_sp_port_set_link_ksettings()
1005 ops->to_ptys_advert_link(mlxsw_sp, cmd) : in mlxsw_sp_port_set_link_ksettings()
1007 cmd); in mlxsw_sp_port_set_link_ksettings()
1383 struct ethtool_link_ksettings *cmd) in mlxsw_sp1_from_ptys_supported_port() argument
1391 ethtool_link_ksettings_add_link_mode(cmd, supported, FIBRE); in mlxsw_sp1_from_ptys_supported_port()
1398 ethtool_link_ksettings_add_link_mode(cmd, supported, Backplane); in mlxsw_sp1_from_ptys_supported_port()
1430 struct ethtool_link_ksettings *cmd) in mlxsw_sp1_from_ptys_link_mode() argument
1435 cmd->base.speed = SPEED_UNKNOWN; in mlxsw_sp1_from_ptys_link_mode()
1436 cmd->base.duplex = DUPLEX_UNKNOWN; in mlxsw_sp1_from_ptys_link_mode()
1437 cmd->lanes = 0; in mlxsw_sp1_from_ptys_link_mode()
1445 ethtool_params_from_link_mode(cmd, in mlxsw_sp1_from_ptys_link_mode()
1474 const struct ethtool_link_ksettings *cmd) in mlxsw_sp1_to_ptys_advert_link() argument
1481 cmd->link_modes.advertising)) in mlxsw_sp1_to_ptys_advert_link()
1488 const struct ethtool_link_ksettings *cmd) in mlxsw_sp1_to_ptys_speed_lanes() argument
1493 if (cmd->lanes > width) in mlxsw_sp1_to_ptys_speed_lanes()
1497 if (cmd->base.speed == mlxsw_sp1_port_link_mode[i].speed) in mlxsw_sp1_to_ptys_speed_lanes()
1851 struct ethtool_link_ksettings *cmd) in mlxsw_sp2_from_ptys_supported_port() argument
1853 ethtool_link_ksettings_add_link_mode(cmd, supported, FIBRE); in mlxsw_sp2_from_ptys_supported_port()
1854 ethtool_link_ksettings_add_link_mode(cmd, supported, Backplane); in mlxsw_sp2_from_ptys_supported_port()
1896 struct ethtool_link_ksettings *cmd) in mlxsw_sp2_from_ptys_link_mode() argument
1901 cmd->base.speed = SPEED_UNKNOWN; in mlxsw_sp2_from_ptys_link_mode()
1902 cmd->base.duplex = DUPLEX_UNKNOWN; in mlxsw_sp2_from_ptys_link_mode()
1903 cmd->lanes = 0; in mlxsw_sp2_from_ptys_link_mode()
1911 ethtool_params_from_link_mode(cmd, in mlxsw_sp2_from_ptys_link_mode()
1955 const struct ethtool_link_ksettings *cmd) in mlxsw_sp2_to_ptys_advert_link() argument
1962 cmd->link_modes.advertising)) in mlxsw_sp2_to_ptys_advert_link()
1969 const struct ethtool_link_ksettings *cmd) in mlxsw_sp2_to_ptys_speed_lanes() argument
1976 if (cmd->lanes > width) in mlxsw_sp2_to_ptys_speed_lanes()
1980 if (cmd->base.speed == mlxsw_sp2_port_link_mode[i].speed) { in mlxsw_sp2_to_ptys_speed_lanes()
1983 if (!cmd->lanes) { in mlxsw_sp2_to_ptys_speed_lanes()
1990 } else if (cmd->lanes == link_mode.width) { in mlxsw_sp2_to_ptys_speed_lanes()