Lines Matching refs:wol
641 static void gfar_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in gfar_get_wol() argument
645 wol->supported = 0; in gfar_get_wol()
646 wol->wolopts = 0; in gfar_get_wol()
649 wol->supported |= WAKE_MAGIC; in gfar_get_wol()
652 wol->supported |= WAKE_UCAST; in gfar_get_wol()
655 wol->wolopts |= WAKE_MAGIC; in gfar_get_wol()
658 wol->wolopts |= WAKE_UCAST; in gfar_get_wol()
661 static int gfar_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in gfar_set_wol() argument
667 if (!priv->wol_supported && wol->wolopts) in gfar_set_wol()
670 if (wol->wolopts & ~(WAKE_MAGIC | WAKE_UCAST)) in gfar_set_wol()
673 if (wol->wolopts & WAKE_MAGIC) { in gfar_set_wol()
676 if (wol->wolopts & WAKE_UCAST) in gfar_set_wol()