Lines Matching refs:wolinfo
399 sr_get_wol(struct net_device *net, struct ethtool_wolinfo *wolinfo) in sr_get_wol() argument
405 wolinfo->supported = 0; in sr_get_wol()
406 wolinfo->wolopts = 0; in sr_get_wol()
409 wolinfo->supported = WAKE_PHY | WAKE_MAGIC; in sr_get_wol()
410 wolinfo->wolopts = 0; in sr_get_wol()
412 wolinfo->wolopts |= WAKE_PHY; in sr_get_wol()
414 wolinfo->wolopts |= WAKE_MAGIC; in sr_get_wol()
418 sr_set_wol(struct net_device *net, struct ethtool_wolinfo *wolinfo) in sr_set_wol() argument
423 if (wolinfo->wolopts & ~(WAKE_PHY | WAKE_MAGIC)) in sr_set_wol()
426 if (wolinfo->wolopts & WAKE_PHY) in sr_set_wol()
428 if (wolinfo->wolopts & WAKE_MAGIC) in sr_set_wol()