| /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/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/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 | dp83869.c | 274 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST | in dp83869_set_wol() 279 if (wol->wolopts & WAKE_MAGIC || in dp83869_set_wol() 280 wol->wolopts & WAKE_MAGICSECURE) { in dp83869_set_wol() 309 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83869_set_wol() 332 if (wol->wolopts & WAKE_UCAST) in dp83869_set_wol() 337 if (wol->wolopts & WAKE_BCAST) in dp83869_set_wol() 360 wol->wolopts = 0; in dp83869_get_wol() 369 wol->wolopts |= WAKE_UCAST; in dp83869_get_wol() 372 wol->wolopts |= WAKE_BCAST; in dp83869_get_wol() 375 wol->wolopts |= WAKE_MAGIC; in dp83869_get_wol() [all …]
|
| H A D | microchip.c | 27 __u32 wolopts; member 45 if (!priv->wolopts) in lan88xx_suspend() 207 priv->wolopts = 0; in lan88xx_probe() 253 priv->wolopts = wol->wolopts; in lan88xx_set_wol()
|
| /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/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/net/ethtool/ |
| H A D | wol.c | 55 len = ethnl_bitset32_size(&data->wol.wolopts, &data->wol.supported, in wol_reply_size() 73 ret = ethnl_put_bitset32(skb, ETHTOOL_A_WOL_MODES, &data->wol.wolopts, in wol_fill_reply() 114 ret = ethnl_update_bitset32(&wol.wolopts, WOL_MODE_COUNT, in ethnl_set_wol() 119 if (wol.wolopts & ~wol.supported) { in ethnl_set_wol() 140 dev->ethtool->wol_enabled = !!wol.wolopts; in ethnl_set_wol()
|
| /linux/drivers/net/ethernet/wangxun/ngbe/ |
| H A D | ngbe_ethtool.c | 23 wol->wolopts = 0; in ngbe_get_wol() 25 wol->wolopts |= WAKE_MAGIC; in ngbe_get_wol() 38 if (wol->wolopts & WAKE_MAGIC) in ngbe_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 | pegasus.c | 931 wol->wolopts = pegasus->wolopts; in pegasus_get_wol() 941 if (wol->wolopts & ~WOL_SUPPORTED) in pegasus_set_wol() 944 if (wol->wolopts & WAKE_MAGIC) in pegasus_set_wol() 946 if (wol->wolopts & WAKE_PHY) in pegasus_set_wol() 949 if (wol->wolopts) in pegasus_set_wol() 953 pegasus->wolopts = wol->wolopts; in pegasus_set_wol() 958 wol->wolopts); in pegasus_set_wol()
|
| 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/dec/tulip/ |
| H A D | tulip_core.c | 259 static void tulip_set_wolopts(struct pci_dev *pdev, u32 wolopts); 871 if (wolinfo->wolopts & (~tp->wolinfo.supported)) in tulip_ethtool_set_wol() 874 tp->wolinfo.wolopts = wolinfo->wolopts; in tulip_ethtool_set_wol() 875 device_set_wakeup_enable(&tp->pdev->dev, tp->wolinfo.wolopts); in tulip_ethtool_set_wol() 885 wolinfo->wolopts = tp->wolinfo.wolopts; in tulip_ethtool_get_wol() 1442 tp->wolinfo.wolopts = 0; in tulip_init_one() 1774 static void tulip_set_wolopts (struct pci_dev *pdev, u32 wolopts) in tulip_set_wolopts() argument 1791 if (wolopts & WAKE_MAGIC) in tulip_set_wolopts() 1793 if (wolopts & WAKE_PHY) in tulip_set_wolopts() 1819 tulip_set_wolopts(to_pci_dev(dev_d), tp->wolinfo.wolopts); in tulip_suspend() [all …]
|
| /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/ethernet/intel/e1000/ |
| H A D | e1000_ethtool.c | 1641 wol->wolopts = 0; in e1000_get_wol() 1665 wol->wolopts |= WAKE_UCAST; in e1000_get_wol() 1667 wol->wolopts |= WAKE_MCAST; in e1000_get_wol() 1669 wol->wolopts |= WAKE_BCAST; in e1000_get_wol() 1671 wol->wolopts |= WAKE_MAGIC; in e1000_get_wol() 1679 if (wol->wolopts & (WAKE_PHY | WAKE_ARP | WAKE_MAGICSECURE)) in e1000_set_wol() 1684 return wol->wolopts ? -EOPNOTSUPP : 0; in e1000_set_wol() 1688 if (wol->wolopts & WAKE_UCAST) { in e1000_set_wol() 1701 if (wol->wolopts & WAKE_UCAST) in e1000_set_wol() 1703 if (wol->wolopts & WAKE_MCAST) in e1000_set_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/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/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/e1000e/ |
| H A D | ethtool.c | 1888 wol->wolopts = 0; in e1000_get_wol() 1906 wol->wolopts |= WAKE_UCAST; in e1000_get_wol() 1908 wol->wolopts |= WAKE_MCAST; in e1000_get_wol() 1910 wol->wolopts |= WAKE_BCAST; in e1000_get_wol() 1912 wol->wolopts |= WAKE_MAGIC; in e1000_get_wol() 1914 wol->wolopts |= WAKE_PHY; in e1000_get_wol() 1923 (wol->wolopts & ~(WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | in e1000_set_wol() 1930 if (wol->wolopts & WAKE_UCAST) in e1000_set_wol() 1932 if (wol->wolopts & WAKE_MCAST) in e1000_set_wol() 1934 if (wol->wolopts & WAKE_BCAST) in e1000_set_wol() [all …]
|
| /linux/drivers/net/ethernet/calxeda/ |
| H A D | xgmac.c | 382 int wolopts; member 1642 wol->wolopts = priv->wolopts; in xgmac_get_wol() 1655 if (wol->wolopts & ~support) in xgmac_set_wol() 1658 priv->wolopts = wol->wolopts; in xgmac_set_wol() 1660 if (wol->wolopts) { in xgmac_set_wol() 1773 priv->wolopts = WAKE_MAGIC; /* Magic Frame as default */ in xgmac_probe() 1875 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 …]
|