/linux/drivers/net/wireless/marvell/mwifiex/ |
A D | ethtool.c | 34 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/drivers/net/ethernet/broadcom/genet/ |
A D | bcmgenet_wol.c | 45 wol->wolopts = priv->wolopts; in bcmgenet_get_wol() 48 if (wol->wolopts & WAKE_MAGICSECURE) in bcmgenet_get_wol() 63 if (wol->wolopts & ~(WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_FILTER)) in bcmgenet_set_wol() 66 if (wol->wolopts & WAKE_MAGICSECURE) in bcmgenet_set_wol() 70 if (wol->wolopts) { in bcmgenet_set_wol() 84 priv->wolopts = wol->wolopts; in bcmgenet_set_wol() 138 if (priv->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in bcmgenet_wol_power_down_cfg() 141 if (priv->wolopts & WAKE_MAGICSECURE) { in bcmgenet_wol_power_down_cfg() 149 if (priv->wolopts & WAKE_FILTER) { in bcmgenet_wol_power_down_cfg() 216 if (priv->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in bcmgenet_wol_power_up_cfg() [all …]
|
/linux/drivers/net/wireless/marvell/libertas/ |
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/microchip/ |
A D | lan743x_ethtool.c | 782 wol->wolopts = 0; in lan743x_ethtool_get_wol() 790 wol->wolopts |= adapter->wolopts; in lan743x_ethtool_get_wol() 798 adapter->wolopts = 0; in lan743x_ethtool_set_wol() 799 if (wol->wolopts & WAKE_UCAST) in lan743x_ethtool_set_wol() 801 if (wol->wolopts & WAKE_MCAST) in lan743x_ethtool_set_wol() 803 if (wol->wolopts & WAKE_BCAST) in lan743x_ethtool_set_wol() 805 if (wol->wolopts & WAKE_MAGIC) in lan743x_ethtool_set_wol() 807 if (wol->wolopts & WAKE_PHY) in lan743x_ethtool_set_wol() 808 adapter->wolopts |= WAKE_PHY; in lan743x_ethtool_set_wol() 809 if (wol->wolopts & WAKE_ARP) in lan743x_ethtool_set_wol() [all …]
|
/linux/drivers/net/ethernet/atheros/atl1c/ |
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/ |
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/ |
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/ |
A D | wol.c | 54 len = ethnl_bitset32_size(&data->wol.wolopts, &data->wol.supported, in wol_reply_size() 72 ret = ethnl_put_bitset32(skb, ETHTOOL_A_WOL_MODES, &data->wol.wolopts, in wol_fill_reply() 132 ret = ethnl_update_bitset32(&wol.wolopts, WOL_MODE_COUNT, in ethnl_set_wol() 137 if (wol.wolopts & ~wol.supported) { in ethnl_set_wol() 160 dev->wol_enabled = !!wol.wolopts; in ethnl_set_wol()
|
/linux/drivers/net/phy/ |
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()
|
A D | dp83867.c | 190 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST | in dp83867_set_wol() 195 if (wol->wolopts & WAKE_MAGIC) { in dp83867_set_wol() 213 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83867_set_wol() 226 if (wol->wolopts & WAKE_UCAST) in dp83867_set_wol() 231 if (wol->wolopts & WAKE_BCAST) in dp83867_set_wol() 253 wol->wolopts = 0; in dp83867_get_wol() 258 wol->wolopts |= WAKE_UCAST; in dp83867_get_wol() 261 wol->wolopts |= WAKE_BCAST; in dp83867_get_wol() 264 wol->wolopts |= WAKE_MAGIC; in dp83867_get_wol() 282 wol->wolopts |= WAKE_MAGICSECURE; in dp83867_get_wol() [all …]
|
A D | dp83869.c | 265 if (wol->wolopts & WAKE_MAGIC || in dp83869_set_wol() 266 wol->wolopts & WAKE_MAGICSECURE) { in dp83869_set_wol() 295 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83869_set_wol() 318 if (wol->wolopts & WAKE_UCAST) in dp83869_set_wol() 323 if (wol->wolopts & WAKE_BCAST) in dp83869_set_wol() 346 wol->wolopts = 0; in dp83869_get_wol() 355 wol->wolopts |= WAKE_UCAST; in dp83869_get_wol() 358 wol->wolopts |= WAKE_BCAST; in dp83869_get_wol() 361 wol->wolopts |= WAKE_MAGIC; in dp83869_get_wol() 394 wol->wolopts |= WAKE_MAGICSECURE; in dp83869_get_wol() [all …]
|
A D | microchip.c | 21 __u32 wolopts; member 80 if (!priv->wolopts) in lan88xx_suspend() 242 priv->wolopts = 0; in lan88xx_probe() 288 priv->wolopts = wol->wolopts; in lan88xx_set_wol()
|
A D | dp83822.c | 129 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in dp83822_set_wol() 147 if (wol->wolopts & WAKE_MAGIC) in dp83822_set_wol() 152 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83822_set_wol() 188 wol->wolopts = 0; in dp83822_get_wol() 193 wol->wolopts |= WAKE_MAGIC; in dp83822_get_wol() 211 wol->wolopts |= WAKE_MAGICSECURE; in dp83822_get_wol() 216 wol->wolopts = 0; in dp83822_get_wol()
|
A D | mxl-gpy.c | 388 if (wol->wolopts & WAKE_MAGIC) { in gpy_set_wol() 442 if (wol->wolopts & WAKE_PHY) { in gpy_set_wol() 469 wol->wolopts = 0; in gpy_get_wol() 473 wol->wolopts |= WAKE_MAGIC; in gpy_get_wol() 477 wol->wolopts |= WAKE_PHY; in gpy_get_wol()
|
/linux/drivers/net/ethernet/freescale/ |
A D | ucc_geth_ethtool.c | 352 wol->wolopts = ugeth->wol_en; in uec_get_wol() 360 if (wol->wolopts & ~(WAKE_PHY | WAKE_MAGIC)) in uec_set_wol() 362 else if (wol->wolopts & WAKE_PHY && (!phydev || !phydev->irq)) in uec_set_wol() 364 else if (wol->wolopts & WAKE_MAGIC && !qe_alive_during_sleep()) in uec_set_wol() 367 ugeth->wol_en = wol->wolopts; in uec_set_wol()
|
/linux/drivers/net/usb/ |
A D | smsc95xx.c | 58 u32 wolopts; member 702 wolinfo->wolopts = pdata->wolopts; in smsc95xx_ethtool_get_wol() 715 pdata->wolopts = wolinfo->wolopts & SUPPORTED_WAKE; in smsc95xx_ethtool_set_wol() 1282 if (pdata->wolopts & WAKE_PHY) in smsc95xx_enter_suspend0() 1514 if (pdata->wolopts & WAKE_PHY) { in smsc95xx_suspend() 1552 if (pdata->wolopts & WAKE_BCAST) { in smsc95xx_suspend() 1565 if (pdata->wolopts & WAKE_MCAST) { in smsc95xx_suspend() 1578 if (pdata->wolopts & WAKE_ARP) { in smsc95xx_suspend() 1642 if (pdata->wolopts & WAKE_MAGIC) { in smsc95xx_suspend() 1668 if (pdata->wolopts & WAKE_MAGIC) { in smsc95xx_suspend() [all …]
|
A D | sr9800.c | 406 wolinfo->wolopts = 0; in sr_get_wol() 410 wolinfo->wolopts = 0; in sr_get_wol() 412 wolinfo->wolopts |= WAKE_PHY; in sr_get_wol() 414 wolinfo->wolopts |= WAKE_MAGIC; in sr_get_wol() 423 if (wolinfo->wolopts & ~(WAKE_PHY | WAKE_MAGIC)) in sr_set_wol() 426 if (wolinfo->wolopts & WAKE_PHY) in sr_set_wol() 428 if (wolinfo->wolopts & WAKE_MAGIC) in sr_set_wol()
|
A D | asix_common.c | 625 wolinfo->wolopts = 0; in asix_get_wol() 629 wolinfo->wolopts = 0; in asix_get_wol() 631 wolinfo->wolopts |= WAKE_PHY; in asix_get_wol() 633 wolinfo->wolopts |= WAKE_MAGIC; in asix_get_wol() 641 if (wolinfo->wolopts & ~(WAKE_PHY | WAKE_MAGIC)) in asix_set_wol() 644 if (wolinfo->wolopts & WAKE_PHY) in asix_set_wol() 646 if (wolinfo->wolopts & WAKE_MAGIC) in asix_set_wol()
|
A D | smsc75xx.c | 56 u32 wolopts; member 711 wolinfo->wolopts = pdata->wolopts; in smsc75xx_ethtool_get_wol() 721 if (wolinfo->wolopts & ~SUPPORTED_WAKE) in smsc75xx_ethtool_set_wol() 724 pdata->wolopts = wolinfo->wolopts & SUPPORTED_WAKE; in smsc75xx_ethtool_set_wol() 1860 if (pdata->wolopts & WAKE_PHY) { in smsc75xx_suspend() 1906 if (pdata->wolopts & WAKE_MCAST) { in smsc75xx_suspend() 1919 if (pdata->wolopts & WAKE_ARP) { in smsc75xx_suspend() 1993 if (pdata->wolopts & WAKE_PHY) { in smsc75xx_suspend() 2013 if (pdata->wolopts & WAKE_MAGIC) { in smsc75xx_suspend() 2031 if (pdata->wolopts & WAKE_BCAST) { in smsc75xx_suspend() [all …]
|
A D | pegasus.c | 910 wol->wolopts = pegasus->wolopts; in pegasus_get_wol() 920 if (wol->wolopts & ~WOL_SUPPORTED) in pegasus_set_wol() 923 if (wol->wolopts & WAKE_MAGIC) in pegasus_set_wol() 925 if (wol->wolopts & WAKE_PHY) in pegasus_set_wol() 928 if (wol->wolopts) in pegasus_set_wol() 932 pegasus->wolopts = wol->wolopts; in pegasus_set_wol() 937 wol->wolopts); in pegasus_set_wol()
|
/linux/drivers/net/ethernet/realtek/ |
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/dec/tulip/ |
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() 1444 tp->wolinfo.wolopts = 0; in tulip_init_one() 1793 static void tulip_set_wolopts (struct pci_dev *pdev, u32 wolopts) in tulip_set_wolopts() argument 1810 if (wolopts & WAKE_MAGIC) in tulip_set_wolopts() 1812 if (wolopts & WAKE_PHY) in tulip_set_wolopts() 1838 tulip_set_wolopts(to_pci_dev(dev_d), tp->wolinfo.wolopts); in tulip_suspend() [all …]
|
/linux/drivers/net/ethernet/intel/e1000/ |
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() 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() 1705 if (wol->wolopts & WAKE_BCAST) in e1000_set_wol() [all …]
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
A D | stmmac_ethtool.c | 713 wol->wolopts = priv->wolopts; in stmmac_get_wol() 730 device_set_wakeup_enable(priv->device, !!wol->wolopts); in stmmac_set_wol() 738 wol->wolopts &= ~WAKE_MAGIC; in stmmac_set_wol() 740 if (wol->wolopts & ~support) in stmmac_set_wol() 743 if (wol->wolopts) { in stmmac_set_wol() 753 priv->wolopts = wol->wolopts; in stmmac_set_wol()
|
/linux/drivers/net/ethernet/intel/igc/ |
A D | igc_ethtool.c | 353 wol->wolopts = 0; in igc_ethtool_get_wol() 369 wol->wolopts |= WAKE_UCAST; in igc_ethtool_get_wol() 371 wol->wolopts |= WAKE_MCAST; in igc_ethtool_get_wol() 373 wol->wolopts |= WAKE_BCAST; in igc_ethtool_get_wol() 375 wol->wolopts |= WAKE_MAGIC; in igc_ethtool_get_wol() 377 wol->wolopts |= WAKE_PHY; in igc_ethtool_get_wol() 394 if (wol->wolopts & WAKE_UCAST) in igc_ethtool_set_wol() 396 if (wol->wolopts & WAKE_MCAST) in igc_ethtool_set_wol() 398 if (wol->wolopts & WAKE_BCAST) in igc_ethtool_set_wol() 400 if (wol->wolopts & WAKE_MAGIC) in igc_ethtool_set_wol() [all …]
|