/linux-master/drivers/net/phy/ |
H A D | dp83869.c | 246 struct ethtool_wolinfo *wol) 261 if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_UCAST | 266 if (wol->wolopts & WAKE_MAGIC || 267 wol->wolopts & WAKE_MAGICSECURE) { 296 if (wol->wolopts & WAKE_MAGICSECURE) { 299 (wol->sopass[1] << 8) | wol->sopass[0]); 305 (wol->sopass[3] << 8) | wol->sopass[2]); 310 (wol 245 dp83869_set_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol) argument 340 dp83869_get_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol) argument [all...] |
H A D | phy_device.c | 1978 struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; local 1986 phy_ethtool_get_wol(phydev, &wol); 1987 phydev->wol_enabled = wol.wolopts || (netdev && netdev->wol_enabled);
|
/linux-master/drivers/net/ethernet/renesas/ |
H A D | ravb_main.c | 1722 static void ravb_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) argument 1726 wol->supported = WAKE_MAGIC; 1727 wol->wolopts = priv->wol_enabled ? WAKE_MAGIC : 0; 1730 static int ravb_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) argument 1735 if (!info->magic_pkt || (wol->wolopts & ~WAKE_MAGIC)) 1738 priv->wol_enabled = !!(wol->wolopts & WAKE_MAGIC);
|
H A D | sh_eth.c | 2363 static void sh_eth_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) argument 2367 wol->supported = 0; 2368 wol->wolopts = 0; 2371 wol->supported = WAKE_MAGIC; 2372 wol->wolopts = mdp->wol_enabled ? WAKE_MAGIC : 0; 2376 static int sh_eth_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) argument 2380 if (!mdp->cd->magic || wol->wolopts & ~WAKE_MAGIC) 2383 mdp->wol_enabled = !!(wol->wolopts & WAKE_MAGIC);
|
/linux-master/drivers/net/ethernet/intel/igc/ |
H A D | igc_main.c | 6924 /* initialize the wol settings based on the eeprom settings */ 6926 adapter->wol |= IGC_WUFC_MAG; 7047 u32 wufc = runtime ? IGC_WUFC_LNKC : adapter->wol;
|
H A D | igc.h | 195 u32 wol; member in struct:igc_adapter
|
/linux-master/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt.c | 11486 bp->wol = 1; 11499 bp->wol = 0; 13619 device_set_wakeup_enable(&pdev->dev, bp->wol); 15273 pci_wake_from_d3(pdev, bp->wol);
|
/linux-master/drivers/net/ethernet/broadcom/ |
H A D | b44.c | 2071 static void b44_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) argument 2075 wol->supported = WAKE_MAGIC; 2077 wol->wolopts = WAKE_MAGIC; 2079 wol->wolopts = 0; 2080 memset(&wol->sopass, 0, sizeof(wol->sopass)); 2083 static int b44_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) argument 2088 if (wol->wolopts & WAKE_MAGIC) 2094 device_set_wakeup_enable(bp->sdev->dev, wol->wolopts & WAKE_MAGIC);
|
H A D | bnx2.c | 3935 if (bp->wol) { 4046 pci_wake_from_d3(bp->pdev, bp->wol); 4050 if (bp->wol) 5538 else if (bp->wol) 7096 bnx2_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) argument 7101 wol->supported = 0; 7102 wol->wolopts = 0; 7105 wol->supported = WAKE_MAGIC; 7106 if (bp->wol) 7107 wol 7115 bnx2_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) argument [all...] |
H A D | tg3.c | 12414 static void tg3_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) argument 12419 wol->supported = WAKE_MAGIC; 12421 wol->supported = 0; 12422 wol->wolopts = 0; 12424 wol->wolopts = WAKE_MAGIC; 12425 memset(&wol->sopass, 0, sizeof(wol->sopass)); 12428 static int tg3_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) argument 12433 if (wol->wolopts & ~WAKE_MAGIC) 12435 if ((wol [all...] |
/linux-master/drivers/net/ethernet/broadcom/asp2/ |
H A D | bcmasp_intf.c | 1333 netif_dbg(intf, wol, ndev, "entered WOL mode\n");
|
/linux-master/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_main.c | 1191 struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; local 1193 phylink_ethtool_get_wol(priv->phylink, &wol); 1194 device_set_wakeup_capable(priv->device, !!wol.supported); 1195 device_set_wakeup_enable(priv->device, !!wol.wolopts); 3629 sprintf(int_name, "%s:%s", dev->name, "wol"); 3635 "%s: alloc wol MSI %d (error: %d)\n",
|
H A D | stmmac_ethtool.c | 835 static void stmmac_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) argument 840 return phylink_ethtool_get_wol(priv->phylink, wol); 844 wol->supported = WAKE_MAGIC | WAKE_UCAST; 846 wol->supported &= ~WAKE_MAGIC; 847 wol->wolopts = priv->wolopts; 852 static int stmmac_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) argument 861 int ret = phylink_ethtool_set_wol(priv->phylink, wol); 864 device_set_wakeup_enable(priv->device, !!wol->wolopts); 872 wol->wolopts &= ~WAKE_MAGIC; 874 if (wol [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_ethtool.c | 1619 struct ethtool_wolinfo *wol) 1626 memset(wol, 0, sizeof(*wol)); 1628 wol->supported = mlx5e_get_wol_supported(mdev); 1629 if (!wol->supported) 1636 wol->wolopts = mlx5e_reformat_wol_mode_mlx5_to_linux(mlx5_wol_mode); 1639 static int mlx5e_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) argument 1649 if (wol->wolopts & ~wol_supported) 1652 mlx5_wol_mode = mlx5e_reformat_wol_mode_linux_to_mlx5(wol->wolopts); 1618 mlx5e_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) argument
|
/linux-master/drivers/net/ethernet/realtek/ |
H A D | r8169_main.c | 1535 static void rtl8169_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) argument 1539 wol->supported = WAKE_ANY; 1540 wol->wolopts = tp->saved_wolopts; 1615 static int rtl8169_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) argument 1619 if (wol->wolopts & ~WAKE_ANY) 1622 tp->saved_wolopts = wol->wolopts;
|
/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_ethtool.c | 3693 * @wol: Ethtool structure to retrieve WoL settings 3695 static void ice_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) argument 3705 wol->supported = WAKE_MAGIC; 3706 wol->wolopts = pf->wol_ena ? WAKE_MAGIC : 0; 3708 wol->supported = 0; 3709 wol->wolopts = 0; 3716 * @wol: Ethtool structure to set WoL 3718 static int ice_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) argument 3728 if (wol->wolopts && wol [all...] |
/linux-master/drivers/net/ethernet/intel/e1000e/ |
H A D | netdev.c | 6632 wufc = adapter->wol; 7660 /* initialize the wol settings based on the eeprom settings */ 7661 adapter->wol = adapter->eeprom_wol; 7664 if (adapter->wol || (adapter->flags & FLAG_MNG_PT_ENABLED) ||
|
/linux-master/drivers/net/ethernet/freescale/ |
H A D | fec_main.c | 3202 fec_enet_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) argument 3207 wol->supported = WAKE_MAGIC; 3208 wol->wolopts = fep->wol_flag & FEC_WOL_FLAG_ENABLE ? WAKE_MAGIC : 0; 3210 wol->supported = wol->wolopts = 0; 3215 fec_enet_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) argument 3222 if (wol->wolopts & ~WAKE_MAGIC) 3225 device_set_wakeup_enable(&ndev->dev, wol->wolopts & WAKE_MAGIC);
|
/linux-master/drivers/net/phy/qcom/ |
H A D | at803x.c | 867 struct ethtool_wolinfo *wol) 872 ret = at803x_set_wol(phydev, wol); 876 if (wol->wolopts & WAKE_MAGIC) 866 at8031_set_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol) argument
|
/linux-master/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_main.c | 11484 return &vport->back->hw.mac.wol; 11501 "failed to query wol supported, ret = %d\n", ret); 11526 "failed to set wol config, ret = %d\n", ret); 11533 struct hclge_wol_info *wol_info = &hdev->hw.mac.wol; 11543 struct hclge_wol_info *wol_info = &hdev->hw.mac.wol; 11561 struct ethtool_wolinfo *wol) 11565 wol->supported = wol_info->wol_support_mode; 11566 wol->wolopts = wol_info->wol_current_mode; 11568 memcpy(wol->sopass, wol_info->wol_sopass, SOPASS_MAX); 11572 struct ethtool_wolinfo *wol) 11560 hclge_get_wol(struct hnae3_handle *handle, struct ethtool_wolinfo *wol) argument 11571 hclge_set_wol(struct hnae3_handle *handle, struct ethtool_wolinfo *wol) argument [all...] |
/linux-master/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hns3_ethtool.c | 2087 static void hns3_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) argument 2096 ops->get_wol(handle, wol); 2100 struct ethtool_wolinfo *wol) 2109 return ops->set_wol(handle, wol); 2099 hns3_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) argument
|
/linux-master/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_main.c | 9157 else if (bp->wol) { 11525 bp->wol = (!(bp->flags & NO_WOL_FLAG) && 14086 pci_wake_from_d3(pdev, bp->wol);
|
/linux-master/net/ethtool/ |
H A D | ioctl.c | 1466 struct ethtool_wolinfo wol; local 1471 memset(&wol, 0, sizeof(struct ethtool_wolinfo)); 1472 wol.cmd = ETHTOOL_GWOL; 1473 dev->ethtool_ops->get_wol(dev, &wol); 1475 if (copy_to_user(useraddr, &wol, sizeof(wol))) 1482 struct ethtool_wolinfo wol, cur_wol; local 1492 if (copy_from_user(&wol, useraddr, sizeof(wol))) 1495 if (wol [all...] |
/linux-master/include/linux/ |
H A D | phy.h | 1004 int (*set_wol)(struct phy_device *dev, struct ethtool_wolinfo *wol); 1010 void (*get_wol)(struct phy_device *dev, struct ethtool_wolinfo *wol); 2005 int phy_ethtool_set_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol); 2007 struct ethtool_wolinfo *wol);
|
/linux-master/drivers/net/usb/ |
H A D | r8152.c | 6692 netif_warn(tp, ifup, tp->netdev, "wol setting is changed\n"); 8688 static void rtl8152_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) argument 8696 wol->supported = 0; 8697 wol->wolopts = 0; 8700 wol->supported = WAKE_ANY; 8701 wol->wolopts = __rtl_get_wol(tp); 8708 static int rtl8152_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) argument 8716 if (wol->wolopts & ~WAKE_ANY) 8725 __rtl_set_wol(tp, wol->wolopts); 8726 tp->saved_wolopts = wol [all...] |