Lines Matching full:duplex
100 phy_duplex_to_str(phydev->duplex), in phy_print_status()
183 * @duplex: desired duplex
187 * - an exact match for the specified speed and duplex mode
194 phy_find_valid(int speed, int duplex, unsigned long *supported) in phy_find_valid() argument
196 return phy_lookup_setting(speed, duplex, supported, false); in phy_find_valid()
218 * speed, duplex, and feature mask
220 * @duplex: duplex to match
225 static inline bool phy_check_valid(int speed, int duplex, in phy_check_valid() argument
228 return !!phy_lookup_setting(speed, duplex, features, true); in phy_check_valid()
232 * phy_sanitize_settings - make sure the PHY is set to supported speed and duplex
243 setting = phy_find_valid(phydev->speed, phydev->duplex, in phy_sanitize_settings()
247 phydev->duplex = setting->duplex; in phy_sanitize_settings()
251 phydev->duplex = DUPLEX_UNKNOWN; in phy_sanitize_settings()
291 (cmd->duplex != DUPLEX_HALF && in phy_ethtool_sset()
292 cmd->duplex != DUPLEX_FULL))) in phy_ethtool_sset()
304 phydev->duplex = cmd->duplex; in phy_ethtool_sset()
320 u8 duplex = cmd->base.duplex; in phy_ethtool_ksettings_set() local
342 (duplex != DUPLEX_HALF && in phy_ethtool_ksettings_set()
343 duplex != DUPLEX_FULL))) in phy_ethtool_ksettings_set()
355 phydev->duplex = duplex; in phy_ethtool_ksettings_set()
374 cmd->base.duplex = phydev->duplex; in phy_ethtool_ksettings_get()
440 phydev->duplex = DUPLEX_FULL; in phy_mii_ioctl()
442 phydev->duplex = DUPLEX_HALF; in phy_mii_ioctl()
1012 /* According to 802.3az,the EEE is supported only in full duplex-mode. in phy_init_eee()
1014 if (phydev->duplex == DUPLEX_FULL) { in phy_init_eee()
1051 if (!phy_check_valid(phydev->speed, phydev->duplex, common)) in phy_init_eee()