Lines Matching refs:wol

2092 			       struct ethtool_wolinfo *wol)  in ixgbe_wol_exclusion()  argument
2101 wol->supported = 0; in ixgbe_wol_exclusion()
2108 struct ethtool_wolinfo *wol) in ixgbe_get_wol() argument
2112 wol->supported = WAKE_UCAST | WAKE_MCAST | in ixgbe_get_wol()
2114 wol->wolopts = 0; in ixgbe_get_wol()
2116 if (ixgbe_wol_exclusion(adapter, wol) || in ixgbe_get_wol()
2120 if (adapter->wol & IXGBE_WUFC_EX) in ixgbe_get_wol()
2121 wol->wolopts |= WAKE_UCAST; in ixgbe_get_wol()
2122 if (adapter->wol & IXGBE_WUFC_MC) in ixgbe_get_wol()
2123 wol->wolopts |= WAKE_MCAST; in ixgbe_get_wol()
2124 if (adapter->wol & IXGBE_WUFC_BC) in ixgbe_get_wol()
2125 wol->wolopts |= WAKE_BCAST; in ixgbe_get_wol()
2126 if (adapter->wol & IXGBE_WUFC_MAG) in ixgbe_get_wol()
2127 wol->wolopts |= WAKE_MAGIC; in ixgbe_get_wol()
2130 static int ixgbe_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in ixgbe_set_wol() argument
2134 if (wol->wolopts & (WAKE_PHY | WAKE_ARP | WAKE_MAGICSECURE)) in ixgbe_set_wol()
2137 if (ixgbe_wol_exclusion(adapter, wol)) in ixgbe_set_wol()
2138 return wol->wolopts ? -EOPNOTSUPP : 0; in ixgbe_set_wol()
2140 adapter->wol = 0; in ixgbe_set_wol()
2142 if (wol->wolopts & WAKE_UCAST) in ixgbe_set_wol()
2143 adapter->wol |= IXGBE_WUFC_EX; in ixgbe_set_wol()
2144 if (wol->wolopts & WAKE_MCAST) in ixgbe_set_wol()
2145 adapter->wol |= IXGBE_WUFC_MC; in ixgbe_set_wol()
2146 if (wol->wolopts & WAKE_BCAST) in ixgbe_set_wol()
2147 adapter->wol |= IXGBE_WUFC_BC; in ixgbe_set_wol()
2148 if (wol->wolopts & WAKE_MAGIC) in ixgbe_set_wol()
2149 adapter->wol |= IXGBE_WUFC_MAG; in ixgbe_set_wol()
2151 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in ixgbe_set_wol()