Lines Matching refs:wol
1071 static void bnx2x_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in bnx2x_get_wol() argument
1076 wol->supported = 0; in bnx2x_get_wol()
1077 wol->wolopts = 0; in bnx2x_get_wol()
1079 wol->supported = WAKE_MAGIC; in bnx2x_get_wol()
1080 if (bp->wol) in bnx2x_get_wol()
1081 wol->wolopts = WAKE_MAGIC; in bnx2x_get_wol()
1083 wol->wolopts = 0; in bnx2x_get_wol()
1085 memset(&wol->sopass, 0, sizeof(wol->sopass)); in bnx2x_get_wol()
1088 static int bnx2x_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in bnx2x_set_wol() argument
1092 if (wol->wolopts & ~WAKE_MAGIC) { in bnx2x_set_wol()
1097 if (wol->wolopts & WAKE_MAGIC) { in bnx2x_set_wol()
1102 bp->wol = 1; in bnx2x_set_wol()
1104 bp->wol = 0; in bnx2x_set_wol()