Home
last modified time | relevance | path

Searched refs:edpd (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/drivers/net/phy/
Dsmsc.c540 static int smsc_phy_get_edpd(struct phy_device *phydev, u16 *edpd) in smsc_phy_get_edpd() argument
548 *edpd = ETHTOOL_PHY_EDPD_DISABLE; in smsc_phy_get_edpd()
550 *edpd = ETHTOOL_PHY_EDPD_NO_TX; in smsc_phy_get_edpd()
552 *edpd = PHY_STATE_MACH_MS + priv->edpd_max_wait_ms; in smsc_phy_get_edpd()
557 static int smsc_phy_set_edpd(struct phy_device *phydev, u16 edpd) in smsc_phy_set_edpd() argument
564 switch (edpd) { in smsc_phy_set_edpd()
573 edpd = PHY_STATE_MACH_MS + EDPD_MAX_WAIT_DFLT_MS; in smsc_phy_set_edpd()
578 if (edpd < PHY_STATE_MACH_MS || edpd > PHY_STATE_MACH_MS + 1000) in smsc_phy_set_edpd()
581 priv->edpd_max_wait_ms = edpd - PHY_STATE_MACH_MS; in smsc_phy_set_edpd()
Dmarvell10g.c426 static int mv3310_get_edpd(struct phy_device *phydev, u16 *edpd) in mv3310_get_edpd() argument
436 *edpd = 1000; in mv3310_get_edpd()
439 *edpd = ETHTOOL_PHY_EDPD_NO_TX; in mv3310_get_edpd()
442 *edpd = ETHTOOL_PHY_EDPD_DISABLE; in mv3310_get_edpd()
448 static int mv3310_set_edpd(struct phy_device *phydev, u16 edpd) in mv3310_set_edpd() argument
453 switch (edpd) { in mv3310_set_edpd()