Lines Matching refs:wol

350 				struct ethtool_wolinfo *wol)  in igc_ethtool_get_wol()  argument
354 wol->wolopts = 0; in igc_ethtool_get_wol()
359 wol->supported = WAKE_UCAST | WAKE_MCAST | in igc_ethtool_get_wol()
369 if (adapter->wol & IGC_WUFC_EX) in igc_ethtool_get_wol()
370 wol->wolopts |= WAKE_UCAST; in igc_ethtool_get_wol()
371 if (adapter->wol & IGC_WUFC_MC) in igc_ethtool_get_wol()
372 wol->wolopts |= WAKE_MCAST; in igc_ethtool_get_wol()
373 if (adapter->wol & IGC_WUFC_BC) in igc_ethtool_get_wol()
374 wol->wolopts |= WAKE_BCAST; in igc_ethtool_get_wol()
375 if (adapter->wol & IGC_WUFC_MAG) in igc_ethtool_get_wol()
376 wol->wolopts |= WAKE_MAGIC; in igc_ethtool_get_wol()
377 if (adapter->wol & IGC_WUFC_LNKC) in igc_ethtool_get_wol()
378 wol->wolopts |= WAKE_PHY; in igc_ethtool_get_wol()
382 struct ethtool_wolinfo *wol) in igc_ethtool_set_wol() argument
386 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | WAKE_FILTER)) in igc_ethtool_set_wol()
390 return wol->wolopts ? -EOPNOTSUPP : 0; in igc_ethtool_set_wol()
393 adapter->wol = 0; in igc_ethtool_set_wol()
395 if (wol->wolopts & WAKE_UCAST) in igc_ethtool_set_wol()
396 adapter->wol |= IGC_WUFC_EX; in igc_ethtool_set_wol()
397 if (wol->wolopts & WAKE_MCAST) in igc_ethtool_set_wol()
398 adapter->wol |= IGC_WUFC_MC; in igc_ethtool_set_wol()
399 if (wol->wolopts & WAKE_BCAST) in igc_ethtool_set_wol()
400 adapter->wol |= IGC_WUFC_BC; in igc_ethtool_set_wol()
401 if (wol->wolopts & WAKE_MAGIC) in igc_ethtool_set_wol()
402 adapter->wol |= IGC_WUFC_MAG; in igc_ethtool_set_wol()
403 if (wol->wolopts & WAKE_PHY) in igc_ethtool_set_wol()
404 adapter->wol |= IGC_WUFC_LNKC; in igc_ethtool_set_wol()
405 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in igc_ethtool_set_wol()