Lines Matching refs:wol
40 void bcmgenet_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in bcmgenet_get_wol() argument
47 phy_ethtool_get_wol(dev->phydev, wol); in bcmgenet_get_wol()
48 phy_wolopts = wol->wolopts; in bcmgenet_get_wol()
56 wol->supported |= WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_FILTER; in bcmgenet_get_wol()
57 wol->wolopts |= priv->wolopts; in bcmgenet_get_wol()
64 memset(wol->sopass, 0, sizeof(wol->sopass)); in bcmgenet_get_wol()
65 if (wol->wolopts & WAKE_MAGICSECURE) in bcmgenet_get_wol()
66 memcpy(wol->sopass, priv->sopass, sizeof(priv->sopass)); in bcmgenet_get_wol()
72 int bcmgenet_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in bcmgenet_set_wol() argument
80 ret = phy_ethtool_set_wol(dev->phydev, wol); in bcmgenet_set_wol()
81 if (ret != -EOPNOTSUPP && wol->wolopts) in bcmgenet_set_wol()
88 if (wol->wolopts & ~(WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_FILTER)) in bcmgenet_set_wol()
91 if (wol->wolopts & WAKE_MAGICSECURE) in bcmgenet_set_wol()
92 memcpy(priv->sopass, wol->sopass, sizeof(priv->sopass)); in bcmgenet_set_wol()
95 if (wol->wolopts) { in bcmgenet_set_wol()
113 priv->wolopts = wol->wolopts; in bcmgenet_set_wol()
153 netif_err(priv, wol, dev, "unsupported mode: %d\n", mode); in bcmgenet_wol_power_down_cfg()
198 netif_dbg(priv, wol, dev, "MPD WOL-ready status set after %d msec\n", in bcmgenet_wol_power_down_cfg()
237 netif_err(priv, wol, priv->dev, "invalid mode: %d\n", mode); in bcmgenet_wol_power_up_cfg()