Lines Matching refs:ecmd
155 struct ethtool_cmd *ecmd) in ixgbe_get_settings() argument
168 ecmd->supported |= SUPPORTED_10000baseT_Full; in ixgbe_get_settings()
170 ecmd->supported |= SUPPORTED_2500baseX_Full; in ixgbe_get_settings()
172 ecmd->supported |= SUPPORTED_1000baseT_Full; in ixgbe_get_settings()
174 ecmd->supported |= SUPPORTED_100baseT_Full; in ixgbe_get_settings()
179 ecmd->advertising |= ADVERTISED_100baseT_Full; in ixgbe_get_settings()
181 ecmd->advertising |= ADVERTISED_10000baseT_Full; in ixgbe_get_settings()
183 ecmd->advertising |= ADVERTISED_2500baseX_Full; in ixgbe_get_settings()
185 ecmd->advertising |= ADVERTISED_1000baseT_Full; in ixgbe_get_settings()
189 ecmd->advertising |= ADVERTISED_10000baseT_Full; in ixgbe_get_settings()
191 ecmd->advertising |= ADVERTISED_1000baseT_Full; in ixgbe_get_settings()
193 ecmd->advertising |= ADVERTISED_100baseT_Full; in ixgbe_get_settings()
197 ecmd->advertising = ADVERTISED_10000baseT_Full; in ixgbe_get_settings()
202 ecmd->supported |= SUPPORTED_Autoneg; in ixgbe_get_settings()
203 ecmd->advertising |= ADVERTISED_Autoneg; in ixgbe_get_settings()
204 ecmd->autoneg = AUTONEG_ENABLE; in ixgbe_get_settings()
206 ecmd->autoneg = AUTONEG_DISABLE; in ixgbe_get_settings()
208 ecmd->transceiver = XCVR_EXTERNAL; in ixgbe_get_settings()
216 ecmd->supported |= SUPPORTED_TP; in ixgbe_get_settings()
217 ecmd->advertising |= ADVERTISED_TP; in ixgbe_get_settings()
218 ecmd->port = PORT_TP; in ixgbe_get_settings()
221 ecmd->supported |= SUPPORTED_FIBRE; in ixgbe_get_settings()
222 ecmd->advertising |= ADVERTISED_FIBRE; in ixgbe_get_settings()
223 ecmd->port = PORT_FIBRE; in ixgbe_get_settings()
237 ecmd->supported |= SUPPORTED_FIBRE; in ixgbe_get_settings()
238 ecmd->advertising |= ADVERTISED_FIBRE; in ixgbe_get_settings()
239 ecmd->port = PORT_DA; in ixgbe_get_settings()
249 ecmd->supported |= SUPPORTED_FIBRE; in ixgbe_get_settings()
250 ecmd->advertising |= ADVERTISED_FIBRE; in ixgbe_get_settings()
251 ecmd->port = PORT_FIBRE; in ixgbe_get_settings()
254 ecmd->supported |= SUPPORTED_FIBRE; in ixgbe_get_settings()
255 ecmd->advertising |= ADVERTISED_FIBRE; in ixgbe_get_settings()
256 ecmd->port = PORT_NONE; in ixgbe_get_settings()
260 ecmd->supported |= SUPPORTED_TP; in ixgbe_get_settings()
261 ecmd->advertising |= ADVERTISED_TP; in ixgbe_get_settings()
262 ecmd->port = PORT_TP; in ixgbe_get_settings()
266 ecmd->supported |= SUPPORTED_FIBRE; in ixgbe_get_settings()
267 ecmd->advertising |= ADVERTISED_FIBRE; in ixgbe_get_settings()
268 ecmd->port = PORT_OTHER; in ixgbe_get_settings()
273 ecmd->supported |= SUPPORTED_FIBRE; in ixgbe_get_settings()
274 ecmd->advertising |= ADVERTISED_FIBRE; in ixgbe_get_settings()
275 ecmd->port = PORT_NONE; in ixgbe_get_settings()
281 ecmd->supported |= SUPPORTED_FIBRE; in ixgbe_get_settings()
282 ecmd->advertising |= ADVERTISED_FIBRE; in ixgbe_get_settings()
283 ecmd->port = PORT_OTHER; in ixgbe_get_settings()
291 ethtool_cmd_speed_set(ecmd, SPEED_10000); in ixgbe_get_settings()
294 ethtool_cmd_speed_set(ecmd, SPEED_2500); in ixgbe_get_settings()
297 ethtool_cmd_speed_set(ecmd, SPEED_1000); in ixgbe_get_settings()
300 ethtool_cmd_speed_set(ecmd, SPEED_100); in ixgbe_get_settings()
305 ecmd->duplex = DUPLEX_FULL; in ixgbe_get_settings()
307 ethtool_cmd_speed_set(ecmd, SPEED_UNKNOWN); in ixgbe_get_settings()
308 ecmd->duplex = DUPLEX_UNKNOWN; in ixgbe_get_settings()
315 struct ethtool_cmd *ecmd) in ixgbe_set_settings() argument
328 if (ecmd->advertising & ~ecmd->supported) in ixgbe_set_settings()
332 if (!ecmd->autoneg && hw->phy.multispeed_fiber) { in ixgbe_set_settings()
333 if (ecmd->advertising == in ixgbe_set_settings()
341 if (ecmd->advertising & ADVERTISED_10000baseT_Full) in ixgbe_set_settings()
344 if (ecmd->advertising & ADVERTISED_1000baseT_Full) in ixgbe_set_settings()
347 if (ecmd->advertising & ADVERTISED_100baseT_Full) in ixgbe_set_settings()
365 u32 speed = ethtool_cmd_speed(ecmd); in ixgbe_set_settings()
366 if ((ecmd->autoneg == AUTONEG_ENABLE) || in ixgbe_set_settings()
367 (ecmd->advertising != ADVERTISED_10000baseT_Full) || in ixgbe_set_settings()
368 (speed + ecmd->duplex != SPEED_10000 + DUPLEX_FULL)) in ixgbe_set_settings()