Lines Matching refs:cmd
57 static int xgene_get_settings(struct net_device *ndev, struct ethtool_cmd *cmd) in xgene_get_settings() argument
66 return phy_ethtool_gset(phydev, cmd); in xgene_get_settings()
68 cmd->supported = SUPPORTED_1000baseT_Full | in xgene_get_settings()
70 cmd->advertising = cmd->supported; in xgene_get_settings()
71 ethtool_cmd_speed_set(cmd, SPEED_1000); in xgene_get_settings()
72 cmd->duplex = DUPLEX_FULL; in xgene_get_settings()
73 cmd->port = PORT_MII; in xgene_get_settings()
74 cmd->transceiver = XCVR_INTERNAL; in xgene_get_settings()
75 cmd->autoneg = AUTONEG_ENABLE; in xgene_get_settings()
77 cmd->supported = SUPPORTED_10000baseT_Full | SUPPORTED_FIBRE; in xgene_get_settings()
78 cmd->advertising = cmd->supported; in xgene_get_settings()
79 ethtool_cmd_speed_set(cmd, SPEED_10000); in xgene_get_settings()
80 cmd->duplex = DUPLEX_FULL; in xgene_get_settings()
81 cmd->port = PORT_FIBRE; in xgene_get_settings()
82 cmd->transceiver = XCVR_INTERNAL; in xgene_get_settings()
83 cmd->autoneg = AUTONEG_DISABLE; in xgene_get_settings()
89 static int xgene_set_settings(struct net_device *ndev, struct ethtool_cmd *cmd) in xgene_set_settings() argument
98 return phy_ethtool_sset(phydev, cmd); in xgene_set_settings()