Lines Matching refs:cmd
129 struct ethtool_link_ksettings *cmd) in alx_get_link_ksettings() argument
147 cmd->base.port = PORT_TP; in alx_get_link_ksettings()
148 cmd->base.phy_address = 0; in alx_get_link_ksettings()
151 cmd->base.autoneg = AUTONEG_ENABLE; in alx_get_link_ksettings()
153 cmd->base.autoneg = AUTONEG_DISABLE; in alx_get_link_ksettings()
167 cmd->base.speed = hw->link_speed; in alx_get_link_ksettings()
168 cmd->base.duplex = hw->duplex; in alx_get_link_ksettings()
171 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in alx_get_link_ksettings()
173 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in alx_get_link_ksettings()
180 const struct ethtool_link_ksettings *cmd) in alx_set_link_ksettings() argument
189 cmd->link_modes.advertising); in alx_set_link_ksettings()
191 if (cmd->base.autoneg == AUTONEG_ENABLE) { in alx_set_link_ksettings()
196 adv_cfg = alx_speed_to_ethadv(cmd->base.speed, in alx_set_link_ksettings()
197 cmd->base.duplex); in alx_set_link_ksettings()