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);
2124 static void gve_reset_and_teardown(struct gve_priv *priv, bool was_up) in gve_reset_and_teardown() argument
2128 if (was_up) in gve_reset_and_teardown()
2133 static int gve_reset_recovery(struct gve_priv *priv, bool was_up) in gve_reset_recovery() argument
2140 if (was_up) { in gve_reset_recovery()
2154 bool was_up = netif_carrier_ok(priv->dev); in gve_reset() local
2165 gve_reset_and_teardown(priv, was_up); in gve_reset()
2168 if (was_up) { in gve_reset()
2172 gve_reset_and_teardown(priv, was_up); in gve_reset()
2179 err = gve_reset_recovery(priv, was_up); in gve_reset()
2358 bool was_up = netif_carrier_ok(priv->dev); in gve_shutdown() local
2361 if (was_up && gve_close(priv->dev)) { in gve_shutdown()
2363 gve_reset_and_teardown(priv, was_up); in gve_shutdown()
2376 bool was_up = netif_carrier_ok(priv->dev); in gve_suspend() local
2380 if (was_up && gve_close(priv->dev)) { in gve_suspend()
2382 gve_reset_and_teardown(priv, was_up); in gve_suspend()
2387 priv->up_before_suspend = was_up; in gve_suspend()