wol 736 drivers/net/dsa/bcm_sf2.c struct ethtool_wolinfo *wol) wol 747 drivers/net/dsa/bcm_sf2.c wol->supported = pwol.supported; wol 748 drivers/net/dsa/bcm_sf2.c memset(&wol->sopass, 0, sizeof(wol->sopass)); wol 751 drivers/net/dsa/bcm_sf2.c memcpy(&wol->sopass, pwol.sopass, sizeof(wol->sopass)); wol 754 drivers/net/dsa/bcm_sf2.c wol->wolopts = pwol.wolopts; wol 756 drivers/net/dsa/bcm_sf2.c wol->wolopts = 0; wol 760 drivers/net/dsa/bcm_sf2.c struct ethtool_wolinfo *wol) wol 769 drivers/net/dsa/bcm_sf2.c if (wol->wolopts & ~pwol.supported) wol 772 drivers/net/dsa/bcm_sf2.c if (wol->wolopts) wol 786 drivers/net/dsa/bcm_sf2.c return p->ethtool_ops->set_wol(p, wol); wol 2974 drivers/net/ethernet/3com/3c59x.c static void vortex_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 2981 drivers/net/ethernet/3com/3c59x.c wol->supported = WAKE_MAGIC; wol 2983 drivers/net/ethernet/3com/3c59x.c wol->wolopts = 0; wol 2985 drivers/net/ethernet/3com/3c59x.c wol->wolopts |= WAKE_MAGIC; wol 2988 drivers/net/ethernet/3com/3c59x.c static int vortex_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 2995 drivers/net/ethernet/3com/3c59x.c if (wol->wolopts & ~WAKE_MAGIC) wol 2998 drivers/net/ethernet/3com/3c59x.c if (wol->wolopts & WAKE_MAGIC) wol 1111 drivers/net/ethernet/3com/typhoon.c typhoon_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 1115 drivers/net/ethernet/3com/typhoon.c wol->supported = WAKE_PHY | WAKE_MAGIC; wol 1116 drivers/net/ethernet/3com/typhoon.c wol->wolopts = 0; wol 1118 drivers/net/ethernet/3com/typhoon.c wol->wolopts |= WAKE_PHY; wol 1120 drivers/net/ethernet/3com/typhoon.c wol->wolopts |= WAKE_MAGIC; wol 1121 drivers/net/ethernet/3com/typhoon.c memset(&wol->sopass, 0, sizeof(wol->sopass)); wol 1125 drivers/net/ethernet/3com/typhoon.c typhoon_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 1129 drivers/net/ethernet/3com/typhoon.c if(wol->wolopts & ~(WAKE_PHY | WAKE_MAGIC)) wol 1133 drivers/net/ethernet/3com/typhoon.c if(wol->wolopts & WAKE_PHY) wol 1135 drivers/net/ethernet/3com/typhoon.c if(wol->wolopts & WAKE_MAGIC) wol 351 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct ethtool_wolinfo *wol) wol 356 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c wol->supported = WAKE_MAGIC; wol 357 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c wol->wolopts = 0; wol 359 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c if (cfg->wol) wol 360 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c wol->wolopts |= WAKE_MAGIC; wol 364 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c struct ethtool_wolinfo *wol) wol 371 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c if (wol->wolopts & WAKE_MAGIC) wol 372 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c cfg->wol |= AQ_NIC_WOL_ENABLED; wol 374 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c cfg->wol &= ~AQ_NIC_WOL_ENABLED; wol 375 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c err = device_set_wakeup_enable(&pdev->dev, wol->wolopts); wol 980 drivers/net/ethernet/aquantia/atlantic/aq_nic.c self->aq_hw->aq_nic_cfg->wol) wol 37 drivers/net/ethernet/aquantia/atlantic/aq_nic.h u32 wol; wol 904 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c if (self->aq_nic_cfg->wol & AQ_NIC_WOL_ENABLED) { wol 436 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c if (self->aq_nic_cfg->wol & AQ_NIC_WOL_ENABLED) { wol 527 drivers/net/ethernet/atheros/atl1c/atl1c.h u32 wol; wol 231 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c struct ethtool_wolinfo *wol) wol 235 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c wol->supported = WAKE_MAGIC | WAKE_PHY; wol 236 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c wol->wolopts = 0; wol 238 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c if (adapter->wol & AT_WUFC_EX) wol 239 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c wol->wolopts |= WAKE_UCAST; wol 240 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c if (adapter->wol & AT_WUFC_MC) wol 241 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c wol->wolopts |= WAKE_MCAST; wol 242 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c if (adapter->wol & AT_WUFC_BC) wol 243 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c wol->wolopts |= WAKE_BCAST; wol 244 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c if (adapter->wol & AT_WUFC_MAG) wol 245 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c wol->wolopts |= WAKE_MAGIC; wol 246 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c if (adapter->wol & AT_WUFC_LNKC) wol 247 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c wol->wolopts |= WAKE_PHY; wol 250 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c static int atl1c_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 254 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | wol 258 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c adapter->wol = 0; wol 260 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c if (wol->wolopts & WAKE_MAGIC) wol 261 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c adapter->wol |= AT_WUFC_MAG; wol 262 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c if (wol->wolopts & WAKE_PHY) wol 263 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c adapter->wol |= AT_WUFC_LNKC; wol 265 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); wol 771 drivers/net/ethernet/atheros/atl1c/atl1c_main.c adapter->wol = 0; wol 2426 drivers/net/ethernet/atheros/atl1c/atl1c_main.c u32 wufc = adapter->wol; wol 2477 drivers/net/ethernet/atheros/atl1c/atl1c_main.c pci_wake_from_d3(pdev, adapter->wol); wol 427 drivers/net/ethernet/atheros/atl1e/atl1e.h u32 wol; wol 318 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c struct ethtool_wolinfo *wol) wol 322 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c wol->supported = WAKE_MAGIC | WAKE_PHY; wol 323 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c wol->wolopts = 0; wol 325 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c if (adapter->wol & AT_WUFC_EX) wol 326 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c wol->wolopts |= WAKE_UCAST; wol 327 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c if (adapter->wol & AT_WUFC_MC) wol 328 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c wol->wolopts |= WAKE_MCAST; wol 329 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c if (adapter->wol & AT_WUFC_BC) wol 330 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c wol->wolopts |= WAKE_BCAST; wol 331 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c if (adapter->wol & AT_WUFC_MAG) wol 332 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c wol->wolopts |= WAKE_MAGIC; wol 333 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c if (adapter->wol & AT_WUFC_LNKC) wol 334 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c wol->wolopts |= WAKE_PHY; wol 337 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c static int atl1e_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 341 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | wol 345 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c adapter->wol = 0; wol 347 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c if (wol->wolopts & WAKE_MAGIC) wol 348 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c adapter->wol |= AT_WUFC_MAG; wol 349 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c if (wol->wolopts & WAKE_PHY) wol 350 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c adapter->wol |= AT_WUFC_LNKC; wol 352 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); wol 572 drivers/net/ethernet/atheros/atl1e/atl1e_main.c adapter->wol = 0; wol 2066 drivers/net/ethernet/atheros/atl1e/atl1e_main.c u32 wufc = adapter->wol; wol 938 drivers/net/ethernet/atheros/atlx/atl1.c adapter->wol = 0; wol 2760 drivers/net/ethernet/atheros/atlx/atl1.c u32 wufc = adapter->wol; wol 2865 drivers/net/ethernet/atheros/atlx/atl1.c pci_wake_from_d3(pdev, adapter->wol); wol 3354 drivers/net/ethernet/atheros/atlx/atl1.c struct ethtool_wolinfo *wol) wol 3358 drivers/net/ethernet/atheros/atlx/atl1.c wol->supported = WAKE_MAGIC; wol 3359 drivers/net/ethernet/atheros/atlx/atl1.c wol->wolopts = 0; wol 3360 drivers/net/ethernet/atheros/atlx/atl1.c if (adapter->wol & ATLX_WUFC_MAG) wol 3361 drivers/net/ethernet/atheros/atlx/atl1.c wol->wolopts |= WAKE_MAGIC; wol 3365 drivers/net/ethernet/atheros/atlx/atl1.c struct ethtool_wolinfo *wol) wol 3369 drivers/net/ethernet/atheros/atlx/atl1.c if (wol->wolopts & (WAKE_PHY | WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | wol 3372 drivers/net/ethernet/atheros/atlx/atl1.c adapter->wol = 0; wol 3373 drivers/net/ethernet/atheros/atlx/atl1.c if (wol->wolopts & WAKE_MAGIC) wol 3374 drivers/net/ethernet/atheros/atlx/atl1.c adapter->wol |= ATLX_WUFC_MAG; wol 3376 drivers/net/ethernet/atheros/atlx/atl1.c device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); wol 749 drivers/net/ethernet/atheros/atlx/atl1.h u32 wol; wol 86 drivers/net/ethernet/atheros/atlx/atl2.c adapter->wol = 0; wol 1500 drivers/net/ethernet/atheros/atlx/atl2.c u32 wufc = adapter->wol; wol 2022 drivers/net/ethernet/atheros/atlx/atl2.c struct ethtool_wolinfo *wol) wol 2026 drivers/net/ethernet/atheros/atlx/atl2.c wol->supported = WAKE_MAGIC; wol 2027 drivers/net/ethernet/atheros/atlx/atl2.c wol->wolopts = 0; wol 2029 drivers/net/ethernet/atheros/atlx/atl2.c if (adapter->wol & ATLX_WUFC_EX) wol 2030 drivers/net/ethernet/atheros/atlx/atl2.c wol->wolopts |= WAKE_UCAST; wol 2031 drivers/net/ethernet/atheros/atlx/atl2.c if (adapter->wol & ATLX_WUFC_MC) wol 2032 drivers/net/ethernet/atheros/atlx/atl2.c wol->wolopts |= WAKE_MCAST; wol 2033 drivers/net/ethernet/atheros/atlx/atl2.c if (adapter->wol & ATLX_WUFC_BC) wol 2034 drivers/net/ethernet/atheros/atlx/atl2.c wol->wolopts |= WAKE_BCAST; wol 2035 drivers/net/ethernet/atheros/atlx/atl2.c if (adapter->wol & ATLX_WUFC_MAG) wol 2036 drivers/net/ethernet/atheros/atlx/atl2.c wol->wolopts |= WAKE_MAGIC; wol 2037 drivers/net/ethernet/atheros/atlx/atl2.c if (adapter->wol & ATLX_WUFC_LNKC) wol 2038 drivers/net/ethernet/atheros/atlx/atl2.c wol->wolopts |= WAKE_PHY; wol 2041 drivers/net/ethernet/atheros/atlx/atl2.c static int atl2_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 2045 drivers/net/ethernet/atheros/atlx/atl2.c if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE)) wol 2048 drivers/net/ethernet/atheros/atlx/atl2.c if (wol->wolopts & (WAKE_UCAST | WAKE_BCAST | WAKE_MCAST)) wol 2052 drivers/net/ethernet/atheros/atlx/atl2.c adapter->wol = 0; wol 2054 drivers/net/ethernet/atheros/atlx/atl2.c if (wol->wolopts & WAKE_MAGIC) wol 2055 drivers/net/ethernet/atheros/atlx/atl2.c adapter->wol |= ATLX_WUFC_MAG; wol 2056 drivers/net/ethernet/atheros/atlx/atl2.c if (wol->wolopts & WAKE_PHY) wol 2057 drivers/net/ethernet/atheros/atlx/atl2.c adapter->wol |= ATLX_WUFC_LNKC; wol 439 drivers/net/ethernet/atheros/atlx/atl2.h u32 wol; wol 2093 drivers/net/ethernet/broadcom/b44.c static void b44_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 2097 drivers/net/ethernet/broadcom/b44.c wol->supported = WAKE_MAGIC; wol 2099 drivers/net/ethernet/broadcom/b44.c wol->wolopts = WAKE_MAGIC; wol 2101 drivers/net/ethernet/broadcom/b44.c wol->wolopts = 0; wol 2102 drivers/net/ethernet/broadcom/b44.c memset(&wol->sopass, 0, sizeof(wol->sopass)); wol 2105 drivers/net/ethernet/broadcom/b44.c static int b44_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 2110 drivers/net/ethernet/broadcom/b44.c if (wol->wolopts & WAKE_MAGIC) wol 2116 drivers/net/ethernet/broadcom/b44.c device_set_wakeup_enable(bp->sdev->dev, wol->wolopts & WAKE_MAGIC); wol 512 drivers/net/ethernet/broadcom/bcmsysport.c struct ethtool_wolinfo *wol) wol 516 drivers/net/ethernet/broadcom/bcmsysport.c wol->supported = WAKE_MAGIC | WAKE_MAGICSECURE | WAKE_FILTER; wol 517 drivers/net/ethernet/broadcom/bcmsysport.c wol->wolopts = priv->wolopts; wol 522 drivers/net/ethernet/broadcom/bcmsysport.c memcpy(wol->sopass, priv->sopass, sizeof(priv->sopass)); wol 526 drivers/net/ethernet/broadcom/bcmsysport.c struct ethtool_wolinfo *wol) wol 535 drivers/net/ethernet/broadcom/bcmsysport.c if (wol->wolopts & ~supported) wol 538 drivers/net/ethernet/broadcom/bcmsysport.c if (wol->wolopts & WAKE_MAGICSECURE) wol 539 drivers/net/ethernet/broadcom/bcmsysport.c memcpy(priv->sopass, wol->sopass, sizeof(priv->sopass)); wol 542 drivers/net/ethernet/broadcom/bcmsysport.c if (wol->wolopts) { wol 555 drivers/net/ethernet/broadcom/bcmsysport.c priv->wolopts = wol->wolopts; wol 1085 drivers/net/ethernet/broadcom/bcmsysport.c netif_dbg(priv, wol, priv->netdev, "resumed from WOL\n"); wol 2646 drivers/net/ethernet/broadcom/bcmsysport.c netif_err(priv, wol, ndev, "failed to enter WOL mode\n"); wol 2653 drivers/net/ethernet/broadcom/bcmsysport.c netif_dbg(priv, wol, ndev, "entered WOL mode\n"); wol 3956 drivers/net/ethernet/broadcom/bnx2.c if (bp->wol) { wol 4067 drivers/net/ethernet/broadcom/bnx2.c pci_wake_from_d3(bp->pdev, bp->wol); wol 4071 drivers/net/ethernet/broadcom/bnx2.c if (bp->wol) wol 5559 drivers/net/ethernet/broadcom/bnx2.c else if (bp->wol) wol 7117 drivers/net/ethernet/broadcom/bnx2.c bnx2_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 7122 drivers/net/ethernet/broadcom/bnx2.c wol->supported = 0; wol 7123 drivers/net/ethernet/broadcom/bnx2.c wol->wolopts = 0; wol 7126 drivers/net/ethernet/broadcom/bnx2.c wol->supported = WAKE_MAGIC; wol 7127 drivers/net/ethernet/broadcom/bnx2.c if (bp->wol) wol 7128 drivers/net/ethernet/broadcom/bnx2.c wol->wolopts = WAKE_MAGIC; wol 7130 drivers/net/ethernet/broadcom/bnx2.c wol->wolopts = 0; wol 7132 drivers/net/ethernet/broadcom/bnx2.c memset(&wol->sopass, 0, sizeof(wol->sopass)); wol 7136 drivers/net/ethernet/broadcom/bnx2.c bnx2_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 7140 drivers/net/ethernet/broadcom/bnx2.c if (wol->wolopts & ~WAKE_MAGIC) wol 7143 drivers/net/ethernet/broadcom/bnx2.c if (wol->wolopts & WAKE_MAGIC) { wol 7147 drivers/net/ethernet/broadcom/bnx2.c bp->wol = 1; wol 7150 drivers/net/ethernet/broadcom/bnx2.c bp->wol = 0; wol 7153 drivers/net/ethernet/broadcom/bnx2.c device_set_wakeup_enable(&bp->pdev->dev, bp->wol); wol 8309 drivers/net/ethernet/broadcom/bnx2.c bp->wol = 1; wol 8383 drivers/net/ethernet/broadcom/bnx2.c bp->wol = 0; wol 8413 drivers/net/ethernet/broadcom/bnx2.c bp->wol = 0; wol 8419 drivers/net/ethernet/broadcom/bnx2.c device_set_wakeup_enable(&bp->pdev->dev, bp->wol); wol 6898 drivers/net/ethernet/broadcom/bnx2.h u8 wol; wol 1561 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h u8 wol; wol 3191 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (bp->wol) wol 1147 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c static void bnx2x_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 1152 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c wol->supported = 0; wol 1153 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c wol->wolopts = 0; wol 1155 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c wol->supported = WAKE_MAGIC; wol 1156 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c if (bp->wol) wol 1157 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c wol->wolopts = WAKE_MAGIC; wol 1159 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c wol->wolopts = 0; wol 1161 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c memset(&wol->sopass, 0, sizeof(wol->sopass)); wol 1164 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c static int bnx2x_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 1168 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c if (wol->wolopts & ~WAKE_MAGIC) { wol 1173 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c if (wol->wolopts & WAKE_MAGIC) { wol 1178 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c bp->wol = 1; wol 1180 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c bp->wol = 0; wol 9137 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c else if (bp->wol) { wol 11590 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bp->wol = (!(bp->flags & NO_WOL_FLAG) && wol 14214 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c pci_wake_from_d3(pdev, bp->wol); wol 8899 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->wol = 1; wol 8912 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->wol = 0; wol 10556 drivers/net/ethernet/broadcom/bnxt/bnxt.c device_set_wakeup_enable(&pdev->dev, bp->wol); wol 11938 drivers/net/ethernet/broadcom/bnxt/bnxt.c pci_wake_from_d3(pdev, bp->wol); wol 1805 drivers/net/ethernet/broadcom/bnxt/bnxt.h u8 wol; wol 1250 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c static void bnxt_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 1254 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c wol->supported = 0; wol 1255 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c wol->wolopts = 0; wol 1256 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c memset(&wol->sopass, 0, sizeof(wol->sopass)); wol 1258 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c wol->supported = WAKE_MAGIC; wol 1259 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c if (bp->wol) wol 1260 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c wol->wolopts = WAKE_MAGIC; wol 1264 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c static int bnxt_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 1268 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c if (wol->wolopts & ~WAKE_MAGIC) wol 1271 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c if (wol->wolopts & WAKE_MAGIC) { wol 1274 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c if (!bp->wol) { wol 1277 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c bp->wol = 1; wol 1280 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c if (bp->wol) { wol 1283 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c bp->wol = 0; wol 730 drivers/net/ethernet/broadcom/genet/bcmgenet.h void bcmgenet_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol); wol 731 drivers/net/ethernet/broadcom/genet/bcmgenet.h int bcmgenet_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol); wol 41 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c void bcmgenet_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 46 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c wol->supported = WAKE_MAGIC | WAKE_MAGICSECURE; wol 47 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c wol->wolopts = priv->wolopts; wol 48 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c memset(wol->sopass, 0, sizeof(wol->sopass)); wol 50 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c if (wol->wolopts & WAKE_MAGICSECURE) { wol 52 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c put_unaligned_be16(reg, &wol->sopass[0]); wol 54 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c put_unaligned_be32(reg, &wol->sopass[2]); wol 61 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c int bcmgenet_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 70 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c if (wol->wolopts & ~(WAKE_MAGIC | WAKE_MAGICSECURE)) wol 74 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c if (wol->wolopts & WAKE_MAGICSECURE) { wol 75 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c bcmgenet_umac_writel(priv, get_unaligned_be16(&wol->sopass[0]), wol 77 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c bcmgenet_umac_writel(priv, get_unaligned_be32(&wol->sopass[2]), wol 86 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c if (wol->wolopts) { wol 100 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c priv->wolopts = wol->wolopts; wol 131 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c netif_err(priv, wol, dev, "unsupported mode: %d\n", mode); wol 154 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c netif_dbg(priv, wol, dev, "MPD WOL-ready status set after %d msec\n", wol 181 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c netif_err(priv, wol, priv->dev, "invalid mode: %d\n", mode); wol 12327 drivers/net/ethernet/broadcom/tg3.c static void tg3_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 12332 drivers/net/ethernet/broadcom/tg3.c wol->supported = WAKE_MAGIC; wol 12334 drivers/net/ethernet/broadcom/tg3.c wol->supported = 0; wol 12335 drivers/net/ethernet/broadcom/tg3.c wol->wolopts = 0; wol 12337 drivers/net/ethernet/broadcom/tg3.c wol->wolopts = WAKE_MAGIC; wol 12338 drivers/net/ethernet/broadcom/tg3.c memset(&wol->sopass, 0, sizeof(wol->sopass)); wol 12341 drivers/net/ethernet/broadcom/tg3.c static int tg3_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 12346 drivers/net/ethernet/broadcom/tg3.c if (wol->wolopts & ~WAKE_MAGIC) wol 12348 drivers/net/ethernet/broadcom/tg3.c if ((wol->wolopts & WAKE_MAGIC) && wol 12352 drivers/net/ethernet/broadcom/tg3.c device_set_wakeup_enable(dp, wol->wolopts & WAKE_MAGIC); wol 1209 drivers/net/ethernet/cadence/macb.h u32 wol; wol 2704 drivers/net/ethernet/cadence/macb_main.c static void macb_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 2708 drivers/net/ethernet/cadence/macb_main.c wol->supported = 0; wol 2709 drivers/net/ethernet/cadence/macb_main.c wol->wolopts = 0; wol 2711 drivers/net/ethernet/cadence/macb_main.c if (bp->wol & MACB_WOL_HAS_MAGIC_PACKET) { wol 2712 drivers/net/ethernet/cadence/macb_main.c wol->supported = WAKE_MAGIC; wol 2714 drivers/net/ethernet/cadence/macb_main.c if (bp->wol & MACB_WOL_ENABLED) wol 2715 drivers/net/ethernet/cadence/macb_main.c wol->wolopts |= WAKE_MAGIC; wol 2719 drivers/net/ethernet/cadence/macb_main.c static int macb_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 2723 drivers/net/ethernet/cadence/macb_main.c if (!(bp->wol & MACB_WOL_HAS_MAGIC_PACKET) || wol 2724 drivers/net/ethernet/cadence/macb_main.c (wol->wolopts & ~WAKE_MAGIC)) wol 2727 drivers/net/ethernet/cadence/macb_main.c if (wol->wolopts & WAKE_MAGIC) wol 2728 drivers/net/ethernet/cadence/macb_main.c bp->wol |= MACB_WOL_ENABLED; wol 2730 drivers/net/ethernet/cadence/macb_main.c bp->wol &= ~MACB_WOL_ENABLED; wol 2732 drivers/net/ethernet/cadence/macb_main.c device_set_wakeup_enable(&bp->pdev->dev, bp->wol & MACB_WOL_ENABLED); wol 4260 drivers/net/ethernet/cadence/macb_main.c bp->wol = 0; wol 4262 drivers/net/ethernet/cadence/macb_main.c bp->wol |= MACB_WOL_HAS_MAGIC_PACKET; wol 4263 drivers/net/ethernet/cadence/macb_main.c device_init_wakeup(&pdev->dev, bp->wol & MACB_WOL_HAS_MAGIC_PACKET); wol 4430 drivers/net/ethernet/cadence/macb_main.c if (bp->wol & MACB_WOL_ENABLED) { wol 4473 drivers/net/ethernet/cadence/macb_main.c if (bp->wol & MACB_WOL_ENABLED) { wol 1636 drivers/net/ethernet/calxeda/xgmac.c struct ethtool_wolinfo *wol) wol 1641 drivers/net/ethernet/calxeda/xgmac.c wol->supported = WAKE_MAGIC | WAKE_UCAST; wol 1642 drivers/net/ethernet/calxeda/xgmac.c wol->wolopts = priv->wolopts; wol 1647 drivers/net/ethernet/calxeda/xgmac.c struct ethtool_wolinfo *wol) wol 1655 drivers/net/ethernet/calxeda/xgmac.c if (wol->wolopts & ~support) wol 1658 drivers/net/ethernet/calxeda/xgmac.c priv->wolopts = wol->wolopts; wol 1660 drivers/net/ethernet/calxeda/xgmac.c if (wol->wolopts) { wol 2101 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c static void get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 2103 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c wol->supported = 0; wol 2104 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c wol->wolopts = 0; wol 2105 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c memset(&wol->sopass, 0, sizeof(wol->sopass)); wol 1909 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct ethtool_wolinfo *wol) wol 1911 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c wol->supported = 0; wol 1912 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c wol->wolopts = 0; wol 1913 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c memset(&wol->sopass, 0, sizeof(wol->sopass)); wol 998 drivers/net/ethernet/dec/tulip/uli526x.c static void uli526x_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 1000 drivers/net/ethernet/dec/tulip/uli526x.c wol->supported = WAKE_PHY | WAKE_MAGIC; wol 1001 drivers/net/ethernet/dec/tulip/uli526x.c wol->wolopts = 0; wol 1748 drivers/net/ethernet/dlink/sundance.c struct ethtool_wolinfo *wol) wol 1754 drivers/net/ethernet/dlink/sundance.c wol->wolopts = 0; wol 1756 drivers/net/ethernet/dlink/sundance.c wol->supported = (WAKE_PHY | WAKE_MAGIC); wol 1762 drivers/net/ethernet/dlink/sundance.c wol->wolopts |= WAKE_MAGIC; wol 1764 drivers/net/ethernet/dlink/sundance.c wol->wolopts |= WAKE_PHY; wol 1768 drivers/net/ethernet/dlink/sundance.c struct ethtool_wolinfo *wol) wol 1777 drivers/net/ethernet/dlink/sundance.c np->wol_enabled = !!(wol->wolopts); wol 1783 drivers/net/ethernet/dlink/sundance.c if (wol->wolopts & WAKE_MAGIC) wol 1785 drivers/net/ethernet/dlink/sundance.c if (wol->wolopts & WAKE_PHY) wol 783 drivers/net/ethernet/emulex/benet/be_ethtool.c static void be_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 788 drivers/net/ethernet/emulex/benet/be_ethtool.c wol->supported |= WAKE_MAGIC; wol 790 drivers/net/ethernet/emulex/benet/be_ethtool.c wol->wolopts |= WAKE_MAGIC; wol 792 drivers/net/ethernet/emulex/benet/be_ethtool.c wol->wolopts = 0; wol 794 drivers/net/ethernet/emulex/benet/be_ethtool.c memset(&wol->sopass, 0, sizeof(wol->sopass)); wol 797 drivers/net/ethernet/emulex/benet/be_ethtool.c static int be_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 806 drivers/net/ethernet/emulex/benet/be_ethtool.c if (wol->wolopts & ~WAKE_MAGIC) wol 821 drivers/net/ethernet/emulex/benet/be_ethtool.c enable = wol->wolopts & WAKE_MAGIC; wol 2660 drivers/net/ethernet/freescale/fec_main.c fec_enet_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) wol 2665 drivers/net/ethernet/freescale/fec_main.c wol->supported = WAKE_MAGIC; wol 2666 drivers/net/ethernet/freescale/fec_main.c wol->wolopts = fep->wol_flag & FEC_WOL_FLAG_ENABLE ? WAKE_MAGIC : 0; wol 2668 drivers/net/ethernet/freescale/fec_main.c wol->supported = wol->wolopts = 0; wol 2673 drivers/net/ethernet/freescale/fec_main.c fec_enet_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) wol 2680 drivers/net/ethernet/freescale/fec_main.c if (wol->wolopts & ~WAKE_MAGIC) wol 2683 drivers/net/ethernet/freescale/fec_main.c device_set_wakeup_enable(&ndev->dev, wol->wolopts & WAKE_MAGIC); wol 3609 drivers/net/ethernet/freescale/gianfar.c u16 wol = priv->wol_opts; wol 3621 drivers/net/ethernet/freescale/gianfar.c if (wol & GFAR_WOL_MAGIC) { wol 3635 drivers/net/ethernet/freescale/gianfar.c } else if (wol & GFAR_WOL_FILER_UCAST) { wol 3652 drivers/net/ethernet/freescale/gianfar.c u16 wol = priv->wol_opts; wol 3657 drivers/net/ethernet/freescale/gianfar.c if (wol & GFAR_WOL_MAGIC) { wol 3663 drivers/net/ethernet/freescale/gianfar.c } else if (wol & GFAR_WOL_FILER_UCAST) { wol 576 drivers/net/ethernet/freescale/gianfar_ethtool.c static void gfar_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 580 drivers/net/ethernet/freescale/gianfar_ethtool.c wol->supported = 0; wol 581 drivers/net/ethernet/freescale/gianfar_ethtool.c wol->wolopts = 0; wol 584 drivers/net/ethernet/freescale/gianfar_ethtool.c wol->supported |= WAKE_MAGIC; wol 587 drivers/net/ethernet/freescale/gianfar_ethtool.c wol->supported |= WAKE_UCAST; wol 590 drivers/net/ethernet/freescale/gianfar_ethtool.c wol->wolopts |= WAKE_MAGIC; wol 593 drivers/net/ethernet/freescale/gianfar_ethtool.c wol->wolopts |= WAKE_UCAST; wol 596 drivers/net/ethernet/freescale/gianfar_ethtool.c static int gfar_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 602 drivers/net/ethernet/freescale/gianfar_ethtool.c if (!priv->wol_supported && wol->wolopts) wol 605 drivers/net/ethernet/freescale/gianfar_ethtool.c if (wol->wolopts & ~(WAKE_MAGIC | WAKE_UCAST)) wol 608 drivers/net/ethernet/freescale/gianfar_ethtool.c if (wol->wolopts & WAKE_MAGIC) { wol 611 drivers/net/ethernet/freescale/gianfar_ethtool.c if (wol->wolopts & WAKE_UCAST) wol 344 drivers/net/ethernet/freescale/ucc_geth_ethtool.c static void uec_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 350 drivers/net/ethernet/freescale/ucc_geth_ethtool.c wol->supported |= WAKE_PHY; wol 352 drivers/net/ethernet/freescale/ucc_geth_ethtool.c wol->supported |= WAKE_MAGIC; wol 354 drivers/net/ethernet/freescale/ucc_geth_ethtool.c wol->wolopts = ugeth->wol_en; wol 357 drivers/net/ethernet/freescale/ucc_geth_ethtool.c static int uec_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 362 drivers/net/ethernet/freescale/ucc_geth_ethtool.c if (wol->wolopts & ~(WAKE_PHY | WAKE_MAGIC)) wol 364 drivers/net/ethernet/freescale/ucc_geth_ethtool.c else if (wol->wolopts & WAKE_PHY && (!phydev || !phydev->irq)) wol 366 drivers/net/ethernet/freescale/ucc_geth_ethtool.c else if (wol->wolopts & WAKE_MAGIC && !qe_alive_during_sleep()) wol 369 drivers/net/ethernet/freescale/ucc_geth_ethtool.c ugeth->wol_en = wol->wolopts; wol 2466 drivers/net/ethernet/intel/e100.c static void e100_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 2469 drivers/net/ethernet/intel/e100.c wol->supported = (nic->mac >= mac_82558_D101_A4) ? WAKE_MAGIC : 0; wol 2470 drivers/net/ethernet/intel/e100.c wol->wolopts = (nic->flags & wol_magic) ? WAKE_MAGIC : 0; wol 2473 drivers/net/ethernet/intel/e100.c static int e100_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 2477 drivers/net/ethernet/intel/e100.c if ((wol->wolopts && wol->wolopts != WAKE_MAGIC) || wol 2481 drivers/net/ethernet/intel/e100.c if (wol->wolopts) wol 2486 drivers/net/ethernet/intel/e100.c device_set_wakeup_enable(&nic->pdev->dev, wol->wolopts); wol 210 drivers/net/ethernet/intel/e1000/e1000.h u32 wol; wol 1582 drivers/net/ethernet/intel/e1000/e1000_ethtool.c struct ethtool_wolinfo *wol) wol 1598 drivers/net/ethernet/intel/e1000/e1000_ethtool.c wol->supported = 0; wol 1604 drivers/net/ethernet/intel/e1000/e1000_ethtool.c wol->supported = 0; wol 1613 drivers/net/ethernet/intel/e1000/e1000_ethtool.c wol->supported = 0; wol 1626 drivers/net/ethernet/intel/e1000/e1000_ethtool.c wol->supported = 0; wol 1637 drivers/net/ethernet/intel/e1000/e1000_ethtool.c struct ethtool_wolinfo *wol) wol 1642 drivers/net/ethernet/intel/e1000/e1000_ethtool.c wol->supported = WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | WAKE_MAGIC; wol 1643 drivers/net/ethernet/intel/e1000/e1000_ethtool.c wol->wolopts = 0; wol 1648 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if (e1000_wol_exclusion(adapter, wol) || wol 1656 drivers/net/ethernet/intel/e1000/e1000_ethtool.c wol->supported &= ~WAKE_UCAST; wol 1658 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if (adapter->wol & E1000_WUFC_EX) wol 1666 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if (adapter->wol & E1000_WUFC_EX) wol 1667 drivers/net/ethernet/intel/e1000/e1000_ethtool.c wol->wolopts |= WAKE_UCAST; wol 1668 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if (adapter->wol & E1000_WUFC_MC) wol 1669 drivers/net/ethernet/intel/e1000/e1000_ethtool.c wol->wolopts |= WAKE_MCAST; wol 1670 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if (adapter->wol & E1000_WUFC_BC) wol 1671 drivers/net/ethernet/intel/e1000/e1000_ethtool.c wol->wolopts |= WAKE_BCAST; wol 1672 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if (adapter->wol & E1000_WUFC_MAG) wol 1673 drivers/net/ethernet/intel/e1000/e1000_ethtool.c wol->wolopts |= WAKE_MAGIC; wol 1676 drivers/net/ethernet/intel/e1000/e1000_ethtool.c static int e1000_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 1681 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if (wol->wolopts & (WAKE_PHY | WAKE_ARP | WAKE_MAGICSECURE)) wol 1684 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if (e1000_wol_exclusion(adapter, wol) || wol 1686 drivers/net/ethernet/intel/e1000/e1000_ethtool.c return wol->wolopts ? -EOPNOTSUPP : 0; wol 1690 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if (wol->wolopts & WAKE_UCAST) { wol 1701 drivers/net/ethernet/intel/e1000/e1000_ethtool.c adapter->wol = 0; wol 1703 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if (wol->wolopts & WAKE_UCAST) wol 1704 drivers/net/ethernet/intel/e1000/e1000_ethtool.c adapter->wol |= E1000_WUFC_EX; wol 1705 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if (wol->wolopts & WAKE_MCAST) wol 1706 drivers/net/ethernet/intel/e1000/e1000_ethtool.c adapter->wol |= E1000_WUFC_MC; wol 1707 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if (wol->wolopts & WAKE_BCAST) wol 1708 drivers/net/ethernet/intel/e1000/e1000_ethtool.c adapter->wol |= E1000_WUFC_BC; wol 1709 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if (wol->wolopts & WAKE_MAGIC) wol 1710 drivers/net/ethernet/intel/e1000/e1000_ethtool.c adapter->wol |= E1000_WUFC_MAG; wol 1712 drivers/net/ethernet/intel/e1000/e1000_ethtool.c device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); wol 442 drivers/net/ethernet/intel/e1000/e1000_main.c if (!adapter->wol && hw->mac_type >= e1000_82540 && wol 1179 drivers/net/ethernet/intel/e1000/e1000_main.c adapter->wol = adapter->eeprom_wol; wol 1180 drivers/net/ethernet/intel/e1000/e1000_main.c device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); wol 5054 drivers/net/ethernet/intel/e1000/e1000_main.c u32 wufc = adapter->wol; wol 301 drivers/net/ethernet/intel/e1000e/e1000.h u32 wol; wol 1882 drivers/net/ethernet/intel/e1000e/ethtool.c struct ethtool_wolinfo *wol) wol 1886 drivers/net/ethernet/intel/e1000e/ethtool.c wol->supported = 0; wol 1887 drivers/net/ethernet/intel/e1000e/ethtool.c wol->wolopts = 0; wol 1893 drivers/net/ethernet/intel/e1000e/ethtool.c wol->supported = WAKE_UCAST | WAKE_MCAST | wol 1898 drivers/net/ethernet/intel/e1000e/ethtool.c wol->supported &= ~WAKE_UCAST; wol 1900 drivers/net/ethernet/intel/e1000e/ethtool.c if (adapter->wol & E1000_WUFC_EX) wol 1904 drivers/net/ethernet/intel/e1000e/ethtool.c if (adapter->wol & E1000_WUFC_EX) wol 1905 drivers/net/ethernet/intel/e1000e/ethtool.c wol->wolopts |= WAKE_UCAST; wol 1906 drivers/net/ethernet/intel/e1000e/ethtool.c if (adapter->wol & E1000_WUFC_MC) wol 1907 drivers/net/ethernet/intel/e1000e/ethtool.c wol->wolopts |= WAKE_MCAST; wol 1908 drivers/net/ethernet/intel/e1000e/ethtool.c if (adapter->wol & E1000_WUFC_BC) wol 1909 drivers/net/ethernet/intel/e1000e/ethtool.c wol->wolopts |= WAKE_BCAST; wol 1910 drivers/net/ethernet/intel/e1000e/ethtool.c if (adapter->wol & E1000_WUFC_MAG) wol 1911 drivers/net/ethernet/intel/e1000e/ethtool.c wol->wolopts |= WAKE_MAGIC; wol 1912 drivers/net/ethernet/intel/e1000e/ethtool.c if (adapter->wol & E1000_WUFC_LNKC) wol 1913 drivers/net/ethernet/intel/e1000e/ethtool.c wol->wolopts |= WAKE_PHY; wol 1916 drivers/net/ethernet/intel/e1000e/ethtool.c static int e1000_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 1922 drivers/net/ethernet/intel/e1000e/ethtool.c (wol->wolopts & ~(WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | wol 1927 drivers/net/ethernet/intel/e1000e/ethtool.c adapter->wol = 0; wol 1929 drivers/net/ethernet/intel/e1000e/ethtool.c if (wol->wolopts & WAKE_UCAST) wol 1930 drivers/net/ethernet/intel/e1000e/ethtool.c adapter->wol |= E1000_WUFC_EX; wol 1931 drivers/net/ethernet/intel/e1000e/ethtool.c if (wol->wolopts & WAKE_MCAST) wol 1932 drivers/net/ethernet/intel/e1000e/ethtool.c adapter->wol |= E1000_WUFC_MC; wol 1933 drivers/net/ethernet/intel/e1000e/ethtool.c if (wol->wolopts & WAKE_BCAST) wol 1934 drivers/net/ethernet/intel/e1000e/ethtool.c adapter->wol |= E1000_WUFC_BC; wol 1935 drivers/net/ethernet/intel/e1000e/ethtool.c if (wol->wolopts & WAKE_MAGIC) wol 1936 drivers/net/ethernet/intel/e1000e/ethtool.c adapter->wol |= E1000_WUFC_MAG; wol 1937 drivers/net/ethernet/intel/e1000e/ethtool.c if (wol->wolopts & WAKE_PHY) wol 1938 drivers/net/ethernet/intel/e1000e/ethtool.c adapter->wol |= E1000_WUFC_LNKC; wol 1940 drivers/net/ethernet/intel/e1000e/ethtool.c device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); wol 6348 drivers/net/ethernet/intel/e1000e/netdev.c u32 wufc = runtime ? E1000_WUFC_LNKC : adapter->wol; wol 7327 drivers/net/ethernet/intel/e1000e/netdev.c adapter->wol = adapter->eeprom_wol; wol 7330 drivers/net/ethernet/intel/e1000e/netdev.c if (adapter->wol || (adapter->flags & FLAG_MNG_PT_ENABLED) || wol 2601 drivers/net/ethernet/intel/i40e/i40e_ethtool.c struct ethtool_wolinfo *wol) wol 2611 drivers/net/ethernet/intel/i40e/i40e_ethtool.c wol->supported = 0; wol 2612 drivers/net/ethernet/intel/i40e/i40e_ethtool.c wol->wolopts = 0; wol 2614 drivers/net/ethernet/intel/i40e/i40e_ethtool.c wol->supported = WAKE_MAGIC; wol 2615 drivers/net/ethernet/intel/i40e/i40e_ethtool.c wol->wolopts = (pf->wol_en ? WAKE_MAGIC : 0); wol 2624 drivers/net/ethernet/intel/i40e/i40e_ethtool.c static int i40e_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 2647 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (wol->wolopts & ~WAKE_MAGIC) wol 2651 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (pf->wol_en != !!wol->wolopts) { wol 2652 drivers/net/ethernet/intel/i40e/i40e_ethtool.c pf->wol_en = !!wol->wolopts; wol 501 drivers/net/ethernet/intel/igb/igb.h u32 wol; wol 2084 drivers/net/ethernet/intel/igb/igb_ethtool.c static void igb_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 2088 drivers/net/ethernet/intel/igb/igb_ethtool.c wol->wolopts = 0; wol 2093 drivers/net/ethernet/intel/igb/igb_ethtool.c wol->supported = WAKE_UCAST | WAKE_MCAST | wol 2103 drivers/net/ethernet/intel/igb/igb_ethtool.c if (adapter->wol & E1000_WUFC_EX) wol 2104 drivers/net/ethernet/intel/igb/igb_ethtool.c wol->wolopts |= WAKE_UCAST; wol 2105 drivers/net/ethernet/intel/igb/igb_ethtool.c if (adapter->wol & E1000_WUFC_MC) wol 2106 drivers/net/ethernet/intel/igb/igb_ethtool.c wol->wolopts |= WAKE_MCAST; wol 2107 drivers/net/ethernet/intel/igb/igb_ethtool.c if (adapter->wol & E1000_WUFC_BC) wol 2108 drivers/net/ethernet/intel/igb/igb_ethtool.c wol->wolopts |= WAKE_BCAST; wol 2109 drivers/net/ethernet/intel/igb/igb_ethtool.c if (adapter->wol & E1000_WUFC_MAG) wol 2110 drivers/net/ethernet/intel/igb/igb_ethtool.c wol->wolopts |= WAKE_MAGIC; wol 2111 drivers/net/ethernet/intel/igb/igb_ethtool.c if (adapter->wol & E1000_WUFC_LNKC) wol 2112 drivers/net/ethernet/intel/igb/igb_ethtool.c wol->wolopts |= WAKE_PHY; wol 2115 drivers/net/ethernet/intel/igb/igb_ethtool.c static int igb_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 2119 drivers/net/ethernet/intel/igb/igb_ethtool.c if (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE | WAKE_FILTER)) wol 2123 drivers/net/ethernet/intel/igb/igb_ethtool.c return wol->wolopts ? -EOPNOTSUPP : 0; wol 2126 drivers/net/ethernet/intel/igb/igb_ethtool.c adapter->wol = 0; wol 2128 drivers/net/ethernet/intel/igb/igb_ethtool.c if (wol->wolopts & WAKE_UCAST) wol 2129 drivers/net/ethernet/intel/igb/igb_ethtool.c adapter->wol |= E1000_WUFC_EX; wol 2130 drivers/net/ethernet/intel/igb/igb_ethtool.c if (wol->wolopts & WAKE_MCAST) wol 2131 drivers/net/ethernet/intel/igb/igb_ethtool.c adapter->wol |= E1000_WUFC_MC; wol 2132 drivers/net/ethernet/intel/igb/igb_ethtool.c if (wol->wolopts & WAKE_BCAST) wol 2133 drivers/net/ethernet/intel/igb/igb_ethtool.c adapter->wol |= E1000_WUFC_BC; wol 2134 drivers/net/ethernet/intel/igb/igb_ethtool.c if (wol->wolopts & WAKE_MAGIC) wol 2135 drivers/net/ethernet/intel/igb/igb_ethtool.c adapter->wol |= E1000_WUFC_MAG; wol 2136 drivers/net/ethernet/intel/igb/igb_ethtool.c if (wol->wolopts & WAKE_PHY) wol 2137 drivers/net/ethernet/intel/igb/igb_ethtool.c adapter->wol |= E1000_WUFC_LNKC; wol 2138 drivers/net/ethernet/intel/igb/igb_ethtool.c device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); wol 3292 drivers/net/ethernet/intel/igb/igb_main.c adapter->wol |= E1000_WUFC_MAG; wol 3298 drivers/net/ethernet/intel/igb/igb_main.c adapter->wol = 0; wol 3308 drivers/net/ethernet/intel/igb/igb_main.c adapter->wol = 0; wol 3315 drivers/net/ethernet/intel/igb/igb_main.c adapter->wol = 0; wol 8731 drivers/net/ethernet/intel/igb/igb_main.c u32 wufc = runtime ? E1000_WUFC_LNKC : adapter->wol; wol 306 drivers/net/ethernet/intel/igbvf/ethtool.c struct ethtool_wolinfo *wol) wol 308 drivers/net/ethernet/intel/igbvf/ethtool.c wol->supported = 0; wol 309 drivers/net/ethernet/intel/igbvf/ethtool.c wol->wolopts = 0; wol 313 drivers/net/ethernet/intel/igbvf/ethtool.c struct ethtool_wolinfo *wol) wol 248 drivers/net/ethernet/intel/igbvf/igbvf.h u32 wol; wol 709 drivers/net/ethernet/intel/ixgbe/ixgbe.h u32 wol; wol 2167 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c struct ethtool_wolinfo *wol) wol 2176 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c wol->supported = 0; wol 2183 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c struct ethtool_wolinfo *wol) wol 2187 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c wol->supported = WAKE_UCAST | WAKE_MCAST | wol 2189 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c wol->wolopts = 0; wol 2191 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (ixgbe_wol_exclusion(adapter, wol) || wol 2195 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (adapter->wol & IXGBE_WUFC_EX) wol 2196 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c wol->wolopts |= WAKE_UCAST; wol 2197 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (adapter->wol & IXGBE_WUFC_MC) wol 2198 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c wol->wolopts |= WAKE_MCAST; wol 2199 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (adapter->wol & IXGBE_WUFC_BC) wol 2200 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c wol->wolopts |= WAKE_BCAST; wol 2201 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (adapter->wol & IXGBE_WUFC_MAG) wol 2202 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c wol->wolopts |= WAKE_MAGIC; wol 2205 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c static int ixgbe_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 2209 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (wol->wolopts & (WAKE_PHY | WAKE_ARP | WAKE_MAGICSECURE | wol 2213 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (ixgbe_wol_exclusion(adapter, wol)) wol 2214 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c return wol->wolopts ? -EOPNOTSUPP : 0; wol 2216 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c adapter->wol = 0; wol 2218 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (wol->wolopts & WAKE_UCAST) wol 2219 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c adapter->wol |= IXGBE_WUFC_EX; wol 2220 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (wol->wolopts & WAKE_MCAST) wol 2221 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c adapter->wol |= IXGBE_WUFC_MC; wol 2222 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (wol->wolopts & WAKE_BCAST) wol 2223 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c adapter->wol |= IXGBE_WUFC_BC; wol 2224 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (wol->wolopts & WAKE_MAGIC) wol 2225 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c adapter->wol |= IXGBE_WUFC_MAG; wol 2227 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); wol 5965 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (!netif_running(adapter->netdev) && !adapter->wol) wol 6820 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (hw->phy.ops.set_phy_power && !adapter->wol) wol 6927 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c u32 wufc = adapter->wol; wol 11058 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c adapter->wol = 0; wol 11063 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c adapter->wol = IXGBE_WUFC_MAG; wol 11065 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); wol 2549 drivers/net/ethernet/jme.c struct ethtool_wolinfo *wol) wol 2553 drivers/net/ethernet/jme.c wol->supported = WAKE_MAGIC | WAKE_PHY; wol 2555 drivers/net/ethernet/jme.c wol->wolopts = 0; wol 2558 drivers/net/ethernet/jme.c wol->wolopts |= WAKE_PHY; wol 2561 drivers/net/ethernet/jme.c wol->wolopts |= WAKE_MAGIC; wol 2567 drivers/net/ethernet/jme.c struct ethtool_wolinfo *wol) wol 2571 drivers/net/ethernet/jme.c if (wol->wolopts & (WAKE_MAGICSECURE | wol 2580 drivers/net/ethernet/jme.c if (wol->wolopts & WAKE_PHY) wol 2583 drivers/net/ethernet/jme.c if (wol->wolopts & WAKE_MAGIC) wol 1544 drivers/net/ethernet/marvell/mv643xx_eth.c mv643xx_eth_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 1546 drivers/net/ethernet/marvell/mv643xx_eth.c wol->supported = 0; wol 1547 drivers/net/ethernet/marvell/mv643xx_eth.c wol->wolopts = 0; wol 1549 drivers/net/ethernet/marvell/mv643xx_eth.c phy_ethtool_get_wol(dev->phydev, wol); wol 1553 drivers/net/ethernet/marvell/mv643xx_eth.c mv643xx_eth_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 1560 drivers/net/ethernet/marvell/mv643xx_eth.c err = phy_ethtool_set_wol(dev->phydev, wol); wol 3658 drivers/net/ethernet/marvell/mvneta.c struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; wol 3664 drivers/net/ethernet/marvell/mvneta.c phylink_ethtool_get_wol(pp->phylink, &wol); wol 3665 drivers/net/ethernet/marvell/mvneta.c device_set_wakeup_capable(&pp->dev->dev, !!wol.supported); wol 4275 drivers/net/ethernet/marvell/mvneta.c struct ethtool_wolinfo *wol) wol 4279 drivers/net/ethernet/marvell/mvneta.c phylink_ethtool_get_wol(pp->phylink, wol); wol 4283 drivers/net/ethernet/marvell/mvneta.c struct ethtool_wolinfo *wol) wol 4288 drivers/net/ethernet/marvell/mvneta.c ret = phylink_ethtool_set_wol(pp->phylink, wol); wol 4290 drivers/net/ethernet/marvell/mvneta.c device_set_wakeup_enable(&dev->dev, !!wol->wolopts); wol 218 drivers/net/ethernet/marvell/skge.c if (skge->wol & WAKE_PHY) wol 223 drivers/net/ethernet/marvell/skge.c if (skge->wol & WAKE_MAGIC) wol 235 drivers/net/ethernet/marvell/skge.c static void skge_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 239 drivers/net/ethernet/marvell/skge.c wol->supported = wol_supported(skge->hw); wol 240 drivers/net/ethernet/marvell/skge.c wol->wolopts = skge->wol; wol 243 drivers/net/ethernet/marvell/skge.c static int skge_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 248 drivers/net/ethernet/marvell/skge.c if ((wol->wolopts & ~wol_supported(hw)) || wol 252 drivers/net/ethernet/marvell/skge.c skge->wol = wol->wolopts; wol 254 drivers/net/ethernet/marvell/skge.c device_set_wakeup_enable(&hw->pdev->dev, skge->wol); wol 3845 drivers/net/ethernet/marvell/skge.c skge->wol = wol_supported(hw) & WAKE_MAGIC; wol 3846 drivers/net/ethernet/marvell/skge.c device_set_wakeup_enable(&hw->pdev->dev, skge->wol); wol 4073 drivers/net/ethernet/marvell/skge.c if (skge->wol) wol 4131 drivers/net/ethernet/marvell/skge.c if (skge->wol) wol 2466 drivers/net/ethernet/marvell/skge.h u8 wol; wol 850 drivers/net/ethernet/marvell/sky2.c if (sky2->wol & WAKE_PHY) wol 855 drivers/net/ethernet/marvell/sky2.c if (sky2->wol & WAKE_MAGIC) wol 3525 drivers/net/ethernet/marvell/sky2.c static void sky2_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 3529 drivers/net/ethernet/marvell/sky2.c wol->supported = sky2_wol_supported(sky2->hw); wol 3530 drivers/net/ethernet/marvell/sky2.c wol->wolopts = sky2->wol; wol 3533 drivers/net/ethernet/marvell/sky2.c static int sky2_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 3540 drivers/net/ethernet/marvell/sky2.c if ((wol->wolopts & ~sky2_wol_supported(sky2->hw)) || wol 3544 drivers/net/ethernet/marvell/sky2.c sky2->wol = wol->wolopts; wol 3550 drivers/net/ethernet/marvell/sky2.c if (sky2->wol) wol 4720 drivers/net/ethernet/marvell/sky2.c int highmem, int wol) wol 4753 drivers/net/ethernet/marvell/sky2.c sky2->wol = wol; wol 5193 drivers/net/ethernet/marvell/sky2.c if (sky2->wol) wol 2265 drivers/net/ethernet/marvell/sky2.h u8 wol; /* WAKE_ bits */ wol 227 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c struct ethtool_wolinfo *wol) wol 244 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c wol->supported = 0; wol 245 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c wol->wolopts = 0; wol 250 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c wol->supported = WAKE_MAGIC; wol 252 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c wol->supported = 0; wol 261 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c wol->wolopts = WAKE_MAGIC; wol 263 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c wol->wolopts = 0; wol 267 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c struct ethtool_wolinfo *wol) wol 283 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if (wol->supported & ~WAKE_MAGIC) wol 292 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if (wol->wolopts & WAKE_MAGIC) { wol 620 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h bool wol; wol 1478 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c struct ethtool_wolinfo *wol) wol 1485 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c memset(wol, 0, sizeof(*wol)); wol 1487 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c wol->supported = mlx5e_get_wol_supported(mdev); wol 1488 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (!wol->supported) wol 1495 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c wol->wolopts = mlx5e_reformat_wol_mode_mlx5_to_linux(mlx5_wol_mode); wol 1498 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c static int mlx5e_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 1508 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (wol->wolopts & ~wol_supported) wol 1511 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c mlx5_wol_mode = mlx5e_reformat_wol_mode_linux_to_mlx5(wol->wolopts); wol 6169 drivers/net/ethernet/micrel/ksz884x.c struct ethtool_wolinfo *wol) wol 6174 drivers/net/ethernet/micrel/ksz884x.c wol->supported = hw_priv->wol_support; wol 6175 drivers/net/ethernet/micrel/ksz884x.c wol->wolopts = hw_priv->wol_enable; wol 6176 drivers/net/ethernet/micrel/ksz884x.c memset(&wol->sopass, 0, sizeof(wol->sopass)); wol 6189 drivers/net/ethernet/micrel/ksz884x.c struct ethtool_wolinfo *wol) wol 6197 drivers/net/ethernet/micrel/ksz884x.c if (wol->wolopts & ~hw_priv->wol_support) wol 6200 drivers/net/ethernet/micrel/ksz884x.c hw_priv->wol_enable = wol->wolopts; wol 6203 drivers/net/ethernet/micrel/ksz884x.c if (wol->wolopts) wol 777 drivers/net/ethernet/microchip/lan743x_ethtool.c struct ethtool_wolinfo *wol) wol 781 drivers/net/ethernet/microchip/lan743x_ethtool.c wol->supported = 0; wol 782 drivers/net/ethernet/microchip/lan743x_ethtool.c wol->wolopts = 0; wol 783 drivers/net/ethernet/microchip/lan743x_ethtool.c phy_ethtool_get_wol(netdev->phydev, wol); wol 785 drivers/net/ethernet/microchip/lan743x_ethtool.c wol->supported |= WAKE_BCAST | WAKE_UCAST | WAKE_MCAST | wol 788 drivers/net/ethernet/microchip/lan743x_ethtool.c wol->wolopts |= adapter->wolopts; wol 792 drivers/net/ethernet/microchip/lan743x_ethtool.c struct ethtool_wolinfo *wol) wol 797 drivers/net/ethernet/microchip/lan743x_ethtool.c if (wol->wolopts & WAKE_UCAST) wol 799 drivers/net/ethernet/microchip/lan743x_ethtool.c if (wol->wolopts & WAKE_MCAST) wol 801 drivers/net/ethernet/microchip/lan743x_ethtool.c if (wol->wolopts & WAKE_BCAST) wol 803 drivers/net/ethernet/microchip/lan743x_ethtool.c if (wol->wolopts & WAKE_MAGIC) wol 805 drivers/net/ethernet/microchip/lan743x_ethtool.c if (wol->wolopts & WAKE_PHY) wol 807 drivers/net/ethernet/microchip/lan743x_ethtool.c if (wol->wolopts & WAKE_ARP) wol 810 drivers/net/ethernet/microchip/lan743x_ethtool.c device_set_wakeup_enable(&adapter->pdev->dev, (bool)wol->wolopts); wol 812 drivers/net/ethernet/microchip/lan743x_ethtool.c phy_ethtool_set_wol(netdev->phydev, wol); wol 2608 drivers/net/ethernet/natsemi/natsemi.c static void get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 2612 drivers/net/ethernet/natsemi/natsemi.c netdev_get_wol(dev, &wol->supported, &wol->wolopts); wol 2613 drivers/net/ethernet/natsemi/natsemi.c netdev_get_sopass(dev, wol->sopass); wol 2617 drivers/net/ethernet/natsemi/natsemi.c static int set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 2622 drivers/net/ethernet/natsemi/natsemi.c netdev_set_wol(dev, wol->wolopts); wol 2623 drivers/net/ethernet/natsemi/natsemi.c res = netdev_set_sopass(dev, wol->sopass); wol 3223 drivers/net/ethernet/natsemi/natsemi.c u32 wol = readl(ioaddr + WOLCmd) & WakeOptsSummary; wol 3224 drivers/net/ethernet/natsemi/natsemi.c if (wol) { wol 3309 drivers/net/ethernet/natsemi/natsemi.c u32 wol = readl(ioaddr + WOLCmd) & WakeOptsSummary; wol 3311 drivers/net/ethernet/natsemi/natsemi.c if (wol) { wol 207 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c struct ethtool_wolinfo *wol) wol 211 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c wol->supported = WAKE_UCAST | WAKE_MCAST | WAKE_BCAST | WAKE_MAGIC; wol 212 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c wol->wolopts = 0; wol 215 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c wol->wolopts |= WAKE_UCAST; wol 217 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c wol->wolopts |= WAKE_MCAST; wol 219 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c wol->wolopts |= WAKE_BCAST; wol 221 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c wol->wolopts |= WAKE_MAGIC; wol 233 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c struct ethtool_wolinfo *wol) wol 237 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c if ((wol->wolopts & (WAKE_PHY | WAKE_ARP | WAKE_MAGICSECURE))) wol 242 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c if ((wol->wolopts & WAKE_UCAST)) wol 244 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c if ((wol->wolopts & WAKE_MCAST)) wol 246 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c if ((wol->wolopts & WAKE_BCAST)) wol 248 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c if ((wol->wolopts & WAKE_MAGIC)) wol 682 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c netxen_nic_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 687 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c wol->supported = 0; wol 688 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c wol->wolopts = 0; wol 695 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c wol->supported |= WAKE_MAGIC; wol 699 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c wol->wolopts |= WAKE_MAGIC; wol 703 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c netxen_nic_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 711 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c if (wol->wolopts & ~WAKE_MAGIC) wol 719 drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c if (wol->wolopts & WAKE_MAGIC) wol 2685 drivers/net/ethernet/qlogic/qed/qed_mcp.c struct qed_ptt *p_ptt, enum qed_ov_wol wol) wol 2697 drivers/net/ethernet/qlogic/qed/qed_mcp.c switch (wol) { wol 2708 drivers/net/ethernet/qlogic/qed/qed_mcp.c DP_ERR(p_hwfn, "Invalid wol state %d\n", wol); wol 2718 drivers/net/ethernet/qlogic/qed/qed_mcp.c p_hwfn->cdev->wol_config = (u8)wol; wol 542 drivers/net/ethernet/qlogic/qed/qed_mcp.h enum qed_ov_wol wol); wol 701 drivers/net/ethernet/qlogic/qede/qede_ethtool.c static void qede_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) wol 706 drivers/net/ethernet/qlogic/qede/qede_ethtool.c wol->supported = WAKE_MAGIC; wol 707 drivers/net/ethernet/qlogic/qede/qede_ethtool.c wol->wolopts = edev->wol_enabled ? WAKE_MAGIC : 0; wol 711 drivers/net/ethernet/qlogic/qede/qede_ethtool.c static int qede_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) wol 717 drivers/net/ethernet/qlogic/qede/qede_ethtool.c if (wol->wolopts & ~WAKE_MAGIC) { wol 723 drivers/net/ethernet/qlogic/qede/qede_ethtool.c wol_requested = !!(wol->wolopts & WAKE_MAGIC); wol 1471 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c qlcnic_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 1479 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c wol->supported = 0; wol 1480 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c wol->wolopts = 0; wol 1486 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c wol->supported |= WAKE_MAGIC; wol 1490 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c wol->wolopts |= WAKE_MAGIC; wol 1494 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c qlcnic_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 1502 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c if (wol->wolopts & ~WAKE_MAGIC) wol 1514 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c if (wol->wolopts & WAKE_MAGIC) wol 1327 drivers/net/ethernet/realtek/8139cp.c const struct ethtool_wolinfo *wol) wol 1333 drivers/net/ethernet/realtek/8139cp.c if (wol->wolopts) { wol 1334 drivers/net/ethernet/realtek/8139cp.c if (wol->wolopts & WAKE_PHY) options |= LinkUp; wol 1335 drivers/net/ethernet/realtek/8139cp.c if (wol->wolopts & WAKE_MAGIC) options |= MagicPacket; wol 1345 drivers/net/ethernet/realtek/8139cp.c if (wol->wolopts) { wol 1346 drivers/net/ethernet/realtek/8139cp.c if (wol->wolopts & WAKE_UCAST) options |= UWF; wol 1347 drivers/net/ethernet/realtek/8139cp.c if (wol->wolopts & WAKE_BCAST) options |= BWF; wol 1348 drivers/net/ethernet/realtek/8139cp.c if (wol->wolopts & WAKE_MCAST) options |= MWF; wol 1353 drivers/net/ethernet/realtek/8139cp.c cp->wol_enabled = (wol->wolopts) ? 1 : 0; wol 1360 drivers/net/ethernet/realtek/8139cp.c struct ethtool_wolinfo *wol) wol 1364 drivers/net/ethernet/realtek/8139cp.c wol->wolopts = 0; /* Start from scratch */ wol 1365 drivers/net/ethernet/realtek/8139cp.c wol->supported = WAKE_PHY | WAKE_BCAST | WAKE_MAGIC | wol 1371 drivers/net/ethernet/realtek/8139cp.c if (options & LinkUp) wol->wolopts |= WAKE_PHY; wol 1372 drivers/net/ethernet/realtek/8139cp.c if (options & MagicPacket) wol->wolopts |= WAKE_MAGIC; wol 1376 drivers/net/ethernet/realtek/8139cp.c if (options & UWF) wol->wolopts |= WAKE_UCAST; wol 1377 drivers/net/ethernet/realtek/8139cp.c if (options & BWF) wol->wolopts |= WAKE_BCAST; wol 1378 drivers/net/ethernet/realtek/8139cp.c if (options & MWF) wol->wolopts |= WAKE_MCAST; wol 1501 drivers/net/ethernet/realtek/8139cp.c static void cp_get_wol (struct net_device *dev, struct ethtool_wolinfo *wol) wol 1507 drivers/net/ethernet/realtek/8139cp.c netdev_get_wol (cp, wol); wol 1511 drivers/net/ethernet/realtek/8139cp.c static int cp_set_wol (struct net_device *dev, struct ethtool_wolinfo *wol) wol 1518 drivers/net/ethernet/realtek/8139cp.c rc = netdev_set_wol (cp, wol); wol 2305 drivers/net/ethernet/realtek/8139too.c static void rtl8139_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 2315 drivers/net/ethernet/realtek/8139too.c wol->supported = WAKE_PHY | WAKE_MAGIC wol 2318 drivers/net/ethernet/realtek/8139too.c wol->wolopts = 0; wol 2320 drivers/net/ethernet/realtek/8139too.c wol->wolopts |= WAKE_PHY; wol 2322 drivers/net/ethernet/realtek/8139too.c wol->wolopts |= WAKE_MAGIC; wol 2326 drivers/net/ethernet/realtek/8139too.c wol->wolopts |= WAKE_UCAST; wol 2328 drivers/net/ethernet/realtek/8139too.c wol->wolopts |= WAKE_MCAST; wol 2330 drivers/net/ethernet/realtek/8139too.c wol->wolopts |= WAKE_BCAST; wol 2339 drivers/net/ethernet/realtek/8139too.c static int rtl8139_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 2350 drivers/net/ethernet/realtek/8139too.c if (wol->wolopts & ~support) wol 2355 drivers/net/ethernet/realtek/8139too.c if (wol->wolopts & WAKE_PHY) wol 2357 drivers/net/ethernet/realtek/8139too.c if (wol->wolopts & WAKE_MAGIC) wol 2367 drivers/net/ethernet/realtek/8139too.c if (wol->wolopts & WAKE_UCAST) wol 2369 drivers/net/ethernet/realtek/8139too.c if (wol->wolopts & WAKE_MCAST) wol 2371 drivers/net/ethernet/realtek/8139too.c if (wol->wolopts & WAKE_BCAST) wol 1446 drivers/net/ethernet/realtek/r8169_main.c static void rtl8169_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 1451 drivers/net/ethernet/realtek/r8169_main.c wol->supported = WAKE_ANY; wol 1452 drivers/net/ethernet/realtek/r8169_main.c wol->wolopts = tp->saved_wolopts; wol 1523 drivers/net/ethernet/realtek/r8169_main.c static int rtl8169_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 1528 drivers/net/ethernet/realtek/r8169_main.c if (wol->wolopts & ~WAKE_ANY) wol 1535 drivers/net/ethernet/realtek/r8169_main.c tp->saved_wolopts = wol->wolopts; wol 1283 drivers/net/ethernet/renesas/ravb_main.c static void ravb_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) wol 1287 drivers/net/ethernet/renesas/ravb_main.c wol->supported = WAKE_MAGIC; wol 1288 drivers/net/ethernet/renesas/ravb_main.c wol->wolopts = priv->wol_enabled ? WAKE_MAGIC : 0; wol 1291 drivers/net/ethernet/renesas/ravb_main.c static int ravb_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) wol 1295 drivers/net/ethernet/renesas/ravb_main.c if (wol->wolopts & ~WAKE_MAGIC) wol 1298 drivers/net/ethernet/renesas/ravb_main.c priv->wol_enabled = !!(wol->wolopts & WAKE_MAGIC); wol 2393 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) wol 2397 drivers/net/ethernet/renesas/sh_eth.c wol->supported = 0; wol 2398 drivers/net/ethernet/renesas/sh_eth.c wol->wolopts = 0; wol 2401 drivers/net/ethernet/renesas/sh_eth.c wol->supported = WAKE_MAGIC; wol 2402 drivers/net/ethernet/renesas/sh_eth.c wol->wolopts = mdp->wol_enabled ? WAKE_MAGIC : 0; wol 2406 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) wol 2410 drivers/net/ethernet/renesas/sh_eth.c if (!mdp->cd->magic || wol->wolopts & ~WAKE_MAGIC) wol 2413 drivers/net/ethernet/renesas/sh_eth.c mdp->wol_enabled = !!(wol->wolopts & WAKE_MAGIC); wol 2119 drivers/net/ethernet/sfc/ef10.c struct ethtool_wolinfo *wol) {} wol 2126 drivers/net/ethernet/sfc/ef10.c static void efx_ef10_get_wol(struct efx_nic *efx, struct ethtool_wolinfo *wol) wol 2128 drivers/net/ethernet/sfc/ef10.c wol->supported = 0; wol 2129 drivers/net/ethernet/sfc/ef10.c wol->wolopts = 0; wol 2130 drivers/net/ethernet/sfc/ef10.c memset(&wol->sopass, 0, sizeof(wol->sopass)); wol 768 drivers/net/ethernet/sfc/ethtool.c struct ethtool_wolinfo *wol) wol 771 drivers/net/ethernet/sfc/ethtool.c return efx->type->get_wol(efx, wol); wol 776 drivers/net/ethernet/sfc/ethtool.c struct ethtool_wolinfo *wol) wol 779 drivers/net/ethernet/sfc/ethtool.c return efx->type->set_wol(efx, wol->wolopts); wol 746 drivers/net/ethernet/sfc/falcon/ethtool.c struct ethtool_wolinfo *wol) wol 749 drivers/net/ethernet/sfc/falcon/ethtool.c return efx->type->get_wol(efx, wol); wol 754 drivers/net/ethernet/sfc/falcon/ethtool.c struct ethtool_wolinfo *wol) wol 757 drivers/net/ethernet/sfc/falcon/ethtool.c return efx->type->set_wol(efx, wol->wolopts); wol 2687 drivers/net/ethernet/sfc/falcon/falcon.c static void falcon_get_wol(struct ef4_nic *efx, struct ethtool_wolinfo *wol) wol 2689 drivers/net/ethernet/sfc/falcon/falcon.c wol->supported = 0; wol 2690 drivers/net/ethernet/sfc/falcon/falcon.c wol->wolopts = 0; wol 2691 drivers/net/ethernet/sfc/falcon/falcon.c memset(&wol->sopass, 0, sizeof(wol->sopass)); wol 1072 drivers/net/ethernet/sfc/falcon/net_driver.h void (*get_wol)(struct ef4_nic *efx, struct ethtool_wolinfo *wol); wol 1316 drivers/net/ethernet/sfc/mcdi.c netif_info(efx, wol, efx->net_dev, "MCDI PM event.\n"); wol 1303 drivers/net/ethernet/sfc/net_driver.h void (*get_wol)(struct efx_nic *efx, struct ethtool_wolinfo *wol); wol 662 drivers/net/ethernet/sfc/siena.c static void siena_get_wol(struct efx_nic *efx, struct ethtool_wolinfo *wol) wol 666 drivers/net/ethernet/sfc/siena.c wol->supported = WAKE_MAGIC; wol 668 drivers/net/ethernet/sfc/siena.c wol->wolopts = WAKE_MAGIC; wol 670 drivers/net/ethernet/sfc/siena.c wol->wolopts = 0; wol 671 drivers/net/ethernet/sfc/siena.c memset(&wol->sopass, 0, sizeof(wol->sopass)); wol 2078 drivers/net/ethernet/sis/sis900.c static int sis900_set_wol(struct net_device *net_dev, struct ethtool_wolinfo *wol) wol 2084 drivers/net/ethernet/sis/sis900.c if (wol->wolopts == 0) { wol 2094 drivers/net/ethernet/sis/sis900.c if (wol->wolopts & (WAKE_MAGICSECURE | WAKE_UCAST | WAKE_MCAST wol 2098 drivers/net/ethernet/sis/sis900.c if (wol->wolopts & WAKE_MAGIC) wol 2100 drivers/net/ethernet/sis/sis900.c if (wol->wolopts & WAKE_PHY) wol 2114 drivers/net/ethernet/sis/sis900.c static void sis900_get_wol(struct net_device *net_dev, struct ethtool_wolinfo *wol) wol 2122 drivers/net/ethernet/sis/sis900.c wol->wolopts |= WAKE_MAGIC; wol 2124 drivers/net/ethernet/sis/sis900.c wol->wolopts |= WAKE_PHY; wol 2126 drivers/net/ethernet/sis/sis900.c wol->supported = (WAKE_PHY | WAKE_MAGIC); wol 418 drivers/net/ethernet/socionext/sni_ave.c struct ethtool_wolinfo *wol) wol 420 drivers/net/ethernet/socionext/sni_ave.c wol->supported = 0; wol 421 drivers/net/ethernet/socionext/sni_ave.c wol->wolopts = 0; wol 424 drivers/net/ethernet/socionext/sni_ave.c phy_ethtool_get_wol(ndev->phydev, wol); wol 428 drivers/net/ethernet/socionext/sni_ave.c struct ethtool_wolinfo *wol) wol 431 drivers/net/ethernet/socionext/sni_ave.c (wol->wolopts & (WAKE_ARP | WAKE_MAGICSECURE))) wol 434 drivers/net/ethernet/socionext/sni_ave.c return phy_ethtool_set_wol(ndev->phydev, wol); wol 438 drivers/net/ethernet/socionext/sni_ave.c struct ethtool_wolinfo *wol) wol 442 drivers/net/ethernet/socionext/sni_ave.c ret = __ave_ethtool_set_wol(ndev, wol); wol 444 drivers/net/ethernet/socionext/sni_ave.c device_set_wakeup_enable(&ndev->dev, !!wol->wolopts); wol 1166 drivers/net/ethernet/socionext/sni_ave.c struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; wol 1220 drivers/net/ethernet/socionext/sni_ave.c ave_ethtool_get_wol(ndev, &wol); wol 1221 drivers/net/ethernet/socionext/sni_ave.c device_set_wakeup_capable(&ndev->dev, !!wol.supported); wol 1224 drivers/net/ethernet/socionext/sni_ave.c wol.wolopts = 0; wol 1225 drivers/net/ethernet/socionext/sni_ave.c __ave_ethtool_set_wol(ndev, &wol); wol 1750 drivers/net/ethernet/socionext/sni_ave.c struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; wol 1760 drivers/net/ethernet/socionext/sni_ave.c ave_ethtool_get_wol(ndev, &wol); wol 1761 drivers/net/ethernet/socionext/sni_ave.c priv->wolopts = wol.wolopts; wol 1768 drivers/net/ethernet/socionext/sni_ave.c struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; wol 1775 drivers/net/ethernet/socionext/sni_ave.c ave_ethtool_get_wol(ndev, &wol); wol 1776 drivers/net/ethernet/socionext/sni_ave.c wol.wolopts = priv->wolopts; wol 1777 drivers/net/ethernet/socionext/sni_ave.c __ave_ethtool_set_wol(ndev, &wol); wol 599 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c static void stmmac_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 605 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c wol->supported = WAKE_MAGIC | WAKE_UCAST; wol 606 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c wol->wolopts = priv->wolopts; wol 611 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c static int stmmac_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 620 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c wol->wolopts &= ~WAKE_MAGIC; wol 625 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c if (wol->wolopts & ~support) wol 628 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c if (wol->wolopts) { wol 638 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c priv->wolopts = wol->wolopts; wol 2082 drivers/net/ethernet/sun/sungem.c static void gem_stop_phy(struct gem *gp, int wol) wol 2098 drivers/net/ethernet/sun/sungem.c if (wol && gp->has_wol) { wol 2129 drivers/net/ethernet/sun/sungem.c if (!wol) { wol 2202 drivers/net/ethernet/sun/sungem.c static void gem_do_stop(struct net_device *dev, int wol) wol 2233 drivers/net/ethernet/sun/sungem.c if (!wol) wol 2244 drivers/net/ethernet/sun/sungem.c gem_stop_phy(gp, wol); wol 2250 drivers/net/ethernet/sun/sungem.c if (!wol) wol 2662 drivers/net/ethernet/sun/sungem.c static void gem_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 2668 drivers/net/ethernet/sun/sungem.c wol->supported = WOL_SUPPORTED_MASK; wol 2669 drivers/net/ethernet/sun/sungem.c wol->wolopts = gp->wake_on_lan; wol 2671 drivers/net/ethernet/sun/sungem.c wol->supported = 0; wol 2672 drivers/net/ethernet/sun/sungem.c wol->wolopts = 0; wol 2676 drivers/net/ethernet/sun/sungem.c static int gem_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 2682 drivers/net/ethernet/sun/sungem.c gp->wake_on_lan = wol->wolopts & WOL_SUPPORTED_MASK; wol 313 drivers/net/ethernet/ti/cpsw_ethtool.c void cpsw_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) wol 319 drivers/net/ethernet/ti/cpsw_ethtool.c wol->supported = 0; wol 320 drivers/net/ethernet/ti/cpsw_ethtool.c wol->wolopts = 0; wol 323 drivers/net/ethernet/ti/cpsw_ethtool.c phy_ethtool_get_wol(cpsw->slaves[slave_no].phy, wol); wol 326 drivers/net/ethernet/ti/cpsw_ethtool.c int cpsw_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) wol 333 drivers/net/ethernet/ti/cpsw_ethtool.c return phy_ethtool_set_wol(cpsw->slaves[slave_no].phy, wol); wol 414 drivers/net/ethernet/ti/cpsw_priv.h void cpsw_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol); wol 415 drivers/net/ethernet/ti/cpsw_priv.h int cpsw_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol); wol 1287 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct ethtool_wolinfo *wol) wol 1290 drivers/net/ethernet/toshiba/ps3_gelic_net.c wol->supported = WAKE_MAGIC; wol 1292 drivers/net/ethernet/toshiba/ps3_gelic_net.c wol->supported = 0; wol 1294 drivers/net/ethernet/toshiba/ps3_gelic_net.c wol->wolopts = ps3_sys_manager_get_wol() ? wol->supported : 0; wol 1295 drivers/net/ethernet/toshiba/ps3_gelic_net.c memset(&wol->sopass, 0, sizeof(wol->sopass)); wol 1298 drivers/net/ethernet/toshiba/ps3_gelic_net.c struct ethtool_wolinfo *wol) wol 1308 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (wol->wolopts & ~WAKE_MAGIC) wol 1312 drivers/net/ethernet/toshiba/ps3_gelic_net.c if (wol->wolopts & WAKE_MAGIC) { wol 2355 drivers/net/ethernet/via/via-rhine.c static void rhine_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 2363 drivers/net/ethernet/via/via-rhine.c wol->supported = WAKE_PHY | WAKE_MAGIC | wol 2365 drivers/net/ethernet/via/via-rhine.c wol->wolopts = rp->wolopts; wol 2369 drivers/net/ethernet/via/via-rhine.c static int rhine_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 2378 drivers/net/ethernet/via/via-rhine.c if (wol->wolopts & ~support) wol 2382 drivers/net/ethernet/via/via-rhine.c rp->wolopts = wol->wolopts; wol 3419 drivers/net/ethernet/via/via-velocity.c static void velocity_ethtool_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 3422 drivers/net/ethernet/via/via-velocity.c wol->supported = WAKE_PHY | WAKE_MAGIC | WAKE_UCAST | WAKE_ARP; wol 3423 drivers/net/ethernet/via/via-velocity.c wol->wolopts |= WAKE_MAGIC; wol 3429 drivers/net/ethernet/via/via-velocity.c wol->wolopts |= WAKE_UCAST; wol 3431 drivers/net/ethernet/via/via-velocity.c wol->wolopts |= WAKE_ARP; wol 3432 drivers/net/ethernet/via/via-velocity.c memcpy(&wol->sopass, vptr->wol_passwd, 6); wol 3435 drivers/net/ethernet/via/via-velocity.c static int velocity_ethtool_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 3439 drivers/net/ethernet/via/via-velocity.c if (!(wol->wolopts & (WAKE_PHY | WAKE_MAGIC | WAKE_UCAST | WAKE_ARP))) wol 3450 drivers/net/ethernet/via/via-velocity.c if (wol->wolopts & WAKE_MAGIC) { wol 3454 drivers/net/ethernet/via/via-velocity.c if (wol->wolopts & WAKE_UCAST) { wol 3458 drivers/net/ethernet/via/via-velocity.c if (wol->wolopts & WAKE_ARP) { wol 3462 drivers/net/ethernet/via/via-velocity.c memcpy(vptr->wol_passwd, wol->sopass, 6); wol 164 drivers/net/phy/at803x.c struct ethtool_wolinfo *wol) wol 179 drivers/net/phy/at803x.c if (wol->wolopts & WAKE_MAGIC) { wol 208 drivers/net/phy/at803x.c struct ethtool_wolinfo *wol) wol 212 drivers/net/phy/at803x.c wol->supported = WAKE_MAGIC; wol 213 drivers/net/phy/at803x.c wol->wolopts = 0; wol 217 drivers/net/phy/at803x.c wol->wolopts |= WAKE_MAGIC; wol 92 drivers/net/phy/dp83822.c struct ethtool_wolinfo *wol) wol 98 drivers/net/phy/dp83822.c if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { wol 116 drivers/net/phy/dp83822.c if (wol->wolopts & WAKE_MAGIC) wol 121 drivers/net/phy/dp83822.c if (wol->wolopts & WAKE_MAGICSECURE) { wol 124 drivers/net/phy/dp83822.c (wol->sopass[1] << 8) | wol->sopass[0]); wol 127 drivers/net/phy/dp83822.c (wol->sopass[3] << 8) | wol->sopass[2]); wol 130 drivers/net/phy/dp83822.c (wol->sopass[5] << 8) | wol->sopass[4]); wol 152 drivers/net/phy/dp83822.c struct ethtool_wolinfo *wol) wol 157 drivers/net/phy/dp83822.c wol->supported = (WAKE_MAGIC | WAKE_MAGICSECURE); wol 158 drivers/net/phy/dp83822.c wol->wolopts = 0; wol 163 drivers/net/phy/dp83822.c wol->wolopts |= WAKE_MAGIC; wol 168 drivers/net/phy/dp83822.c wol->sopass[0] = (sopass_val & 0xff); wol 169 drivers/net/phy/dp83822.c wol->sopass[1] = (sopass_val >> 8); wol 173 drivers/net/phy/dp83822.c wol->sopass[2] = (sopass_val & 0xff); wol 174 drivers/net/phy/dp83822.c wol->sopass[3] = (sopass_val >> 8); wol 178 drivers/net/phy/dp83822.c wol->sopass[4] = (sopass_val & 0xff); wol 179 drivers/net/phy/dp83822.c wol->sopass[5] = (sopass_val >> 8); wol 181 drivers/net/phy/dp83822.c wol->wolopts |= WAKE_MAGICSECURE; wol 186 drivers/net/phy/dp83822.c wol->wolopts = 0; wol 98 drivers/net/phy/dp83tc811.c struct ethtool_wolinfo *wol) wol 104 drivers/net/phy/dp83tc811.c if (wol->wolopts & (WAKE_MAGIC | WAKE_MAGICSECURE)) { wol 122 drivers/net/phy/dp83tc811.c if (wol->wolopts & WAKE_MAGIC) wol 127 drivers/net/phy/dp83tc811.c if (wol->wolopts & WAKE_MAGICSECURE) { wol 130 drivers/net/phy/dp83tc811.c (wol->sopass[1] << 8) | wol->sopass[0]); wol 133 drivers/net/phy/dp83tc811.c (wol->sopass[3] << 8) | wol->sopass[2]); wol 136 drivers/net/phy/dp83tc811.c (wol->sopass[5] << 8) | wol->sopass[4]); wol 155 drivers/net/phy/dp83tc811.c struct ethtool_wolinfo *wol) wol 160 drivers/net/phy/dp83tc811.c wol->supported = (WAKE_MAGIC | WAKE_MAGICSECURE); wol 161 drivers/net/phy/dp83tc811.c wol->wolopts = 0; wol 166 drivers/net/phy/dp83tc811.c wol->wolopts |= WAKE_MAGIC; wol 171 drivers/net/phy/dp83tc811.c wol->sopass[0] = (sopass_val & 0xff); wol 172 drivers/net/phy/dp83tc811.c wol->sopass[1] = (sopass_val >> 8); wol 176 drivers/net/phy/dp83tc811.c wol->sopass[2] = (sopass_val & 0xff); wol 177 drivers/net/phy/dp83tc811.c wol->sopass[3] = (sopass_val >> 8); wol 181 drivers/net/phy/dp83tc811.c wol->sopass[4] = (sopass_val & 0xff); wol 182 drivers/net/phy/dp83tc811.c wol->sopass[5] = (sopass_val >> 8); wol 184 drivers/net/phy/dp83tc811.c wol->wolopts |= WAKE_MAGICSECURE; wol 189 drivers/net/phy/dp83tc811.c wol->wolopts = 0; wol 1484 drivers/net/phy/marvell.c struct ethtool_wolinfo *wol) wol 1488 drivers/net/phy/marvell.c wol->supported = WAKE_MAGIC; wol 1489 drivers/net/phy/marvell.c wol->wolopts = 0; wol 1497 drivers/net/phy/marvell.c wol->wolopts |= WAKE_MAGIC; wol 1504 drivers/net/phy/marvell.c struct ethtool_wolinfo *wol) wol 1512 drivers/net/phy/marvell.c if (wol->wolopts & WAKE_MAGIC) { wol 160 drivers/net/phy/meson-gxl.c int ret, wol, lpa, exp; wol 170 drivers/net/phy/meson-gxl.c wol = meson_gxl_read_reg(phydev, BANK_WOL, LPI_STATUS); wol 171 drivers/net/phy/meson-gxl.c if (wol < 0) wol 172 drivers/net/phy/meson-gxl.c return wol; wol 182 drivers/net/phy/meson-gxl.c if (!(wol & LPI_STATUS_RSV12) || wol 268 drivers/net/phy/microchip.c struct ethtool_wolinfo *wol) wol 272 drivers/net/phy/microchip.c priv->wolopts = wol->wolopts; wol 599 drivers/net/phy/mscc.c struct ethtool_wolinfo *wol) wol 605 drivers/net/phy/mscc.c struct ethtool_wolinfo *wol_conf = wol; wol 615 drivers/net/phy/mscc.c if (wol->wolopts & WAKE_MAGIC) { wol 653 drivers/net/phy/mscc.c if (wol->wolopts & WAKE_MAGIC) { wol 678 drivers/net/phy/mscc.c struct ethtool_wolinfo *wol) wol 684 drivers/net/phy/mscc.c struct ethtool_wolinfo *wol_conf = wol; wol 1174 drivers/net/phy/phy.c int phy_ethtool_set_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol) wol 1177 drivers/net/phy/phy.c return phydev->drv->set_wol(phydev, wol); wol 1183 drivers/net/phy/phy.c void phy_ethtool_get_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol) wol 1186 drivers/net/phy/phy.c phydev->drv->get_wol(phydev, wol); wol 1454 drivers/net/phy/phy_device.c struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; wol 1458 drivers/net/phy/phy_device.c phy_ethtool_get_wol(phydev, &wol); wol 1459 drivers/net/phy/phy_device.c if (wol.wolopts || (netdev && netdev->wol_enabled)) wol 1057 drivers/net/phy/phylink.c void phylink_ethtool_get_wol(struct phylink *pl, struct ethtool_wolinfo *wol) wol 1061 drivers/net/phy/phylink.c wol->supported = 0; wol 1062 drivers/net/phy/phylink.c wol->wolopts = 0; wol 1065 drivers/net/phy/phylink.c phy_ethtool_get_wol(pl->phydev, wol); wol 1080 drivers/net/phy/phylink.c int phylink_ethtool_set_wol(struct phylink *pl, struct ethtool_wolinfo *wol) wol 1087 drivers/net/phy/phylink.c ret = phy_ethtool_set_wol(pl->phydev, wol); wol 309 drivers/net/usb/lan78xx.c u32 wol; wol 1356 drivers/net/usb/lan78xx.c struct ethtool_wolinfo *wol) wol 1368 drivers/net/usb/lan78xx.c wol->supported = 0; wol 1369 drivers/net/usb/lan78xx.c wol->wolopts = 0; wol 1372 drivers/net/usb/lan78xx.c wol->supported = WAKE_ALL; wol 1373 drivers/net/usb/lan78xx.c wol->wolopts = pdata->wol; wol 1375 drivers/net/usb/lan78xx.c wol->supported = 0; wol 1376 drivers/net/usb/lan78xx.c wol->wolopts = 0; wol 1384 drivers/net/usb/lan78xx.c struct ethtool_wolinfo *wol) wol 1394 drivers/net/usb/lan78xx.c if (wol->wolopts & ~WAKE_ALL) wol 1397 drivers/net/usb/lan78xx.c pdata->wol = wol->wolopts; wol 1399 drivers/net/usb/lan78xx.c device_set_wakeup_enable(&dev->udev->dev, (bool)wol->wolopts); wol 1401 drivers/net/usb/lan78xx.c phy_ethtool_set_wol(netdev->phydev, wol); wol 3007 drivers/net/usb/lan78xx.c pdata->wol = WAKE_MAGIC; wol 3863 drivers/net/usb/lan78xx.c static int lan78xx_set_suspend(struct lan78xx_net *dev, u32 wol) wol 3897 drivers/net/usb/lan78xx.c if (wol & WAKE_PHY) { wol 3904 drivers/net/usb/lan78xx.c if (wol & WAKE_MAGIC) { wol 3911 drivers/net/usb/lan78xx.c if (wol & WAKE_BCAST) { wol 3918 drivers/net/usb/lan78xx.c if (wol & WAKE_MCAST) { wol 3953 drivers/net/usb/lan78xx.c if (wol & WAKE_UCAST) { wol 3960 drivers/net/usb/lan78xx.c if (wol & WAKE_ARP) { wol 3987 drivers/net/usb/lan78xx.c if (hweight_long((unsigned long)wol) > 1) { wol 4093 drivers/net/usb/lan78xx.c lan78xx_set_suspend(dev, pdata->wol); wol 903 drivers/net/usb/pegasus.c pegasus_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 907 drivers/net/usb/pegasus.c wol->supported = WAKE_MAGIC | WAKE_PHY; wol 908 drivers/net/usb/pegasus.c wol->wolopts = pegasus->wolopts; wol 912 drivers/net/usb/pegasus.c pegasus_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 918 drivers/net/usb/pegasus.c if (wol->wolopts & ~WOL_SUPPORTED) wol 921 drivers/net/usb/pegasus.c if (wol->wolopts & WAKE_MAGIC) wol 923 drivers/net/usb/pegasus.c if (wol->wolopts & WAKE_PHY) wol 926 drivers/net/usb/pegasus.c if (wol->wolopts) wol 930 drivers/net/usb/pegasus.c pegasus->wolopts = wol->wolopts; wol 935 drivers/net/usb/pegasus.c wol->wolopts); wol 941 drivers/net/usb/pegasus.c struct ethtool_wolinfo wol; wol 943 drivers/net/usb/pegasus.c memset(&wol, 0, sizeof wol); wol 944 drivers/net/usb/pegasus.c (void) pegasus_set_wol(dev, &wol); wol 4881 drivers/net/usb/r8152.c static void rtl8152_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 4889 drivers/net/usb/r8152.c wol->supported = 0; wol 4890 drivers/net/usb/r8152.c wol->wolopts = 0; wol 4893 drivers/net/usb/r8152.c wol->supported = WAKE_ANY; wol 4894 drivers/net/usb/r8152.c wol->wolopts = __rtl_get_wol(tp); wol 4901 drivers/net/usb/r8152.c static int rtl8152_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) wol 4909 drivers/net/usb/r8152.c if (wol->wolopts & ~WAKE_ANY) wol 4918 drivers/net/usb/r8152.c __rtl_set_wol(tp, wol->wolopts); wol 4919 drivers/net/usb/r8152.c tp->saved_wolopts = wol->wolopts & WAKE_ANY; wol 3642 drivers/net/vmxnet3/vmxnet3_drv.c if (adapter->wol & WAKE_UCAST) { wol 3652 drivers/net/vmxnet3/vmxnet3_drv.c if (adapter->wol & WAKE_ARP) { wol 3702 drivers/net/vmxnet3/vmxnet3_drv.c if (adapter->wol & WAKE_MAGIC) wol 3720 drivers/net/vmxnet3/vmxnet3_drv.c adapter->wol); wol 456 drivers/net/vmxnet3/vmxnet3_ethtool.c vmxnet3_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 460 drivers/net/vmxnet3/vmxnet3_ethtool.c wol->supported = WAKE_UCAST | WAKE_ARP | WAKE_MAGIC; wol 461 drivers/net/vmxnet3/vmxnet3_ethtool.c wol->wolopts = adapter->wol; wol 466 drivers/net/vmxnet3/vmxnet3_ethtool.c vmxnet3_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) wol 470 drivers/net/vmxnet3/vmxnet3_ethtool.c if (wol->wolopts & (WAKE_PHY | WAKE_MCAST | WAKE_BCAST | wol 475 drivers/net/vmxnet3/vmxnet3_ethtool.c adapter->wol = wol->wolopts; wol 477 drivers/net/vmxnet3/vmxnet3_ethtool.c device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); wol 362 drivers/net/vmxnet3/vmxnet3_int.h u32 wol; wol 239 drivers/net/wireless/ath/carl9170/fwcmd.h struct carl9170_wol_cmd wol; wol 65 drivers/net/wireless/marvell/libertas/ethtool.c struct ethtool_wolinfo *wol) wol 69 drivers/net/wireless/marvell/libertas/ethtool.c wol->supported = WAKE_UCAST|WAKE_MCAST|WAKE_BCAST|WAKE_PHY; wol 75 drivers/net/wireless/marvell/libertas/ethtool.c wol->wolopts |= WAKE_UCAST; wol 77 drivers/net/wireless/marvell/libertas/ethtool.c wol->wolopts |= WAKE_MCAST; wol 79 drivers/net/wireless/marvell/libertas/ethtool.c wol->wolopts |= WAKE_BCAST; wol 81 drivers/net/wireless/marvell/libertas/ethtool.c wol->wolopts |= WAKE_PHY; wol 85 drivers/net/wireless/marvell/libertas/ethtool.c struct ethtool_wolinfo *wol) wol 89 drivers/net/wireless/marvell/libertas/ethtool.c if (wol->wolopts & ~(WAKE_UCAST|WAKE_MCAST|WAKE_BCAST|WAKE_PHY)) wol 93 drivers/net/wireless/marvell/libertas/ethtool.c if (wol->wolopts & WAKE_UCAST) wol 95 drivers/net/wireless/marvell/libertas/ethtool.c if (wol->wolopts & WAKE_MCAST) wol 97 drivers/net/wireless/marvell/libertas/ethtool.c if (wol->wolopts & WAKE_BCAST) wol 99 drivers/net/wireless/marvell/libertas/ethtool.c if (wol->wolopts & WAKE_PHY) wol 101 drivers/net/wireless/marvell/libertas/ethtool.c if (wol->wolopts == 0) wol 23 drivers/net/wireless/marvell/mwifiex/ethtool.c struct ethtool_wolinfo *wol) wol 28 drivers/net/wireless/marvell/mwifiex/ethtool.c wol->supported = WAKE_UCAST|WAKE_MCAST|WAKE_BCAST|WAKE_PHY; wol 34 drivers/net/wireless/marvell/mwifiex/ethtool.c wol->wolopts |= WAKE_UCAST; wol 36 drivers/net/wireless/marvell/mwifiex/ethtool.c wol->wolopts |= WAKE_MCAST; wol 38 drivers/net/wireless/marvell/mwifiex/ethtool.c wol->wolopts |= WAKE_BCAST; wol 40 drivers/net/wireless/marvell/mwifiex/ethtool.c wol->wolopts |= WAKE_PHY; wol 44 drivers/net/wireless/marvell/mwifiex/ethtool.c struct ethtool_wolinfo *wol) wol 49 drivers/net/wireless/marvell/mwifiex/ethtool.c if (wol->wolopts & ~(WAKE_UCAST|WAKE_MCAST|WAKE_BCAST|WAKE_PHY)) wol 52 drivers/net/wireless/marvell/mwifiex/ethtool.c if (wol->wolopts & WAKE_UCAST) wol 54 drivers/net/wireless/marvell/mwifiex/ethtool.c if (wol->wolopts & WAKE_MCAST) wol 56 drivers/net/wireless/marvell/mwifiex/ethtool.c if (wol->wolopts & WAKE_BCAST) wol 58 drivers/net/wireless/marvell/mwifiex/ethtool.c if (wol->wolopts & WAKE_PHY) wol 60 drivers/net/wireless/marvell/mwifiex/ethtool.c if (wol->wolopts == 0) wol 2059 drivers/staging/qlge/qlge.h u32 wol; wol 2256 drivers/staging/qlge/qlge.h int ql_mb_wol_mode(struct ql_adapter *qdev, u32 wol); wol 427 drivers/staging/qlge/qlge_ethtool.c static void ql_get_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) wol 435 drivers/staging/qlge/qlge_ethtool.c wol->supported = WAKE_MAGIC; wol 436 drivers/staging/qlge/qlge_ethtool.c wol->wolopts = qdev->wol; wol 440 drivers/staging/qlge/qlge_ethtool.c static int ql_set_wol(struct net_device *ndev, struct ethtool_wolinfo *wol) wol 452 drivers/staging/qlge/qlge_ethtool.c if (wol->wolopts & ~WAKE_MAGIC) wol 454 drivers/staging/qlge/qlge_ethtool.c qdev->wol = wol->wolopts; wol 456 drivers/staging/qlge/qlge_ethtool.c netif_info(qdev, drv, qdev->ndev, "Set wol option 0x%x\n", qdev->wol); wol 3809 drivers/staging/qlge/qlge_main.c qdev->wol = WAKE_MAGIC; wol 3929 drivers/staging/qlge/qlge_main.c u32 wol = MB_WOL_DISABLE; wol 3938 drivers/staging/qlge/qlge_main.c if (qdev->wol & (WAKE_ARP | WAKE_MAGICSECURE | WAKE_PHY | WAKE_UCAST | wol 3942 drivers/staging/qlge/qlge_main.c qdev->wol); wol 3946 drivers/staging/qlge/qlge_main.c if (qdev->wol & WAKE_MAGIC) { wol 3958 drivers/staging/qlge/qlge_main.c wol |= MB_WOL_MAGIC_PKT; wol 3961 drivers/staging/qlge/qlge_main.c if (qdev->wol) { wol 3962 drivers/staging/qlge/qlge_main.c wol |= MB_WOL_MODE_ON; wol 3963 drivers/staging/qlge/qlge_main.c status = ql_mb_wol_mode(qdev, wol); wol 3967 drivers/staging/qlge/qlge_main.c wol, qdev->ndev->name); wol 839 drivers/staging/qlge/qlge_mpi.c int ql_mb_wol_mode(struct ql_adapter *qdev, u32 wol) wol 851 drivers/staging/qlge/qlge_mpi.c mbcp->mbox_in[1] = wol; wol 571 include/linux/phy.h int (*set_wol)(struct phy_device *dev, struct ethtool_wolinfo *wol); wol 574 include/linux/phy.h void (*get_wol)(struct phy_device *dev, struct ethtool_wolinfo *wol); wol 1186 include/linux/phy.h int phy_ethtool_set_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol); wol 1188 include/linux/phy.h struct ethtool_wolinfo *wol); wol 1399 net/core/ethtool.c struct ethtool_wolinfo wol; wol 1404 net/core/ethtool.c memset(&wol, 0, sizeof(struct ethtool_wolinfo)); wol 1405 net/core/ethtool.c wol.cmd = ETHTOOL_GWOL; wol 1406 net/core/ethtool.c dev->ethtool_ops->get_wol(dev, &wol); wol 1408 net/core/ethtool.c if (copy_to_user(useraddr, &wol, sizeof(wol))) wol 1415 net/core/ethtool.c struct ethtool_wolinfo wol; wol 1421 net/core/ethtool.c if (copy_from_user(&wol, useraddr, sizeof(wol))) wol 1424 net/core/ethtool.c ret = dev->ethtool_ops->set_wol(dev, &wol); wol 1428 net/core/ethtool.c dev->wol_enabled = !!wol.wolopts;