Lines Matching full:wol
1327 const struct ethtool_wolinfo *wol) in netdev_set_wol() argument
1332 /* If WOL is being disabled, no need for complexity */ in netdev_set_wol()
1333 if (wol->wolopts) { in netdev_set_wol()
1334 if (wol->wolopts & WAKE_PHY) options |= LinkUp; in netdev_set_wol()
1335 if (wol->wolopts & WAKE_MAGIC) options |= MagicPacket; in netdev_set_wol()
1344 /* If WOL is being disabled, no need for complexity */ in netdev_set_wol()
1345 if (wol->wolopts) { in netdev_set_wol()
1346 if (wol->wolopts & WAKE_UCAST) options |= UWF; in netdev_set_wol()
1347 if (wol->wolopts & WAKE_BCAST) options |= BWF; in netdev_set_wol()
1348 if (wol->wolopts & WAKE_MCAST) options |= MWF; in netdev_set_wol()
1353 cp->wol_enabled = (wol->wolopts) ? 1 : 0; in netdev_set_wol()
1360 struct ethtool_wolinfo *wol) in netdev_get_wol() argument
1364 wol->wolopts = 0; /* Start from scratch */ in netdev_get_wol()
1365 wol->supported = WAKE_PHY | WAKE_BCAST | WAKE_MAGIC | in netdev_get_wol()
1367 /* We don't need to go on if WOL is disabled */ in netdev_get_wol()
1371 if (options & LinkUp) wol->wolopts |= WAKE_PHY; in netdev_get_wol()
1372 if (options & MagicPacket) wol->wolopts |= WAKE_MAGIC; in netdev_get_wol()
1376 if (options & UWF) wol->wolopts |= WAKE_UCAST; in netdev_get_wol()
1377 if (options & BWF) wol->wolopts |= WAKE_BCAST; in netdev_get_wol()
1378 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()