Lines Matching full:wol
1885 struct ethtool_wolinfo *wol) in e1000_get_wol() argument
1889 wol->supported = 0; in e1000_get_wol()
1890 wol->wolopts = 0; in e1000_get_wol()
1896 wol->supported = WAKE_UCAST | WAKE_MCAST | in e1000_get_wol()
1901 wol->supported &= ~WAKE_UCAST; in e1000_get_wol()
1903 if (adapter->wol & E1000_WUFC_EX) in e1000_get_wol()
1907 if (adapter->wol & E1000_WUFC_EX) in e1000_get_wol()
1908 wol->wolopts |= WAKE_UCAST; in e1000_get_wol()
1909 if (adapter->wol & E1000_WUFC_MC) in e1000_get_wol()
1910 wol->wolopts |= WAKE_MCAST; in e1000_get_wol()
1911 if (adapter->wol & E1000_WUFC_BC) in e1000_get_wol()
1912 wol->wolopts |= WAKE_BCAST; in e1000_get_wol()
1913 if (adapter->wol & E1000_WUFC_MAG) in e1000_get_wol()
1914 wol->wolopts |= WAKE_MAGIC; in e1000_get_wol()
1915 if (adapter->wol & E1000_WUFC_LNKC) in e1000_get_wol()
1916 wol->wolopts |= WAKE_PHY; in e1000_get_wol()
1919 static int e1000_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in e1000_set_wol() argument
1925 (wol->wolopts & ~(WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | in e1000_set_wol()
1930 adapter->wol = 0; in e1000_set_wol()
1932 if (wol->wolopts & WAKE_UCAST) in e1000_set_wol()
1933 adapter->wol |= E1000_WUFC_EX; in e1000_set_wol()
1934 if (wol->wolopts & WAKE_MCAST) in e1000_set_wol()
1935 adapter->wol |= E1000_WUFC_MC; in e1000_set_wol()
1936 if (wol->wolopts & WAKE_BCAST) in e1000_set_wol()
1937 adapter->wol |= E1000_WUFC_BC; in e1000_set_wol()
1938 if (wol->wolopts & WAKE_MAGIC) in e1000_set_wol()
1939 adapter->wol |= E1000_WUFC_MAG; in e1000_set_wol()
1940 if (wol->wolopts & WAKE_PHY) in e1000_set_wol()
1941 adapter->wol |= E1000_WUFC_LNKC; in e1000_set_wol()
1943 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in e1000_set_wol()