Lines Matching full:wol
38 /* ethtool function - get WOL (Wake on LAN) settings, Only Magic Packet
41 void bcmgenet_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in bcmgenet_get_wol() argument
45 wol->supported = WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_FILTER; in bcmgenet_get_wol()
46 wol->wolopts = priv->wolopts; in bcmgenet_get_wol()
47 memset(wol->sopass, 0, sizeof(wol->sopass)); in bcmgenet_get_wol()
49 if (wol->wolopts & WAKE_MAGICSECURE) in bcmgenet_get_wol()
50 memcpy(wol->sopass, priv->sopass, sizeof(priv->sopass)); in bcmgenet_get_wol()
53 /* ethtool function - set WOL (Wake on LAN) settings.
56 int bcmgenet_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in bcmgenet_set_wol() argument
64 if (wol->wolopts & ~(WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_FILTER)) in bcmgenet_set_wol()
67 if (wol->wolopts & WAKE_MAGICSECURE) in bcmgenet_set_wol()
68 memcpy(priv->sopass, wol->sopass, sizeof(priv->sopass)); in bcmgenet_set_wol()
71 if (wol->wolopts) { in bcmgenet_set_wol()
85 priv->wolopts = wol->wolopts; in bcmgenet_set_wol()
99 netdev_crit(dev, "polling wol mode timeout\n"); in bcmgenet_poll_wol_status()
125 netif_err(priv, wol, dev, "unsupported mode: %d\n", mode); in bcmgenet_wol_power_down_cfg()
129 /* Can't suspend with WoL if MAC is still in reset */ in bcmgenet_wol_power_down_cfg()
168 netif_dbg(priv, wol, dev, "MPD WOL-ready status set after %d msec\n", in bcmgenet_wol_power_down_cfg()
186 /* Receiver must be enabled for WOL MP detection */ in bcmgenet_wol_power_down_cfg()
211 netif_err(priv, wol, priv->dev, "invalid mode: %d\n", mode); in bcmgenet_wol_power_up_cfg()