Home
last modified time | relevance | path

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

1234

/drivers/net/wireless/marvell/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()
/drivers/net/wireless/marvell/libertas/
Dethtool.c75 wol->wolopts |= WAKE_UCAST; in lbs_ethtool_get_wol()
77 wol->wolopts |= WAKE_MCAST; in lbs_ethtool_get_wol()
79 wol->wolopts |= WAKE_BCAST; in lbs_ethtool_get_wol()
81 wol->wolopts |= WAKE_PHY; in lbs_ethtool_get_wol()
89 if (wol->wolopts & ~(WAKE_UCAST|WAKE_MCAST|WAKE_BCAST|WAKE_PHY)) in lbs_ethtool_set_wol()
93 if (wol->wolopts & WAKE_UCAST) in lbs_ethtool_set_wol()
95 if (wol->wolopts & WAKE_MCAST) in lbs_ethtool_set_wol()
97 if (wol->wolopts & WAKE_BCAST) in lbs_ethtool_set_wol()
99 if (wol->wolopts & WAKE_PHY) in lbs_ethtool_set_wol()
101 if (wol->wolopts == 0) in lbs_ethtool_set_wol()
/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()
/drivers/net/ethernet/atheros/atl1c/
Datl1c_ethtool.c250 wol->wolopts = 0; in atl1c_get_wol()
253 wol->wolopts |= WAKE_UCAST; in atl1c_get_wol()
255 wol->wolopts |= WAKE_MCAST; in atl1c_get_wol()
257 wol->wolopts |= WAKE_BCAST; in atl1c_get_wol()
259 wol->wolopts |= WAKE_MAGIC; in atl1c_get_wol()
261 wol->wolopts |= WAKE_PHY; in atl1c_get_wol()
268 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | in atl1c_set_wol()
274 if (wol->wolopts & WAKE_MAGIC) in atl1c_set_wol()
276 if (wol->wolopts & WAKE_PHY) in atl1c_set_wol()
/drivers/net/phy/
Dmicrochip.c30 __u32 wolopts; member
63 if (!priv->wolopts) in lan88xx_suspend()
78 priv->wolopts = 0; in lan88xx_probe()
103 priv->wolopts = wol->wolopts; in lan88xx_set_wol()
Dmscc.c279 if (wol->wolopts & WAKE_MAGIC) { in vsc85xx_wol_set()
293 if (wol_conf->wolopts & WAKE_MAGICSECURE) { in vsc85xx_wol_set()
307 if (wol_conf->wolopts & WAKE_MAGICSECURE) in vsc85xx_wol_set()
317 if (wol->wolopts & WAKE_MAGIC) { in vsc85xx_wol_set()
357 wol_conf->wolopts |= WAKE_MAGICSECURE; in vsc85xx_wol_get()
358 if (wol_conf->wolopts & WAKE_MAGICSECURE) { in vsc85xx_wol_get()
Dat803x.c166 if (wol->wolopts & WAKE_MAGIC) { in at803x_set_wol()
207 wol->wolopts = 0; in at803x_get_wol()
211 wol->wolopts |= WAKE_MAGIC; in at803x_get_wol()
/drivers/net/ethernet/atheros/atl1e/
Datl1e_ethtool.c337 wol->wolopts = 0; in atl1e_get_wol()
340 wol->wolopts |= WAKE_UCAST; in atl1e_get_wol()
342 wol->wolopts |= WAKE_MCAST; in atl1e_get_wol()
344 wol->wolopts |= WAKE_BCAST; in atl1e_get_wol()
346 wol->wolopts |= WAKE_MAGIC; in atl1e_get_wol()
348 wol->wolopts |= WAKE_PHY; in atl1e_get_wol()
355 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | in atl1e_set_wol()
361 if (wol->wolopts & WAKE_MAGIC) in atl1e_set_wol()
363 if (wol->wolopts & WAKE_PHY) in atl1e_set_wol()
/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c223 wol->wolopts = 0; in pch_gbe_get_wol()
226 wol->wolopts |= WAKE_UCAST; in pch_gbe_get_wol()
228 wol->wolopts |= WAKE_MCAST; in pch_gbe_get_wol()
230 wol->wolopts |= WAKE_BCAST; in pch_gbe_get_wol()
232 wol->wolopts |= WAKE_MAGIC; in pch_gbe_get_wol()
248 if ((wol->wolopts & (WAKE_PHY | WAKE_ARP | WAKE_MAGICSECURE))) in pch_gbe_set_wol()
253 if ((wol->wolopts & WAKE_UCAST)) in pch_gbe_set_wol()
255 if ((wol->wolopts & WAKE_MCAST)) in pch_gbe_set_wol()
257 if ((wol->wolopts & WAKE_BCAST)) in pch_gbe_set_wol()
259 if ((wol->wolopts & WAKE_MAGIC)) in pch_gbe_set_wol()
/drivers/net/ethernet/freescale/
Ducc_geth_ethtool.c358 wol->wolopts = ugeth->wol_en; in uec_get_wol()
366 if (wol->wolopts & ~(WAKE_PHY | WAKE_MAGIC)) in uec_set_wol()
368 else if (wol->wolopts & WAKE_PHY && (!phydev || !phydev->irq)) in uec_set_wol()
370 else if (wol->wolopts & WAKE_MAGIC && !qe_alive_during_sleep()) in uec_set_wol()
373 ugeth->wol_en = wol->wolopts; in uec_set_wol()
Dgianfar_ethtool.c616 wol->wolopts = 0; in gfar_get_wol()
625 wol->wolopts |= WAKE_MAGIC; in gfar_get_wol()
628 wol->wolopts |= WAKE_UCAST; in gfar_get_wol()
637 if (!priv->wol_supported && wol->wolopts) in gfar_set_wol()
640 if (wol->wolopts & ~(WAKE_MAGIC | WAKE_UCAST)) in gfar_set_wol()
643 if (wol->wolopts & WAKE_MAGIC) { in gfar_set_wol()
646 if (wol->wolopts & WAKE_UCAST) in gfar_set_wol()
/drivers/net/usb/
Dsmsc95xx.c71 u32 wolopts; member
767 wolinfo->wolopts = pdata->wolopts; in smsc95xx_ethtool_get_wol()
777 if (wolinfo->wolopts & ~SUPPORTED_WAKE) in smsc95xx_ethtool_set_wol()
780 pdata->wolopts = wolinfo->wolopts & SUPPORTED_WAKE; in smsc95xx_ethtool_set_wol()
782 ret = device_set_wakeup_enable(&dev->udev->dev, pdata->wolopts); in smsc95xx_ethtool_set_wol()
1418 if (pdata->wolopts & WAKE_PHY) in smsc95xx_enter_suspend0()
1624 if (!(pdata->wolopts & SUPPORTED_WAKE) || in smsc95xx_suspend()
1625 !(link_up || (pdata->wolopts & WAKE_PHY))) { in smsc95xx_suspend()
1653 if (pdata->wolopts & WAKE_PHY) { in smsc95xx_suspend()
1671 if (pdata->wolopts & (WAKE_BCAST | WAKE_MCAST | WAKE_ARP | WAKE_UCAST)) { in smsc95xx_suspend()
[all …]
Dasix_common.c594 wolinfo->wolopts = 0; in asix_get_wol()
598 wolinfo->wolopts = 0; in asix_get_wol()
600 wolinfo->wolopts |= WAKE_PHY; in asix_get_wol()
602 wolinfo->wolopts |= WAKE_MAGIC; in asix_get_wol()
610 if (wolinfo->wolopts & ~(WAKE_PHY | WAKE_MAGIC)) in asix_set_wol()
613 if (wolinfo->wolopts & WAKE_PHY) in asix_set_wol()
615 if (wolinfo->wolopts & WAKE_MAGIC) in asix_set_wol()
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 | WAKE_MAGIC)) in sr_set_wol()
427 if (wolinfo->wolopts & WAKE_PHY) in sr_set_wol()
429 if (wolinfo->wolopts & WAKE_MAGIC) in sr_set_wol()
Dsmsc75xx.c68 u32 wolopts; member
724 wolinfo->wolopts = pdata->wolopts; in smsc75xx_ethtool_get_wol()
734 if (wolinfo->wolopts & ~SUPPORTED_WAKE) in smsc75xx_ethtool_set_wol()
737 pdata->wolopts = wolinfo->wolopts & SUPPORTED_WAKE; in smsc75xx_ethtool_set_wol()
739 ret = device_set_wakeup_enable(&dev->udev->dev, pdata->wolopts); in smsc75xx_ethtool_set_wol()
1828 if (!(pdata->wolopts & SUPPORTED_WAKE) || in smsc75xx_suspend()
1829 !(link_up || (pdata->wolopts & WAKE_PHY))) { in smsc75xx_suspend()
1865 if (pdata->wolopts & WAKE_PHY) { in smsc75xx_suspend()
1899 if (pdata->wolopts & (WAKE_MCAST | WAKE_ARP)) { in smsc75xx_suspend()
1911 if (pdata->wolopts & WAKE_MCAST) { in smsc75xx_suspend()
[all …]
Dpegasus.c911 wol->wolopts = pegasus->wolopts; in pegasus_get_wol()
921 if (wol->wolopts & ~WOL_SUPPORTED) in pegasus_set_wol()
924 if (wol->wolopts & WAKE_MAGIC) in pegasus_set_wol()
926 if (wol->wolopts & WAKE_PHY) in pegasus_set_wol()
929 if (wol->wolopts) in pegasus_set_wol()
933 pegasus->wolopts = wol->wolopts; in pegasus_set_wol()
938 wol->wolopts); in pegasus_set_wol()
/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ethtool.c621 wol->wolopts = priv->wolopts; in stmmac_get_wol()
635 wol->wolopts &= ~WAKE_MAGIC; in stmmac_set_wol()
640 if (wol->wolopts & ~support) in stmmac_set_wol()
643 if (wol->wolopts) { in stmmac_set_wol()
653 priv->wolopts = wol->wolopts; in stmmac_set_wol()
/drivers/net/ethernet/realtek/
D8139cp.c1333 if (wol->wolopts) { in netdev_set_wol()
1334 if (wol->wolopts & WAKE_PHY) options |= LinkUp; in netdev_set_wol()
1335 if (wol->wolopts & WAKE_MAGIC) options |= MagicPacket; in netdev_set_wol()
1345 if (wol->wolopts) { in netdev_set_wol()
1346 if (wol->wolopts & WAKE_UCAST) options |= UWF; in netdev_set_wol()
1347 if (wol->wolopts & WAKE_BCAST) options |= BWF; in netdev_set_wol()
1348 if (wol->wolopts & WAKE_MCAST) options |= MWF; in netdev_set_wol()
1353 cp->wol_enabled = (wol->wolopts) ? 1 : 0; in netdev_set_wol()
1364 wol->wolopts = 0; /* Start from scratch */ in netdev_get_wol()
1371 if (options & LinkUp) wol->wolopts |= WAKE_PHY; in netdev_get_wol()
[all …]
D8139too.c2319 wol->wolopts = 0; in rtl8139_get_wol()
2321 wol->wolopts |= WAKE_PHY; in rtl8139_get_wol()
2323 wol->wolopts |= WAKE_MAGIC; in rtl8139_get_wol()
2327 wol->wolopts |= WAKE_UCAST; in rtl8139_get_wol()
2329 wol->wolopts |= WAKE_MCAST; in rtl8139_get_wol()
2331 wol->wolopts |= WAKE_BCAST; in rtl8139_get_wol()
2351 if (wol->wolopts & ~support) in rtl8139_set_wol()
2356 if (wol->wolopts & WAKE_PHY) in rtl8139_set_wol()
2358 if (wol->wolopts & WAKE_MAGIC) in rtl8139_set_wol()
2368 if (wol->wolopts & WAKE_UCAST) in rtl8139_set_wol()
[all …]
/drivers/net/ethernet/dec/tulip/
Dtulip_core.c270 static void tulip_set_wolopts(struct pci_dev *pdev, u32 wolopts);
882 if (wolinfo->wolopts & (~tp->wolinfo.supported)) in tulip_ethtool_set_wol()
885 tp->wolinfo.wolopts = wolinfo->wolopts; in tulip_ethtool_set_wol()
886 device_set_wakeup_enable(&tp->pdev->dev, tp->wolinfo.wolopts); in tulip_ethtool_set_wol()
896 wolinfo->wolopts = tp->wolinfo.wolopts; in tulip_ethtool_get_wol()
1455 tp->wolinfo.wolopts = 0; in tulip_init_one()
1797 static void tulip_set_wolopts (struct pci_dev *pdev, u32 wolopts) in tulip_set_wolopts() argument
1815 if (wolopts & WAKE_MAGIC) in tulip_set_wolopts()
1817 if (wolopts & WAKE_PHY) in tulip_set_wolopts()
1853 tulip_set_wolopts(pdev, tp->wolinfo.wolopts); in tulip_suspend()
[all …]
/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c1664 wol->wolopts = 0; in e1000_get_wol()
1688 wol->wolopts |= WAKE_UCAST; in e1000_get_wol()
1690 wol->wolopts |= WAKE_MCAST; in e1000_get_wol()
1692 wol->wolopts |= WAKE_BCAST; in e1000_get_wol()
1694 wol->wolopts |= WAKE_MAGIC; in e1000_get_wol()
1702 if (wol->wolopts & (WAKE_PHY | WAKE_ARP | WAKE_MAGICSECURE)) in e1000_set_wol()
1707 return wol->wolopts ? -EOPNOTSUPP : 0; in e1000_set_wol()
1711 if (wol->wolopts & WAKE_UCAST) { in e1000_set_wol()
1724 if (wol->wolopts & WAKE_UCAST) in e1000_set_wol()
1726 if (wol->wolopts & WAKE_MCAST) in e1000_set_wol()
[all …]
/drivers/net/ethernet/intel/e1000e/
Dethtool.c1907 wol->wolopts = 0; in e1000_get_wol()
1925 wol->wolopts |= WAKE_UCAST; in e1000_get_wol()
1927 wol->wolopts |= WAKE_MCAST; in e1000_get_wol()
1929 wol->wolopts |= WAKE_BCAST; in e1000_get_wol()
1931 wol->wolopts |= WAKE_MAGIC; in e1000_get_wol()
1933 wol->wolopts |= WAKE_PHY; in e1000_get_wol()
1942 (wol->wolopts & ~(WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | in e1000_set_wol()
1949 if (wol->wolopts & WAKE_UCAST) in e1000_set_wol()
1951 if (wol->wolopts & WAKE_MCAST) in e1000_set_wol()
1953 if (wol->wolopts & WAKE_BCAST) in e1000_set_wol()
[all …]
/drivers/net/ethernet/calxeda/
Dxgmac.c392 int wolopts; member
1652 wol->wolopts = priv->wolopts; in xgmac_get_wol()
1665 if (wol->wolopts & ~support) in xgmac_set_wol()
1668 priv->wolopts = wol->wolopts; in xgmac_set_wol()
1670 if (wol->wolopts) { in xgmac_set_wol()
1782 priv->wolopts = WAKE_MAGIC; /* Magic Frame as default */ in xgmac_probe()
1885 xgmac_pmt(priv->base, priv->wolopts); in xgmac_suspend()
/drivers/net/ethernet/silan/
Dsc92031.c1277 wolinfo->wolopts = 0; in sc92031_ethtool_get_wol()
1280 wolinfo->wolopts |= WAKE_PHY; in sc92031_ethtool_get_wol()
1283 wolinfo->wolopts |= WAKE_MAGIC; in sc92031_ethtool_get_wol()
1287 wolinfo->wolopts |= WAKE_UCAST | WAKE_MCAST | WAKE_BCAST; in sc92031_ethtool_get_wol()
1302 if (wolinfo->wolopts & WAKE_PHY) in sc92031_ethtool_set_wol()
1305 if (wolinfo->wolopts & WAKE_MAGIC) in sc92031_ethtool_set_wol()
1309 if (wolinfo->wolopts & (WAKE_UCAST | WAKE_MCAST | WAKE_BCAST)) in sc92031_ethtool_set_wol()
/drivers/net/ethernet/via/
Dvia-rhine.c479 u8 wolopts; member
2370 wol->wolopts = rp->wolopts; in rhine_get_wol()
2383 if (wol->wolopts & ~support) in rhine_set_wol()
2387 rp->wolopts = wol->wolopts; in rhine_set_wol()
2495 if (rp->wolopts & WAKE_MAGIC) { in rhine_shutdown_pci()
2504 if (rp->wolopts & (WAKE_BCAST|WAKE_MCAST)) in rhine_shutdown_pci()
2507 if (rp->wolopts & WAKE_PHY) in rhine_shutdown_pci()
2510 if (rp->wolopts & WAKE_UCAST) in rhine_shutdown_pci()
2513 if (rp->wolopts) { in rhine_shutdown_pci()

1234