Lines Matching full:wol
13 struct ethtool_wolinfo wol; member
39 dev->ethtool_ops->get_wol(dev, &data->wol); in wol_prepare_data()
43 (data->wol.supported & WAKE_MAGICSECURE); in wol_prepare_data()
55 len = ethnl_bitset32_size(&data->wol.wolopts, &data->wol.supported, in wol_reply_size()
60 len += nla_total_size(sizeof(data->wol.sopass)); in wol_reply_size()
73 ret = ethnl_put_bitset32(skb, ETHTOOL_A_WOL_MODES, &data->wol.wolopts, in wol_fill_reply()
74 &data->wol.supported, WOL_MODE_COUNT, in wol_fill_reply()
79 nla_put(skb, ETHTOOL_A_WOL_SOPASS, sizeof(data->wol.sopass), in wol_fill_reply()
80 data->wol.sopass)) in wol_fill_reply()
107 struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; in ethnl_set_wol() local
113 dev->ethtool_ops->get_wol(dev, &wol); in ethnl_set_wol()
114 ret = ethnl_update_bitset32(&wol.wolopts, WOL_MODE_COUNT, in ethnl_set_wol()
119 if (wol.wolopts & ~wol.supported) { in ethnl_set_wol()
121 "cannot enable unsupported WoL mode"); in ethnl_set_wol()
125 if (!(wol.supported & WAKE_MAGICSECURE)) { in ethnl_set_wol()
131 ethnl_update_binary(wol.sopass, sizeof(wol.sopass), in ethnl_set_wol()
137 ret = dev->ethtool_ops->set_wol(dev, &wol); in ethnl_set_wol()
140 dev->ethtool->wol_enabled = !!wol.wolopts; in ethnl_set_wol()