Lines Matching full:wol

1584 			       struct ethtool_wolinfo *wol)  in e1000_wol_exclusion()  argument
1599 /* these don't support WoL at all */ in e1000_wol_exclusion()
1600 wol->supported = 0; in e1000_wol_exclusion()
1606 wol->supported = 0; in e1000_wol_exclusion()
1613 /* quad port adapters only support WoL on port A */ in e1000_wol_exclusion()
1615 wol->supported = 0; in e1000_wol_exclusion()
1622 /* dual port cards only support WoL on port A from now on in e1000_wol_exclusion()
1624 * so exclude FUNC_1 ports from having WoL enabled in e1000_wol_exclusion()
1628 wol->supported = 0; in e1000_wol_exclusion()
1639 struct ethtool_wolinfo *wol) in e1000_get_wol() argument
1644 wol->supported = WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | WAKE_MAGIC; in e1000_get_wol()
1645 wol->wolopts = 0; in e1000_get_wol()
1647 /* this function will set ->supported = 0 and return 1 if wol is not in e1000_get_wol()
1650 if (e1000_wol_exclusion(adapter, wol) || in e1000_get_wol()
1658 wol->supported &= ~WAKE_UCAST; in e1000_get_wol()
1660 if (adapter->wol & E1000_WUFC_EX) in e1000_get_wol()
1668 if (adapter->wol & E1000_WUFC_EX) in e1000_get_wol()
1669 wol->wolopts |= WAKE_UCAST; in e1000_get_wol()
1670 if (adapter->wol & E1000_WUFC_MC) in e1000_get_wol()
1671 wol->wolopts |= WAKE_MCAST; in e1000_get_wol()
1672 if (adapter->wol & E1000_WUFC_BC) in e1000_get_wol()
1673 wol->wolopts |= WAKE_BCAST; in e1000_get_wol()
1674 if (adapter->wol & E1000_WUFC_MAG) in e1000_get_wol()
1675 wol->wolopts |= WAKE_MAGIC; in e1000_get_wol()
1678 static int e1000_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in e1000_set_wol() argument
1683 if (wol->wolopts & (WAKE_PHY | WAKE_ARP | WAKE_MAGICSECURE)) in e1000_set_wol()
1686 if (e1000_wol_exclusion(adapter, wol) || in e1000_set_wol()
1688 return wol->wolopts ? -EOPNOTSUPP : 0; in e1000_set_wol()
1692 if (wol->wolopts & WAKE_UCAST) { in e1000_set_wol()
1703 adapter->wol = 0; in e1000_set_wol()
1705 if (wol->wolopts & WAKE_UCAST) in e1000_set_wol()
1706 adapter->wol |= E1000_WUFC_EX; in e1000_set_wol()
1707 if (wol->wolopts & WAKE_MCAST) in e1000_set_wol()
1708 adapter->wol |= E1000_WUFC_MC; in e1000_set_wol()
1709 if (wol->wolopts & WAKE_BCAST) in e1000_set_wol()
1710 adapter->wol |= E1000_WUFC_BC; in e1000_set_wol()
1711 if (wol->wolopts & WAKE_MAGIC) in e1000_set_wol()
1712 adapter->wol |= E1000_WUFC_MAG; in e1000_set_wol()
1714 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in e1000_set_wol()