Lines Matching refs:wol

2087 			       struct ethtool_wolinfo *wol)  in ixgbe_wol_exclusion()  argument
2096 wol->supported = 0; in ixgbe_wol_exclusion()
2103 struct ethtool_wolinfo *wol) in ixgbe_get_wol() argument
2107 wol->supported = WAKE_UCAST | WAKE_MCAST | in ixgbe_get_wol()
2109 wol->wolopts = 0; in ixgbe_get_wol()
2111 if (ixgbe_wol_exclusion(adapter, wol) || in ixgbe_get_wol()
2115 if (adapter->wol & IXGBE_WUFC_EX) in ixgbe_get_wol()
2116 wol->wolopts |= WAKE_UCAST; in ixgbe_get_wol()
2117 if (adapter->wol & IXGBE_WUFC_MC) in ixgbe_get_wol()
2118 wol->wolopts |= WAKE_MCAST; in ixgbe_get_wol()
2119 if (adapter->wol & IXGBE_WUFC_BC) in ixgbe_get_wol()
2120 wol->wolopts |= WAKE_BCAST; in ixgbe_get_wol()
2121 if (adapter->wol & IXGBE_WUFC_MAG) in ixgbe_get_wol()
2122 wol->wolopts |= WAKE_MAGIC; in ixgbe_get_wol()
2125 static int ixgbe_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in ixgbe_set_wol() argument
2129 if (wol->wolopts & (WAKE_PHY | WAKE_ARP | WAKE_MAGICSECURE)) in ixgbe_set_wol()
2132 if (ixgbe_wol_exclusion(adapter, wol)) in ixgbe_set_wol()
2133 return wol->wolopts ? -EOPNOTSUPP : 0; in ixgbe_set_wol()
2135 adapter->wol = 0; in ixgbe_set_wol()
2137 if (wol->wolopts & WAKE_UCAST) in ixgbe_set_wol()
2138 adapter->wol |= IXGBE_WUFC_EX; in ixgbe_set_wol()
2139 if (wol->wolopts & WAKE_MCAST) in ixgbe_set_wol()
2140 adapter->wol |= IXGBE_WUFC_MC; in ixgbe_set_wol()
2141 if (wol->wolopts & WAKE_BCAST) in ixgbe_set_wol()
2142 adapter->wol |= IXGBE_WUFC_BC; in ixgbe_set_wol()
2143 if (wol->wolopts & WAKE_MAGIC) in ixgbe_set_wol()
2144 adapter->wol |= IXGBE_WUFC_MAG; in ixgbe_set_wol()
2146 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in ixgbe_set_wol()