Home
last modified time | relevance | path

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

12345

/drivers/net/wireless/marvell/mwifiex/
Dethtool.c22 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()
/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()
/drivers/net/ethernet/broadcom/genet/
Dbcmgenet_wol.c54 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 …]
/drivers/net/ethernet/microchip/
Dlan743x_ethtool.c1144 wol->wolopts = 0; in lan743x_ethtool_get_wol()
1159 wol->wolopts |= adapter->wolopts; in lan743x_ethtool_get_wol()
1160 if (adapter->wolopts & WAKE_MAGICSECURE) in lan743x_ethtool_get_wol()
1172 if ((wol->wolopts & WAKE_MAGICSECURE) && !(wol->wolopts & WAKE_MAGIC)) in lan743x_ethtool_set_wol()
1179 phy_wol.wolopts = wol->wolopts & adapter->phy_wol_supported; in lan743x_ethtool_set_wol()
1184 if (wol->wolopts & WAKE_MAGICSECURE && in lan743x_ethtool_set_wol()
1186 phy_wol.wolopts &= ~WAKE_MAGIC; in lan743x_ethtool_set_wol()
1195 adapter->phy_wolopts = phy_wol.wolopts; in lan743x_ethtool_set_wol()
1200 adapter->wolopts = 0; in lan743x_ethtool_set_wol()
1201 wol->wolopts &= ~adapter->phy_wolopts; in lan743x_ethtool_set_wol()
[all …]
/drivers/net/phy/
Dsmsc.c302 wol->wolopts = 0; in lan874x_get_wol()
309 wol->wolopts |= WAKE_UCAST; in lan874x_get_wol()
312 wol->wolopts |= WAKE_BCAST; in lan874x_get_wol()
315 wol->wolopts |= WAKE_MAGIC; in lan874x_get_wol()
319 wol->wolopts |= WAKE_ARP; in lan874x_get_wol()
321 wol->wolopts |= WAKE_MCAST; in lan874x_get_wol()
417 if ((wol->wolopts & (WAKE_ARP | WAKE_MCAST)) == in lan874x_set_wol()
430 if (wol->wolopts & WAKE_UCAST) in lan874x_set_wol()
435 if (wol->wolopts & WAKE_BCAST) in lan874x_set_wol()
440 if (wol->wolopts & WAKE_MAGIC) in lan874x_set_wol()
[all …]
Dbcm-phy-lib.c843 if (wol->wolopts & ~BCM54XX_WOL_SUPPORTED_MASK) in bcm_phy_set_wol()
862 if (!wol->wolopts) { in bcm_phy_set_wol()
899 if (wol->wolopts & WAKE_MCAST) { in bcm_phy_set_wol()
905 if (wol->wolopts & WAKE_UCAST) { in bcm_phy_set_wol()
907 } else if (wol->wolopts & WAKE_BCAST) { in bcm_phy_set_wol()
909 } else if (wol->wolopts & WAKE_MAGICSECURE) { in bcm_phy_set_wol()
911 } else if (wol->wolopts & WAKE_MAGIC) { in bcm_phy_set_wol()
918 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in bcm_phy_set_wol()
938 if (wol->wolopts & WAKE_MAGICSECURE) { in bcm_phy_set_wol()
945 if (wol->wolopts & WAKE_MAGIC) in bcm_phy_set_wol()
[all …]
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 …]
Ddp83867.c201 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST | in dp83867_set_wol()
206 if (wol->wolopts & WAKE_MAGIC) { in dp83867_set_wol()
224 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83867_set_wol()
237 if (wol->wolopts & WAKE_UCAST) in dp83867_set_wol()
242 if (wol->wolopts & WAKE_BCAST) in dp83867_set_wol()
264 wol->wolopts = 0; in dp83867_get_wol()
269 wol->wolopts |= WAKE_UCAST; in dp83867_get_wol()
272 wol->wolopts |= WAKE_BCAST; in dp83867_get_wol()
275 wol->wolopts |= WAKE_MAGIC; in dp83867_get_wol()
293 wol->wolopts |= WAKE_MAGICSECURE; in dp83867_get_wol()
[all …]
Dmxl-gpy.c110 u32 wolopts; member
635 if (priv->wolopts & WAKE_MAGIC) in gpy_config_intr()
638 if (priv->wolopts & WAKE_PHY) in gpy_config_intr()
690 if (wol->wolopts & WAKE_MAGIC) { in gpy_set_wol()
736 priv->wolopts |= WAKE_MAGIC; in gpy_set_wol()
750 priv->wolopts &= ~WAKE_MAGIC; in gpy_set_wol()
753 if (wol->wolopts & WAKE_PHY) { in gpy_set_wol()
767 priv->wolopts |= WAKE_PHY; in gpy_set_wol()
771 priv->wolopts &= ~WAKE_PHY; in gpy_set_wol()
782 wol->wolopts = priv->wolopts; in gpy_get_wol()
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()
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()
/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()
/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()
/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()
/drivers/net/ethernet/wangxun/ngbe/
Dngbe_ethtool.c20 wol->wolopts = 0; in ngbe_get_wol()
22 wol->wolopts |= WAKE_MAGIC; in ngbe_get_wol()
35 if (wol->wolopts & WAKE_MAGIC) in ngbe_set_wol()
/drivers/net/ethernet/broadcom/asp2/
Dbcmasp_ethtool.c196 wol->wolopts = intf->wolopts; in bcmasp_get_wol()
199 if (wol->wolopts & WAKE_MAGICSECURE) in bcmasp_get_wol()
213 intf->wolopts = wol->wolopts; in bcmasp_set_wol()
214 if (intf->wolopts & WAKE_MAGICSECURE) in bcmasp_set_wol()
218 priv->enable_wol(intf, !!intf->wolopts); in bcmasp_set_wol()
/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()
/drivers/net/usb/
Dsmsc95xx.c65 u32 wolopts; member
727 wolinfo->wolopts = pdata->wolopts; in smsc95xx_ethtool_get_wol()
737 if (wolinfo->wolopts & ~SUPPORTED_WAKE) in smsc95xx_ethtool_set_wol()
740 pdata->wolopts = wolinfo->wolopts & SUPPORTED_WAKE; in smsc95xx_ethtool_set_wol()
742 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()
1522 if (!(pdata->wolopts & SUPPORTED_WAKE) || in smsc95xx_suspend()
1523 !(link_up || (pdata->wolopts & WAKE_PHY))) { in smsc95xx_suspend()
1551 if (pdata->wolopts & WAKE_PHY) { in smsc95xx_suspend()
1562 if (pdata->wolopts & (WAKE_BCAST | WAKE_MCAST | WAKE_ARP | WAKE_UCAST)) { in smsc95xx_suspend()
[all …]
Dasix_common.c599 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()
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
713 wolinfo->wolopts = pdata->wolopts; in smsc75xx_ethtool_get_wol()
723 if (wolinfo->wolopts & ~SUPPORTED_WAKE) in smsc75xx_ethtool_set_wol()
726 pdata->wolopts = wolinfo->wolopts & SUPPORTED_WAKE; in smsc75xx_ethtool_set_wol()
728 ret = device_set_wakeup_enable(&dev->udev->dev, pdata->wolopts); in smsc75xx_ethtool_set_wol()
1825 if (!(pdata->wolopts & SUPPORTED_WAKE) || in smsc75xx_suspend()
1826 !(link_up || (pdata->wolopts & WAKE_PHY))) { in smsc75xx_suspend()
1862 if (pdata->wolopts & WAKE_PHY) { in smsc75xx_suspend()
1896 if (pdata->wolopts & (WAKE_MCAST | WAKE_ARP)) { in smsc75xx_suspend()
1908 if (pdata->wolopts & WAKE_MCAST) { in smsc75xx_suspend()
[all …]
/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 …]
/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 …]
/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 …]

12345