Lines Matching refs:ecmd
30 struct ethtool_cmd *ecmd) in atl1e_get_settings() argument
35 ecmd->supported = (SUPPORTED_10baseT_Half | in atl1e_get_settings()
42 ecmd->supported |= SUPPORTED_1000baseT_Full; in atl1e_get_settings()
44 ecmd->advertising = ADVERTISED_TP; in atl1e_get_settings()
46 ecmd->advertising |= ADVERTISED_Autoneg; in atl1e_get_settings()
47 ecmd->advertising |= hw->autoneg_advertised; in atl1e_get_settings()
49 ecmd->port = PORT_TP; in atl1e_get_settings()
50 ecmd->phy_address = 0; in atl1e_get_settings()
51 ecmd->transceiver = XCVR_INTERNAL; in atl1e_get_settings()
54 ethtool_cmd_speed_set(ecmd, adapter->link_speed); in atl1e_get_settings()
56 ecmd->duplex = DUPLEX_FULL; in atl1e_get_settings()
58 ecmd->duplex = DUPLEX_HALF; in atl1e_get_settings()
60 ethtool_cmd_speed_set(ecmd, SPEED_UNKNOWN); in atl1e_get_settings()
61 ecmd->duplex = DUPLEX_UNKNOWN; in atl1e_get_settings()
64 ecmd->autoneg = AUTONEG_ENABLE; in atl1e_get_settings()
69 struct ethtool_cmd *ecmd) in atl1e_set_settings() argument
77 if (ecmd->autoneg == AUTONEG_ENABLE) { in atl1e_set_settings()
80 if ((ecmd->advertising&ADVERTISE_1000_FULL)) { in atl1e_set_settings()
83 ecmd->advertising & AT_ADV_MASK; in atl1e_set_settings()
88 } else if (ecmd->advertising&ADVERTISE_1000_HALF) { in atl1e_set_settings()
93 ecmd->advertising & AT_ADV_MASK; in atl1e_set_settings()
95 ecmd->advertising = hw->autoneg_advertised | in atl1e_set_settings()