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