Lines Matching refs:wol
1864 struct ethtool_wolinfo *wol) in e1000_get_wol() argument
1868 wol->supported = 0; in e1000_get_wol()
1869 wol->wolopts = 0; in e1000_get_wol()
1875 wol->supported = WAKE_UCAST | WAKE_MCAST | in e1000_get_wol()
1880 wol->supported &= ~WAKE_UCAST; in e1000_get_wol()
1882 if (adapter->wol & E1000_WUFC_EX) in e1000_get_wol()
1886 if (adapter->wol & E1000_WUFC_EX) in e1000_get_wol()
1887 wol->wolopts |= WAKE_UCAST; in e1000_get_wol()
1888 if (adapter->wol & E1000_WUFC_MC) in e1000_get_wol()
1889 wol->wolopts |= WAKE_MCAST; in e1000_get_wol()
1890 if (adapter->wol & E1000_WUFC_BC) in e1000_get_wol()
1891 wol->wolopts |= WAKE_BCAST; in e1000_get_wol()
1892 if (adapter->wol & E1000_WUFC_MAG) in e1000_get_wol()
1893 wol->wolopts |= WAKE_MAGIC; in e1000_get_wol()
1894 if (adapter->wol & E1000_WUFC_LNKC) in e1000_get_wol()
1895 wol->wolopts |= WAKE_PHY; in e1000_get_wol()
1898 static int e1000_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in e1000_set_wol() argument
1904 (wol->wolopts & ~(WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | in e1000_set_wol()
1909 adapter->wol = 0; in e1000_set_wol()
1911 if (wol->wolopts & WAKE_UCAST) in e1000_set_wol()
1912 adapter->wol |= E1000_WUFC_EX; in e1000_set_wol()
1913 if (wol->wolopts & WAKE_MCAST) in e1000_set_wol()
1914 adapter->wol |= E1000_WUFC_MC; in e1000_set_wol()
1915 if (wol->wolopts & WAKE_BCAST) in e1000_set_wol()
1916 adapter->wol |= E1000_WUFC_BC; in e1000_set_wol()
1917 if (wol->wolopts & WAKE_MAGIC) in e1000_set_wol()
1918 adapter->wol |= E1000_WUFC_MAG; in e1000_set_wol()
1919 if (wol->wolopts & WAKE_PHY) in e1000_set_wol()
1920 adapter->wol |= E1000_WUFC_LNKC; in e1000_set_wol()
1922 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in e1000_set_wol()