Lines Matching refs:wol

2098 static void igb_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol)  in igb_get_wol()  argument
2102 wol->wolopts = 0; in igb_get_wol()
2107 wol->supported = WAKE_UCAST | WAKE_MCAST | in igb_get_wol()
2117 if (adapter->wol & E1000_WUFC_EX) in igb_get_wol()
2118 wol->wolopts |= WAKE_UCAST; in igb_get_wol()
2119 if (adapter->wol & E1000_WUFC_MC) in igb_get_wol()
2120 wol->wolopts |= WAKE_MCAST; in igb_get_wol()
2121 if (adapter->wol & E1000_WUFC_BC) in igb_get_wol()
2122 wol->wolopts |= WAKE_BCAST; in igb_get_wol()
2123 if (adapter->wol & E1000_WUFC_MAG) in igb_get_wol()
2124 wol->wolopts |= WAKE_MAGIC; in igb_get_wol()
2125 if (adapter->wol & E1000_WUFC_LNKC) in igb_get_wol()
2126 wol->wolopts |= WAKE_PHY; in igb_get_wol()
2129 static int igb_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in igb_set_wol() argument
2133 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | WAKE_FILTER)) in igb_set_wol()
2137 return wol->wolopts ? -EOPNOTSUPP : 0; in igb_set_wol()
2140 adapter->wol = 0; in igb_set_wol()
2142 if (wol->wolopts & WAKE_UCAST) in igb_set_wol()
2143 adapter->wol |= E1000_WUFC_EX; in igb_set_wol()
2144 if (wol->wolopts & WAKE_MCAST) in igb_set_wol()
2145 adapter->wol |= E1000_WUFC_MC; in igb_set_wol()
2146 if (wol->wolopts & WAKE_BCAST) in igb_set_wol()
2147 adapter->wol |= E1000_WUFC_BC; in igb_set_wol()
2148 if (wol->wolopts & WAKE_MAGIC) in igb_set_wol()
2149 adapter->wol |= E1000_WUFC_MAG; in igb_set_wol()
2150 if (wol->wolopts & WAKE_PHY) in igb_set_wol()
2151 adapter->wol |= E1000_WUFC_LNKC; in igb_set_wol()
2152 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in igb_set_wol()