Lines Matching refs:wol

2101 static void igb_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol)  in igb_get_wol()  argument
2105 wol->wolopts = 0; in igb_get_wol()
2110 wol->supported = WAKE_UCAST | WAKE_MCAST | in igb_get_wol()
2120 if (adapter->wol & E1000_WUFC_EX) in igb_get_wol()
2121 wol->wolopts |= WAKE_UCAST; in igb_get_wol()
2122 if (adapter->wol & E1000_WUFC_MC) in igb_get_wol()
2123 wol->wolopts |= WAKE_MCAST; in igb_get_wol()
2124 if (adapter->wol & E1000_WUFC_BC) in igb_get_wol()
2125 wol->wolopts |= WAKE_BCAST; in igb_get_wol()
2126 if (adapter->wol & E1000_WUFC_MAG) in igb_get_wol()
2127 wol->wolopts |= WAKE_MAGIC; in igb_get_wol()
2128 if (adapter->wol & E1000_WUFC_LNKC) in igb_get_wol()
2129 wol->wolopts |= WAKE_PHY; in igb_get_wol()
2132 static int igb_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in igb_set_wol() argument
2136 if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | WAKE_FILTER)) in igb_set_wol()
2140 return wol->wolopts ? -EOPNOTSUPP : 0; in igb_set_wol()
2143 adapter->wol = 0; in igb_set_wol()
2145 if (wol->wolopts & WAKE_UCAST) in igb_set_wol()
2146 adapter->wol |= E1000_WUFC_EX; in igb_set_wol()
2147 if (wol->wolopts & WAKE_MCAST) in igb_set_wol()
2148 adapter->wol |= E1000_WUFC_MC; in igb_set_wol()
2149 if (wol->wolopts & WAKE_BCAST) in igb_set_wol()
2150 adapter->wol |= E1000_WUFC_BC; in igb_set_wol()
2151 if (wol->wolopts & WAKE_MAGIC) in igb_set_wol()
2152 adapter->wol |= E1000_WUFC_MAG; in igb_set_wol()
2153 if (wol->wolopts & WAKE_PHY) in igb_set_wol()
2154 adapter->wol |= E1000_WUFC_LNKC; in igb_set_wol()
2155 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in igb_set_wol()