Lines Matching refs:cmd
997 static int atl1_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) in atl1_mii_ioctl() argument
1007 retval = generic_mii_ioctl(&adapter->mii, if_mii(ifr), cmd, NULL); in atl1_mii_ioctl()
3194 struct ethtool_link_ksettings *cmd) in atl1_get_link_ksettings() argument
3221 cmd->base.port = PORT_TP; in atl1_get_link_ksettings()
3222 cmd->base.phy_address = 0; in atl1_get_link_ksettings()
3227 cmd->base.speed = link_speed; in atl1_get_link_ksettings()
3229 cmd->base.duplex = DUPLEX_FULL; in atl1_get_link_ksettings()
3231 cmd->base.duplex = DUPLEX_HALF; in atl1_get_link_ksettings()
3233 cmd->base.speed = SPEED_UNKNOWN; in atl1_get_link_ksettings()
3234 cmd->base.duplex = DUPLEX_UNKNOWN; in atl1_get_link_ksettings()
3238 cmd->base.autoneg = AUTONEG_ENABLE; in atl1_get_link_ksettings()
3240 cmd->base.autoneg = AUTONEG_DISABLE; in atl1_get_link_ksettings()
3242 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in atl1_get_link_ksettings()
3244 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in atl1_get_link_ksettings()
3251 const struct ethtool_link_ksettings *cmd) in atl1_set_link_ksettings() argument
3266 if (cmd->base.autoneg == AUTONEG_ENABLE) in atl1_set_link_ksettings()
3269 u32 speed = cmd->base.speed; in atl1_set_link_ksettings()
3271 if (cmd->base.duplex != DUPLEX_FULL) { in atl1_set_link_ksettings()
3280 if (cmd->base.duplex == DUPLEX_FULL) in atl1_set_link_ksettings()
3285 if (cmd->base.duplex == DUPLEX_FULL) in atl1_set_link_ksettings()