Home
last modified time | relevance | path

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

1234

/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()
/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()
/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()
76 if (wol->wolopts & WAKE_MAGICSECURE) { in bcmgenet_set_wol()
87 if (wol->wolopts) { in bcmgenet_set_wol()
101 priv->wolopts = wol->wolopts; in bcmgenet_set_wol()
/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()
/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()
/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()
/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.c916 wol->wolopts = pegasus->wolopts; in pegasus_get_wol()
926 if (wol->wolopts & ~WOL_SUPPORTED) in pegasus_set_wol()
929 if (wol->wolopts & WAKE_MAGIC) in pegasus_set_wol()
931 if (wol->wolopts & WAKE_PHY) in pegasus_set_wol()
934 if (wol->wolopts) in pegasus_set_wol()
938 pegasus->wolopts = wol->wolopts; in pegasus_set_wol()
943 wol->wolopts); in pegasus_set_wol()
Dr8152.c2173 u32 wolopts = 0; in __rtl_get_wol() local
2181 wolopts |= WAKE_PHY; in __rtl_get_wol()
2185 wolopts |= WAKE_UCAST; in __rtl_get_wol()
2187 wolopts |= WAKE_BCAST; in __rtl_get_wol()
2189 wolopts |= WAKE_MCAST; in __rtl_get_wol()
2193 wolopts |= WAKE_MAGIC; in __rtl_get_wol()
2195 return wolopts; in __rtl_get_wol()
2198 static void __rtl_set_wol(struct r8152 *tp, u32 wolopts) in __rtl_set_wol() argument
2206 if (wolopts & WAKE_PHY) in __rtl_set_wol()
2212 if (wolopts & WAKE_UCAST) in __rtl_set_wol()
[all …]
/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()
/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()
/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.c2310 wol->wolopts = 0; in rtl8139_get_wol()
2312 wol->wolopts |= WAKE_PHY; in rtl8139_get_wol()
2314 wol->wolopts |= WAKE_MAGIC; in rtl8139_get_wol()
2318 wol->wolopts |= WAKE_UCAST; in rtl8139_get_wol()
2320 wol->wolopts |= WAKE_MCAST; in rtl8139_get_wol()
2322 wol->wolopts |= WAKE_BCAST; in rtl8139_get_wol()
2342 if (wol->wolopts & ~support) in rtl8139_set_wol()
2347 if (wol->wolopts & WAKE_PHY) in rtl8139_set_wol()
2349 if (wol->wolopts & WAKE_MAGIC) in rtl8139_set_wol()
2359 if (wol->wolopts & WAKE_UCAST) in rtl8139_set_wol()
[all …]
/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()
/drivers/net/dsa/
Dbcm_sf2.c800 if (pwol.wolopts & WAKE_MAGICSECURE) in bcm_sf2_sw_get_wol()
804 wol->wolopts = pwol.wolopts; in bcm_sf2_sw_get_wol()
806 wol->wolopts = 0; in bcm_sf2_sw_get_wol()
818 if (wol->wolopts & ~pwol.supported) in bcm_sf2_sw_set_wol()
821 if (wol->wolopts) in bcm_sf2_sw_set_wol()
/drivers/net/ethernet/dec/tulip/
Dtulip_core.c270 static void tulip_set_wolopts(struct pci_dev *pdev, u32 wolopts);
885 if (wolinfo->wolopts & (~tp->wolinfo.supported)) in tulip_ethtool_set_wol()
888 tp->wolinfo.wolopts = wolinfo->wolopts; in tulip_ethtool_set_wol()
889 device_set_wakeup_enable(&tp->pdev->dev, tp->wolinfo.wolopts); in tulip_ethtool_set_wol()
899 wolinfo->wolopts = tp->wolinfo.wolopts; in tulip_ethtool_get_wol()
1460 tp->wolinfo.wolopts = 0; in tulip_init_one()
1804 static void tulip_set_wolopts (struct pci_dev *pdev, u32 wolopts) in tulip_set_wolopts() argument
1822 if (wolopts & WAKE_MAGIC) in tulip_set_wolopts()
1824 if (wolopts & WAKE_PHY) in tulip_set_wolopts()
1860 tulip_set_wolopts(pdev, tp->wolinfo.wolopts); in tulip_suspend()
[all …]
/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c1666 wol->wolopts = 0; in e1000_get_wol()
1690 wol->wolopts |= WAKE_UCAST; in e1000_get_wol()
1692 wol->wolopts |= WAKE_MCAST; in e1000_get_wol()
1694 wol->wolopts |= WAKE_BCAST; in e1000_get_wol()
1696 wol->wolopts |= WAKE_MAGIC; in e1000_get_wol()
1704 if (wol->wolopts & (WAKE_PHY | WAKE_ARP | WAKE_MAGICSECURE)) in e1000_set_wol()
1709 return wol->wolopts ? -EOPNOTSUPP : 0; in e1000_set_wol()
1713 if (wol->wolopts & WAKE_UCAST) { in e1000_set_wol()
1726 if (wol->wolopts & WAKE_UCAST) in e1000_set_wol()
1728 if (wol->wolopts & WAKE_MCAST) in e1000_set_wol()
[all …]
/drivers/net/ethernet/broadcom/
Dbcmsysport.c403 wol->wolopts = priv->wolopts; in bcm_sysport_get_wol()
405 if (!(priv->wolopts & WAKE_MAGICSECURE)) in bcm_sysport_get_wol()
425 if (wol->wolopts & ~supported) in bcm_sysport_set_wol()
429 if (wol->wolopts & WAKE_MAGICSECURE) { in bcm_sysport_set_wol()
437 if (wol->wolopts) { in bcm_sysport_set_wol()
450 priv->wolopts = wol->wolopts; in bcm_sysport_set_wol()
1764 if (priv->wolopts & WAKE_MAGICSECURE) in bcm_sysport_suspend_to_wol()
1831 if (!priv->wolopts) in bcm_sysport_suspend()
1853 if (device_may_wakeup(d) && priv->wolopts) in bcm_sysport_suspend()
/drivers/net/ethernet/intel/e1000e/
Dethtool.c1867 wol->wolopts = 0; in e1000_get_wol()
1885 wol->wolopts |= WAKE_UCAST; in e1000_get_wol()
1887 wol->wolopts |= WAKE_MCAST; in e1000_get_wol()
1889 wol->wolopts |= WAKE_BCAST; in e1000_get_wol()
1891 wol->wolopts |= WAKE_MAGIC; in e1000_get_wol()
1893 wol->wolopts |= WAKE_PHY; in e1000_get_wol()
1902 (wol->wolopts & ~(WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | in e1000_set_wol()
1909 if (wol->wolopts & WAKE_UCAST) in e1000_set_wol()
1911 if (wol->wolopts & WAKE_MCAST) in e1000_set_wol()
1913 if (wol->wolopts & WAKE_BCAST) in e1000_set_wol()
[all …]
/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()
/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()
/drivers/net/ethernet/via/
Dvia-rhine.c479 u8 wolopts; member
2284 wol->wolopts = rp->wolopts; in rhine_get_wol()
2297 if (wol->wolopts & ~support) in rhine_set_wol()
2301 rp->wolopts = wol->wolopts; in rhine_set_wol()
2409 if (rp->wolopts & WAKE_MAGIC) { in rhine_shutdown_pci()
2418 if (rp->wolopts & (WAKE_BCAST|WAKE_MCAST)) in rhine_shutdown_pci()
2421 if (rp->wolopts & WAKE_PHY) in rhine_shutdown_pci()
2424 if (rp->wolopts & WAKE_UCAST) in rhine_shutdown_pci()
2427 if (rp->wolopts) { in rhine_shutdown_pci()

1234