Home
last modified time | relevance | path

Searched full:wol (Results 1 – 25 of 421) sorted by relevance

12345678910>>...17

/kernel/linux/linux-5.10/net/ethtool/
Dwol.c13 struct ethtool_wolinfo wol; member
39 dev->ethtool_ops->get_wol(dev, &data->wol); in wol_prepare_data()
42 data->show_sopass = info && (data->wol.supported & WAKE_MAGICSECURE); in wol_prepare_data()
54 len = ethnl_bitset32_size(&data->wol.wolopts, &data->wol.supported, in wol_reply_size()
59 len += nla_total_size(sizeof(data->wol.sopass)); in wol_reply_size()
72 ret = ethnl_put_bitset32(skb, ETHTOOL_A_WOL_MODES, &data->wol.wolopts, in wol_fill_reply()
73 &data->wol.supported, WOL_MODE_COUNT, in wol_fill_reply()
78 nla_put(skb, ETHTOOL_A_WOL_SOPASS, sizeof(data->wol.sopass), in wol_fill_reply()
79 data->wol.sopass)) in wol_fill_reply()
109 struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; in ethnl_set_wol() local
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/broadcom/genet/
Dbcmgenet_wol.c41 /* ethtool function - get WOL (Wake on LAN) settings, Only Magic Packet
44 void bcmgenet_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in bcmgenet_get_wol() argument
49 wol->supported = WAKE_MAGIC | WAKE_MAGICSECURE; in bcmgenet_get_wol()
50 wol->wolopts = priv->wolopts; in bcmgenet_get_wol()
51 memset(wol->sopass, 0, sizeof(wol->sopass)); in bcmgenet_get_wol()
53 if (wol->wolopts & WAKE_MAGICSECURE) { in bcmgenet_get_wol()
55 put_unaligned_be16(reg, &wol->sopass[0]); in bcmgenet_get_wol()
57 put_unaligned_be32(reg, &wol->sopass[2]); in bcmgenet_get_wol()
61 /* ethtool function - set WOL (Wake on LAN) settings.
64 int bcmgenet_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in bcmgenet_set_wol() argument
[all …]
/kernel/linux/linux-5.10/drivers/net/phy/
Ddp83tc811.c57 /* WoL Registers */
64 /* WoL bits */
98 struct ethtool_wolinfo *wol) in dp83811_set_wol() argument
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()
130 (wol->sopass[1] << 8) | wol->sopass[0]); in dp83811_set_wol()
133 (wol->sopass[3] << 8) | wol->sopass[2]); in dp83811_set_wol()
136 (wol->sopass[5] << 8) | wol->sopass[4]); in dp83811_set_wol()
142 /* Clear any pending WoL interrupt */ in dp83811_set_wol()
[all …]
Ddp83822.c83 /* WoL Registers */
90 /* WoL bits */
138 struct ethtool_wolinfo *wol) in dp83822_set_wol() argument
144 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in dp83822_set_wol()
162 if (wol->wolopts & WAKE_MAGIC) in dp83822_set_wol()
167 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83822_set_wol()
170 (wol->sopass[1] << 8) | wol->sopass[0]); in dp83822_set_wol()
173 (wol->sopass[3] << 8) | wol->sopass[2]); in dp83822_set_wol()
176 (wol->sopass[5] << 8) | wol->sopass[4]); in dp83822_set_wol()
182 /* Clear any pending WoL interrupt */ in dp83822_set_wol()
[all …]
Ddp83869.c211 struct ethtool_wolinfo *wol) in dp83869_set_wol() argument
226 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST | in dp83869_set_wol()
231 if (wol->wolopts & WAKE_MAGIC || in dp83869_set_wol()
232 wol->wolopts & WAKE_MAGICSECURE) { in dp83869_set_wol()
261 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83869_set_wol()
264 (wol->sopass[1] << 8) | wol->sopass[0]); in dp83869_set_wol()
270 (wol->sopass[3] << 8) | wol->sopass[2]); in dp83869_set_wol()
275 (wol->sopass[5] << 8) | wol->sopass[4]); in dp83869_set_wol()
284 if (wol->wolopts & WAKE_UCAST) in dp83869_set_wol()
289 if (wol->wolopts & WAKE_BCAST) in dp83869_set_wol()
[all …]
Ddp83867.c181 struct ethtool_wolinfo *wol) in dp83867_set_wol() argument
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()
215 (wol->sopass[1] << 8) | wol->sopass[0]); in dp83867_set_wol()
217 (wol->sopass[3] << 8) | wol->sopass[2]); in dp83867_set_wol()
219 (wol->sopass[5] << 8) | wol->sopass[4]); in dp83867_set_wol()
226 if (wol->wolopts & WAKE_UCAST) in dp83867_set_wol()
231 if (wol->wolopts & WAKE_BCAST) in dp83867_set_wol()
247 struct ethtool_wolinfo *wol) in dp83867_get_wol() argument
[all …]
Dmeson-gxl.c39 /* WOL Registers */
150 * can detect this using a magic bit in the WOL bank (reg 12 - bit 12).
160 int ret, wol, lpa, exp; in meson_gxl_read_status() local
170 wol = meson_gxl_read_reg(phydev, BANK_WOL, LPI_STATUS); in meson_gxl_read_status()
171 if (wol < 0) in meson_gxl_read_status()
172 return wol; in meson_gxl_read_status()
182 if (!(wol & LPI_STATUS_RSV12) || in meson_gxl_read_status()
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/
Dethtool.c23 struct ethtool_wolinfo *wol) in mwifiex_ethtool_get_wol() argument
28 wol->supported = WAKE_UCAST|WAKE_MCAST|WAKE_BCAST|WAKE_PHY; in mwifiex_ethtool_get_wol()
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()
44 struct ethtool_wolinfo *wol) in mwifiex_ethtool_set_wol() argument
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()
[all …]
/kernel/linux/linux-4.19/drivers/net/phy/
Ddp83822.c68 /* WoL Registers */
75 /* WoL bits */
98 struct ethtool_wolinfo *wol) in dp83822_set_wol() argument
104 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { in dp83822_set_wol()
122 if (wol->wolopts & WAKE_MAGIC) in dp83822_set_wol()
127 if (wol->wolopts & WAKE_MAGICSECURE) { in dp83822_set_wol()
130 (wol->sopass[1] << 8) | wol->sopass[0]); in dp83822_set_wol()
133 (wol->sopass[3] << 8) | wol->sopass[2]); in dp83822_set_wol()
136 (wol->sopass[5] << 8) | wol->sopass[4]); in dp83822_set_wol()
158 struct ethtool_wolinfo *wol) in dp83822_get_wol() argument
[all …]
Ddp83tc811.c57 /* WoL Registers */
64 /* WoL bits */
98 struct ethtool_wolinfo *wol) in dp83811_set_wol() argument
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()
130 (wol->sopass[1] << 8) | wol->sopass[0]); in dp83811_set_wol()
133 (wol->sopass[3] << 8) | wol->sopass[2]); in dp83811_set_wol()
136 (wol->sopass[5] << 8) | wol->sopass[4]); in dp83811_set_wol()
158 struct ethtool_wolinfo *wol) in dp83811_get_wol() argument
[all …]
Dmeson-gxl.c49 /* WOL Registers */
160 * can detect this using a magic bit in the WOL bank (reg 12 - bit 12).
170 int ret, wol, lpa, exp; in meson_gxl_read_status() local
180 wol = meson_gxl_read_reg(phydev, BANK_WOL, LPI_STATUS); in meson_gxl_read_status()
181 if (wol < 0) in meson_gxl_read_status()
182 return wol; in meson_gxl_read_status()
192 if (!(wol & LPI_STATUS_RSV12) || in meson_gxl_read_status()
/kernel/linux/linux-4.19/drivers/net/wireless/marvell/mwifiex/
Dethtool.c23 struct ethtool_wolinfo *wol) in mwifiex_ethtool_get_wol() argument
28 wol->supported = WAKE_UCAST|WAKE_MCAST|WAKE_BCAST|WAKE_PHY; in mwifiex_ethtool_get_wol()
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()
44 struct ethtool_wolinfo *wol) in mwifiex_ethtool_set_wol() argument
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()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/genet/
Dbcmgenet_wol.c38 /* ethtool function - get WOL (Wake on LAN) settings, Only Magic Packet
41 void bcmgenet_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in bcmgenet_get_wol() argument
45 wol->supported = WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_FILTER; in bcmgenet_get_wol()
46 wol->wolopts = priv->wolopts; in bcmgenet_get_wol()
47 memset(wol->sopass, 0, sizeof(wol->sopass)); in bcmgenet_get_wol()
49 if (wol->wolopts & WAKE_MAGICSECURE) in bcmgenet_get_wol()
50 memcpy(wol->sopass, priv->sopass, sizeof(priv->sopass)); in bcmgenet_get_wol()
53 /* ethtool function - set WOL (Wake on LAN) settings.
56 int bcmgenet_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in bcmgenet_set_wol() argument
64 if (wol->wolopts & ~(WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_FILTER)) in bcmgenet_set_wol()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/libertas/
Dethtool.c65 struct ethtool_wolinfo *wol) in lbs_ethtool_get_wol() argument
69 wol->supported = WAKE_UCAST|WAKE_MCAST|WAKE_BCAST|WAKE_PHY; in lbs_ethtool_get_wol()
75 wol->wolopts |= WAKE_UCAST; in lbs_ethtool_get_wol()
77 wol->wolopts |= WAKE_MCAST; in lbs_ethtool_get_wol()
79 wol->wolopts |= WAKE_BCAST; in lbs_ethtool_get_wol()
81 wol->wolopts |= WAKE_PHY; in lbs_ethtool_get_wol()
85 struct ethtool_wolinfo *wol) in lbs_ethtool_set_wol() argument
89 if (wol->wolopts & ~(WAKE_UCAST|WAKE_MCAST|WAKE_BCAST|WAKE_PHY)) in lbs_ethtool_set_wol()
93 if (wol->wolopts & WAKE_UCAST) in lbs_ethtool_set_wol()
95 if (wol->wolopts & WAKE_MCAST) in lbs_ethtool_set_wol()
[all …]
/kernel/linux/linux-4.19/drivers/net/wireless/marvell/libertas/
Dethtool.c65 struct ethtool_wolinfo *wol) in lbs_ethtool_get_wol() argument
69 wol->supported = WAKE_UCAST|WAKE_MCAST|WAKE_BCAST|WAKE_PHY; in lbs_ethtool_get_wol()
75 wol->wolopts |= WAKE_UCAST; in lbs_ethtool_get_wol()
77 wol->wolopts |= WAKE_MCAST; in lbs_ethtool_get_wol()
79 wol->wolopts |= WAKE_BCAST; in lbs_ethtool_get_wol()
81 wol->wolopts |= WAKE_PHY; in lbs_ethtool_get_wol()
85 struct ethtool_wolinfo *wol) in lbs_ethtool_set_wol() argument
89 if (wol->wolopts & ~(WAKE_UCAST|WAKE_MCAST|WAKE_BCAST|WAKE_PHY)) in lbs_ethtool_set_wol()
93 if (wol->wolopts & WAKE_UCAST) in lbs_ethtool_set_wol()
95 if (wol->wolopts & WAKE_MCAST) in lbs_ethtool_set_wol()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/atl1c/
Datl1c_ethtool.c229 struct ethtool_wolinfo *wol) in atl1c_get_wol() argument
233 wol->supported = WAKE_MAGIC | WAKE_PHY; in atl1c_get_wol()
234 wol->wolopts = 0; in atl1c_get_wol()
236 if (adapter->wol & AT_WUFC_EX) in atl1c_get_wol()
237 wol->wolopts |= WAKE_UCAST; in atl1c_get_wol()
238 if (adapter->wol & AT_WUFC_MC) in atl1c_get_wol()
239 wol->wolopts |= WAKE_MCAST; in atl1c_get_wol()
240 if (adapter->wol & AT_WUFC_BC) in atl1c_get_wol()
241 wol->wolopts |= WAKE_BCAST; in atl1c_get_wol()
242 if (adapter->wol & AT_WUFC_MAG) in atl1c_get_wol()
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/atheros/atl1c/
Datl1c_ethtool.c245 struct ethtool_wolinfo *wol) in atl1c_get_wol() argument
249 wol->supported = WAKE_MAGIC | WAKE_PHY; in atl1c_get_wol()
250 wol->wolopts = 0; in atl1c_get_wol()
252 if (adapter->wol & AT_WUFC_EX) in atl1c_get_wol()
253 wol->wolopts |= WAKE_UCAST; in atl1c_get_wol()
254 if (adapter->wol & AT_WUFC_MC) in atl1c_get_wol()
255 wol->wolopts |= WAKE_MCAST; in atl1c_get_wol()
256 if (adapter->wol & AT_WUFC_BC) in atl1c_get_wol()
257 wol->wolopts |= WAKE_BCAST; in atl1c_get_wol()
258 if (adapter->wol & AT_WUFC_MAG) in atl1c_get_wol()
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/atheros/atl1e/
Datl1e_ethtool.c332 struct ethtool_wolinfo *wol) in atl1e_get_wol() argument
336 wol->supported = WAKE_MAGIC | WAKE_PHY; in atl1e_get_wol()
337 wol->wolopts = 0; in atl1e_get_wol()
339 if (adapter->wol & AT_WUFC_EX) in atl1e_get_wol()
340 wol->wolopts |= WAKE_UCAST; in atl1e_get_wol()
341 if (adapter->wol & AT_WUFC_MC) in atl1e_get_wol()
342 wol->wolopts |= WAKE_MCAST; in atl1e_get_wol()
343 if (adapter->wol & AT_WUFC_BC) in atl1e_get_wol()
344 wol->wolopts |= WAKE_BCAST; in atl1e_get_wol()
345 if (adapter->wol & AT_WUFC_MAG) in atl1e_get_wol()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/atl1e/
Datl1e_ethtool.c316 struct ethtool_wolinfo *wol) in atl1e_get_wol() argument
320 wol->supported = WAKE_MAGIC | WAKE_PHY; in atl1e_get_wol()
321 wol->wolopts = 0; in atl1e_get_wol()
323 if (adapter->wol & AT_WUFC_EX) in atl1e_get_wol()
324 wol->wolopts |= WAKE_UCAST; in atl1e_get_wol()
325 if (adapter->wol & AT_WUFC_MC) in atl1e_get_wol()
326 wol->wolopts |= WAKE_MCAST; in atl1e_get_wol()
327 if (adapter->wol & AT_WUFC_BC) in atl1e_get_wol()
328 wol->wolopts |= WAKE_BCAST; in atl1e_get_wol()
329 if (adapter->wol & AT_WUFC_MAG) in atl1e_get_wol()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c204 * @wol: Wake-on-Lan information
207 struct ethtool_wolinfo *wol) in pch_gbe_get_wol() argument
211 wol->supported = WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | WAKE_MAGIC; in pch_gbe_get_wol()
212 wol->wolopts = 0; in pch_gbe_get_wol()
215 wol->wolopts |= WAKE_UCAST; in pch_gbe_get_wol()
217 wol->wolopts |= WAKE_MCAST; in pch_gbe_get_wol()
219 wol->wolopts |= WAKE_BCAST; in pch_gbe_get_wol()
221 wol->wolopts |= WAKE_MAGIC; in pch_gbe_get_wol()
227 * @wol: Pointer of wake-on-Lan information straucture
233 struct ethtool_wolinfo *wol) in pch_gbe_set_wol() argument
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c215 * @wol: Wake-on-Lan information
218 struct ethtool_wolinfo *wol) in pch_gbe_get_wol() argument
222 wol->supported = WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | WAKE_MAGIC; in pch_gbe_get_wol()
223 wol->wolopts = 0; in pch_gbe_get_wol()
226 wol->wolopts |= WAKE_UCAST; in pch_gbe_get_wol()
228 wol->wolopts |= WAKE_MCAST; in pch_gbe_get_wol()
230 wol->wolopts |= WAKE_BCAST; in pch_gbe_get_wol()
232 wol->wolopts |= WAKE_MAGIC; in pch_gbe_get_wol()
238 * @wol: Pointer of wake-on-Lan information straucture
244 struct ethtool_wolinfo *wol) in pch_gbe_set_wol() argument
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/microchip/
Dlan743x_ethtool.c656 struct ethtool_wolinfo *wol) in lan743x_ethtool_get_wol() argument
660 wol->supported = 0; in lan743x_ethtool_get_wol()
661 wol->wolopts = 0; in lan743x_ethtool_get_wol()
662 phy_ethtool_get_wol(netdev->phydev, wol); in lan743x_ethtool_get_wol()
664 wol->supported |= WAKE_BCAST | WAKE_UCAST | WAKE_MCAST | in lan743x_ethtool_get_wol()
667 wol->wolopts |= adapter->wolopts; in lan743x_ethtool_get_wol()
671 struct ethtool_wolinfo *wol) in lan743x_ethtool_set_wol() argument
676 if (wol->wolopts & WAKE_UCAST) in lan743x_ethtool_set_wol()
678 if (wol->wolopts & WAKE_MCAST) in lan743x_ethtool_set_wol()
680 if (wol->wolopts & WAKE_BCAST) in lan743x_ethtool_set_wol()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c1580 struct ethtool_wolinfo *wol) in e1000_wol_exclusion() argument
1595 /* these don't support WoL at all */ in e1000_wol_exclusion()
1596 wol->supported = 0; in e1000_wol_exclusion()
1602 wol->supported = 0; in e1000_wol_exclusion()
1609 /* quad port adapters only support WoL on port A */ in e1000_wol_exclusion()
1611 wol->supported = 0; in e1000_wol_exclusion()
1618 /* dual port cards only support WoL on port A from now on in e1000_wol_exclusion()
1620 * so exclude FUNC_1 ports from having WoL enabled in e1000_wol_exclusion()
1624 wol->supported = 0; in e1000_wol_exclusion()
1635 struct ethtool_wolinfo *wol) in e1000_get_wol() argument
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c1583 struct ethtool_wolinfo *wol) in e1000_wol_exclusion() argument
1598 /* these don't support WoL at all */ in e1000_wol_exclusion()
1599 wol->supported = 0; in e1000_wol_exclusion()
1605 wol->supported = 0; in e1000_wol_exclusion()
1612 /* quad port adapters only support WoL on port A */ in e1000_wol_exclusion()
1614 wol->supported = 0; in e1000_wol_exclusion()
1621 /* dual port cards only support WoL on port A from now on in e1000_wol_exclusion()
1623 * so exclude FUNC_1 ports from having WoL enabled in e1000_wol_exclusion()
1627 wol->supported = 0; in e1000_wol_exclusion()
1638 struct ethtool_wolinfo *wol) in e1000_get_wol() argument
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/microchip/
Dlan743x_ethtool.c777 struct ethtool_wolinfo *wol) in lan743x_ethtool_get_wol() argument
781 wol->supported = 0; in lan743x_ethtool_get_wol()
782 wol->wolopts = 0; in lan743x_ethtool_get_wol()
783 phy_ethtool_get_wol(netdev->phydev, wol); in lan743x_ethtool_get_wol()
785 wol->supported |= WAKE_BCAST | WAKE_UCAST | WAKE_MCAST | in lan743x_ethtool_get_wol()
788 wol->wolopts |= adapter->wolopts; in lan743x_ethtool_get_wol()
792 struct ethtool_wolinfo *wol) in lan743x_ethtool_set_wol() argument
797 if (wol->wolopts & WAKE_UCAST) in lan743x_ethtool_set_wol()
799 if (wol->wolopts & WAKE_MCAST) in lan743x_ethtool_set_wol()
801 if (wol->wolopts & WAKE_BCAST) in lan743x_ethtool_set_wol()
[all …]

12345678910>>...17