Lines Matching full:wol
229 struct ethtool_wolinfo *wol) in atl1c_get_wol() argument
233 wol->supported = WAKE_MAGIC | WAKE_PHY; in atl1c_get_wol()
234 wol->wolopts = 0; in atl1c_get_wol()
236 if (adapter->wol & AT_WUFC_EX) in atl1c_get_wol()
237 wol->wolopts |= WAKE_UCAST; in atl1c_get_wol()
238 if (adapter->wol & AT_WUFC_MC) in atl1c_get_wol()
239 wol->wolopts |= WAKE_MCAST; in atl1c_get_wol()
240 if (adapter->wol & AT_WUFC_BC) in atl1c_get_wol()
241 wol->wolopts |= WAKE_BCAST; in atl1c_get_wol()
242 if (adapter->wol & AT_WUFC_MAG) in atl1c_get_wol()
243 wol->wolopts |= WAKE_MAGIC; in atl1c_get_wol()
244 if (adapter->wol & AT_WUFC_LNKC) in atl1c_get_wol()
245 wol->wolopts |= WAKE_PHY; in atl1c_get_wol()
248 static int atl1c_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in atl1c_set_wol() argument
252 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | in atl1c_set_wol()
256 adapter->wol = 0; in atl1c_set_wol()
258 if (wol->wolopts & WAKE_MAGIC) in atl1c_set_wol()
259 adapter->wol |= AT_WUFC_MAG; in atl1c_set_wol()
260 if (wol->wolopts & WAKE_PHY) in atl1c_set_wol()
261 adapter->wol |= AT_WUFC_LNKC; in atl1c_set_wol()
263 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in atl1c_set_wol()