Lines Matching refs:duplex
76 phy_duplex_to_str(phydev->duplex), in phy_print_status()
174 phy_find_valid(int speed, int duplex, u32 supported) in phy_find_valid() argument
178 return phy_lookup_setting(speed, duplex, &mask, BITS_PER_LONG, false); in phy_find_valid()
209 static inline bool phy_check_valid(int speed, int duplex, u32 features) in phy_check_valid() argument
213 return !!phy_lookup_setting(speed, duplex, &mask, BITS_PER_LONG, true); in phy_check_valid()
233 setting = phy_find_valid(phydev->speed, phydev->duplex, features); in phy_sanitize_settings()
236 phydev->duplex = setting->duplex; in phy_sanitize_settings()
240 phydev->duplex = DUPLEX_UNKNOWN; in phy_sanitize_settings()
278 (cmd->duplex != DUPLEX_HALF && in phy_ethtool_sset()
279 cmd->duplex != DUPLEX_FULL))) in phy_ethtool_sset()
293 phydev->duplex = cmd->duplex; in phy_ethtool_sset()
308 u8 duplex = cmd->base.duplex; in phy_ethtool_ksettings_set() local
332 (duplex != DUPLEX_HALF && in phy_ethtool_ksettings_set()
333 duplex != DUPLEX_FULL))) in phy_ethtool_ksettings_set()
347 phydev->duplex = duplex; in phy_ethtool_ksettings_set()
371 cmd->base.duplex = phydev->duplex; in phy_ethtool_ksettings_get()
421 phydev->duplex = DUPLEX_FULL; in phy_mii_ioctl()
423 phydev->duplex = DUPLEX_HALF; in phy_mii_ioctl()
1162 if (phydev->duplex == DUPLEX_FULL) { in phy_init_eee()
1194 if (!phy_check_valid(phydev->speed, phydev->duplex, lp & adv)) in phy_init_eee()