Lines Matching full:wol

1139 				    struct ethtool_wolinfo *wol)  in lan743x_ethtool_get_wol()  argument
1143 wol->supported = 0; in lan743x_ethtool_get_wol()
1144 wol->wolopts = 0; in lan743x_ethtool_get_wol()
1147 phy_ethtool_get_wol(netdev->phydev, wol); in lan743x_ethtool_get_wol()
1149 if (wol->supported != adapter->phy_wol_supported) in lan743x_ethtool_get_wol()
1151 "PHY changed its supported WOL! old=%x, new=%x\n", in lan743x_ethtool_get_wol()
1152 adapter->phy_wol_supported, wol->supported); in lan743x_ethtool_get_wol()
1154 wol->supported |= MAC_SUPPORTED_WAKES; in lan743x_ethtool_get_wol()
1157 wol->supported |= WAKE_MAGICSECURE; in lan743x_ethtool_get_wol()
1159 wol->wolopts |= adapter->wolopts; in lan743x_ethtool_get_wol()
1161 memcpy(wol->sopass, adapter->sopass, sizeof(wol->sopass)); in lan743x_ethtool_get_wol()
1165 struct ethtool_wolinfo *wol) in lan743x_ethtool_set_wol() argument
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()
1201 wol->wolopts &= ~adapter->phy_wolopts; in lan743x_ethtool_set_wol()
1202 if (wol->wolopts & WAKE_UCAST) in lan743x_ethtool_set_wol()
1204 if (wol->wolopts & WAKE_MCAST) in lan743x_ethtool_set_wol()
1206 if (wol->wolopts & WAKE_BCAST) in lan743x_ethtool_set_wol()
1208 if (wol->wolopts & WAKE_MAGIC) in lan743x_ethtool_set_wol()
1210 if (wol->wolopts & WAKE_PHY) in lan743x_ethtool_set_wol()
1212 if (wol->wolopts & WAKE_ARP) in lan743x_ethtool_set_wol()
1214 if (wol->wolopts & WAKE_MAGICSECURE && in lan743x_ethtool_set_wol()
1215 wol->wolopts & WAKE_MAGIC) { in lan743x_ethtool_set_wol()
1216 memcpy(adapter->sopass, wol->sopass, sizeof(wol->sopass)); in lan743x_ethtool_set_wol()
1222 wol->wolopts = adapter->wolopts | adapter->phy_wolopts; in lan743x_ethtool_set_wol()
1223 device_set_wakeup_enable(&adapter->pdev->dev, (bool)wol->wolopts); in lan743x_ethtool_set_wol()