Lines Matching refs:wol
419 struct ethtool_wolinfo *wol) in ave_ethtool_get_wol() argument
421 wol->supported = 0; in ave_ethtool_get_wol()
422 wol->wolopts = 0; in ave_ethtool_get_wol()
425 phy_ethtool_get_wol(ndev->phydev, wol); in ave_ethtool_get_wol()
429 struct ethtool_wolinfo *wol) in __ave_ethtool_set_wol() argument
432 (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE))) in __ave_ethtool_set_wol()
435 return phy_ethtool_set_wol(ndev->phydev, wol); in __ave_ethtool_set_wol()
439 struct ethtool_wolinfo *wol) in ave_ethtool_set_wol() argument
443 ret = __ave_ethtool_set_wol(ndev, wol); in ave_ethtool_set_wol()
445 device_set_wakeup_enable(&ndev->dev, !!wol->wolopts); in ave_ethtool_set_wol()
1167 struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; in ave_init() local
1221 ave_ethtool_get_wol(ndev, &wol); in ave_init()
1222 device_set_wakeup_capable(&ndev->dev, !!wol.supported); in ave_init()
1225 wol.wolopts = 0; in ave_init()
1226 __ave_ethtool_set_wol(ndev, &wol); in ave_init()
1737 struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; in ave_suspend() local
1747 ave_ethtool_get_wol(ndev, &wol); in ave_suspend()
1748 priv->wolopts = wol.wolopts; in ave_suspend()
1755 struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; in ave_resume() local
1766 ave_ethtool_get_wol(ndev, &wol); in ave_resume()
1767 wol.wolopts = priv->wolopts; in ave_resume()
1768 __ave_ethtool_set_wol(ndev, &wol); in ave_resume()