Lines Matching refs:ecmd
3221 struct ethtool_cmd *ecmd) in atl1_get_settings() argument
3226 ecmd->supported = (SUPPORTED_10baseT_Half | in atl1_get_settings()
3232 ecmd->advertising = ADVERTISED_TP; in atl1_get_settings()
3235 ecmd->advertising |= ADVERTISED_Autoneg; in atl1_get_settings()
3237 ecmd->advertising |= ADVERTISED_Autoneg; in atl1_get_settings()
3238 ecmd->advertising |= in atl1_get_settings()
3245 ecmd->advertising |= (ADVERTISED_1000baseT_Full); in atl1_get_settings()
3247 ecmd->port = PORT_TP; in atl1_get_settings()
3248 ecmd->phy_address = 0; in atl1_get_settings()
3249 ecmd->transceiver = XCVR_INTERNAL; in atl1_get_settings()
3254 ethtool_cmd_speed_set(ecmd, link_speed); in atl1_get_settings()
3256 ecmd->duplex = DUPLEX_FULL; in atl1_get_settings()
3258 ecmd->duplex = DUPLEX_HALF; in atl1_get_settings()
3260 ethtool_cmd_speed_set(ecmd, SPEED_UNKNOWN); in atl1_get_settings()
3261 ecmd->duplex = DUPLEX_UNKNOWN; in atl1_get_settings()
3265 ecmd->autoneg = AUTONEG_ENABLE; in atl1_get_settings()
3267 ecmd->autoneg = AUTONEG_DISABLE; in atl1_get_settings()
3273 struct ethtool_cmd *ecmd) in atl1_set_settings() argument
3288 if (ecmd->autoneg == AUTONEG_ENABLE) in atl1_set_settings()
3291 u32 speed = ethtool_cmd_speed(ecmd); in atl1_set_settings()
3293 if (ecmd->duplex != DUPLEX_FULL) { in atl1_set_settings()
3302 if (ecmd->duplex == DUPLEX_FULL) in atl1_set_settings()
3307 if (ecmd->duplex == DUPLEX_FULL) in atl1_set_settings()
3315 ecmd->advertising = in atl1_set_settings()
3324 ecmd->advertising = in atl1_set_settings()
3329 ecmd->advertising = 0; in atl1_set_settings()