Lines Matching refs:was_up
1184 static void gve_reset_and_teardown(struct gve_priv *priv, bool was_up);
1185 static int gve_reset_recovery(struct gve_priv *priv, bool was_up);
2332 static void gve_reset_and_teardown(struct gve_priv *priv, bool was_up) in gve_reset_and_teardown() argument
2336 if (was_up) in gve_reset_and_teardown()
2341 static int gve_reset_recovery(struct gve_priv *priv, bool was_up) in gve_reset_recovery() argument
2348 if (was_up) { in gve_reset_recovery()
2362 bool was_up = netif_running(priv->dev); in gve_reset() local
2373 gve_reset_and_teardown(priv, was_up); in gve_reset()
2376 if (was_up) { in gve_reset()
2380 gve_reset_and_teardown(priv, was_up); in gve_reset()
2387 err = gve_reset_recovery(priv, was_up); in gve_reset()
2703 bool was_up = netif_running(priv->dev); in gve_shutdown() local
2706 if (was_up && gve_close(priv->dev)) { in gve_shutdown()
2708 gve_reset_and_teardown(priv, was_up); in gve_shutdown()
2721 bool was_up = netif_running(priv->dev); in gve_suspend() local
2725 if (was_up && gve_close(priv->dev)) { in gve_suspend()
2727 gve_reset_and_teardown(priv, was_up); in gve_suspend()
2732 priv->up_before_suspend = was_up; in gve_suspend()