Home
last modified time | relevance | path

Searched refs:wolopts (Results 1 – 25 of 112) sorted by relevance

12345

/linux-5.19.10/drivers/net/wireless/marvell/mwifiex/
Dethtool.c34 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-5.19.10/drivers/net/ethernet/broadcom/genet/
Dbcmgenet_wol.c47 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()
70 if (wol->wolopts & ~(WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_FILTER)) in bcmgenet_set_wol()
73 if (wol->wolopts & WAKE_MAGICSECURE) in bcmgenet_set_wol()
77 if (wol->wolopts) { in bcmgenet_set_wol()
91 priv->wolopts = wol->wolopts; in bcmgenet_set_wol()
145 if (priv->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in bcmgenet_wol_power_down_cfg()
148 if (priv->wolopts & WAKE_MAGICSECURE) { in bcmgenet_wol_power_down_cfg()
156 if (priv->wolopts & WAKE_FILTER) { in bcmgenet_wol_power_down_cfg()
[all …]
/linux-5.19.10/drivers/net/wireless/marvell/libertas/
Dethtool.c72 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-5.19.10/drivers/net/ethernet/atheros/atl1c/
Datl1c_ethtool.c234 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-5.19.10/drivers/net/ethernet/atheros/atl1e/
Datl1e_ethtool.c321 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-5.19.10/net/ethtool/
Dwol.c54 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-5.19.10/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c214 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-5.19.10/drivers/net/phy/
Ddp83tc811.c104 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()
Ddp83869.c261 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST | in dp83869_set_wol()
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()
[all …]
Dmicrochip.c21 __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()
Ddp83867.c191 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST | in dp83867_set_wol()
196 if (wol->wolopts & WAKE_MAGIC) { in dp83867_set_wol()
214 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83867_set_wol()
227 if (wol->wolopts & WAKE_UCAST) in dp83867_set_wol()
232 if (wol->wolopts & WAKE_BCAST) in dp83867_set_wol()
254 wol->wolopts = 0; in dp83867_get_wol()
259 wol->wolopts |= WAKE_UCAST; in dp83867_get_wol()
262 wol->wolopts |= WAKE_BCAST; in dp83867_get_wol()
265 wol->wolopts |= WAKE_MAGIC; in dp83867_get_wol()
283 wol->wolopts |= WAKE_MAGICSECURE; in dp83867_get_wol()
[all …]
Ddp83822.c130 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()
Dmxl-gpy.c388 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-5.19.10/drivers/net/ethernet/microchip/
Dlan743x_ethtool.c1144 wol->wolopts = 0; in lan743x_ethtool_get_wol()
1152 wol->wolopts |= adapter->wolopts; in lan743x_ethtool_get_wol()
1160 adapter->wolopts = 0; in lan743x_ethtool_set_wol()
1161 if (wol->wolopts & WAKE_UCAST) in lan743x_ethtool_set_wol()
1162 adapter->wolopts |= WAKE_UCAST; in lan743x_ethtool_set_wol()
1163 if (wol->wolopts & WAKE_MCAST) in lan743x_ethtool_set_wol()
1164 adapter->wolopts |= WAKE_MCAST; in lan743x_ethtool_set_wol()
1165 if (wol->wolopts & WAKE_BCAST) in lan743x_ethtool_set_wol()
1166 adapter->wolopts |= WAKE_BCAST; in lan743x_ethtool_set_wol()
1167 if (wol->wolopts & WAKE_MAGIC) in lan743x_ethtool_set_wol()
[all …]
/linux-5.19.10/drivers/net/ethernet/freescale/
Ducc_geth_ethtool.c356 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-5.19.10/drivers/net/usb/
Dsmsc95xx.c65 u32 wolopts; member
731 wolinfo->wolopts = pdata->wolopts; in smsc95xx_ethtool_get_wol()
741 if (wolinfo->wolopts & ~SUPPORTED_WAKE) in smsc95xx_ethtool_set_wol()
744 pdata->wolopts = wolinfo->wolopts & SUPPORTED_WAKE; in smsc95xx_ethtool_set_wol()
746 ret = device_set_wakeup_enable(&dev->udev->dev, pdata->wolopts); in smsc95xx_ethtool_set_wol()
1335 if (pdata->wolopts & WAKE_PHY) in smsc95xx_enter_suspend0()
1523 if (!(pdata->wolopts & SUPPORTED_WAKE) || in smsc95xx_suspend()
1524 !(link_up || (pdata->wolopts & WAKE_PHY))) { in smsc95xx_suspend()
1552 if (pdata->wolopts & WAKE_PHY) { in smsc95xx_suspend()
1563 if (pdata->wolopts & (WAKE_BCAST | WAKE_MCAST | WAKE_ARP | WAKE_UCAST)) { in smsc95xx_suspend()
[all …]
Dasix_common.c597 wolinfo->wolopts = 0; in asix_get_wol()
601 wolinfo->wolopts = 0; in asix_get_wol()
603 wolinfo->wolopts |= WAKE_PHY; in asix_get_wol()
605 wolinfo->wolopts |= WAKE_MAGIC; in asix_get_wol()
613 if (wolinfo->wolopts & ~(WAKE_PHY | WAKE_MAGIC)) in asix_set_wol()
616 if (wolinfo->wolopts & WAKE_PHY) in asix_set_wol()
618 if (wolinfo->wolopts & WAKE_MAGIC) in asix_set_wol()
Dsr9800.c406 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()
Dsmsc75xx.c56 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()
726 ret = device_set_wakeup_enable(&dev->udev->dev, pdata->wolopts); in smsc75xx_ethtool_set_wol()
1823 if (!(pdata->wolopts & SUPPORTED_WAKE) || in smsc75xx_suspend()
1824 !(link_up || (pdata->wolopts & WAKE_PHY))) { in smsc75xx_suspend()
1860 if (pdata->wolopts & WAKE_PHY) { in smsc75xx_suspend()
1894 if (pdata->wolopts & (WAKE_MCAST | WAKE_ARP)) { in smsc75xx_suspend()
1906 if (pdata->wolopts & WAKE_MCAST) { in smsc75xx_suspend()
[all …]
Dpegasus.c910 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-5.19.10/drivers/net/ethernet/dec/tulip/
Dtulip_core.c259 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-5.19.10/drivers/net/ethernet/realtek/
D8139cp.c1333 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-5.19.10/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c1645 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-5.19.10/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ethtool.c731 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-5.19.10/drivers/net/ethernet/intel/igc/
Digc_ethtool.c353 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()
385 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | WAKE_FILTER)) in igc_ethtool_set_wol()
389 return wol->wolopts ? -EOPNOTSUPP : 0; in igc_ethtool_set_wol()
394 if (wol->wolopts & WAKE_UCAST) in igc_ethtool_set_wol()
396 if (wol->wolopts & WAKE_MCAST) in igc_ethtool_set_wol()
[all …]

12345