Lines Matching refs:ecmd
64 struct ethtool_drvinfo ecmd = {
68 .ifr_data = (void*) &ecmd
85 d = strdup(ecmd.driver);
94 struct ethtool_cmd ecmd = {
98 .ifr_data = (void*) &ecmd
118 if (ethtool_cmd_speed(&ecmd) != speed) {
119 ethtool_cmd_speed_set(&ecmd, speed);
125 if (ecmd.duplex != DUPLEX_HALF) {
126 ecmd.duplex = DUPLEX_HALF;
131 if (ecmd.duplex != DUPLEX_FULL) {
132 ecmd.duplex = DUPLEX_FULL;
141 ecmd.cmd = ETHTOOL_SSET;
152 struct ethtool_wolinfo ecmd = {
156 .ifr_data = (void*) &ecmd
178 if (ecmd.wolopts != WAKE_PHY) {
179 ecmd.wolopts = WAKE_PHY;
184 if (ecmd.wolopts != WAKE_MAGIC) {
185 ecmd.wolopts = WAKE_MAGIC;
190 if (ecmd.wolopts != 0) {
191 ecmd.wolopts = 0;
200 ecmd.cmd = ETHTOOL_SWOL;