Lines Matching refs:wol

1896 			  struct ethtool_wolinfo *wol)  in e1000_get_wol()  argument
1900 wol->supported = 0; in e1000_get_wol()
1901 wol->wolopts = 0; in e1000_get_wol()
1907 wol->supported = WAKE_UCAST | WAKE_MCAST | in e1000_get_wol()
1912 wol->supported &= ~WAKE_UCAST; in e1000_get_wol()
1914 if (adapter->wol & E1000_WUFC_EX) in e1000_get_wol()
1918 if (adapter->wol & E1000_WUFC_EX) in e1000_get_wol()
1919 wol->wolopts |= WAKE_UCAST; in e1000_get_wol()
1920 if (adapter->wol & E1000_WUFC_MC) in e1000_get_wol()
1921 wol->wolopts |= WAKE_MCAST; in e1000_get_wol()
1922 if (adapter->wol & E1000_WUFC_BC) in e1000_get_wol()
1923 wol->wolopts |= WAKE_BCAST; in e1000_get_wol()
1924 if (adapter->wol & E1000_WUFC_MAG) in e1000_get_wol()
1925 wol->wolopts |= WAKE_MAGIC; in e1000_get_wol()
1926 if (adapter->wol & E1000_WUFC_LNKC) in e1000_get_wol()
1927 wol->wolopts |= WAKE_PHY; in e1000_get_wol()
1930 static int e1000_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in e1000_set_wol() argument
1936 (wol->wolopts & ~(WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | in e1000_set_wol()
1941 adapter->wol = 0; in e1000_set_wol()
1943 if (wol->wolopts & WAKE_UCAST) in e1000_set_wol()
1944 adapter->wol |= E1000_WUFC_EX; in e1000_set_wol()
1945 if (wol->wolopts & WAKE_MCAST) in e1000_set_wol()
1946 adapter->wol |= E1000_WUFC_MC; in e1000_set_wol()
1947 if (wol->wolopts & WAKE_BCAST) in e1000_set_wol()
1948 adapter->wol |= E1000_WUFC_BC; in e1000_set_wol()
1949 if (wol->wolopts & WAKE_MAGIC) in e1000_set_wol()
1950 adapter->wol |= E1000_WUFC_MAG; in e1000_set_wol()
1951 if (wol->wolopts & WAKE_PHY) in e1000_set_wol()
1952 adapter->wol |= E1000_WUFC_LNKC; in e1000_set_wol()
1954 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in e1000_set_wol()