Home
last modified time | relevance | path

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

12345

/Linux-v4.19/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()
/Linux-v4.19/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()
/Linux-v4.19/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()
/Linux-v4.19/drivers/net/ethernet/microchip/
Dlan743x_ethtool.c661 wol->wolopts = 0; in lan743x_ethtool_get_wol()
667 wol->wolopts |= adapter->wolopts; in lan743x_ethtool_get_wol()
675 adapter->wolopts = 0; in lan743x_ethtool_set_wol()
676 if (wol->wolopts & WAKE_UCAST) in lan743x_ethtool_set_wol()
677 adapter->wolopts |= WAKE_UCAST; in lan743x_ethtool_set_wol()
678 if (wol->wolopts & WAKE_MCAST) in lan743x_ethtool_set_wol()
679 adapter->wolopts |= WAKE_MCAST; in lan743x_ethtool_set_wol()
680 if (wol->wolopts & WAKE_BCAST) in lan743x_ethtool_set_wol()
681 adapter->wolopts |= WAKE_BCAST; in lan743x_ethtool_set_wol()
682 if (wol->wolopts & WAKE_MAGIC) in lan743x_ethtool_set_wol()
[all …]
/Linux-v4.19/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()
/Linux-v4.19/drivers/net/phy/
Ddp83822.c104 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in dp83822_set_wol()
122 if (wol->wolopts & WAKE_MAGIC) in dp83822_set_wol()
127 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83822_set_wol()
164 wol->wolopts = 0; in dp83822_get_wol()
169 wol->wolopts |= WAKE_MAGIC; in dp83822_get_wol()
187 wol->wolopts |= WAKE_MAGICSECURE; in dp83822_get_wol()
192 wol->wolopts = 0; in dp83822_get_wol()
Ddp83tc811.c104 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in dp83811_set_wol()
122 if (wol->wolopts & WAKE_MAGIC) in dp83811_set_wol()
127 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83811_set_wol()
164 wol->wolopts = 0; in dp83811_get_wol()
169 wol->wolopts |= WAKE_MAGIC; in dp83811_get_wol()
187 wol->wolopts |= WAKE_MAGICSECURE; in dp83811_get_wol()
192 wol->wolopts = 0; in dp83811_get_wol()
Dmicrochip.c33 __u32 wolopts; member
76 if (!priv->wolopts) in lan88xx_suspend()
237 priv->wolopts = 0; in lan88xx_probe()
283 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.c165 if (wol->wolopts & WAKE_MAGIC) { in at803x_set_wol()
206 wol->wolopts = 0; in at803x_get_wol()
210 wol->wolopts |= WAKE_MAGIC; in at803x_get_wol()
/Linux-v4.19/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()
/Linux-v4.19/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()
/Linux-v4.19/drivers/net/ethernet/freescale/
Ducc_geth_ethtool.c360 wol->wolopts = ugeth->wol_en; in uec_get_wol()
368 if (wol->wolopts & ~(WAKE_PHY | WAKE_MAGIC)) in uec_set_wol()
370 else if (wol->wolopts & WAKE_PHY && (!phydev || !phydev->irq)) in uec_set_wol()
372 else if (wol->wolopts & WAKE_MAGIC && !qe_alive_during_sleep()) in uec_set_wol()
375 ugeth->wol_en = wol->wolopts; in uec_set_wol()
/Linux-v4.19/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()
1415 if (pdata->wolopts & WAKE_PHY) in smsc95xx_enter_suspend0()
1619 if (!(pdata->wolopts & SUPPORTED_WAKE) || in smsc95xx_suspend()
1620 !(link_up || (pdata->wolopts & WAKE_PHY))) { in smsc95xx_suspend()
1648 if (pdata->wolopts & WAKE_PHY) { in smsc95xx_suspend()
1666 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()
/Linux-v4.19/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ethtool.c638 wol->wolopts = priv->wolopts; in stmmac_get_wol()
652 wol->wolopts &= ~WAKE_MAGIC; in stmmac_set_wol()
657 if (wol->wolopts & ~support) in stmmac_set_wol()
660 if (wol->wolopts) { in stmmac_set_wol()
670 priv->wolopts = wol->wolopts; in stmmac_set_wol()
/Linux-v4.19/drivers/net/ethernet/realtek/
D8139cp.c1328 if (wol->wolopts) { in netdev_set_wol()
1329 if (wol->wolopts & WAKE_PHY) options |= LinkUp; in netdev_set_wol()
1330 if (wol->wolopts & WAKE_MAGIC) options |= MagicPacket; in netdev_set_wol()
1340 if (wol->wolopts) { in netdev_set_wol()
1341 if (wol->wolopts & WAKE_UCAST) options |= UWF; in netdev_set_wol()
1342 if (wol->wolopts & WAKE_BCAST) options |= BWF; in netdev_set_wol()
1343 if (wol->wolopts & WAKE_MCAST) options |= MWF; in netdev_set_wol()
1348 cp->wol_enabled = (wol->wolopts) ? 1 : 0; in netdev_set_wol()
1359 wol->wolopts = 0; /* Start from scratch */ in netdev_get_wol()
1366 if (options & LinkUp) wol->wolopts |= WAKE_PHY; in netdev_get_wol()
[all …]
D8139too.c2317 wol->wolopts = 0; in rtl8139_get_wol()
2319 wol->wolopts |= WAKE_PHY; in rtl8139_get_wol()
2321 wol->wolopts |= WAKE_MAGIC; in rtl8139_get_wol()
2325 wol->wolopts |= WAKE_UCAST; in rtl8139_get_wol()
2327 wol->wolopts |= WAKE_MCAST; in rtl8139_get_wol()
2329 wol->wolopts |= WAKE_BCAST; in rtl8139_get_wol()
2349 if (wol->wolopts & ~support) in rtl8139_set_wol()
2354 if (wol->wolopts & WAKE_PHY) in rtl8139_set_wol()
2356 if (wol->wolopts & WAKE_MAGIC) in rtl8139_set_wol()
2366 if (wol->wolopts & WAKE_UCAST) in rtl8139_set_wol()
[all …]
/Linux-v4.19/drivers/net/ethernet/dec/tulip/
Dtulip_core.c270 static void tulip_set_wolopts(struct pci_dev *pdev, u32 wolopts);
881 if (wolinfo->wolopts & (~tp->wolinfo.supported)) in tulip_ethtool_set_wol()
884 tp->wolinfo.wolopts = wolinfo->wolopts; in tulip_ethtool_set_wol()
885 device_set_wakeup_enable(&tp->pdev->dev, tp->wolinfo.wolopts); in tulip_ethtool_set_wol()
895 wolinfo->wolopts = tp->wolinfo.wolopts; in tulip_ethtool_get_wol()
1455 tp->wolinfo.wolopts = 0; in tulip_init_one()
1796 static void tulip_set_wolopts (struct pci_dev *pdev, u32 wolopts) in tulip_set_wolopts() argument
1814 if (wolopts & WAKE_MAGIC) in tulip_set_wolopts()
1816 if (wolopts & WAKE_PHY) in tulip_set_wolopts()
1852 tulip_set_wolopts(pdev, tp->wolinfo.wolopts); in tulip_suspend()
[all …]
/Linux-v4.19/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c1645 wol->wolopts = 0; in e1000_get_wol()
1669 wol->wolopts |= WAKE_UCAST; in e1000_get_wol()
1671 wol->wolopts |= WAKE_MCAST; in e1000_get_wol()
1673 wol->wolopts |= WAKE_BCAST; in e1000_get_wol()
1675 wol->wolopts |= WAKE_MAGIC; in e1000_get_wol()
1683 if (wol->wolopts & (WAKE_PHY | WAKE_ARP | WAKE_MAGICSECURE)) in e1000_set_wol()
1688 return wol->wolopts ? -EOPNOTSUPP : 0; in e1000_set_wol()
1692 if (wol->wolopts & WAKE_UCAST) { in e1000_set_wol()
1705 if (wol->wolopts & WAKE_UCAST) in e1000_set_wol()
1707 if (wol->wolopts & WAKE_MCAST) in e1000_set_wol()
[all …]
/Linux-v4.19/drivers/net/ethernet/calxeda/
Dxgmac.c393 int wolopts; member
1653 wol->wolopts = priv->wolopts; in xgmac_get_wol()
1666 if (wol->wolopts & ~support) in xgmac_set_wol()
1669 priv->wolopts = wol->wolopts; in xgmac_set_wol()
1671 if (wol->wolopts) { in xgmac_set_wol()
1783 priv->wolopts = WAKE_MAGIC; /* Magic Frame as default */ in xgmac_probe()
1886 xgmac_pmt(priv->base, priv->wolopts); in xgmac_suspend()
/Linux-v4.19/drivers/net/ethernet/intel/e1000e/
Dethtool.c1889 wol->wolopts = 0; in e1000_get_wol()
1907 wol->wolopts |= WAKE_UCAST; in e1000_get_wol()
1909 wol->wolopts |= WAKE_MCAST; in e1000_get_wol()
1911 wol->wolopts |= WAKE_BCAST; in e1000_get_wol()
1913 wol->wolopts |= WAKE_MAGIC; in e1000_get_wol()
1915 wol->wolopts |= WAKE_PHY; in e1000_get_wol()
1924 (wol->wolopts & ~(WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | in e1000_set_wol()
1931 if (wol->wolopts & WAKE_UCAST) in e1000_set_wol()
1933 if (wol->wolopts & WAKE_MCAST) in e1000_set_wol()
1935 if (wol->wolopts & WAKE_BCAST) in e1000_set_wol()
[all …]

12345