Lines Matching full:wol
418 struct ethtool_wolinfo *wol) in ave_ethtool_get_wol() argument
420 wol->supported = 0; in ave_ethtool_get_wol()
421 wol->wolopts = 0; in ave_ethtool_get_wol()
424 phy_ethtool_get_wol(ndev->phydev, wol); in ave_ethtool_get_wol()
428 struct ethtool_wolinfo *wol) in __ave_ethtool_set_wol() argument
431 (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE))) in __ave_ethtool_set_wol()
434 return phy_ethtool_set_wol(ndev->phydev, wol); in __ave_ethtool_set_wol()
438 struct ethtool_wolinfo *wol) in ave_ethtool_set_wol() argument
442 ret = __ave_ethtool_set_wol(ndev, wol); in ave_ethtool_set_wol()
444 device_set_wakeup_enable(&ndev->dev, !!wol->wolopts); in ave_ethtool_set_wol()
1166 struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; in ave_init() local
1220 ave_ethtool_get_wol(ndev, &wol); in ave_init()
1221 device_set_wakeup_capable(&ndev->dev, !!wol.supported); in ave_init()
1223 /* set wol initial state disabled */ in ave_init()
1224 wol.wolopts = 0; in ave_init()
1225 __ave_ethtool_set_wol(ndev, &wol); in ave_init()
1740 struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; in ave_suspend() local
1750 ave_ethtool_get_wol(ndev, &wol); in ave_suspend()
1751 priv->wolopts = wol.wolopts; in ave_suspend()
1758 struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; in ave_resume() local
1765 ave_ethtool_get_wol(ndev, &wol); in ave_resume()
1766 wol.wolopts = priv->wolopts; in ave_resume()
1767 __ave_ethtool_set_wol(ndev, &wol); in ave_resume()