Lines Matching refs:wol
2068 static void igb_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in igb_get_wol() argument
2072 wol->wolopts = 0; in igb_get_wol()
2077 wol->supported = WAKE_UCAST | WAKE_MCAST | in igb_get_wol()
2087 if (adapter->wol & E1000_WUFC_EX) in igb_get_wol()
2088 wol->wolopts |= WAKE_UCAST; in igb_get_wol()
2089 if (adapter->wol & E1000_WUFC_MC) in igb_get_wol()
2090 wol->wolopts |= WAKE_MCAST; in igb_get_wol()
2091 if (adapter->wol & E1000_WUFC_BC) in igb_get_wol()
2092 wol->wolopts |= WAKE_BCAST; in igb_get_wol()
2093 if (adapter->wol & E1000_WUFC_MAG) in igb_get_wol()
2094 wol->wolopts |= WAKE_MAGIC; in igb_get_wol()
2095 if (adapter->wol & E1000_WUFC_LNKC) in igb_get_wol()
2096 wol->wolopts |= WAKE_PHY; in igb_get_wol()
2099 static int igb_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in igb_set_wol() argument
2103 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE)) in igb_set_wol()
2107 return wol->wolopts ? -EOPNOTSUPP : 0; in igb_set_wol()
2110 adapter->wol = 0; in igb_set_wol()
2112 if (wol->wolopts & WAKE_UCAST) in igb_set_wol()
2113 adapter->wol |= E1000_WUFC_EX; in igb_set_wol()
2114 if (wol->wolopts & WAKE_MCAST) in igb_set_wol()
2115 adapter->wol |= E1000_WUFC_MC; in igb_set_wol()
2116 if (wol->wolopts & WAKE_BCAST) in igb_set_wol()
2117 adapter->wol |= E1000_WUFC_BC; in igb_set_wol()
2118 if (wol->wolopts & WAKE_MAGIC) in igb_set_wol()
2119 adapter->wol |= E1000_WUFC_MAG; in igb_set_wol()
2120 if (wol->wolopts & WAKE_PHY) in igb_set_wol()
2121 adapter->wol |= E1000_WUFC_LNKC; in igb_set_wol()
2122 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in igb_set_wol()