Lines Matching refs:ecmd

184 			       struct ethtool_cmd *ecmd,  in mdio45_ethtool_gset_npage()  argument
193 ecmd->transceiver = XCVR_INTERNAL; in mdio45_ethtool_gset_npage()
194 ecmd->phy_address = mdio->prtad; in mdio45_ethtool_gset_npage()
195 ecmd->mdio_support = in mdio45_ethtool_gset_npage()
205 ecmd->port = PORT_TP; in mdio45_ethtool_gset_npage()
206 ecmd->supported = SUPPORTED_TP; in mdio45_ethtool_gset_npage()
210 ecmd->supported |= SUPPORTED_10000baseT_Full; in mdio45_ethtool_gset_npage()
212 ecmd->supported |= (SUPPORTED_1000baseT_Full | in mdio45_ethtool_gset_npage()
215 ecmd->supported |= (SUPPORTED_100baseT_Full | in mdio45_ethtool_gset_npage()
218 ecmd->supported |= (SUPPORTED_10baseT_Full | in mdio45_ethtool_gset_npage()
220 ecmd->advertising = ADVERTISED_TP; in mdio45_ethtool_gset_npage()
224 ecmd->port = PORT_OTHER; in mdio45_ethtool_gset_npage()
225 ecmd->supported = 0; in mdio45_ethtool_gset_npage()
226 ecmd->advertising = 0; in mdio45_ethtool_gset_npage()
232 ecmd->port = PORT_OTHER; in mdio45_ethtool_gset_npage()
233 ecmd->supported = SUPPORTED_Backplane; in mdio45_ethtool_gset_npage()
237 ecmd->supported |= SUPPORTED_10000baseKX4_Full; in mdio45_ethtool_gset_npage()
239 ecmd->supported |= SUPPORTED_10000baseKR_Full; in mdio45_ethtool_gset_npage()
241 ecmd->supported |= SUPPORTED_1000baseKX_Full; in mdio45_ethtool_gset_npage()
245 ecmd->supported |= SUPPORTED_10000baseR_FEC; in mdio45_ethtool_gset_npage()
246 ecmd->advertising = ADVERTISED_Backplane; in mdio45_ethtool_gset_npage()
251 ecmd->port = PORT_FIBRE; in mdio45_ethtool_gset_npage()
252 ecmd->supported = SUPPORTED_FIBRE; in mdio45_ethtool_gset_npage()
253 ecmd->advertising = ADVERTISED_FIBRE; in mdio45_ethtool_gset_npage()
258 ecmd->supported |= SUPPORTED_Autoneg; in mdio45_ethtool_gset_npage()
262 ecmd->autoneg = AUTONEG_ENABLE; in mdio45_ethtool_gset_npage()
263 ecmd->advertising |= in mdio45_ethtool_gset_npage()
268 ecmd->autoneg = AUTONEG_DISABLE; in mdio45_ethtool_gset_npage()
271 ecmd->autoneg = AUTONEG_DISABLE; in mdio45_ethtool_gset_npage()
274 if (ecmd->autoneg) { in mdio45_ethtool_gset_npage()
282 ecmd->lp_advertising = in mdio45_ethtool_gset_npage()
285 ecmd->lp_advertising |= ADVERTISED_Autoneg; in mdio45_ethtool_gset_npage()
286 modes = ecmd->advertising & ecmd->lp_advertising; in mdio45_ethtool_gset_npage()
289 modes = ecmd->advertising; in mdio45_ethtool_gset_npage()
295 ecmd->duplex = DUPLEX_FULL; in mdio45_ethtool_gset_npage()
300 ecmd->duplex = !(modes & ADVERTISED_1000baseT_Half); in mdio45_ethtool_gset_npage()
304 ecmd->duplex = !!(modes & ADVERTISED_100baseT_Full); in mdio45_ethtool_gset_npage()
307 ecmd->duplex = !!(modes & ADVERTISED_10baseT_Full); in mdio45_ethtool_gset_npage()
315 ecmd->duplex = (reg & MDIO_CTRL1_FULLDPLX || in mdio45_ethtool_gset_npage()
319 ethtool_cmd_speed_set(ecmd, speed); in mdio45_ethtool_gset_npage()
322 if (ecmd->port == PORT_TP in mdio45_ethtool_gset_npage()
323 && (ethtool_cmd_speed(ecmd) == SPEED_10000)) { in mdio45_ethtool_gset_npage()
327 ecmd->eth_tp_mdix = ETH_TP_MDI; in mdio45_ethtool_gset_npage()
330 ecmd->eth_tp_mdix = ETH_TP_MDI_X; in mdio45_ethtool_gset_npage()
334 ecmd->eth_tp_mdix = ETH_TP_MDI_INVALID; in mdio45_ethtool_gset_npage()