Lines Matching refs:curr_gw
584 struct batadv_gw_node *gw_node, *curr_gw = NULL; in batadv_v_gw_get_best_gw_node() local
595 if (curr_gw && bw <= max_bw) in batadv_v_gw_get_best_gw_node()
598 batadv_gw_node_put(curr_gw); in batadv_v_gw_get_best_gw_node()
600 curr_gw = gw_node; in batadv_v_gw_get_best_gw_node()
601 kref_get(&curr_gw->refcount); in batadv_v_gw_get_best_gw_node()
609 return curr_gw; in batadv_v_gw_get_best_gw_node()
624 struct batadv_gw_node *curr_gw, *orig_gw = NULL; in batadv_v_gw_is_eligible() local
630 curr_gw = batadv_gw_node_get(bat_priv, curr_gw_orig); in batadv_v_gw_is_eligible()
631 if (!curr_gw) { in batadv_v_gw_is_eligible()
636 if (batadv_v_gw_throughput_get(curr_gw, &gw_throughput) < 0) { in batadv_v_gw_is_eligible()
660 batadv_gw_node_put(curr_gw); in batadv_v_gw_is_eligible()
683 struct batadv_gw_node *curr_gw = NULL; in batadv_v_gw_dump_entry() local
695 curr_gw = batadv_gw_get_selected_gw_node(bat_priv); in batadv_v_gw_dump_entry()
709 if (curr_gw == gw_node) { in batadv_v_gw_dump_entry()
760 batadv_gw_node_put(curr_gw); in batadv_v_gw_dump_entry()