Lines Matching full:wol
163 static void bcmasp_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
171 phy_ethtool_get_wol(dev->phydev, wol);
172 phy_wolopts = wol->wolopts;
180 wol->supported |= BCMASP_SUPPORTED_WAKE;
181 wol->wolopts |= intf->wolopts;
187 memset(wol->sopass, 0, sizeof(wol->sopass));
190 if (wol->wolopts & WAKE_MAGICSECURE)
191 memcpy(wol->sopass, intf->sopass, sizeof(intf->sopass));
194 static int bcmasp_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
203 ret = phy_ethtool_set_wol(dev->phydev, wol);
204 if (ret != -EOPNOTSUPP && wol->wolopts)
211 if (wol->wolopts & ~BCMASP_SUPPORTED_WAKE)
215 intf->wolopts = wol->wolopts;
217 memcpy(intf->sopass, wol->sopass, sizeof(wol->sopass));