Lines Matching refs:cmd
21 struct ethtool_link_ksettings *cmd) in ehea_get_link_ksettings() argument
51 cmd->base.duplex = port->full_duplex == 1 ? in ehea_get_link_ksettings()
55 cmd->base.duplex = DUPLEX_UNKNOWN; in ehea_get_link_ksettings()
57 cmd->base.speed = speed; in ehea_get_link_ksettings()
59 if (cmd->base.speed == SPEED_10000) { in ehea_get_link_ksettings()
62 cmd->base.port = PORT_FIBRE; in ehea_get_link_ksettings()
70 cmd->base.port = PORT_TP; in ehea_get_link_ksettings()
73 cmd->base.autoneg = port->autoneg == 1 ? in ehea_get_link_ksettings()
76 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in ehea_get_link_ksettings()
78 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in ehea_get_link_ksettings()
85 const struct ethtool_link_ksettings *cmd) in ehea_set_link_ksettings() argument
91 if (cmd->base.autoneg == AUTONEG_ENABLE) { in ehea_set_link_ksettings()
96 switch (cmd->base.speed) { in ehea_set_link_ksettings()
98 if (cmd->base.duplex == DUPLEX_FULL) in ehea_set_link_ksettings()
105 if (cmd->base.duplex == DUPLEX_FULL) in ehea_set_link_ksettings()
112 if (cmd->base.duplex == DUPLEX_FULL) in ehea_set_link_ksettings()
119 if (cmd->base.duplex == DUPLEX_FULL) in ehea_set_link_ksettings()