Lines Matching full:wol

88 /* WoL Registers */
95 /* WoL bits */
143 struct ethtool_wolinfo wol; member
147 struct ethtool_wolinfo *wol) in dp83822_config_wol() argument
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()
179 (wol->sopass[1] << 8) | wol->sopass[0]); in dp83822_config_wol()
182 (wol->sopass[3] << 8) | wol->sopass[2]); in dp83822_config_wol()
185 (wol->sopass[5] << 8) | wol->sopass[4]); in dp83822_config_wol()
191 /* Clear any pending WoL interrupt */ in dp83822_config_wol()
209 struct ethtool_wolinfo *wol) in dp83822_set_wol() argument
214 ret = dp83822_config_wol(phydev, wol); in dp83822_set_wol()
216 memcpy(&dp83822->wol, wol, sizeof(*wol)); in dp83822_set_wol()
221 struct ethtool_wolinfo *wol) in dp83822_get_wol() argument
226 wol->supported = (WAKE_MAGIC | WAKE_MAGICSECURE); in dp83822_get_wol()
227 wol->wolopts = 0; in dp83822_get_wol()
232 wol->wolopts |= WAKE_MAGIC; in dp83822_get_wol()
237 wol->sopass[0] = (sopass_val & 0xff); in dp83822_get_wol()
238 wol->sopass[1] = (sopass_val >> 8); in dp83822_get_wol()
242 wol->sopass[2] = (sopass_val & 0xff); in dp83822_get_wol()
243 wol->sopass[3] = (sopass_val >> 8); in dp83822_get_wol()
247 wol->sopass[4] = (sopass_val & 0xff); in dp83822_get_wol()
248 wol->sopass[5] = (sopass_val >> 8); in dp83822_get_wol()
250 wol->wolopts |= WAKE_MAGICSECURE; in dp83822_get_wol()
253 /* WoL is not enabled so set wolopts to 0 */ in dp83822_get_wol()
255 wol->wolopts = 0; in dp83822_get_wol()
506 return dp83822_config_wol(phydev, &dp83822->wol); in dp83822_config_init()
585 return dp83822_config_wol(phydev, &dp83822->wol); in dp83826_config_init()
592 return dp83822_config_wol(phydev, &dp83822->wol); in dp8382x_config_init()