Lines Matching refs:wol
322 struct ethtool_wolinfo *wol) in atl1e_get_wol() argument
326 wol->supported = WAKE_MAGIC | WAKE_PHY; in atl1e_get_wol()
327 wol->wolopts = 0; in atl1e_get_wol()
329 if (adapter->wol & AT_WUFC_EX) in atl1e_get_wol()
330 wol->wolopts |= WAKE_UCAST; in atl1e_get_wol()
331 if (adapter->wol & AT_WUFC_MC) in atl1e_get_wol()
332 wol->wolopts |= WAKE_MCAST; in atl1e_get_wol()
333 if (adapter->wol & AT_WUFC_BC) in atl1e_get_wol()
334 wol->wolopts |= WAKE_BCAST; in atl1e_get_wol()
335 if (adapter->wol & AT_WUFC_MAG) in atl1e_get_wol()
336 wol->wolopts |= WAKE_MAGIC; in atl1e_get_wol()
337 if (adapter->wol & AT_WUFC_LNKC) in atl1e_get_wol()
338 wol->wolopts |= WAKE_PHY; in atl1e_get_wol()
341 static int atl1e_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in atl1e_set_wol() argument
345 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | in atl1e_set_wol()
349 adapter->wol = 0; in atl1e_set_wol()
351 if (wol->wolopts & WAKE_MAGIC) in atl1e_set_wol()
352 adapter->wol |= AT_WUFC_MAG; in atl1e_set_wol()
353 if (wol->wolopts & WAKE_PHY) in atl1e_set_wol()
354 adapter->wol |= AT_WUFC_LNKC; in atl1e_set_wol()
356 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in atl1e_set_wol()