/linux-6.3-rc2/drivers/net/wireless/marvell/mwifiex/ |
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-6.3-rc2/drivers/net/ethernet/broadcom/genet/ |
A D | bcmgenet_wol.c | 47 wol->wolopts = 0; in bcmgenet_get_wol() 52 wol->wolopts = priv->wolopts; in bcmgenet_get_wol() 55 if (wol->wolopts & WAKE_MAGICSECURE) in bcmgenet_get_wol() 73 if (wol->wolopts & WAKE_MAGICSECURE) in bcmgenet_set_wol() 77 if (wol->wolopts) { in bcmgenet_set_wol() 95 priv->wolopts = wol->wolopts; in bcmgenet_set_wol() 149 if (priv->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in bcmgenet_wol_power_down_cfg() 152 if (priv->wolopts & WAKE_MAGICSECURE) { in bcmgenet_wol_power_down_cfg() 160 if (priv->wolopts & WAKE_FILTER) { in bcmgenet_wol_power_down_cfg() 227 if (priv->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in bcmgenet_wol_power_up_cfg() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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() 113 ret = ethnl_update_bitset32(&wol.wolopts, WOL_MODE_COUNT, in ethnl_set_wol() 118 if (wol.wolopts & ~wol.supported) { in ethnl_set_wol() 139 dev->wol_enabled = !!wol.wolopts; in ethnl_set_wol()
|
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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 | dp83869.c | 266 if (wol->wolopts & WAKE_MAGIC || in dp83869_set_wol() 267 wol->wolopts & WAKE_MAGICSECURE) { in dp83869_set_wol() 296 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83869_set_wol() 319 if (wol->wolopts & WAKE_UCAST) in dp83869_set_wol() 324 if (wol->wolopts & WAKE_BCAST) in dp83869_set_wol() 347 wol->wolopts = 0; in dp83869_get_wol() 356 wol->wolopts |= WAKE_UCAST; in dp83869_get_wol() 359 wol->wolopts |= WAKE_BCAST; in dp83869_get_wol() 362 wol->wolopts |= WAKE_MAGIC; in dp83869_get_wol() 395 wol->wolopts |= WAKE_MAGICSECURE; in dp83869_get_wol() [all …]
|
A D | dp83867.c | 192 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST | in dp83867_set_wol() 197 if (wol->wolopts & WAKE_MAGIC) { in dp83867_set_wol() 215 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83867_set_wol() 228 if (wol->wolopts & WAKE_UCAST) in dp83867_set_wol() 233 if (wol->wolopts & WAKE_BCAST) in dp83867_set_wol() 255 wol->wolopts = 0; in dp83867_get_wol() 260 wol->wolopts |= WAKE_UCAST; in dp83867_get_wol() 263 wol->wolopts |= WAKE_BCAST; in dp83867_get_wol() 266 wol->wolopts |= WAKE_MAGIC; in dp83867_get_wol() 284 wol->wolopts |= WAKE_MAGICSECURE; in dp83867_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 | 130 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in dp83822_set_wol() 148 if (wol->wolopts & WAKE_MAGIC) in dp83822_set_wol() 153 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83822_set_wol() 189 wol->wolopts = 0; in dp83822_get_wol() 194 wol->wolopts |= WAKE_MAGIC; in dp83822_get_wol() 212 wol->wolopts |= WAKE_MAGICSECURE; in dp83822_get_wol() 217 wol->wolopts = 0; in dp83822_get_wol()
|
A D | mxl-gpy.c | 678 if (wol->wolopts & WAKE_MAGIC) { in gpy_set_wol() 732 if (wol->wolopts & WAKE_PHY) { in gpy_set_wol() 759 wol->wolopts = 0; in gpy_get_wol() 763 wol->wolopts |= WAKE_MAGIC; in gpy_get_wol() 767 wol->wolopts |= WAKE_PHY; in gpy_get_wol()
|
/linux-6.3-rc2/drivers/net/ethernet/microchip/ |
A D | lan743x_ethtool.c | 1144 wol->wolopts = 0; in lan743x_ethtool_get_wol() 1155 wol->wolopts |= adapter->wolopts; in lan743x_ethtool_get_wol() 1165 adapter->wolopts = 0; in lan743x_ethtool_set_wol() 1166 if (wol->wolopts & WAKE_UCAST) in lan743x_ethtool_set_wol() 1168 if (wol->wolopts & WAKE_MCAST) in lan743x_ethtool_set_wol() 1170 if (wol->wolopts & WAKE_BCAST) in lan743x_ethtool_set_wol() 1172 if (wol->wolopts & WAKE_MAGIC) in lan743x_ethtool_set_wol() 1174 if (wol->wolopts & WAKE_PHY) in lan743x_ethtool_set_wol() 1175 adapter->wolopts |= WAKE_PHY; in lan743x_ethtool_set_wol() 1176 if (wol->wolopts & WAKE_ARP) in lan743x_ethtool_set_wol() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/freescale/ |
A D | ucc_geth_ethtool.c | 356 wol->wolopts = ugeth->wol_en; in uec_get_wol() 364 if (wol->wolopts & ~(WAKE_PHY | WAKE_MAGIC)) in uec_set_wol() 366 else if (wol->wolopts & WAKE_PHY && (!phydev || !phydev->irq)) in uec_set_wol() 368 else if (wol->wolopts & WAKE_MAGIC && !qe_alive_during_sleep()) in uec_set_wol() 371 ugeth->wol_en = wol->wolopts; in uec_set_wol()
|
/linux-6.3-rc2/drivers/net/usb/ |
A D | smsc95xx.c | 65 u32 wolopts; member 725 wolinfo->wolopts = pdata->wolopts; in smsc95xx_ethtool_get_wol() 738 pdata->wolopts = wolinfo->wolopts & SUPPORTED_WAKE; in smsc95xx_ethtool_set_wol() 1330 if (pdata->wolopts & WAKE_PHY) in smsc95xx_enter_suspend0() 1546 if (pdata->wolopts & WAKE_PHY) { in smsc95xx_suspend() 1577 if (pdata->wolopts & WAKE_BCAST) { in smsc95xx_suspend() 1590 if (pdata->wolopts & WAKE_MCAST) { in smsc95xx_suspend() 1603 if (pdata->wolopts & WAKE_ARP) { in smsc95xx_suspend() 1667 if (pdata->wolopts & WAKE_MAGIC) { in smsc95xx_suspend() 1693 if (pdata->wolopts & WAKE_MAGIC) { in smsc95xx_suspend() [all …]
|
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()
|
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 | 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-6.3-rc2/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() 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-6.3-rc2/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-6.3-rc2/drivers/net/ethernet/intel/e1000/ |
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() 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() 1709 if (wol->wolopts & WAKE_BCAST) in e1000_set_wol() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/stmicro/stmmac/ |
A D | stmmac_ethtool.c | 731 wol->wolopts = priv->wolopts; in stmmac_get_wol() 748 device_set_wakeup_enable(priv->device, !!wol->wolopts); in stmmac_set_wol() 756 wol->wolopts &= ~WAKE_MAGIC; in stmmac_set_wol() 758 if (wol->wolopts & ~support) in stmmac_set_wol() 761 if (wol->wolopts) { in stmmac_set_wol() 771 priv->wolopts = wol->wolopts; in stmmac_set_wol()
|
/linux-6.3-rc2/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 …]
|