Lines Matching refs:wol
1333 const struct ethtool_wolinfo *wol) in netdev_set_wol() argument
1339 if (wol->wolopts) { in netdev_set_wol()
1340 if (wol->wolopts & WAKE_PHY) options |= LinkUp; in netdev_set_wol()
1341 if (wol->wolopts & WAKE_MAGIC) options |= MagicPacket; in netdev_set_wol()
1351 if (wol->wolopts) { in netdev_set_wol()
1352 if (wol->wolopts & WAKE_UCAST) options |= UWF; in netdev_set_wol()
1353 if (wol->wolopts & WAKE_BCAST) options |= BWF; in netdev_set_wol()
1354 if (wol->wolopts & WAKE_MCAST) options |= MWF; in netdev_set_wol()
1359 cp->wol_enabled = (wol->wolopts) ? 1 : 0; in netdev_set_wol()
1366 struct ethtool_wolinfo *wol) in netdev_get_wol() argument
1370 wol->wolopts = 0; /* Start from scratch */ in netdev_get_wol()
1371 wol->supported = WAKE_PHY | WAKE_BCAST | WAKE_MAGIC | in netdev_get_wol()
1377 if (options & LinkUp) wol->wolopts |= WAKE_PHY; in netdev_get_wol()
1378 if (options & MagicPacket) wol->wolopts |= WAKE_MAGIC; in netdev_get_wol()
1382 if (options & UWF) wol->wolopts |= WAKE_UCAST; in netdev_get_wol()
1383 if (options & BWF) wol->wolopts |= WAKE_BCAST; in netdev_get_wol()
1384 if (options & MWF) wol->wolopts |= WAKE_MCAST; in netdev_get_wol()
1506 static void cp_get_wol (struct net_device *dev, struct ethtool_wolinfo *wol) in cp_get_wol() argument
1512 netdev_get_wol (cp, wol); in cp_get_wol()
1516 static int cp_set_wol (struct net_device *dev, struct ethtool_wolinfo *wol) in cp_set_wol() argument
1523 rc = netdev_set_wol (cp, wol); in cp_set_wol()