Lines Matching refs:wol

349 				struct ethtool_wolinfo *wol)  in igc_ethtool_get_wol()  argument
353 wol->wolopts = 0; in igc_ethtool_get_wol()
358 wol->supported = WAKE_UCAST | WAKE_MCAST | in igc_ethtool_get_wol()
368 if (adapter->wol & IGC_WUFC_EX) in igc_ethtool_get_wol()
369 wol->wolopts |= WAKE_UCAST; in igc_ethtool_get_wol()
370 if (adapter->wol & IGC_WUFC_MC) in igc_ethtool_get_wol()
371 wol->wolopts |= WAKE_MCAST; in igc_ethtool_get_wol()
372 if (adapter->wol & IGC_WUFC_BC) in igc_ethtool_get_wol()
373 wol->wolopts |= WAKE_BCAST; in igc_ethtool_get_wol()
374 if (adapter->wol & IGC_WUFC_MAG) in igc_ethtool_get_wol()
375 wol->wolopts |= WAKE_MAGIC; in igc_ethtool_get_wol()
376 if (adapter->wol & IGC_WUFC_LNKC) in igc_ethtool_get_wol()
377 wol->wolopts |= WAKE_PHY; in igc_ethtool_get_wol()
381 struct ethtool_wolinfo *wol) in igc_ethtool_set_wol() argument
385 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | WAKE_FILTER)) in igc_ethtool_set_wol()
389 return wol->wolopts ? -EOPNOTSUPP : 0; in igc_ethtool_set_wol()
392 adapter->wol = 0; in igc_ethtool_set_wol()
394 if (wol->wolopts & WAKE_UCAST) in igc_ethtool_set_wol()
395 adapter->wol |= IGC_WUFC_EX; in igc_ethtool_set_wol()
396 if (wol->wolopts & WAKE_MCAST) in igc_ethtool_set_wol()
397 adapter->wol |= IGC_WUFC_MC; in igc_ethtool_set_wol()
398 if (wol->wolopts & WAKE_BCAST) in igc_ethtool_set_wol()
399 adapter->wol |= IGC_WUFC_BC; in igc_ethtool_set_wol()
400 if (wol->wolopts & WAKE_MAGIC) in igc_ethtool_set_wol()
401 adapter->wol |= IGC_WUFC_MAG; in igc_ethtool_set_wol()
402 if (wol->wolopts & WAKE_PHY) in igc_ethtool_set_wol()
403 adapter->wol |= IGC_WUFC_LNKC; in igc_ethtool_set_wol()
404 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in igc_ethtool_set_wol()