Searched refs:wol (Results 1 – 3 of 3) sorted by relevance
/net/ethtool/ |
D | wol.c | 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 [all …]
|
D | Makefile | 8 linkstate.o debug.o wol.o features.o privflags.o rings.o \
|
D | ioctl.c | 1412 struct ethtool_wolinfo wol; in ethtool_get_wol() local 1417 memset(&wol, 0, sizeof(struct ethtool_wolinfo)); in ethtool_get_wol() 1418 wol.cmd = ETHTOOL_GWOL; in ethtool_get_wol() 1419 dev->ethtool_ops->get_wol(dev, &wol); in ethtool_get_wol() 1421 if (copy_to_user(useraddr, &wol, sizeof(wol))) in ethtool_get_wol() 1428 struct ethtool_wolinfo wol; in ethtool_set_wol() local 1434 if (copy_from_user(&wol, useraddr, sizeof(wol))) in ethtool_set_wol() 1437 ret = dev->ethtool_ops->set_wol(dev, &wol); in ethtool_set_wol() 1441 dev->wol_enabled = !!wol.wolopts; in ethtool_set_wol()
|