Lines Matching refs:wol

2064 static void igb_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol)  in igb_get_wol()  argument
2068 wol->wolopts = 0; in igb_get_wol()
2073 wol->supported = WAKE_UCAST | WAKE_MCAST | in igb_get_wol()
2083 if (adapter->wol & E1000_WUFC_EX) in igb_get_wol()
2084 wol->wolopts |= WAKE_UCAST; in igb_get_wol()
2085 if (adapter->wol & E1000_WUFC_MC) in igb_get_wol()
2086 wol->wolopts |= WAKE_MCAST; in igb_get_wol()
2087 if (adapter->wol & E1000_WUFC_BC) in igb_get_wol()
2088 wol->wolopts |= WAKE_BCAST; in igb_get_wol()
2089 if (adapter->wol & E1000_WUFC_MAG) in igb_get_wol()
2090 wol->wolopts |= WAKE_MAGIC; in igb_get_wol()
2091 if (adapter->wol & E1000_WUFC_LNKC) in igb_get_wol()
2092 wol->wolopts |= WAKE_PHY; in igb_get_wol()
2095 static int igb_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in igb_set_wol() argument
2099 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE)) in igb_set_wol()
2103 return wol->wolopts ? -EOPNOTSUPP : 0; in igb_set_wol()
2106 adapter->wol = 0; in igb_set_wol()
2108 if (wol->wolopts & WAKE_UCAST) in igb_set_wol()
2109 adapter->wol |= E1000_WUFC_EX; in igb_set_wol()
2110 if (wol->wolopts & WAKE_MCAST) in igb_set_wol()
2111 adapter->wol |= E1000_WUFC_MC; in igb_set_wol()
2112 if (wol->wolopts & WAKE_BCAST) in igb_set_wol()
2113 adapter->wol |= E1000_WUFC_BC; in igb_set_wol()
2114 if (wol->wolopts & WAKE_MAGIC) in igb_set_wol()
2115 adapter->wol |= E1000_WUFC_MAG; in igb_set_wol()
2116 if (wol->wolopts & WAKE_PHY) in igb_set_wol()
2117 adapter->wol |= E1000_WUFC_LNKC; in igb_set_wol()
2118 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in igb_set_wol()