Lines Matching refs:cmd
1527 struct ethtool_link_ksettings *cmd) in smc_ethtool_get_link_ksettings() argument
1533 mii_ethtool_get_link_ksettings(&lp->mii, cmd); in smc_ethtool_get_link_ksettings()
1541 cmd->base.speed = SPEED_10; in smc_ethtool_get_link_ksettings()
1543 cmd->base.speed = SPEED_100; in smc_ethtool_get_link_ksettings()
1545 cmd->base.autoneg = AUTONEG_DISABLE; in smc_ethtool_get_link_ksettings()
1546 cmd->base.port = 0; in smc_ethtool_get_link_ksettings()
1547 cmd->base.duplex = lp->tcr_cur_mode & TCR_SWFDUP ? in smc_ethtool_get_link_ksettings()
1551 cmd->link_modes.supported, supported); in smc_ethtool_get_link_ksettings()
1559 const struct ethtool_link_ksettings *cmd) in smc_ethtool_set_link_ksettings() argument
1566 ret = mii_ethtool_set_link_ksettings(&lp->mii, cmd); in smc_ethtool_set_link_ksettings()
1569 if (cmd->base.autoneg != AUTONEG_DISABLE || in smc_ethtool_set_link_ksettings()
1570 cmd->base.speed != SPEED_10 || in smc_ethtool_set_link_ksettings()
1571 (cmd->base.duplex != DUPLEX_HALF && in smc_ethtool_set_link_ksettings()
1572 cmd->base.duplex != DUPLEX_FULL) || in smc_ethtool_set_link_ksettings()
1573 (cmd->base.port != PORT_TP && cmd->base.port != PORT_AUI)) in smc_ethtool_set_link_ksettings()
1577 lp->ctl_rfduplx = cmd->base.duplex == DUPLEX_FULL; in smc_ethtool_set_link_ksettings()