Lines Matching refs: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 wol->supported |= WAKE_BCAST | WAKE_UCAST | WAKE_MCAST | in lan743x_ethtool_get_wol()
1153 wol->supported |= WAKE_MAGICSECURE; in lan743x_ethtool_get_wol()
1155 wol->wolopts |= adapter->wolopts; in lan743x_ethtool_get_wol()
1157 memcpy(wol->sopass, adapter->sopass, sizeof(wol->sopass)); in lan743x_ethtool_get_wol()
1161 struct ethtool_wolinfo *wol) in lan743x_ethtool_set_wol() argument
1166 if (wol->wolopts & WAKE_UCAST) in lan743x_ethtool_set_wol()
1168 if (wol->wolopts & WAKE_MCAST) in lan743x_ethtool_set_wol()
1170 if (wol->wolopts & WAKE_BCAST) in lan743x_ethtool_set_wol()
1172 if (wol->wolopts & WAKE_MAGIC) in lan743x_ethtool_set_wol()
1174 if (wol->wolopts & WAKE_PHY) in lan743x_ethtool_set_wol()
1176 if (wol->wolopts & WAKE_ARP) in lan743x_ethtool_set_wol()
1178 if (wol->wolopts & WAKE_MAGICSECURE && in lan743x_ethtool_set_wol()
1179 wol->wolopts & WAKE_MAGIC) { in lan743x_ethtool_set_wol()
1180 memcpy(adapter->sopass, wol->sopass, sizeof(wol->sopass)); in lan743x_ethtool_set_wol()
1186 device_set_wakeup_enable(&adapter->pdev->dev, (bool)wol->wolopts); in lan743x_ethtool_set_wol()
1188 return netdev->phydev ? phy_ethtool_set_wol(netdev->phydev, wol) in lan743x_ethtool_set_wol()