| /linux/drivers/net/wireless/marvell/mwifiex/ |
| H A D | ethtool.c | 22 wol->wolopts |= WAKE_UCAST; in mwifiex_ethtool_get_wol() 24 wol->wolopts |= WAKE_MCAST; in mwifiex_ethtool_get_wol() 26 wol->wolopts |= WAKE_BCAST; in mwifiex_ethtool_get_wol() 28 wol->wolopts |= WAKE_PHY; in mwifiex_ethtool_get_wol() 37 if (wol->wolopts & ~(WAKE_UCAST|WAKE_MCAST|WAKE_BCAST|WAKE_PHY)) in mwifiex_ethtool_set_wol() 40 if (wol->wolopts & WAKE_UCAST) in mwifiex_ethtool_set_wol() 42 if (wol->wolopts & WAKE_MCAST) in mwifiex_ethtool_set_wol() 44 if (wol->wolopts & WAKE_BCAST) in mwifiex_ethtool_set_wol() 46 if (wol->wolopts & WAKE_PHY) in mwifiex_ethtool_set_wol() 48 if (wol->wolopts == 0) in mwifiex_ethtool_set_wol()
|
| /linux/drivers/net/wireless/nxp/nxpwifi/ |
| H A D | ethtool.c | 22 wol->wolopts |= WAKE_UCAST; in nxpwifi_ethtool_get_wol() 24 wol->wolopts |= WAKE_MCAST; in nxpwifi_ethtool_get_wol() 26 wol->wolopts |= WAKE_BCAST; in nxpwifi_ethtool_get_wol() 28 wol->wolopts |= WAKE_PHY; in nxpwifi_ethtool_get_wol() 37 if (wol->wolopts & ~(WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | WAKE_PHY)) in nxpwifi_ethtool_set_wol() 40 if (wol->wolopts & WAKE_UCAST) in nxpwifi_ethtool_set_wol() 42 if (wol->wolopts & WAKE_MCAST) in nxpwifi_ethtool_set_wol() 44 if (wol->wolopts & WAKE_BCAST) in nxpwifi_ethtool_set_wol() 46 if (wol->wolopts & WAKE_PHY) in nxpwifi_ethtool_set_wol() 48 if (wol->wolopts == 0) in nxpwifi_ethtool_set_wol()
|
| /linux/drivers/net/wireless/marvell/libertas/ |
| H A D | ethtool.c | 72 wol->wolopts |= WAKE_UCAST; in lbs_ethtool_get_wol() 74 wol->wolopts |= WAKE_MCAST; in lbs_ethtool_get_wol() 76 wol->wolopts |= WAKE_BCAST; in lbs_ethtool_get_wol() 78 wol->wolopts |= WAKE_PHY; in lbs_ethtool_get_wol() 86 if (wol->wolopts & ~(WAKE_UCAST|WAKE_MCAST|WAKE_BCAST|WAKE_PHY)) in lbs_ethtool_set_wol() 90 if (wol->wolopts & WAKE_UCAST) in lbs_ethtool_set_wol() 92 if (wol->wolopts & WAKE_MCAST) in lbs_ethtool_set_wol() 94 if (wol->wolopts & WAKE_BCAST) in lbs_ethtool_set_wol() 96 if (wol->wolopts & WAKE_PHY) in lbs_ethtool_set_wol() 98 if (wol->wolopts == 0) in lbs_ethtool_set_wol()
|
| /linux/drivers/net/ethernet/broadcom/genet/ |
| H A D | bcmgenet_wol.c | 48 phy_wolopts = wol->wolopts; in bcmgenet_get_wol() 57 wol->wolopts |= priv->wolopts; in bcmgenet_get_wol() 65 if (wol->wolopts & WAKE_MAGICSECURE) in bcmgenet_get_wol() 81 if (ret != -EOPNOTSUPP && wol->wolopts) in bcmgenet_set_wol() 88 if (wol->wolopts & ~(WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_FILTER)) in bcmgenet_set_wol() 91 if (wol->wolopts & WAKE_MAGICSECURE) in bcmgenet_set_wol() 95 if (wol->wolopts) { in bcmgenet_set_wol() 113 priv->wolopts = wol->wolopts; in bcmgenet_set_wol() 156 if (priv->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in bcmgenet_wol_power_down_cfg() 159 if (priv->wolopts & WAKE_MAGICSECURE) { in bcmgenet_wol_power_down_cfg() [all …]
|
| /linux/drivers/net/ethernet/atheros/atl1c/ |
| H A D | atl1c_ethtool.c | 234 wol->wolopts = 0; in atl1c_get_wol() 237 wol->wolopts |= WAKE_UCAST; in atl1c_get_wol() 239 wol->wolopts |= WAKE_MCAST; in atl1c_get_wol() 241 wol->wolopts |= WAKE_BCAST; in atl1c_get_wol() 243 wol->wolopts |= WAKE_MAGIC; in atl1c_get_wol() 245 wol->wolopts |= WAKE_PHY; in atl1c_get_wol() 252 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | in atl1c_set_wol() 258 if (wol->wolopts & WAKE_MAGIC) in atl1c_set_wol() 260 if (wol->wolopts & WAKE_PHY) in atl1c_set_wol()
|
| /linux/drivers/net/phy/ |
| H A D | smsc.c | 349 wol->wolopts = 0; in lan874x_get_wol() 356 wol->wolopts |= WAKE_UCAST; in lan874x_get_wol() 359 wol->wolopts |= WAKE_BCAST; in lan874x_get_wol() 362 wol->wolopts |= WAKE_MAGIC; in lan874x_get_wol() 366 wol->wolopts |= WAKE_ARP; in lan874x_get_wol() 368 wol->wolopts |= WAKE_MCAST; in lan874x_get_wol() 464 if ((wol->wolopts & (WAKE_ARP | WAKE_MCAST)) == in lan874x_set_wol() 477 if (wol->wolopts & WAKE_UCAST) in lan874x_set_wol() 482 if (wol->wolopts & WAKE_BCAST) in lan874x_set_wol() 487 if (wol->wolopts & WAKE_MAGIC) in lan874x_set_wol() [all …]
|
| H A D | dp83tc811.c | 104 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()
|
| H A D | bcm-phy-lib.c | 894 if (wol->wolopts & ~BCM54XX_WOL_SUPPORTED_MASK) in bcm_phy_set_wol() 913 if (!wol->wolopts) { in bcm_phy_set_wol() 950 if (wol->wolopts & WAKE_MCAST) { in bcm_phy_set_wol() 956 if (wol->wolopts & WAKE_UCAST) { in bcm_phy_set_wol() 958 } else if (wol->wolopts & WAKE_BCAST) { in bcm_phy_set_wol() 960 } else if (wol->wolopts & WAKE_MAGICSECURE) { in bcm_phy_set_wol() 962 } else if (wol->wolopts & WAKE_MAGIC) { in bcm_phy_set_wol() 969 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in bcm_phy_set_wol() 989 if (wol->wolopts & WAKE_MAGICSECURE) { in bcm_phy_set_wol() 996 if (wol->wolopts & WAKE_MAGIC) in bcm_phy_set_wol() [all …]
|
| H A D | dp83869.c | 275 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST | in dp83869_set_wol() 280 if (wol->wolopts & WAKE_MAGIC || in dp83869_set_wol() 281 wol->wolopts & WAKE_MAGICSECURE) { in dp83869_set_wol() 310 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83869_set_wol() 333 if (wol->wolopts & WAKE_UCAST) in dp83869_set_wol() 338 if (wol->wolopts & WAKE_BCAST) in dp83869_set_wol() 361 wol->wolopts = 0; in dp83869_get_wol() 370 wol->wolopts |= WAKE_UCAST; in dp83869_get_wol() 373 wol->wolopts |= WAKE_BCAST; in dp83869_get_wol() 376 wol->wolopts |= WAKE_MAGIC; in dp83869_get_wol() [all …]
|
| H A D | dp83867.c | 221 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST | in dp83867_set_wol() 226 if (wol->wolopts & WAKE_MAGIC) { in dp83867_set_wol() 244 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83867_set_wol() 257 if (wol->wolopts & WAKE_UCAST) in dp83867_set_wol() 262 if (wol->wolopts & WAKE_BCAST) in dp83867_set_wol() 284 wol->wolopts = 0; in dp83867_get_wol() 289 wol->wolopts |= WAKE_UCAST; in dp83867_get_wol() 292 wol->wolopts |= WAKE_BCAST; in dp83867_get_wol() 295 wol->wolopts |= WAKE_MAGIC; in dp83867_get_wol() 313 wol->wolopts |= WAKE_MAGICSECURE; in dp83867_get_wol() [all …]
|
| /linux/drivers/net/ethernet/atheros/atl1e/ |
| H A D | atl1e_ethtool.c | 321 wol->wolopts = 0; in atl1e_get_wol() 324 wol->wolopts |= WAKE_UCAST; in atl1e_get_wol() 326 wol->wolopts |= WAKE_MCAST; in atl1e_get_wol() 328 wol->wolopts |= WAKE_BCAST; in atl1e_get_wol() 330 wol->wolopts |= WAKE_MAGIC; in atl1e_get_wol() 332 wol->wolopts |= WAKE_PHY; in atl1e_get_wol() 339 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | in atl1e_set_wol() 345 if (wol->wolopts & WAKE_MAGIC) in atl1e_set_wol() 347 if (wol->wolopts & WAKE_PHY) in atl1e_set_wol()
|
| /linux/drivers/net/ethernet/oki-semi/pch_gbe/ |
| H A D | pch_gbe_ethtool.c | 214 wol->wolopts = 0; in pch_gbe_get_wol() 217 wol->wolopts |= WAKE_UCAST; in pch_gbe_get_wol() 219 wol->wolopts |= WAKE_MCAST; in pch_gbe_get_wol() 221 wol->wolopts |= WAKE_BCAST; in pch_gbe_get_wol() 223 wol->wolopts |= WAKE_MAGIC; in pch_gbe_get_wol() 239 if ((wol->wolopts & (WAKE_PHY | WAKE_ARP | WAKE_MAGICSECURE))) in pch_gbe_set_wol() 244 if ((wol->wolopts & WAKE_UCAST)) in pch_gbe_set_wol() 246 if ((wol->wolopts & WAKE_MCAST)) in pch_gbe_set_wol() 248 if ((wol->wolopts & WAKE_BCAST)) in pch_gbe_set_wol() 250 if ((wol->wolopts & WAKE_MAGIC)) in pch_gbe_set_wol()
|
| /linux/drivers/net/usb/ |
| H A D | smsc95xx.c | 64 u32 wolopts; member 736 wolinfo->wolopts = pdata->wolopts; in smsc95xx_ethtool_get_wol() 746 if (wolinfo->wolopts & ~SUPPORTED_WAKE) in smsc95xx_ethtool_set_wol() 749 pdata->wolopts = wolinfo->wolopts & SUPPORTED_WAKE; in smsc95xx_ethtool_set_wol() 751 ret = device_set_wakeup_enable(&dev->udev->dev, pdata->wolopts); in smsc95xx_ethtool_set_wol() 1390 if (pdata->wolopts & WAKE_PHY) in smsc95xx_enter_suspend0() 1577 if (!(pdata->wolopts & SUPPORTED_WAKE) || in smsc95xx_suspend() 1578 !(link_up || (pdata->wolopts & WAKE_PHY))) { in smsc95xx_suspend() 1606 if (pdata->wolopts & WAKE_PHY) { in smsc95xx_suspend() 1617 if (pdata->wolopts & (WAKE_BCAST | WAKE_MCAST | WAKE_ARP | WAKE_UCAST)) { in smsc95xx_suspend() [all …]
|
| H A D | asix_common.c | 582 wolinfo->wolopts = 0; in asix_get_wol() 586 wolinfo->wolopts = 0; in asix_get_wol() 588 wolinfo->wolopts |= WAKE_PHY; in asix_get_wol() 590 wolinfo->wolopts |= WAKE_MAGIC; in asix_get_wol() 598 if (wolinfo->wolopts & ~(WAKE_PHY | WAKE_MAGIC)) in asix_set_wol() 601 if (wolinfo->wolopts & WAKE_PHY) in asix_set_wol() 603 if (wolinfo->wolopts & WAKE_MAGIC) in asix_set_wol()
|
| H A D | smsc75xx.c | 55 u32 wolopts; member 707 wolinfo->wolopts = pdata->wolopts; in smsc75xx_ethtool_get_wol() 717 if (wolinfo->wolopts & ~SUPPORTED_WAKE) in smsc75xx_ethtool_set_wol() 720 pdata->wolopts = wolinfo->wolopts & SUPPORTED_WAKE; in smsc75xx_ethtool_set_wol() 722 ret = device_set_wakeup_enable(&dev->udev->dev, pdata->wolopts); in smsc75xx_ethtool_set_wol() 1814 if (!(pdata->wolopts & SUPPORTED_WAKE) || in smsc75xx_suspend() 1815 !(link_up || (pdata->wolopts & WAKE_PHY))) { in smsc75xx_suspend() 1851 if (pdata->wolopts & WAKE_PHY) { in smsc75xx_suspend() 1885 if (pdata->wolopts & (WAKE_MCAST | WAKE_ARP)) { in smsc75xx_suspend() 1897 if (pdata->wolopts & WAKE_MCAST) { in smsc75xx_suspend() [all …]
|
| H A D | ax88179_178a.c | 175 u32 wolopts; member 418 if (priv->wolopts) { in ax88179_suspend() 421 if (priv->wolopts & WAKE_PHY) in ax88179_suspend() 423 if (priv->wolopts & WAKE_MAGIC) in ax88179_suspend() 520 wolinfo->wolopts = priv->wolopts; in ax88179_get_wol() 529 if (wolinfo->wolopts & ~(priv->wol_supported)) in ax88179_set_wol() 532 priv->wolopts = wolinfo->wolopts; in ax88179_set_wol()
|
| /linux/drivers/net/ethernet/realtek/ |
| H A D | 8139cp.c | 1333 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 …]
|
| /linux/drivers/net/phy/qcom/ |
| H A D | qcom-phy-lib.c | 64 if (wol->wolopts & WAKE_MAGIC) { in at803x_set_wol() 128 if (wol->wolopts & WAKE_MAGIC) in at8031_set_wol() 149 wol->wolopts = 0; in at803x_get_wol() 156 wol->wolopts |= WAKE_MAGIC; in at803x_get_wol()
|
| /linux/drivers/net/ethernet/silan/ |
| H A D | sc92031.c | 1268 wolinfo->wolopts = 0; in sc92031_ethtool_get_wol() 1271 wolinfo->wolopts |= WAKE_PHY; in sc92031_ethtool_get_wol() 1274 wolinfo->wolopts |= WAKE_MAGIC; in sc92031_ethtool_get_wol() 1278 wolinfo->wolopts |= WAKE_UCAST | WAKE_MCAST | WAKE_BCAST; in sc92031_ethtool_get_wol() 1293 if (wolinfo->wolopts & WAKE_PHY) in sc92031_ethtool_set_wol() 1296 if (wolinfo->wolopts & WAKE_MAGIC) in sc92031_ethtool_set_wol() 1300 if (wolinfo->wolopts & (WAKE_UCAST | WAKE_MCAST | WAKE_BCAST)) in sc92031_ethtool_set_wol()
|
| /linux/drivers/net/ethernet/intel/igc/ |
| H A D | igc_ethtool.c | 357 wol->wolopts = 0; in igc_ethtool_get_wol() 373 wol->wolopts |= WAKE_UCAST; in igc_ethtool_get_wol() 375 wol->wolopts |= WAKE_MCAST; in igc_ethtool_get_wol() 377 wol->wolopts |= WAKE_BCAST; in igc_ethtool_get_wol() 379 wol->wolopts |= WAKE_MAGIC; in igc_ethtool_get_wol() 381 wol->wolopts |= WAKE_PHY; in igc_ethtool_get_wol() 389 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | WAKE_FILTER)) in igc_ethtool_set_wol() 393 return wol->wolopts ? -EOPNOTSUPP : 0; in igc_ethtool_set_wol() 398 if (wol->wolopts & WAKE_UCAST) in igc_ethtool_set_wol() 400 if (wol->wolopts & WAKE_MCAST) in igc_ethtool_set_wol() [all …]
|
| /linux/drivers/net/ethernet/calxeda/ |
| H A D | xgmac.c | 381 int wolopts; member 1641 wol->wolopts = priv->wolopts; in xgmac_get_wol() 1654 if (wol->wolopts & ~support) in xgmac_set_wol() 1657 priv->wolopts = wol->wolopts; in xgmac_set_wol() 1659 if (wol->wolopts) { in xgmac_set_wol() 1772 priv->wolopts = WAKE_MAGIC; /* Magic Frame as default */ in xgmac_probe() 1874 xgmac_pmt(priv->base, priv->wolopts); in xgmac_suspend()
|
| /linux/drivers/net/ethernet/broadcom/ |
| H A D | bcmsysport.c | 515 wol->wolopts = priv->wolopts; in bcm_sysport_get_wol() 517 if (!(priv->wolopts & WAKE_MAGICSECURE)) in bcm_sysport_get_wol() 533 if (wol->wolopts & ~supported) in bcm_sysport_set_wol() 536 if (wol->wolopts & WAKE_MAGICSECURE) in bcm_sysport_set_wol() 540 if (wol->wolopts) { in bcm_sysport_set_wol() 553 priv->wolopts = wol->wolopts; in bcm_sysport_set_wol() 2652 if (priv->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) in bcm_sysport_suspend_to_wol() 2655 if (priv->wolopts & WAKE_MAGICSECURE) { in bcm_sysport_suspend_to_wol() 2665 if (priv->wolopts & WAKE_FILTER) { in bcm_sysport_suspend_to_wol() 2744 if (!priv->wolopts) in bcm_sysport_suspend() [all …]
|
| /linux/drivers/net/ethernet/freescale/ |
| H A D | gianfar_ethtool.c | 560 wol->wolopts = 0; in gfar_get_wol() 569 wol->wolopts |= WAKE_MAGIC; in gfar_get_wol() 572 wol->wolopts |= WAKE_UCAST; in gfar_get_wol() 581 if (!priv->wol_supported && wol->wolopts) in gfar_set_wol() 584 if (wol->wolopts & ~(WAKE_MAGIC | WAKE_UCAST)) in gfar_set_wol() 587 if (wol->wolopts & WAKE_MAGIC) { in gfar_set_wol() 590 if (wol->wolopts & WAKE_UCAST) in gfar_set_wol()
|
| /linux/drivers/net/ethernet/socionext/ |
| H A D | sni_ave.c | 266 u32 wolopts; member 422 wol->wolopts = 0; in ave_ethtool_get_wol() 432 (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE))) in __ave_ethtool_set_wol() 445 device_set_wakeup_enable(&ndev->dev, !!wol->wolopts); in ave_ethtool_set_wol() 1223 wol.wolopts = 0; in ave_init() 1742 priv->wolopts = wol.wolopts; in ave_suspend() 1761 wol.wolopts = priv->wolopts; in ave_resume()
|
| /linux/drivers/net/ethernet/via/ |
| H A D | via-rhine.c | 473 u8 wolopts; member 2358 wol->wolopts = rp->wolopts; in rhine_get_wol() 2371 if (wol->wolopts & ~support) in rhine_set_wol() 2375 rp->wolopts = wol->wolopts; in rhine_set_wol() 2481 if (rp->wolopts & WAKE_MAGIC) { in rhine_shutdown_pci() 2490 if (rp->wolopts & (WAKE_BCAST|WAKE_MCAST)) in rhine_shutdown_pci() 2493 if (rp->wolopts & WAKE_PHY) in rhine_shutdown_pci() 2496 if (rp->wolopts & WAKE_UCAST) in rhine_shutdown_pci() 2499 if (rp->wolopts) { in rhine_shutdown_pci()
|