Lines Matching defs:duplex
63 * phy_duplex_to_str - Return string describing the duplex
65 * @duplex: Duplex setting to describe
67 const char *phy_duplex_to_str(unsigned int duplex)
69 if (duplex == DUPLEX_HALF)
71 if (duplex == DUPLEX_FULL)
73 if (duplex == DUPLEX_UNKNOWN)
155 /* A mapping of all SUPPORTED settings to speed/duplex. This table
160 #define PHY_SETTING(s, d, b) { .speed = SPEED_ ## s, .duplex = DUPLEX_ ## d, \
274 * @duplex: duplex to match
279 * duplex, and which is supported.
289 phy_lookup_setting(int speed, int duplex, const unsigned long *mask, bool exact)
298 if (p->speed == speed && p->duplex == duplex) {
299 /* Exact match for speed and duplex */
425 if (phydev->duplex == DUPLEX_FULL) {
440 * speed and duplex. If full duplex was negotiated, extract the pause mode
453 phydev->duplex = settings[i].duplex;
508 if (fdx_only && settings[i].duplex != DUPLEX_FULL)