Lines Matching refs:cmd

4332 				 struct ethtool_link_ksettings *cmd)  in nv_get_link_ksettings()  argument
4339 cmd->base.port = PORT_MII; in nv_get_link_ksettings()
4365 cmd->base.duplex = DUPLEX_HALF; in nv_get_link_ksettings()
4367 cmd->base.duplex = DUPLEX_FULL; in nv_get_link_ksettings()
4370 cmd->base.duplex = DUPLEX_UNKNOWN; in nv_get_link_ksettings()
4372 cmd->base.speed = speed; in nv_get_link_ksettings()
4373 cmd->base.autoneg = np->autoneg; in nv_get_link_ksettings()
4400 cmd->base.phy_address = np->phyaddr; in nv_get_link_ksettings()
4402 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in nv_get_link_ksettings()
4404 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in nv_get_link_ksettings()
4413 const struct ethtool_link_ksettings *cmd) in nv_set_link_ksettings() argument
4416 u32 speed = cmd->base.speed; in nv_set_link_ksettings()
4420 cmd->link_modes.advertising); in nv_set_link_ksettings()
4422 if (cmd->base.port != PORT_MII) in nv_set_link_ksettings()
4424 if (cmd->base.phy_address != np->phyaddr) { in nv_set_link_ksettings()
4429 if (cmd->base.autoneg == AUTONEG_ENABLE) { in nv_set_link_ksettings()
4440 } else if (cmd->base.autoneg == AUTONEG_DISABLE) { in nv_set_link_ksettings()
4446 if (cmd->base.duplex != DUPLEX_HALF && in nv_set_link_ksettings()
4447 cmd->base.duplex != DUPLEX_FULL) in nv_set_link_ksettings()
4477 if (cmd->base.autoneg == AUTONEG_ENABLE) { in nv_set_link_ksettings()
4529 if (speed == SPEED_10 && cmd->base.duplex == DUPLEX_HALF) in nv_set_link_ksettings()
4531 if (speed == SPEED_10 && cmd->base.duplex == DUPLEX_FULL) in nv_set_link_ksettings()
4533 if (speed == SPEED_100 && cmd->base.duplex == DUPLEX_HALF) in nv_set_link_ksettings()
4535 if (speed == SPEED_100 && cmd->base.duplex == DUPLEX_FULL) in nv_set_link_ksettings()