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