Lines Matching refs:wol
44 void bcmgenet_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in bcmgenet_get_wol() argument
49 wol->supported = WAKE_MAGIC | WAKE_MAGICSECURE; in bcmgenet_get_wol()
50 wol->wolopts = priv->wolopts; in bcmgenet_get_wol()
51 memset(wol->sopass, 0, sizeof(wol->sopass)); in bcmgenet_get_wol()
53 if (wol->wolopts & WAKE_MAGICSECURE) { in bcmgenet_get_wol()
55 put_unaligned_be16(reg, &wol->sopass[0]); in bcmgenet_get_wol()
57 put_unaligned_be32(reg, &wol->sopass[2]); in bcmgenet_get_wol()
64 int bcmgenet_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in bcmgenet_set_wol() argument
73 if (wol->wolopts & ~(WAKE_MAGIC | WAKE_MAGICSECURE)) in bcmgenet_set_wol()
77 if (wol->wolopts & WAKE_MAGICSECURE) { in bcmgenet_set_wol()
78 bcmgenet_umac_writel(priv, get_unaligned_be16(&wol->sopass[0]), in bcmgenet_set_wol()
80 bcmgenet_umac_writel(priv, get_unaligned_be32(&wol->sopass[2]), in bcmgenet_set_wol()
89 if (wol->wolopts) { in bcmgenet_set_wol()
103 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()
158 netif_dbg(priv, wol, dev, "MPD WOL-ready status set after %d msec\n", in bcmgenet_wol_power_down_cfg()
191 netif_err(priv, wol, priv->dev, "invalid mode: %d\n", mode); in bcmgenet_wol_power_up_cfg()