Lines Matching full:wol
1883 struct ethtool_wolinfo *wol) in e1000_get_wol() argument
1887 wol->supported = 0; in e1000_get_wol()
1888 wol->wolopts = 0; in e1000_get_wol()
1894 wol->supported = WAKE_UCAST | WAKE_MCAST | in e1000_get_wol()
1899 wol->supported &= ~WAKE_UCAST; in e1000_get_wol()
1901 if (adapter->wol & E1000_WUFC_EX) in e1000_get_wol()
1905 if (adapter->wol & E1000_WUFC_EX) in e1000_get_wol()
1906 wol->wolopts |= WAKE_UCAST; in e1000_get_wol()
1907 if (adapter->wol & E1000_WUFC_MC) in e1000_get_wol()
1908 wol->wolopts |= WAKE_MCAST; in e1000_get_wol()
1909 if (adapter->wol & E1000_WUFC_BC) in e1000_get_wol()
1910 wol->wolopts |= WAKE_BCAST; in e1000_get_wol()
1911 if (adapter->wol & E1000_WUFC_MAG) in e1000_get_wol()
1912 wol->wolopts |= WAKE_MAGIC; in e1000_get_wol()
1913 if (adapter->wol & E1000_WUFC_LNKC) in e1000_get_wol()
1914 wol->wolopts |= WAKE_PHY; in e1000_get_wol()
1917 static int e1000_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in e1000_set_wol() argument
1923 (wol->wolopts & ~(WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | in e1000_set_wol()
1928 adapter->wol = 0; in e1000_set_wol()
1930 if (wol->wolopts & WAKE_UCAST) in e1000_set_wol()
1931 adapter->wol |= E1000_WUFC_EX; in e1000_set_wol()
1932 if (wol->wolopts & WAKE_MCAST) in e1000_set_wol()
1933 adapter->wol |= E1000_WUFC_MC; in e1000_set_wol()
1934 if (wol->wolopts & WAKE_BCAST) in e1000_set_wol()
1935 adapter->wol |= E1000_WUFC_BC; in e1000_set_wol()
1936 if (wol->wolopts & WAKE_MAGIC) in e1000_set_wol()
1937 adapter->wol |= E1000_WUFC_MAG; in e1000_set_wol()
1938 if (wol->wolopts & WAKE_PHY) in e1000_set_wol()
1939 adapter->wol |= E1000_WUFC_LNKC; in e1000_set_wol()
1941 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in e1000_set_wol()