Lines Matching refs:duplex
108 phy_duplex_to_str(phydev->duplex), in phy_print_status()
213 phy_find_valid(int speed, int duplex, unsigned long *supported) in phy_find_valid() argument
215 return phy_lookup_setting(speed, duplex, supported, false); in phy_find_valid()
244 static inline bool phy_check_valid(int speed, int duplex, in phy_check_valid() argument
247 return !!phy_lookup_setting(speed, duplex, features, true); in phy_check_valid()
262 setting = phy_find_valid(phydev->speed, phydev->duplex, in phy_sanitize_settings()
266 phydev->duplex = setting->duplex; in phy_sanitize_settings()
270 phydev->duplex = DUPLEX_UNKNOWN; in phy_sanitize_settings()
283 cmd->base.duplex = phydev->duplex; in phy_ethtool_ksettings_get()
353 phydev->duplex = DUPLEX_FULL; in phy_mii_ioctl()
355 phydev->duplex = DUPLEX_HALF; in phy_mii_ioctl()
808 u8 duplex = cmd->base.duplex; in phy_ethtool_ksettings_set() local
830 (duplex != DUPLEX_HALF && in phy_ethtool_ksettings_set()
831 duplex != DUPLEX_FULL))) in phy_ethtool_ksettings_set()
839 phydev->duplex = duplex; in phy_ethtool_ksettings_set()
1308 if (phydev->duplex == DUPLEX_FULL) { in phy_init_eee()
1345 if (!phy_check_valid(phydev->speed, phydev->duplex, common)) in phy_init_eee()