Lines Matching full:wol

37 /* ethtool function - get WOL (Wake on LAN) settings, Only Magic Packet
40 void bcmgenet_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in bcmgenet_get_wol() argument
46 phy_ethtool_get_wol(dev->phydev, wol); in bcmgenet_get_wol()
53 wol->supported |= WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_FILTER; in bcmgenet_get_wol()
54 wol->wolopts = priv->wolopts; in bcmgenet_get_wol()
55 memset(wol->sopass, 0, sizeof(wol->sopass)); in bcmgenet_get_wol()
57 if (wol->wolopts & WAKE_MAGICSECURE) in bcmgenet_get_wol()
58 memcpy(wol->sopass, priv->sopass, sizeof(priv->sopass)); in bcmgenet_get_wol()
61 /* ethtool function - set WOL (Wake on LAN) settings.
64 int bcmgenet_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in bcmgenet_set_wol() argument
72 ret = phy_ethtool_set_wol(dev->phydev, wol); in bcmgenet_set_wol()
80 if (wol->wolopts & ~(WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_FILTER)) in bcmgenet_set_wol()
83 if (wol->wolopts & WAKE_MAGICSECURE) in bcmgenet_set_wol()
84 memcpy(priv->sopass, wol->sopass, sizeof(priv->sopass)); in bcmgenet_set_wol()
87 if (wol->wolopts) { in bcmgenet_set_wol()
105 priv->wolopts = wol->wolopts; in bcmgenet_set_wol()
119 netdev_crit(dev, "polling wol mode timeout\n"); in bcmgenet_poll_wol_status()
145 netif_err(priv, wol, dev, "unsupported mode: %d\n", mode); in bcmgenet_wol_power_down_cfg()
149 /* Can't suspend with WoL if MAC is still in reset */ in bcmgenet_wol_power_down_cfg()
190 netif_dbg(priv, wol, dev, "MPD WOL-ready status set after %d msec\n", in bcmgenet_wol_power_down_cfg()
209 /* Receiver must be enabled for WOL MP detection */ in bcmgenet_wol_power_down_cfg()
229 netif_err(priv, wol, priv->dev, "invalid mode: %d\n", mode); in bcmgenet_wol_power_up_cfg()