Lines Matching refs:wol
40 void bcmgenet_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in bcmgenet_get_wol() argument
46 wol->supported = 0; in bcmgenet_get_wol()
47 wol->wolopts = 0; in bcmgenet_get_wol()
51 wol->supported = WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_FILTER; in bcmgenet_get_wol()
52 wol->wolopts = priv->wolopts; in bcmgenet_get_wol()
53 memset(wol->sopass, 0, sizeof(wol->sopass)); in bcmgenet_get_wol()
55 if (wol->wolopts & WAKE_MAGICSECURE) in bcmgenet_get_wol()
56 memcpy(wol->sopass, priv->sopass, sizeof(priv->sopass)); in bcmgenet_get_wol()
62 int bcmgenet_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in bcmgenet_set_wol() argument
70 if (wol->wolopts & ~(WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_FILTER)) in bcmgenet_set_wol()
73 if (wol->wolopts & WAKE_MAGICSECURE) in bcmgenet_set_wol()
74 memcpy(priv->sopass, wol->sopass, sizeof(priv->sopass)); in bcmgenet_set_wol()
77 if (wol->wolopts) { in bcmgenet_set_wol()
95 priv->wolopts = wol->wolopts; in bcmgenet_set_wol()
135 netif_err(priv, wol, dev, "unsupported mode: %d\n", mode); in bcmgenet_wol_power_down_cfg()
178 netif_dbg(priv, wol, dev, "MPD WOL-ready status set after %d msec\n", in bcmgenet_wol_power_down_cfg()
215 netif_err(priv, wol, priv->dev, "invalid mode: %d\n", mode); in bcmgenet_wol_power_up_cfg()