Lines Matching refs:ecmd
379 struct ethtool_cmd ecmd; in bond_update_speed_duplex() local
386 res = __ethtool_get_settings(slave_dev, &ecmd); in bond_update_speed_duplex()
390 slave_speed = ethtool_cmd_speed(&ecmd); in bond_update_speed_duplex()
394 switch (ecmd.duplex) { in bond_update_speed_duplex()
403 slave->duplex = ecmd.duplex; in bond_update_speed_duplex()
4031 struct ethtool_cmd *ecmd) in bond_ethtool_get_settings() argument
4038 ecmd->duplex = DUPLEX_UNKNOWN; in bond_ethtool_get_settings()
4039 ecmd->port = PORT_OTHER; in bond_ethtool_get_settings()
4050 if (ecmd->duplex == DUPLEX_UNKNOWN && in bond_ethtool_get_settings()
4052 ecmd->duplex = slave->duplex; in bond_ethtool_get_settings()
4055 ethtool_cmd_speed_set(ecmd, speed ? : SPEED_UNKNOWN); in bond_ethtool_get_settings()