Lines Matching full:wol
625 /* Currently only support WOL through Magic packet. */
626 static void stmmac_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in stmmac_get_wol() argument
631 return phylink_ethtool_get_wol(priv->phylink, wol); in stmmac_get_wol()
635 wol->supported = WAKE_MAGIC | WAKE_UCAST; in stmmac_get_wol()
637 wol->supported &= ~WAKE_MAGIC; in stmmac_get_wol()
638 wol->wolopts = priv->wolopts; in stmmac_get_wol()
643 static int stmmac_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in stmmac_set_wol() argument
652 int ret = phylink_ethtool_set_wol(priv->phylink, wol); in stmmac_set_wol()
655 device_set_wakeup_enable(priv->device, !!wol->wolopts); in stmmac_set_wol()
659 /* By default almost all GMAC devices support the WoL via in stmmac_set_wol()
663 wol->wolopts &= ~WAKE_MAGIC; in stmmac_set_wol()
665 if (wol->wolopts & ~support) in stmmac_set_wol()
668 if (wol->wolopts) { in stmmac_set_wol()
678 priv->wolopts = wol->wolopts; in stmmac_set_wol()