Lines Matching full:wol
316 struct ethtool_wolinfo *wol) in atl1e_get_wol() argument
320 wol->supported = WAKE_MAGIC | WAKE_PHY; in atl1e_get_wol()
321 wol->wolopts = 0; in atl1e_get_wol()
323 if (adapter->wol & AT_WUFC_EX) in atl1e_get_wol()
324 wol->wolopts |= WAKE_UCAST; in atl1e_get_wol()
325 if (adapter->wol & AT_WUFC_MC) in atl1e_get_wol()
326 wol->wolopts |= WAKE_MCAST; in atl1e_get_wol()
327 if (adapter->wol & AT_WUFC_BC) in atl1e_get_wol()
328 wol->wolopts |= WAKE_BCAST; in atl1e_get_wol()
329 if (adapter->wol & AT_WUFC_MAG) in atl1e_get_wol()
330 wol->wolopts |= WAKE_MAGIC; in atl1e_get_wol()
331 if (adapter->wol & AT_WUFC_LNKC) in atl1e_get_wol()
332 wol->wolopts |= WAKE_PHY; in atl1e_get_wol()
335 static int atl1e_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in atl1e_set_wol() argument
339 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | in atl1e_set_wol()
343 adapter->wol = 0; in atl1e_set_wol()
345 if (wol->wolopts & WAKE_MAGIC) in atl1e_set_wol()
346 adapter->wol |= AT_WUFC_MAG; in atl1e_set_wol()
347 if (wol->wolopts & WAKE_PHY) in atl1e_set_wol()
348 adapter->wol |= AT_WUFC_LNKC; in atl1e_set_wol()
350 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in atl1e_set_wol()