Lines Matching refs:wol
3445 static void velocity_ethtool_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in velocity_ethtool_get_wol() argument
3448 wol->supported = WAKE_PHY | WAKE_MAGIC | WAKE_UCAST | WAKE_ARP; in velocity_ethtool_get_wol()
3449 wol->wolopts |= WAKE_MAGIC; in velocity_ethtool_get_wol()
3455 wol->wolopts |= WAKE_UCAST; in velocity_ethtool_get_wol()
3457 wol->wolopts |= WAKE_ARP; in velocity_ethtool_get_wol()
3458 memcpy(&wol->sopass, vptr->wol_passwd, 6); in velocity_ethtool_get_wol()
3461 static int velocity_ethtool_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in velocity_ethtool_set_wol() argument
3465 if (!(wol->wolopts & (WAKE_PHY | WAKE_MAGIC | WAKE_UCAST | WAKE_ARP))) in velocity_ethtool_set_wol()
3476 if (wol->wolopts & WAKE_MAGIC) { in velocity_ethtool_set_wol()
3480 if (wol->wolopts & WAKE_UCAST) { in velocity_ethtool_set_wol()
3484 if (wol->wolopts & WAKE_ARP) { in velocity_ethtool_set_wol()
3488 memcpy(vptr->wol_passwd, wol->sopass, 6); in velocity_ethtool_set_wol()