Lines Matching full:wol
309 static void uec_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in uec_get_wol() argument
313 phylink_ethtool_get_wol(ugeth->phylink, wol); in uec_get_wol()
316 wol->supported |= WAKE_MAGIC; in uec_get_wol()
318 wol->wolopts |= ugeth->wol_en; in uec_get_wol()
321 static int uec_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in uec_set_wol() argument
326 ret = phylink_ethtool_set_wol(ugeth->phylink, wol); in uec_set_wol()
332 ugeth->phy_wol_en = wol->wolopts; in uec_set_wol()
336 /* If the PHY isn't handling the WoL and the MAC is asked to more than in uec_set_wol()
340 wol->wolopts & ~WAKE_MAGIC) in uec_set_wol()
343 if (wol->wolopts & WAKE_MAGIC && in uec_set_wol()
348 ugeth->wol_en = wol->wolopts; in uec_set_wol()