Searched refs:ecmd (Results 1 – 5 of 5) sorted by relevance
311 struct ethtool_link_ksettings ecmd; in cbs_set_port_rate() local316 err = __ethtool_get_link_ksettings(dev, &ecmd); in cbs_set_port_rate()320 if (ecmd.base.speed && ecmd.base.speed != SPEED_UNKNOWN) in cbs_set_port_rate()321 speed = ecmd.base.speed; in cbs_set_port_rate()329 ecmd.base.speed); in cbs_set_port_rate()
1299 struct ethtool_link_ksettings ecmd; in taprio_set_picos_per_byte() local1304 err = __ethtool_get_link_ksettings(dev, &ecmd); in taprio_set_picos_per_byte()1308 if (ecmd.base.speed && ecmd.base.speed != SPEED_UNKNOWN) in taprio_set_picos_per_byte()1309 speed = ecmd.base.speed; in taprio_set_picos_per_byte()1317 ecmd.base.speed); in taprio_set_picos_per_byte()
278 struct ethtool_link_ksettings ecmd; in br_get_link_ksettings() local284 if (__ethtool_get_link_ksettings(pdev, &ecmd)) in br_get_link_ksettings()287 if (ecmd.base.speed == (__u32)SPEED_UNKNOWN) in br_get_link_ksettings()291 cmd->base.speed < ecmd.base.speed) in br_get_link_ksettings()292 cmd->base.speed = ecmd.base.speed; in br_get_link_ksettings()
37 struct ethtool_link_ksettings ecmd; in port_cost() local39 if (!__ethtool_get_link_ksettings(dev, &ecmd)) { in port_cost()40 switch (ecmd.base.speed) { in port_cost()56 if (ecmd.base.speed > SPEED_10000) in port_cost()
630 struct ethtool_link_ksettings ecmd; in prb_calc_retire_blk_tmo() local639 err = __ethtool_get_link_ksettings(dev, &ecmd); in prb_calc_retire_blk_tmo()647 if (ecmd.base.speed < SPEED_1000 || in prb_calc_retire_blk_tmo()648 ecmd.base.speed == SPEED_UNKNOWN) in prb_calc_retire_blk_tmo()651 div = ecmd.base.speed / 1000; in prb_calc_retire_blk_tmo()