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