Lines Matching full:wol
1110 struct ethtool_wolinfo *wol) in lan743x_ethtool_get_wol() argument
1114 wol->supported = 0; in lan743x_ethtool_get_wol()
1115 wol->wolopts = 0; in lan743x_ethtool_get_wol()
1117 phylink_ethtool_get_wol(adapter->phylink, wol); in lan743x_ethtool_get_wol()
1119 if (wol->supported != adapter->phy_wol_supported) in lan743x_ethtool_get_wol()
1121 "PHY changed its supported WOL! old=%x, new=%x\n", in lan743x_ethtool_get_wol()
1122 adapter->phy_wol_supported, wol->supported); in lan743x_ethtool_get_wol()
1124 wol->supported |= MAC_SUPPORTED_WAKES; in lan743x_ethtool_get_wol()
1127 wol->supported |= WAKE_MAGICSECURE; in lan743x_ethtool_get_wol()
1129 wol->wolopts |= adapter->wolopts; in lan743x_ethtool_get_wol()
1131 memcpy(wol->sopass, adapter->sopass, sizeof(wol->sopass)); in lan743x_ethtool_get_wol()
1135 struct ethtool_wolinfo *wol) in lan743x_ethtool_set_wol() argument
1142 if ((wol->wolopts & WAKE_MAGICSECURE) && !(wol->wolopts & WAKE_MAGIC)) in lan743x_ethtool_set_wol()
1149 phy_wol.wolopts = wol->wolopts & adapter->phy_wol_supported; in lan743x_ethtool_set_wol()
1154 if (wol->wolopts & WAKE_MAGICSECURE && in lan743x_ethtool_set_wol()
1158 ret = phylink_ethtool_set_wol(adapter->phylink, wol); in lan743x_ethtool_set_wol()
1171 wol->wolopts &= ~adapter->phy_wolopts; in lan743x_ethtool_set_wol()
1172 if (wol->wolopts & WAKE_UCAST) in lan743x_ethtool_set_wol()
1174 if (wol->wolopts & WAKE_MCAST) in lan743x_ethtool_set_wol()
1176 if (wol->wolopts & WAKE_BCAST) in lan743x_ethtool_set_wol()
1178 if (wol->wolopts & WAKE_MAGIC) in lan743x_ethtool_set_wol()
1180 if (wol->wolopts & WAKE_PHY) in lan743x_ethtool_set_wol()
1182 if (wol->wolopts & WAKE_ARP) in lan743x_ethtool_set_wol()
1184 if (wol->wolopts & WAKE_MAGICSECURE && in lan743x_ethtool_set_wol()
1185 wol->wolopts & WAKE_MAGIC) { in lan743x_ethtool_set_wol()
1186 memcpy(adapter->sopass, wol->sopass, sizeof(wol->sopass)); in lan743x_ethtool_set_wol()
1192 wol->wolopts = adapter->wolopts | adapter->phy_wolopts; in lan743x_ethtool_set_wol()
1193 device_set_wakeup_enable(&adapter->pdev->dev, (bool)wol->wolopts); in lan743x_ethtool_set_wol()