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_1000baseT_Full; in ixgbe_get_settings()
172 ecmd->supported |= SUPPORTED_100baseT_Full; in ixgbe_get_settings()
177 ecmd->advertising |= ADVERTISED_100baseT_Full; in ixgbe_get_settings()
179 ecmd->advertising |= ADVERTISED_10000baseT_Full; in ixgbe_get_settings()
181 ecmd->advertising |= ADVERTISED_1000baseT_Full; in ixgbe_get_settings()
185 ecmd->advertising |= ADVERTISED_10000baseT_Full; in ixgbe_get_settings()
187 ecmd->advertising |= ADVERTISED_1000baseT_Full; in ixgbe_get_settings()
189 ecmd->advertising |= ADVERTISED_100baseT_Full; in ixgbe_get_settings()
193 ecmd->advertising = ADVERTISED_10000baseT_Full; in ixgbe_get_settings()
198 ecmd->supported |= SUPPORTED_Autoneg; in ixgbe_get_settings()
199 ecmd->advertising |= ADVERTISED_Autoneg; in ixgbe_get_settings()
200 ecmd->autoneg = AUTONEG_ENABLE; in ixgbe_get_settings()
202 ecmd->autoneg = AUTONEG_DISABLE; in ixgbe_get_settings()
204 ecmd->transceiver = XCVR_EXTERNAL; in ixgbe_get_settings()
211 ecmd->supported |= SUPPORTED_TP; in ixgbe_get_settings()
212 ecmd->advertising |= ADVERTISED_TP; in ixgbe_get_settings()
213 ecmd->port = PORT_TP; in ixgbe_get_settings()
216 ecmd->supported |= SUPPORTED_FIBRE; in ixgbe_get_settings()
217 ecmd->advertising |= ADVERTISED_FIBRE; in ixgbe_get_settings()
218 ecmd->port = PORT_FIBRE; in ixgbe_get_settings()
232 ecmd->supported |= SUPPORTED_FIBRE; in ixgbe_get_settings()
233 ecmd->advertising |= ADVERTISED_FIBRE; in ixgbe_get_settings()
234 ecmd->port = PORT_DA; in ixgbe_get_settings()
244 ecmd->supported |= SUPPORTED_FIBRE; in ixgbe_get_settings()
245 ecmd->advertising |= ADVERTISED_FIBRE; in ixgbe_get_settings()
246 ecmd->port = PORT_FIBRE; 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_NONE; in ixgbe_get_settings()
255 ecmd->supported |= SUPPORTED_TP; in ixgbe_get_settings()
256 ecmd->advertising |= ADVERTISED_TP; in ixgbe_get_settings()
257 ecmd->port = PORT_TP; in ixgbe_get_settings()
261 ecmd->supported |= SUPPORTED_FIBRE; in ixgbe_get_settings()
262 ecmd->advertising |= ADVERTISED_FIBRE; in ixgbe_get_settings()
263 ecmd->port = PORT_OTHER; in ixgbe_get_settings()
268 ecmd->supported |= SUPPORTED_FIBRE; in ixgbe_get_settings()
269 ecmd->advertising |= ADVERTISED_FIBRE; in ixgbe_get_settings()
270 ecmd->port = PORT_NONE; in ixgbe_get_settings()
276 ecmd->supported |= SUPPORTED_FIBRE; in ixgbe_get_settings()
277 ecmd->advertising |= ADVERTISED_FIBRE; in ixgbe_get_settings()
278 ecmd->port = PORT_OTHER; in ixgbe_get_settings()
286 ethtool_cmd_speed_set(ecmd, SPEED_10000); in ixgbe_get_settings()
289 ethtool_cmd_speed_set(ecmd, SPEED_1000); in ixgbe_get_settings()
292 ethtool_cmd_speed_set(ecmd, SPEED_100); in ixgbe_get_settings()
297 ecmd->duplex = DUPLEX_FULL; in ixgbe_get_settings()
299 ethtool_cmd_speed_set(ecmd, SPEED_UNKNOWN); in ixgbe_get_settings()
300 ecmd->duplex = DUPLEX_UNKNOWN; in ixgbe_get_settings()
307 struct ethtool_cmd *ecmd) in ixgbe_set_settings() argument
320 if (ecmd->advertising & ~ecmd->supported) in ixgbe_set_settings()
324 if (!ecmd->autoneg && hw->phy.multispeed_fiber) { in ixgbe_set_settings()
325 if (ecmd->advertising == in ixgbe_set_settings()
333 if (ecmd->advertising & ADVERTISED_10000baseT_Full) in ixgbe_set_settings()
336 if (ecmd->advertising & ADVERTISED_1000baseT_Full) in ixgbe_set_settings()
339 if (ecmd->advertising & ADVERTISED_100baseT_Full) in ixgbe_set_settings()
357 u32 speed = ethtool_cmd_speed(ecmd); in ixgbe_set_settings()
358 if ((ecmd->autoneg == AUTONEG_ENABLE) || in ixgbe_set_settings()
359 (ecmd->advertising != ADVERTISED_10000baseT_Full) || in ixgbe_set_settings()
360 (speed + ecmd->duplex != SPEED_10000 + DUPLEX_FULL)) in ixgbe_set_settings()