Lines Matching full:wol
13 struct ethtool_wolinfo wol; member
39 dev->ethtool_ops->get_wol(dev, &data->wol); in wol_prepare_data()
42 data->show_sopass = info && (data->wol.supported & WAKE_MAGICSECURE); in wol_prepare_data()
54 len = ethnl_bitset32_size(&data->wol.wolopts, &data->wol.supported, in wol_reply_size()
59 len += nla_total_size(sizeof(data->wol.sopass)); in wol_reply_size()
72 ret = ethnl_put_bitset32(skb, ETHTOOL_A_WOL_MODES, &data->wol.wolopts, in wol_fill_reply()
73 &data->wol.supported, WOL_MODE_COUNT, in wol_fill_reply()
78 nla_put(skb, ETHTOOL_A_WOL_SOPASS, sizeof(data->wol.sopass), in wol_fill_reply()
79 data->wol.sopass)) in wol_fill_reply()
109 struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; in ethnl_set_wol() local
131 dev->ethtool_ops->get_wol(dev, &wol); in ethnl_set_wol()
132 ret = ethnl_update_bitset32(&wol.wolopts, WOL_MODE_COUNT, in ethnl_set_wol()
137 if (wol.wolopts & ~wol.supported) { in ethnl_set_wol()
139 "cannot enable unsupported WoL mode"); in ethnl_set_wol()
144 if (!(wol.supported & WAKE_MAGICSECURE)) { in ethnl_set_wol()
151 ethnl_update_binary(wol.sopass, sizeof(wol.sopass), in ethnl_set_wol()
157 ret = dev->ethtool_ops->set_wol(dev, &wol); in ethnl_set_wol()
160 dev->wol_enabled = !!wol.wolopts; in ethnl_set_wol()