Lines Matching refs:wol

353 				struct ethtool_wolinfo *wol)  in igc_ethtool_get_wol()  argument
357 wol->wolopts = 0; in igc_ethtool_get_wol()
362 wol->supported = WAKE_UCAST | WAKE_MCAST | in igc_ethtool_get_wol()
372 if (adapter->wol & IGC_WUFC_EX) in igc_ethtool_get_wol()
373 wol->wolopts |= WAKE_UCAST; in igc_ethtool_get_wol()
374 if (adapter->wol & IGC_WUFC_MC) in igc_ethtool_get_wol()
375 wol->wolopts |= WAKE_MCAST; in igc_ethtool_get_wol()
376 if (adapter->wol & IGC_WUFC_BC) in igc_ethtool_get_wol()
377 wol->wolopts |= WAKE_BCAST; in igc_ethtool_get_wol()
378 if (adapter->wol & IGC_WUFC_MAG) in igc_ethtool_get_wol()
379 wol->wolopts |= WAKE_MAGIC; in igc_ethtool_get_wol()
380 if (adapter->wol & IGC_WUFC_LNKC) in igc_ethtool_get_wol()
381 wol->wolopts |= WAKE_PHY; in igc_ethtool_get_wol()
385 struct ethtool_wolinfo *wol) in igc_ethtool_set_wol() argument
389 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | WAKE_FILTER)) in igc_ethtool_set_wol()
393 return wol->wolopts ? -EOPNOTSUPP : 0; in igc_ethtool_set_wol()
396 adapter->wol = 0; in igc_ethtool_set_wol()
398 if (wol->wolopts & WAKE_UCAST) in igc_ethtool_set_wol()
399 adapter->wol |= IGC_WUFC_EX; in igc_ethtool_set_wol()
400 if (wol->wolopts & WAKE_MCAST) in igc_ethtool_set_wol()
401 adapter->wol |= IGC_WUFC_MC; in igc_ethtool_set_wol()
402 if (wol->wolopts & WAKE_BCAST) in igc_ethtool_set_wol()
403 adapter->wol |= IGC_WUFC_BC; in igc_ethtool_set_wol()
404 if (wol->wolopts & WAKE_MAGIC) in igc_ethtool_set_wol()
405 adapter->wol |= IGC_WUFC_MAG; in igc_ethtool_set_wol()
406 if (wol->wolopts & WAKE_PHY) in igc_ethtool_set_wol()
407 adapter->wol |= IGC_WUFC_LNKC; in igc_ethtool_set_wol()
408 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in igc_ethtool_set_wol()