Lines Matching full:wol
330 struct ethtool_wolinfo *wol) in igc_ethtool_get_wol() argument
334 wol->wolopts = 0; in igc_ethtool_get_wol()
339 wol->supported = WAKE_UCAST | WAKE_MCAST | in igc_ethtool_get_wol()
349 if (adapter->wol & IGC_WUFC_EX) in igc_ethtool_get_wol()
350 wol->wolopts |= WAKE_UCAST; in igc_ethtool_get_wol()
351 if (adapter->wol & IGC_WUFC_MC) in igc_ethtool_get_wol()
352 wol->wolopts |= WAKE_MCAST; in igc_ethtool_get_wol()
353 if (adapter->wol & IGC_WUFC_BC) in igc_ethtool_get_wol()
354 wol->wolopts |= WAKE_BCAST; in igc_ethtool_get_wol()
355 if (adapter->wol & IGC_WUFC_MAG) in igc_ethtool_get_wol()
356 wol->wolopts |= WAKE_MAGIC; in igc_ethtool_get_wol()
357 if (adapter->wol & IGC_WUFC_LNKC) in igc_ethtool_get_wol()
358 wol->wolopts |= WAKE_PHY; in igc_ethtool_get_wol()
362 struct ethtool_wolinfo *wol) in igc_ethtool_set_wol() argument
366 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | WAKE_FILTER)) in igc_ethtool_set_wol()
370 return wol->wolopts ? -EOPNOTSUPP : 0; in igc_ethtool_set_wol()
373 adapter->wol = 0; in igc_ethtool_set_wol()
375 if (wol->wolopts & WAKE_UCAST) in igc_ethtool_set_wol()
376 adapter->wol |= IGC_WUFC_EX; in igc_ethtool_set_wol()
377 if (wol->wolopts & WAKE_MCAST) in igc_ethtool_set_wol()
378 adapter->wol |= IGC_WUFC_MC; in igc_ethtool_set_wol()
379 if (wol->wolopts & WAKE_BCAST) in igc_ethtool_set_wol()
380 adapter->wol |= IGC_WUFC_BC; in igc_ethtool_set_wol()
381 if (wol->wolopts & WAKE_MAGIC) in igc_ethtool_set_wol()
382 adapter->wol |= IGC_WUFC_MAG; in igc_ethtool_set_wol()
383 if (wol->wolopts & WAKE_PHY) in igc_ethtool_set_wol()
384 adapter->wol |= IGC_WUFC_LNKC; in igc_ethtool_set_wol()
385 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in igc_ethtool_set_wol()