Lines Matching full:speed

10  * phy_speed_to_str - Return a string representing the PHY link speed
12 * @speed: Speed of the link
14 const char *phy_speed_to_str(int speed) in phy_speed_to_str() argument
18 "If a speed or mode has been added please update phy_speed_to_str " in phy_speed_to_str()
21 switch (speed) { in phy_speed_to_str()
77 /* A mapping of all SUPPORTED settings to speed/duplex. This table
78 * must be grouped by speed and sorted in descending match priority
79 * - iow, descending speed. */
81 #define PHY_SETTING(s, d, b) { .speed = SPEED_ ## s, .duplex = DUPLEX_ ## d, \
183 * @speed: speed to match
188 * Search the settings array for a setting that matches the speed and
195 * or below the specified speed, the slowest supported setting, or if
199 phy_lookup_setting(int speed, int duplex, const unsigned long *mask, bool exact) in phy_lookup_setting() argument
208 if (p->speed == speed && p->duplex == duplex) { in phy_lookup_setting()
209 /* Exact match for speed and duplex */ in phy_lookup_setting()
213 if (!match && p->speed <= speed) in phy_lookup_setting()
217 if (p->speed < speed) in phy_lookup_setting()
239 (count == 0 || speeds[count - 1] != settings[i].speed)) in phy_speeds()
240 speeds[count++] = settings[i].speed; in phy_speeds()
251 if (p->speed > max_speed) in __set_linkmode_max_speed()
266 * phy_set_max_speed - Set the maximum speed the PHY should support
269 * @max_speed: Maximum speed
273 * maximum speed, and so limit what the PHY will advertise.
300 if (!of_property_read_u32(node, "max-speed", &max_speed)) in of_set_phy_supported()
358 * speed and duplex. If full duplex was negotiated, extract the pause mode
370 phydev->speed = settings[i].speed; in phy_resolve_aneg_linkmode()
383 * Check whether a downshift to a lower speed occurred. If this should be the
386 * read_status callback and sets phydev->speed to the actual link speed.
391 int i, speed = SPEED_UNKNOWN; in phy_check_downshift() local
396 phydev->speed == SPEED_UNKNOWN) in phy_check_downshift()
403 speed = settings[i].speed; in phy_check_downshift()
407 if (speed == SPEED_UNKNOWN || phydev->speed >= speed) in phy_check_downshift()
410 …phydev_warn(phydev, "Downshift occurred from negotiated speed %s to actual speed %s, check cabling… in phy_check_downshift()
411 phy_speed_to_str(speed), phy_speed_to_str(phydev->speed)); in phy_check_downshift()
428 return settings[i].speed; in phy_resolve_min_speed()