Lines Matching refs:wol
239 struct ethtool_wolinfo *wol) in atl1c_get_wol() argument
243 wol->supported = WAKE_MAGIC | WAKE_PHY; in atl1c_get_wol()
244 wol->wolopts = 0; in atl1c_get_wol()
246 if (adapter->wol & AT_WUFC_EX) in atl1c_get_wol()
247 wol->wolopts |= WAKE_UCAST; in atl1c_get_wol()
248 if (adapter->wol & AT_WUFC_MC) in atl1c_get_wol()
249 wol->wolopts |= WAKE_MCAST; in atl1c_get_wol()
250 if (adapter->wol & AT_WUFC_BC) in atl1c_get_wol()
251 wol->wolopts |= WAKE_BCAST; in atl1c_get_wol()
252 if (adapter->wol & AT_WUFC_MAG) in atl1c_get_wol()
253 wol->wolopts |= WAKE_MAGIC; in atl1c_get_wol()
254 if (adapter->wol & AT_WUFC_LNKC) in atl1c_get_wol()
255 wol->wolopts |= WAKE_PHY; in atl1c_get_wol()
258 static int atl1c_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in atl1c_set_wol() argument
262 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | in atl1c_set_wol()
266 adapter->wol = 0; in atl1c_set_wol()
268 if (wol->wolopts & WAKE_MAGIC) in atl1c_set_wol()
269 adapter->wol |= AT_WUFC_MAG; in atl1c_set_wol()
270 if (wol->wolopts & WAKE_PHY) in atl1c_set_wol()
271 adapter->wol |= AT_WUFC_LNKC; in atl1c_set_wol()
273 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in atl1c_set_wol()