Lines Matching refs:speed
14 const char *phy_speed_to_str(int speed) in phy_speed_to_str() argument
21 switch (speed) { in phy_speed_to_str()
82 #define PHY_SETTING(s, d, b) { .speed = SPEED_ ## s, .duplex = DUPLEX_ ## d, \
200 phy_lookup_setting(int speed, int duplex, const unsigned long *mask, bool exact) in phy_lookup_setting() argument
209 if (p->speed == speed && p->duplex == duplex) { in phy_lookup_setting()
214 if (!match && p->speed <= speed) in phy_lookup_setting()
218 if (p->speed < speed) in phy_lookup_setting()
240 (count == 0 || speeds[count - 1] != settings[i].speed)) in phy_speeds()
241 speeds[count++] = settings[i].speed; in phy_speeds()
252 if (p->speed > max_speed) in __set_linkmode_max_speed()
371 phydev->speed = settings[i].speed; in phy_resolve_aneg_linkmode()
392 int i, speed = SPEED_UNKNOWN; in phy_check_downshift() local
397 phydev->speed == SPEED_UNKNOWN) in phy_check_downshift()
404 speed = settings[i].speed; in phy_check_downshift()
408 if (speed == SPEED_UNKNOWN || phydev->speed >= speed) in phy_check_downshift()
412 phy_speed_to_str(speed), phy_speed_to_str(phydev->speed)); in phy_check_downshift()
429 return settings[i].speed; in phy_resolve_min_speed()