Lines Matching refs:wol
1466 struct ethtool_wolinfo wol;
1471 memset(&wol, 0, sizeof(struct ethtool_wolinfo));
1472 wol.cmd = ETHTOOL_GWOL;
1473 dev->ethtool_ops->get_wol(dev, &wol);
1475 if (copy_to_user(useraddr, &wol, sizeof(wol)))
1482 struct ethtool_wolinfo wol, cur_wol;
1492 if (copy_from_user(&wol, useraddr, sizeof(wol)))
1495 if (wol.wolopts & ~cur_wol.supported)
1498 if (wol.wolopts == cur_wol.wolopts &&
1499 !memcmp(wol.sopass, cur_wol.sopass, sizeof(wol.sopass)))
1502 ret = dev->ethtool_ops->set_wol(dev, &wol);
1506 dev->wol_enabled = !!wol.wolopts;