Home
last modified time | relevance | path

Searched refs:wolopts (Results 1 – 84 of 84) sorted by relevance

/linux-4.1.27/drivers/net/wireless/libertas/
Dethtool.c77 wol->wolopts |= WAKE_UCAST; in lbs_ethtool_get_wol()
79 wol->wolopts |= WAKE_MCAST; in lbs_ethtool_get_wol()
81 wol->wolopts |= WAKE_BCAST; in lbs_ethtool_get_wol()
83 wol->wolopts |= WAKE_PHY; in lbs_ethtool_get_wol()
91 if (wol->wolopts & ~(WAKE_UCAST|WAKE_MCAST|WAKE_BCAST|WAKE_PHY)) in lbs_ethtool_set_wol()
95 if (wol->wolopts & WAKE_UCAST) in lbs_ethtool_set_wol()
97 if (wol->wolopts & WAKE_MCAST) in lbs_ethtool_set_wol()
99 if (wol->wolopts & WAKE_BCAST) in lbs_ethtool_set_wol()
101 if (wol->wolopts & WAKE_PHY) in lbs_ethtool_set_wol()
103 if (wol->wolopts == 0) in lbs_ethtool_set_wol()
/linux-4.1.27/drivers/net/wireless/mwifiex/
Dethtool.c34 wol->wolopts |= WAKE_UCAST; in mwifiex_ethtool_get_wol()
36 wol->wolopts |= WAKE_MCAST; in mwifiex_ethtool_get_wol()
38 wol->wolopts |= WAKE_BCAST; in mwifiex_ethtool_get_wol()
40 wol->wolopts |= WAKE_PHY; in mwifiex_ethtool_get_wol()
49 if (wol->wolopts & ~(WAKE_UCAST|WAKE_MCAST|WAKE_BCAST|WAKE_PHY)) in mwifiex_ethtool_set_wol()
52 if (wol->wolopts & WAKE_UCAST) in mwifiex_ethtool_set_wol()
54 if (wol->wolopts & WAKE_MCAST) in mwifiex_ethtool_set_wol()
56 if (wol->wolopts & WAKE_BCAST) in mwifiex_ethtool_set_wol()
58 if (wol->wolopts & WAKE_PHY) in mwifiex_ethtool_set_wol()
60 if (wol->wolopts == 0) in mwifiex_ethtool_set_wol()
/linux-4.1.27/drivers/net/ethernet/broadcom/genet/
Dbcmgenet_wol.c50 wol->wolopts = priv->wolopts; in bcmgenet_get_wol()
53 if (wol->wolopts & WAKE_MAGICSECURE) { in bcmgenet_get_wol()
73 if (wol->wolopts & ~(WAKE_MAGIC | WAKE_MAGICSECURE)) in bcmgenet_set_wol()
77 if (wol->wolopts & WAKE_MAGICSECURE) { in bcmgenet_set_wol()
89 if (wol->wolopts) { in bcmgenet_set_wol()
103 priv->wolopts = wol->wolopts; in bcmgenet_set_wol()
Dbcmgenet.h634 u32 wolopts; member
Dbcmgenet.c3256 if (device_may_wakeup(d) && priv->wolopts) { in bcmgenet_suspend()
3298 if (priv->wolopts) in bcmgenet_resume()
3316 if (priv->wolopts) in bcmgenet_resume()
/linux-4.1.27/drivers/net/ethernet/atheros/atl1c/
Datl1c_ethtool.c248 wol->wolopts = 0; in atl1c_get_wol()
251 wol->wolopts |= WAKE_UCAST; in atl1c_get_wol()
253 wol->wolopts |= WAKE_MCAST; in atl1c_get_wol()
255 wol->wolopts |= WAKE_BCAST; in atl1c_get_wol()
257 wol->wolopts |= WAKE_MAGIC; in atl1c_get_wol()
259 wol->wolopts |= WAKE_PHY; in atl1c_get_wol()
266 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | in atl1c_set_wol()
272 if (wol->wolopts & WAKE_MAGIC) in atl1c_set_wol()
274 if (wol->wolopts & WAKE_PHY) in atl1c_set_wol()
/linux-4.1.27/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c206 wol->wolopts = 0; in pch_gbe_get_wol()
209 wol->wolopts |= WAKE_UCAST; in pch_gbe_get_wol()
211 wol->wolopts |= WAKE_MCAST; in pch_gbe_get_wol()
213 wol->wolopts |= WAKE_BCAST; in pch_gbe_get_wol()
215 wol->wolopts |= WAKE_MAGIC; in pch_gbe_get_wol()
231 if ((wol->wolopts & (WAKE_PHY | WAKE_ARP | WAKE_MAGICSECURE))) in pch_gbe_set_wol()
236 if ((wol->wolopts & WAKE_UCAST)) in pch_gbe_set_wol()
238 if ((wol->wolopts & WAKE_MCAST)) in pch_gbe_set_wol()
240 if ((wol->wolopts & WAKE_BCAST)) in pch_gbe_set_wol()
242 if ((wol->wolopts & WAKE_MAGIC)) in pch_gbe_set_wol()
/linux-4.1.27/drivers/net/ethernet/atheros/atl1e/
Datl1e_ethtool.c331 wol->wolopts = 0; in atl1e_get_wol()
334 wol->wolopts |= WAKE_UCAST; in atl1e_get_wol()
336 wol->wolopts |= WAKE_MCAST; in atl1e_get_wol()
338 wol->wolopts |= WAKE_BCAST; in atl1e_get_wol()
340 wol->wolopts |= WAKE_MAGIC; in atl1e_get_wol()
342 wol->wolopts |= WAKE_PHY; in atl1e_get_wol()
349 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | in atl1e_set_wol()
355 if (wol->wolopts & WAKE_MAGIC) in atl1e_set_wol()
357 if (wol->wolopts & WAKE_PHY) in atl1e_set_wol()
/linux-4.1.27/drivers/net/ethernet/freescale/
Ducc_geth_ethtool.c370 wol->wolopts = ugeth->wol_en; in uec_get_wol()
378 if (wol->wolopts & ~(WAKE_PHY | WAKE_MAGIC)) in uec_set_wol()
380 else if (wol->wolopts & WAKE_PHY && (!phydev || !phydev->irq)) in uec_set_wol()
382 else if (wol->wolopts & WAKE_MAGIC && !qe_alive_during_sleep()) in uec_set_wol()
385 ugeth->wol_en = wol->wolopts; in uec_set_wol()
Dgianfar_ethtool.c647 wol->wolopts = priv->wol_en ? WAKE_MAGIC : 0; in gfar_get_wol()
649 wol->supported = wol->wolopts = 0; in gfar_get_wol()
659 wol->wolopts != 0) in gfar_set_wol()
662 if (wol->wolopts & ~WAKE_MAGIC) in gfar_set_wol()
665 device_set_wakeup_enable(&dev->dev, wol->wolopts & WAKE_MAGIC); in gfar_set_wol()
Dfec_main.c2484 wol->wolopts = fep->wol_flag & FEC_WOL_FLAG_ENABLE ? WAKE_MAGIC : 0; in fec_enet_get_wol()
2486 wol->supported = wol->wolopts = 0; in fec_enet_get_wol()
2498 if (wol->wolopts & ~WAKE_MAGIC) in fec_enet_set_wol()
2501 device_set_wakeup_enable(&ndev->dev, wol->wolopts & WAKE_MAGIC); in fec_enet_set_wol()
/linux-4.1.27/drivers/net/usb/
Dsmsc95xx.c67 u32 wolopts; member
720 wolinfo->wolopts = pdata->wolopts; in smsc95xx_ethtool_get_wol()
730 pdata->wolopts = wolinfo->wolopts & SUPPORTED_WAKE; in smsc95xx_ethtool_set_wol()
732 ret = device_set_wakeup_enable(&dev->udev->dev, pdata->wolopts); in smsc95xx_ethtool_set_wol()
1239 if (pdata->wolopts & WAKE_PHY) in smsc95xx_enter_suspend0()
1443 if (!(pdata->wolopts & SUPPORTED_WAKE) || in smsc95xx_suspend()
1444 !(link_up || (pdata->wolopts & WAKE_PHY))) { in smsc95xx_suspend()
1472 if (pdata->wolopts & WAKE_PHY) { in smsc95xx_suspend()
1490 if (pdata->wolopts & (WAKE_BCAST | WAKE_MCAST | WAKE_ARP | WAKE_UCAST)) { in smsc95xx_suspend()
1510 if (pdata->wolopts & WAKE_BCAST) { in smsc95xx_suspend()
[all …]
Dasix_common.c404 wolinfo->wolopts = 0; in asix_get_wol()
408 wolinfo->wolopts = 0; in asix_get_wol()
410 wolinfo->wolopts |= WAKE_PHY; in asix_get_wol()
412 wolinfo->wolopts |= WAKE_MAGIC; in asix_get_wol()
420 if (wolinfo->wolopts & WAKE_PHY) in asix_set_wol()
422 if (wolinfo->wolopts & WAKE_MAGIC) in asix_set_wol()
Dsmsc75xx.c67 u32 wolopts; member
718 wolinfo->wolopts = pdata->wolopts; in smsc75xx_ethtool_get_wol()
728 pdata->wolopts = wolinfo->wolopts & SUPPORTED_WAKE; in smsc75xx_ethtool_set_wol()
730 ret = device_set_wakeup_enable(&dev->udev->dev, pdata->wolopts); in smsc75xx_ethtool_set_wol()
1750 if (!(pdata->wolopts & SUPPORTED_WAKE) || in smsc75xx_suspend()
1751 !(link_up || (pdata->wolopts & WAKE_PHY))) { in smsc75xx_suspend()
1787 if (pdata->wolopts & WAKE_PHY) { in smsc75xx_suspend()
1821 if (pdata->wolopts & (WAKE_MCAST | WAKE_ARP)) { in smsc75xx_suspend()
1833 if (pdata->wolopts & WAKE_MCAST) { in smsc75xx_suspend()
1846 if (pdata->wolopts & WAKE_ARP) { in smsc75xx_suspend()
[all …]
Dsr9800.c407 wolinfo->wolopts = 0; in sr_get_wol()
411 wolinfo->wolopts = 0; in sr_get_wol()
413 wolinfo->wolopts |= WAKE_PHY; in sr_get_wol()
415 wolinfo->wolopts |= WAKE_MAGIC; in sr_get_wol()
424 if (wolinfo->wolopts & WAKE_PHY) in sr_set_wol()
426 if (wolinfo->wolopts & WAKE_MAGIC) in sr_set_wol()
Dpegasus.c895 wol->wolopts = pegasus->wolopts; in pegasus_get_wol()
905 if (wol->wolopts & ~WOL_SUPPORTED) in pegasus_set_wol()
908 if (wol->wolopts & WAKE_MAGIC) in pegasus_set_wol()
910 if (wol->wolopts & WAKE_PHY) in pegasus_set_wol()
913 if (wol->wolopts) in pegasus_set_wol()
917 pegasus->wolopts = wol->wolopts; in pegasus_set_wol()
922 wol->wolopts); in pegasus_set_wol()
Dr8152.c2276 u32 wolopts = 0; in __rtl_get_wol() local
2284 wolopts |= WAKE_PHY; in __rtl_get_wol()
2288 wolopts |= WAKE_UCAST; in __rtl_get_wol()
2290 wolopts |= WAKE_BCAST; in __rtl_get_wol()
2292 wolopts |= WAKE_MCAST; in __rtl_get_wol()
2296 wolopts |= WAKE_MAGIC; in __rtl_get_wol()
2298 return wolopts; in __rtl_get_wol()
2301 static void __rtl_set_wol(struct r8152 *tp, u32 wolopts) in __rtl_set_wol() argument
2309 if (wolopts & WAKE_PHY) in __rtl_set_wol()
2315 if (wolopts & WAKE_UCAST) in __rtl_set_wol()
[all …]
Dax88179_178a.c551 wolinfo->wolopts = 0; in ax88179_get_wol()
556 wolinfo->wolopts = 0; in ax88179_get_wol()
558 wolinfo->wolopts |= WAKE_PHY; in ax88179_get_wol()
560 wolinfo->wolopts |= WAKE_MAGIC; in ax88179_get_wol()
569 if (wolinfo->wolopts & WAKE_PHY) in ax88179_set_wol()
571 if (wolinfo->wolopts & WAKE_MAGIC) in ax88179_set_wol()
Dpegasus.h91 u32 wolopts; member
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ethtool.c560 wol->wolopts = priv->wolopts; in stmmac_get_wol()
574 wol->wolopts &= ~WAKE_MAGIC; in stmmac_set_wol()
579 if (wol->wolopts & ~support) in stmmac_set_wol()
582 if (wol->wolopts) { in stmmac_set_wol()
592 priv->wolopts = wol->wolopts; in stmmac_set_wol()
Dstmmac.h97 int wolopts; member
Dstmmac_main.c3031 priv->hw->mac->pmt(priv->hw, priv->wolopts); in stmmac_suspend()
/linux-4.1.27/drivers/net/phy/
Dat803x.c104 if (wol->wolopts & WAKE_MAGIC) { in at803x_set_wol()
145 wol->wolopts = 0; in at803x_get_wol()
149 wol->wolopts |= WAKE_MAGIC; in at803x_get_wol()
Dmarvell.c839 wol->wolopts = 0; in m88e1318_get_wol()
847 wol->wolopts |= WAKE_MAGIC; in m88e1318_get_wol()
859 if (wol->wolopts & WAKE_MAGIC) { in m88e1318_set_wol()
Dphy_device.c706 if (wol.wolopts) in phy_suspend()
/linux-4.1.27/drivers/net/ethernet/realtek/
D8139cp.c1334 if (wol->wolopts) { in netdev_set_wol()
1335 if (wol->wolopts & WAKE_PHY) options |= LinkUp; in netdev_set_wol()
1336 if (wol->wolopts & WAKE_MAGIC) options |= MagicPacket; in netdev_set_wol()
1346 if (wol->wolopts) { in netdev_set_wol()
1347 if (wol->wolopts & WAKE_UCAST) options |= UWF; in netdev_set_wol()
1348 if (wol->wolopts & WAKE_BCAST) options |= BWF; in netdev_set_wol()
1349 if (wol->wolopts & WAKE_MCAST) options |= MWF; in netdev_set_wol()
1354 cp->wol_enabled = (wol->wolopts) ? 1 : 0; in netdev_set_wol()
1365 wol->wolopts = 0; /* Start from scratch */ in netdev_get_wol()
1372 if (options & LinkUp) wol->wolopts |= WAKE_PHY; in netdev_get_wol()
[all …]
D8139too.c2324 wol->wolopts = 0; in rtl8139_get_wol()
2326 wol->wolopts |= WAKE_PHY; in rtl8139_get_wol()
2328 wol->wolopts |= WAKE_MAGIC; in rtl8139_get_wol()
2332 wol->wolopts |= WAKE_UCAST; in rtl8139_get_wol()
2334 wol->wolopts |= WAKE_MCAST; in rtl8139_get_wol()
2336 wol->wolopts |= WAKE_BCAST; in rtl8139_get_wol()
2356 if (wol->wolopts & ~support) in rtl8139_set_wol()
2361 if (wol->wolopts & WAKE_PHY) in rtl8139_set_wol()
2363 if (wol->wolopts & WAKE_MAGIC) in rtl8139_set_wol()
2373 if (wol->wolopts & WAKE_UCAST) in rtl8139_set_wol()
[all …]
Dr8169.c1690 u32 wolopts = 0; in __rtl8169_get_wol() local
1698 wolopts |= WAKE_PHY; in __rtl8169_get_wol()
1718 wolopts |= WAKE_MAGIC; in __rtl8169_get_wol()
1722 wolopts |= WAKE_MAGIC; in __rtl8169_get_wol()
1728 wolopts |= WAKE_UCAST; in __rtl8169_get_wol()
1730 wolopts |= WAKE_BCAST; in __rtl8169_get_wol()
1732 wolopts |= WAKE_MCAST; in __rtl8169_get_wol()
1734 return wolopts; in __rtl8169_get_wol()
1744 wol->wolopts = __rtl8169_get_wol(tp); in rtl8169_get_wol()
1749 static void __rtl8169_set_wol(struct rtl8169_private *tp, u32 wolopts) in __rtl8169_set_wol() argument
[all …]
/linux-4.1.27/drivers/net/ethernet/dec/tulip/
Dtulip_core.c271 static void tulip_set_wolopts(struct pci_dev *pdev, u32 wolopts);
886 if (wolinfo->wolopts & (~tp->wolinfo.supported)) in tulip_ethtool_set_wol()
889 tp->wolinfo.wolopts = wolinfo->wolopts; in tulip_ethtool_set_wol()
890 device_set_wakeup_enable(&tp->pdev->dev, tp->wolinfo.wolopts); in tulip_ethtool_set_wol()
900 wolinfo->wolopts = tp->wolinfo.wolopts; in tulip_ethtool_get_wol()
1461 tp->wolinfo.wolopts = 0; in tulip_init_one()
1805 static void tulip_set_wolopts (struct pci_dev *pdev, u32 wolopts) in tulip_set_wolopts() argument
1823 if (wolopts & WAKE_MAGIC) in tulip_set_wolopts()
1825 if (wolopts & WAKE_PHY) in tulip_set_wolopts()
1861 tulip_set_wolopts(pdev, tp->wolinfo.wolopts); in tulip_suspend()
[all …]
Ddmfe.c1107 if (wolinfo->wolopts & (WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | in dmfe_ethtool_set_wol()
1111 db->wol_mode = wolinfo->wolopts; in dmfe_ethtool_set_wol()
1121 wolinfo->wolopts = db->wol_mode; in dmfe_ethtool_get_wol()
Duli526x.c1005 wol->wolopts = 0; in uli526x_get_wol()
/linux-4.1.27/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c1667 wol->wolopts = 0; in e1000_get_wol()
1691 wol->wolopts |= WAKE_UCAST; in e1000_get_wol()
1693 wol->wolopts |= WAKE_MCAST; in e1000_get_wol()
1695 wol->wolopts |= WAKE_BCAST; in e1000_get_wol()
1697 wol->wolopts |= WAKE_MAGIC; in e1000_get_wol()
1705 if (wol->wolopts & (WAKE_PHY | WAKE_ARP | WAKE_MAGICSECURE)) in e1000_set_wol()
1710 return wol->wolopts ? -EOPNOTSUPP : 0; in e1000_set_wol()
1714 if (wol->wolopts & WAKE_UCAST) { in e1000_set_wol()
1727 if (wol->wolopts & WAKE_UCAST) in e1000_set_wol()
1729 if (wol->wolopts & WAKE_MCAST) in e1000_set_wol()
[all …]
/linux-4.1.27/drivers/net/dsa/
Dbcm_sf2.c997 if (pwol.wolopts & WAKE_MAGICSECURE) in bcm_sf2_sw_get_wol()
1001 wol->wolopts = pwol.wolopts; in bcm_sf2_sw_get_wol()
1003 wol->wolopts = 0; in bcm_sf2_sw_get_wol()
1015 if (wol->wolopts & ~pwol.supported) in bcm_sf2_sw_set_wol()
1018 if (wol->wolopts) in bcm_sf2_sw_set_wol()
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dbcmsysport.c407 wol->wolopts = priv->wolopts; in bcm_sysport_get_wol()
409 if (!(priv->wolopts & WAKE_MAGICSECURE)) in bcm_sysport_get_wol()
429 if (wol->wolopts & ~supported) in bcm_sysport_set_wol()
433 if (wol->wolopts & WAKE_MAGICSECURE) { in bcm_sysport_set_wol()
441 if (wol->wolopts) { in bcm_sysport_set_wol()
454 priv->wolopts = wol->wolopts; in bcm_sysport_set_wol()
1797 if (priv->wolopts & WAKE_MAGICSECURE) in bcm_sysport_suspend_to_wol()
1864 if (!priv->wolopts) in bcm_sysport_suspend()
1886 if (device_may_wakeup(d) && priv->wolopts) in bcm_sysport_suspend()
Dbcmsysport.h686 u32 wolopts; member
Db44.c2090 wol->wolopts = WAKE_MAGIC; in b44_get_wol()
2092 wol->wolopts = 0; in b44_get_wol()
2101 if (wol->wolopts & WAKE_MAGIC) in b44_set_wol()
2107 device_set_wakeup_enable(bp->sdev->dev, wol->wolopts & WAKE_MAGIC); in b44_set_wol()
Dbnx2.c7086 wol->wolopts = 0; in bnx2_get_wol()
7091 wol->wolopts = WAKE_MAGIC; in bnx2_get_wol()
7093 wol->wolopts = 0; in bnx2_get_wol()
7103 if (wol->wolopts & ~WAKE_MAGIC) in bnx2_set_wol()
7106 if (wol->wolopts & WAKE_MAGIC) { in bnx2_set_wol()
Dtg3.c12259 wol->wolopts = 0; in tg3_get_wol()
12261 wol->wolopts = WAKE_MAGIC; in tg3_get_wol()
12270 if (wol->wolopts & ~WAKE_MAGIC) in tg3_set_wol()
12272 if ((wol->wolopts & WAKE_MAGIC) && in tg3_set_wol()
12276 device_set_wakeup_enable(dp, wol->wolopts & WAKE_MAGIC); in tg3_set_wol()
/linux-4.1.27/drivers/net/ethernet/calxeda/
Dxgmac.c392 int wolopts; member
1668 wol->wolopts = priv->wolopts; in xgmac_get_wol()
1681 if (wol->wolopts & ~support) in xgmac_set_wol()
1684 priv->wolopts = wol->wolopts; in xgmac_set_wol()
1686 if (wol->wolopts) { in xgmac_set_wol()
1798 priv->wolopts = WAKE_MAGIC; /* Magic Frame as default */ in xgmac_probe()
1897 xgmac_pmt(priv->base, priv->wolopts); in xgmac_suspend()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
Dethtool.c1869 wol->wolopts = 0; in e1000_get_wol()
1887 wol->wolopts |= WAKE_UCAST; in e1000_get_wol()
1889 wol->wolopts |= WAKE_MCAST; in e1000_get_wol()
1891 wol->wolopts |= WAKE_BCAST; in e1000_get_wol()
1893 wol->wolopts |= WAKE_MAGIC; in e1000_get_wol()
1895 wol->wolopts |= WAKE_PHY; in e1000_get_wol()
1904 (wol->wolopts & ~(WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | in e1000_set_wol()
1911 if (wol->wolopts & WAKE_UCAST) in e1000_set_wol()
1913 if (wol->wolopts & WAKE_MCAST) in e1000_set_wol()
1915 if (wol->wolopts & WAKE_BCAST) in e1000_set_wol()
[all …]
/linux-4.1.27/drivers/net/ethernet/silan/
Dsc92031.c1266 wolinfo->wolopts = 0; in sc92031_ethtool_get_wol()
1269 wolinfo->wolopts |= WAKE_PHY; in sc92031_ethtool_get_wol()
1272 wolinfo->wolopts |= WAKE_MAGIC; in sc92031_ethtool_get_wol()
1276 wolinfo->wolopts |= WAKE_UCAST | WAKE_MCAST | WAKE_BCAST; in sc92031_ethtool_get_wol()
1291 if (wolinfo->wolopts & WAKE_PHY) in sc92031_ethtool_set_wol()
1294 if (wolinfo->wolopts & WAKE_MAGIC) in sc92031_ethtool_set_wol()
1298 if (wolinfo->wolopts & (WAKE_UCAST | WAKE_MCAST | WAKE_BCAST)) in sc92031_ethtool_set_wol()
/linux-4.1.27/drivers/net/ethernet/via/
Dvia-rhine.c481 u8 wolopts; member
2296 wol->wolopts = rp->wolopts; in rhine_get_wol()
2309 if (wol->wolopts & ~support) in rhine_set_wol()
2313 rp->wolopts = wol->wolopts; in rhine_set_wol()
2421 if (rp->wolopts & WAKE_MAGIC) { in rhine_shutdown_pci()
2430 if (rp->wolopts & (WAKE_BCAST|WAKE_MCAST)) in rhine_shutdown_pci()
2433 if (rp->wolopts & WAKE_PHY) in rhine_shutdown_pci()
2436 if (rp->wolopts & WAKE_UCAST) in rhine_shutdown_pci()
2439 if (rp->wolopts) { in rhine_shutdown_pci()
Dvia-velocity.c3449 wol->wolopts |= WAKE_MAGIC; in velocity_ethtool_get_wol()
3455 wol->wolopts |= WAKE_UCAST; in velocity_ethtool_get_wol()
3457 wol->wolopts |= WAKE_ARP; in velocity_ethtool_get_wol()
3465 if (!(wol->wolopts & (WAKE_PHY | WAKE_MAGIC | WAKE_UCAST | WAKE_ARP))) in velocity_ethtool_set_wol()
3476 if (wol->wolopts & WAKE_MAGIC) { in velocity_ethtool_set_wol()
3480 if (wol->wolopts & WAKE_UCAST) { in velocity_ethtool_set_wol()
3484 if (wol->wolopts & WAKE_ARP) { in velocity_ethtool_set_wol()
/linux-4.1.27/drivers/net/ethernet/intel/igb/
Digb_ethtool.c2072 wol->wolopts = 0; in igb_get_wol()
2088 wol->wolopts |= WAKE_UCAST; in igb_get_wol()
2090 wol->wolopts |= WAKE_MCAST; in igb_get_wol()
2092 wol->wolopts |= WAKE_BCAST; in igb_get_wol()
2094 wol->wolopts |= WAKE_MAGIC; in igb_get_wol()
2096 wol->wolopts |= WAKE_PHY; in igb_get_wol()
2103 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE)) in igb_set_wol()
2107 return wol->wolopts ? -EOPNOTSUPP : 0; in igb_set_wol()
2112 if (wol->wolopts & WAKE_UCAST) in igb_set_wol()
2114 if (wol->wolopts & WAKE_MCAST) in igb_set_wol()
[all …]
/linux-4.1.27/drivers/net/vmxnet3/
Dvmxnet3_ethtool.c397 wol->wolopts = adapter->wol; in vmxnet3_get_wol()
406 if (wol->wolopts & (WAKE_PHY | WAKE_MCAST | WAKE_BCAST | in vmxnet3_set_wol()
411 adapter->wol = wol->wolopts; in vmxnet3_set_wol()
/linux-4.1.27/drivers/net/ethernet/toshiba/
Dspider_net_ethtool.c90 wolinfo->wolopts = 0; in spider_net_ethtool_get_wol()
Dps3_gelic_net.c1318 wol->wolopts = ps3_sys_manager_get_wol() ? wol->supported : 0; in gelic_net_get_wol()
1332 if (wol->wolopts & ~WAKE_MAGIC) in gelic_net_set_wol()
1336 if (wol->wolopts & WAKE_MAGIC) { in gelic_net_set_wol()
/linux-4.1.27/drivers/net/ethernet/atheros/atlx/
Datl2.c2045 wol->wolopts = 0; in atl2_get_wol()
2048 wol->wolopts |= WAKE_UCAST; in atl2_get_wol()
2050 wol->wolopts |= WAKE_MCAST; in atl2_get_wol()
2052 wol->wolopts |= WAKE_BCAST; in atl2_get_wol()
2054 wol->wolopts |= WAKE_MAGIC; in atl2_get_wol()
2056 wol->wolopts |= WAKE_PHY; in atl2_get_wol()
2063 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE)) in atl2_set_wol()
2066 if (wol->wolopts & (WAKE_UCAST | WAKE_BCAST | WAKE_MCAST)) in atl2_set_wol()
2072 if (wol->wolopts & WAKE_MAGIC) in atl2_set_wol()
2074 if (wol->wolopts & WAKE_PHY) in atl2_set_wol()
Datl1.c3400 wol->wolopts = 0; in atl1_get_wol()
3402 wol->wolopts |= WAKE_MAGIC; in atl1_get_wol()
3410 if (wol->wolopts & (WAKE_PHY | WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | in atl1_set_wol()
3414 if (wol->wolopts & WAKE_MAGIC) in atl1_set_wol()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ethtool.c749 wol->wolopts = netdev2adap(dev)->wol; in get_wol()
758 if (wol->wolopts & ~WOL_SUPPORTED) in set_wol()
761 (wol->wolopts & WAKE_MAGIC) ? dev->dev_addr : NULL); in set_wol()
762 if (wol->wolopts & WAKE_BCAST) { in set_wol()
/linux-4.1.27/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ethtool.c698 wol->wolopts = 0; in netxen_nic_get_wol()
709 wol->wolopts |= WAKE_MAGIC; in netxen_nic_get_wol()
721 if (wol->wolopts & ~WAKE_MAGIC) in netxen_nic_set_wol()
729 if (wol->wolopts & WAKE_MAGIC) in netxen_nic_set_wol()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlge/
Dqlge_ethtool.c436 wol->wolopts = qdev->wol; in ql_get_wol()
452 if (wol->wolopts & ~WAKE_MAGIC) in ql_set_wol()
454 qdev->wol = wol->wolopts; in ql_set_wol()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2109 wol->wolopts = 0; in ixgbe_get_wol()
2116 wol->wolopts |= WAKE_UCAST; in ixgbe_get_wol()
2118 wol->wolopts |= WAKE_MCAST; in ixgbe_get_wol()
2120 wol->wolopts |= WAKE_BCAST; in ixgbe_get_wol()
2122 wol->wolopts |= WAKE_MAGIC; in ixgbe_get_wol()
2129 if (wol->wolopts & (WAKE_PHY | WAKE_ARP | WAKE_MAGICSECURE)) in ixgbe_set_wol()
2133 return wol->wolopts ? -EOPNOTSUPP : 0; in ixgbe_set_wol()
2137 if (wol->wolopts & WAKE_UCAST) in ixgbe_set_wol()
2139 if (wol->wolopts & WAKE_MCAST) in ixgbe_set_wol()
2141 if (wol->wolopts & WAKE_BCAST) in ixgbe_set_wol()
[all …]
/linux-4.1.27/drivers/net/ethernet/emulex/benet/
Dbe_ethtool.c785 wol->wolopts |= WAKE_MAGIC; in be_get_wol()
787 wol->wolopts = 0; in be_get_wol()
796 if (wol->wolopts & ~WAKE_MAGIC) in be_set_wol()
804 if (wol->wolopts & WAKE_MAGIC) in be_set_wol()
/linux-4.1.27/drivers/net/ethernet/dlink/
Dsundance.c1753 wol->wolopts = 0; in sundance_get_wol()
1761 wol->wolopts |= WAKE_MAGIC; in sundance_get_wol()
1763 wol->wolopts |= WAKE_PHY; in sundance_get_wol()
1776 np->wol_enabled = !!(wol->wolopts); in sundance_set_wol()
1782 if (wol->wolopts & WAKE_MAGIC) in sundance_set_wol()
1784 if (wol->wolopts & WAKE_PHY) in sundance_set_wol()
/linux-4.1.27/drivers/net/ethernet/sis/
Dsis900.c2083 if (wol->wolopts == 0) { in sis900_set_wol()
2093 if (wol->wolopts & (WAKE_MAGICSECURE | WAKE_UCAST | WAKE_MCAST in sis900_set_wol()
2097 if (wol->wolopts & WAKE_MAGIC) in sis900_set_wol()
2099 if (wol->wolopts & WAKE_PHY) in sis900_set_wol()
2121 wol->wolopts |= WAKE_MAGIC; in sis900_get_wol()
2123 wol->wolopts |= WAKE_PHY; in sis900_get_wol()
/linux-4.1.27/drivers/net/ethernet/3com/
Dtyphoon.c1112 wol->wolopts = 0; in typhoon_get_wol()
1114 wol->wolopts |= WAKE_PHY; in typhoon_get_wol()
1116 wol->wolopts |= WAKE_MAGIC; in typhoon_get_wol()
1125 if(wol->wolopts & ~(WAKE_PHY | WAKE_MAGIC)) in typhoon_set_wol()
1129 if(wol->wolopts & WAKE_PHY) in typhoon_set_wol()
1131 if(wol->wolopts & WAKE_MAGIC) in typhoon_set_wol()
D3c59x.c2988 wol->wolopts = 0; in vortex_get_wol()
2990 wol->wolopts |= WAKE_MAGIC; in vortex_get_wol()
3000 if (wol->wolopts & ~WAKE_MAGIC) in vortex_set_wol()
3003 if (wol->wolopts & WAKE_MAGIC) in vortex_set_wol()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c1623 wol->wolopts = 0; in i40e_get_wol()
1626 wol->wolopts = (pf->wol_en ? WAKE_MAGIC : 0); in i40e_get_wol()
1658 if (wol->wolopts && (wol->wolopts != WAKE_MAGIC)) in i40e_set_wol()
1662 if (pf->wol_en != !!wol->wolopts) { in i40e_set_wol()
1663 pf->wol_en = !!wol->wolopts; in i40e_set_wol()
/linux-4.1.27/drivers/net/ethernet/amd/
Damd8111e.c1460 wol_info->wolopts = WAKE_MAGIC; in amd8111e_get_wol()
1466 if (wol_info->wolopts & ~(WAKE_MAGIC|WAKE_PHY)) in amd8111e_set_wol()
1469 if (wol_info->wolopts & WAKE_MAGIC) in amd8111e_set_wol()
1472 else if(wol_info->wolopts & WAKE_PHY) in amd8111e_set_wol()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_ethtool.c1467 wol->wolopts = 0; in qlcnic_get_wol()
1477 wol->wolopts |= WAKE_MAGIC; in qlcnic_get_wol()
1489 if (wol->wolopts & ~WAKE_MAGIC) in qlcnic_set_wol()
1501 if (wol->wolopts & WAKE_MAGIC) in qlcnic_set_wol()
/linux-4.1.27/drivers/net/ethernet/sfc/
Dsiena.c623 wol->wolopts = WAKE_MAGIC; in siena_get_wol()
625 wol->wolopts = 0; in siena_get_wol()
Dethtool.c767 return efx->type->set_wol(efx, wol->wolopts); in efx_ethtool_set_wol()
Dfalcon.c2671 wol->wolopts = 0; in falcon_get_wol()
Def10.c1050 wol->wolopts = 0; in efx_ef10_get_wol()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c229 wol->wolopts = 0; in mlx4_en_get_wol()
245 wol->wolopts = WAKE_MAGIC; in mlx4_en_get_wol()
247 wol->wolopts = 0; in mlx4_en_get_wol()
276 if (wol->wolopts & WAKE_MAGIC) { in mlx4_en_set_wol()
/linux-4.1.27/drivers/net/ethernet/
Djme.c2622 wol->wolopts = 0; in jme_get_wol()
2625 wol->wolopts |= WAKE_PHY; in jme_get_wol()
2628 wol->wolopts |= WAKE_MAGIC; in jme_get_wol()
2638 if (wol->wolopts & (WAKE_MAGICSECURE | in jme_set_wol()
2647 if (wol->wolopts & WAKE_PHY) in jme_set_wol()
2650 if (wol->wolopts & WAKE_MAGIC) in jme_set_wol()
/linux-4.1.27/drivers/net/ethernet/intel/igbvf/
Dethtool.c329 wol->wolopts = 0; in igbvf_get_wol()
/linux-4.1.27/include/uapi/linux/
Dethtool.h204 __u32 wolopts; member
/linux-4.1.27/drivers/net/ethernet/adi/
Dbfin_mac.c507 wolinfo->wolopts = lp->wol; in bfin_mac_ethtool_getwol()
516 if (wolinfo->wolopts & (WAKE_MAGICSECURE | in bfin_mac_ethtool_setwol()
523 lp->wol = wolinfo->wolopts; in bfin_mac_ethtool_setwol()
/linux-4.1.27/drivers/net/ethernet/intel/
De100.c2494 wol->wolopts = (nic->flags & wol_magic) ? WAKE_MAGIC : 0; in e100_get_wol()
2501 if ((wol->wolopts && wol->wolopts != WAKE_MAGIC) || in e100_set_wol()
2505 if (wol->wolopts) in e100_set_wol()
2510 device_set_wakeup_enable(&nic->pdev->dev, wol->wolopts); in e100_set_wol()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c1077 wol->wolopts = 0; in bnx2x_get_wol()
1081 wol->wolopts = WAKE_MAGIC; in bnx2x_get_wol()
1083 wol->wolopts = 0; in bnx2x_get_wol()
1092 if (wol->wolopts & ~WAKE_MAGIC) { in bnx2x_set_wol()
1097 if (wol->wolopts & WAKE_MAGIC) { in bnx2x_set_wol()
/linux-4.1.27/drivers/net/ethernet/davicom/
Ddm9000.c703 w->wolopts = dm->wake_state; in dm9000_get_wol()
710 u32 opts = w->wolopts; in dm9000_set_wol()
/linux-4.1.27/drivers/net/ethernet/sun/
Dsungem.c2653 wol->wolopts = gp->wake_on_lan; in gem_get_wol()
2656 wol->wolopts = 0; in gem_get_wol()
2666 gp->wake_on_lan = wol->wolopts & WOL_SUPPORTED_MASK; in gem_set_wol()
/linux-4.1.27/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c323 wolinfo->wolopts = 0; in bnad_get_wol()
/linux-4.1.27/drivers/net/ethernet/micrel/
Dksz884x.c6178 wol->wolopts = hw_priv->wol_enable; in netdev_get_wol()
6200 if (wol->wolopts & ~hw_priv->wol_support) in netdev_set_wol()
6203 hw_priv->wol_enable = wol->wolopts; in netdev_set_wol()
6206 if (wol->wolopts) in netdev_set_wol()
/linux-4.1.27/drivers/net/ethernet/marvell/
Dskge.c250 wol->wolopts = skge->wol; in skge_get_wol()
258 if ((wol->wolopts & ~wol_supported(hw)) || in skge_set_wol()
262 skge->wol = wol->wolopts; in skge_set_wol()
Dsky2.c3557 wol->wolopts = sky2->wol; in sky2_get_wol()
3567 if ((wol->wolopts & ~sky2_wol_supported(sky2->hw)) || in sky2_set_wol()
3571 sky2->wol = wol->wolopts; in sky2_set_wol()
Dmv643xx_eth.c1526 wol->wolopts = 0; in mv643xx_eth_get_wol()
/linux-4.1.27/drivers/net/ethernet/natsemi/
Dnatsemi.c2597 netdev_get_wol(dev, &wol->supported, &wol->wolopts); in get_wol()
2607 netdev_set_wol(dev, wol->wolopts); in set_wol()
/linux-4.1.27/drivers/net/ethernet/nvidia/
Dforcedeth.c4224 wolinfo->wolopts = WAKE_MAGIC; in nv_get_wol()
4234 if (wolinfo->wolopts == 0) { in nv_set_wol()
4236 } else if (wolinfo->wolopts & WAKE_MAGIC) { in nv_set_wol()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4vf/
Dcxgb4vf_main.c1693 wol->wolopts = 0; in cxgb4vf_get_wol()
/linux-4.1.27/drivers/net/ethernet/ti/
Dcpsw.c1862 wol->wolopts = 0; in cpsw_get_wol()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/
Dcxgb3_main.c2092 wol->wolopts = 0; in get_wol()