/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 | 54 wol->wolopts = priv->wolopts; in bcmgenet_get_wol() 57 if (wol->wolopts & WAKE_MAGICSECURE) in bcmgenet_get_wol() 80 if (wol->wolopts & ~(WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_FILTER)) in bcmgenet_set_wol() 83 if (wol->wolopts & WAKE_MAGICSECURE) in bcmgenet_set_wol() 87 if (wol->wolopts) { in bcmgenet_set_wol() 105 priv->wolopts = wol->wolopts; in bcmgenet_set_wol() 161 if (priv->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in bcmgenet_wol_power_down_cfg() 164 if (priv->wolopts & WAKE_MAGICSECURE) { in bcmgenet_wol_power_down_cfg() 172 if (priv->wolopts & WAKE_FILTER) { in bcmgenet_wol_power_down_cfg() 241 if (priv->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in bcmgenet_wol_power_up_cfg() [all …]
|
/linux/drivers/net/ethernet/microchip/ |
H A D | lan743x_ethtool.c | 1115 wol->wolopts = 0; in lan743x_ethtool_get_wol() 1129 wol->wolopts |= adapter->wolopts; in lan743x_ethtool_get_wol() 1130 if (adapter->wolopts & WAKE_MAGICSECURE) in lan743x_ethtool_get_wol() 1142 if ((wol->wolopts & WAKE_MAGICSECURE) && !(wol->wolopts & WAKE_MAGIC)) in lan743x_ethtool_set_wol() 1149 phy_wol.wolopts = wol->wolopts & adapter->phy_wol_supported; in lan743x_ethtool_set_wol() 1154 if (wol->wolopts & WAKE_MAGICSECURE && in lan743x_ethtool_set_wol() 1156 phy_wol.wolopts &= ~WAKE_MAGIC; in lan743x_ethtool_set_wol() 1165 adapter->phy_wolopts = phy_wol.wolopts; in lan743x_ethtool_set_wol() 1170 adapter->wolopts = 0; in lan743x_ethtool_set_wol() 1171 wol->wolopts &= ~adapter->phy_wolopts; in lan743x_ethtool_set_wol() [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/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/phy/ |
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 | 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 86 if (!priv->wolopts) in lan88xx_suspend() 248 priv->wolopts = 0; in lan88xx_probe() 294 priv->wolopts = wol->wolopts; in lan88xx_set_wol()
|
H A D | dp83867.c | 219 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST | in dp83867_set_wol() 224 if (wol->wolopts & WAKE_MAGIC) { in dp83867_set_wol() 242 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83867_set_wol() 255 if (wol->wolopts & WAKE_UCAST) in dp83867_set_wol() 260 if (wol->wolopts & WAKE_BCAST) in dp83867_set_wol() 282 wol->wolopts = 0; in dp83867_get_wol() 287 wol->wolopts |= WAKE_UCAST; in dp83867_get_wol() 290 wol->wolopts |= WAKE_BCAST; in dp83867_get_wol() 293 wol->wolopts |= WAKE_MAGIC; in dp83867_get_wol() 311 wol->wolopts |= WAKE_MAGICSECURE; in dp83867_get_wol() [all …]
|
H A D | mxl-gpy.c | 133 u32 wolopts; member 666 if (priv->wolopts & WAKE_MAGIC) in gpy_config_intr() 669 if (priv->wolopts & WAKE_PHY) in gpy_config_intr() 721 if (wol->wolopts & WAKE_MAGIC) { in gpy_set_wol() 767 priv->wolopts |= WAKE_MAGIC; in gpy_set_wol() 781 priv->wolopts &= ~WAKE_MAGIC; in gpy_set_wol() 784 if (wol->wolopts & WAKE_PHY) { in gpy_set_wol() 798 priv->wolopts |= WAKE_PHY; in gpy_set_wol() 802 priv->wolopts &= ~WAKE_PHY; in gpy_set_wol() 813 wol->wolopts = priv->wolopts; in gpy_get_wol()
|
H A D | dp83822.c | 153 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in dp83822_config_wol() 171 if (wol->wolopts & WAKE_MAGIC) in dp83822_config_wol() 176 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83822_config_wol() 227 wol->wolopts = 0; in dp83822_get_wol() 232 wol->wolopts |= WAKE_MAGIC; in dp83822_get_wol() 250 wol->wolopts |= WAKE_MAGICSECURE; in dp83822_get_wol() 255 wol->wolopts = 0; in dp83822_get_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 | asix_common.c | 599 wolinfo->wolopts = 0; in asix_get_wol() 603 wolinfo->wolopts = 0; in asix_get_wol() 605 wolinfo->wolopts |= WAKE_PHY; in asix_get_wol() 607 wolinfo->wolopts |= WAKE_MAGIC; in asix_get_wol() 615 if (wolinfo->wolopts & ~(WAKE_PHY | WAKE_MAGIC)) in asix_set_wol() 618 if (wolinfo->wolopts & WAKE_PHY) in asix_set_wol() 620 if (wolinfo->wolopts & WAKE_MAGIC) in asix_set_wol()
|
H 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()
|
H A D | smsc75xx.c | 56 u32 wolopts; member 708 wolinfo->wolopts = pdata->wolopts; in smsc75xx_ethtool_get_wol() 718 if (wolinfo->wolopts & ~SUPPORTED_WAKE) in smsc75xx_ethtool_set_wol() 721 pdata->wolopts = wolinfo->wolopts & SUPPORTED_WAKE; in smsc75xx_ethtool_set_wol() 723 ret = device_set_wakeup_enable(&dev->udev->dev, pdata->wolopts); in smsc75xx_ethtool_set_wol() 1820 if (!(pdata->wolopts & SUPPORTED_WAKE) || in smsc75xx_suspend() 1821 !(link_up || (pdata->wolopts & WAKE_PHY))) { in smsc75xx_suspend() 1857 if (pdata->wolopts & WAKE_PHY) { in smsc75xx_suspend() 1891 if (pdata->wolopts & (WAKE_MCAST | WAKE_ARP)) { in smsc75xx_suspend() 1903 if (pdata->wolopts & WAKE_MCAST) { in smsc75xx_suspend() [all …]
|
H 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/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() 1444 tp->wolinfo.wolopts = 0; in tulip_init_one() 1777 static void tulip_set_wolopts (struct pci_dev *pdev, u32 wolopts) in tulip_set_wolopts() argument 1794 if (wolopts & WAKE_MAGIC) in tulip_set_wolopts() 1796 if (wolopts & WAKE_PHY) in tulip_set_wolopts() 1822 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 | 1645 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/drivers/net/ethernet/intel/igc/ |
H A D | igc_ethtool.c | 354 wol->wolopts = 0; in igc_ethtool_get_wol() 370 wol->wolopts |= WAKE_UCAST; in igc_ethtool_get_wol() 372 wol->wolopts |= WAKE_MCAST; in igc_ethtool_get_wol() 374 wol->wolopts |= WAKE_BCAST; in igc_ethtool_get_wol() 376 wol->wolopts |= WAKE_MAGIC; in igc_ethtool_get_wol() 378 wol->wolopts |= WAKE_PHY; in igc_ethtool_get_wol() 386 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | WAKE_FILTER)) in igc_ethtool_set_wol() 390 return wol->wolopts ? -EOPNOTSUPP : 0; in igc_ethtool_set_wol() 395 if (wol->wolopts & WAKE_UCAST) in igc_ethtool_set_wol() 397 if (wol->wolopts & WAKE_MCAST) in igc_ethtool_set_wol() [all …]
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_ethtool.c | 841 wol->wolopts = priv->wolopts; in stmmac_get_wol() 858 device_set_wakeup_enable(priv->device, !!wol->wolopts); in stmmac_set_wol() 866 wol->wolopts &= ~WAKE_MAGIC; in stmmac_set_wol() 868 if (wol->wolopts & ~support) in stmmac_set_wol() 871 if (wol->wolopts) { in stmmac_set_wol() 887 priv->wolopts = wol->wolopts; in stmmac_set_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()
|