Lines Matching refs:wol
1328 const struct ethtool_wolinfo *wol) in netdev_set_wol() argument
1334 if (wol->wolopts) { in netdev_set_wol()
1335 if (wol->wolopts & WAKE_PHY) options |= LinkUp; in netdev_set_wol()
1336 if (wol->wolopts & WAKE_MAGIC) options |= MagicPacket; in netdev_set_wol()
1346 if (wol->wolopts) { in netdev_set_wol()
1347 if (wol->wolopts & WAKE_UCAST) options |= UWF; in netdev_set_wol()
1348 if (wol->wolopts & WAKE_BCAST) options |= BWF; in netdev_set_wol()
1349 if (wol->wolopts & WAKE_MCAST) options |= MWF; in netdev_set_wol()
1354 cp->wol_enabled = (wol->wolopts) ? 1 : 0; in netdev_set_wol()
1361 struct ethtool_wolinfo *wol) in netdev_get_wol() argument
1365 wol->wolopts = 0; /* Start from scratch */ in netdev_get_wol()
1366 wol->supported = WAKE_PHY | WAKE_BCAST | WAKE_MAGIC | in netdev_get_wol()
1372 if (options & LinkUp) wol->wolopts |= WAKE_PHY; in netdev_get_wol()
1373 if (options & MagicPacket) wol->wolopts |= WAKE_MAGIC; in netdev_get_wol()
1377 if (options & UWF) wol->wolopts |= WAKE_UCAST; in netdev_get_wol()
1378 if (options & BWF) wol->wolopts |= WAKE_BCAST; in netdev_get_wol()
1379 if (options & MWF) wol->wolopts |= WAKE_MCAST; in netdev_get_wol()
1501 static void cp_get_wol (struct net_device *dev, struct ethtool_wolinfo *wol) in cp_get_wol() argument
1507 netdev_get_wol (cp, wol); in cp_get_wol()
1511 static int cp_set_wol (struct net_device *dev, struct ethtool_wolinfo *wol) in cp_set_wol() argument
1518 rc = netdev_set_wol (cp, wol); in cp_set_wol()