Lines Matching refs:ecmd
30 struct ethtool_cmd *ecmd) in atl1c_get_settings() argument
35 ecmd->supported = (SUPPORTED_10baseT_Half | in atl1c_get_settings()
42 ecmd->supported |= SUPPORTED_1000baseT_Full; in atl1c_get_settings()
44 ecmd->advertising = ADVERTISED_TP; in atl1c_get_settings()
46 ecmd->advertising |= hw->autoneg_advertised; in atl1c_get_settings()
48 ecmd->port = PORT_TP; in atl1c_get_settings()
49 ecmd->phy_address = 0; in atl1c_get_settings()
50 ecmd->transceiver = XCVR_INTERNAL; in atl1c_get_settings()
53 ethtool_cmd_speed_set(ecmd, adapter->link_speed); in atl1c_get_settings()
55 ecmd->duplex = DUPLEX_FULL; in atl1c_get_settings()
57 ecmd->duplex = DUPLEX_HALF; in atl1c_get_settings()
59 ethtool_cmd_speed_set(ecmd, SPEED_UNKNOWN); in atl1c_get_settings()
60 ecmd->duplex = DUPLEX_UNKNOWN; in atl1c_get_settings()
63 ecmd->autoneg = AUTONEG_ENABLE; in atl1c_get_settings()
68 struct ethtool_cmd *ecmd) in atl1c_set_settings() argument
77 if (ecmd->autoneg == AUTONEG_ENABLE) { in atl1c_set_settings()
80 u32 speed = ethtool_cmd_speed(ecmd); in atl1c_set_settings()
82 if (ecmd->duplex != DUPLEX_FULL) { in atl1c_set_settings()
91 if (ecmd->duplex == DUPLEX_FULL) in atl1c_set_settings()
96 if (ecmd->duplex == DUPLEX_FULL) in atl1c_set_settings()