Lines Matching refs:curr_gw
757 struct batadv_gw_node *gw_node, *curr_gw = NULL; in batadv_v_gw_get_best_gw_node() local
768 if (curr_gw && bw <= max_bw) in batadv_v_gw_get_best_gw_node()
771 if (curr_gw) in batadv_v_gw_get_best_gw_node()
772 batadv_gw_node_put(curr_gw); in batadv_v_gw_get_best_gw_node()
774 curr_gw = gw_node; in batadv_v_gw_get_best_gw_node()
775 kref_get(&curr_gw->refcount); in batadv_v_gw_get_best_gw_node()
783 return curr_gw; in batadv_v_gw_get_best_gw_node()
798 struct batadv_gw_node *curr_gw, *orig_gw = NULL; in batadv_v_gw_is_eligible() local
804 curr_gw = batadv_gw_node_get(bat_priv, curr_gw_orig); in batadv_v_gw_is_eligible()
805 if (!curr_gw) { in batadv_v_gw_is_eligible()
810 if (batadv_v_gw_throughput_get(curr_gw, &gw_throughput) < 0) { in batadv_v_gw_is_eligible()
834 if (curr_gw) in batadv_v_gw_is_eligible()
835 batadv_gw_node_put(curr_gw); in batadv_v_gw_is_eligible()
848 struct batadv_gw_node *curr_gw; in batadv_v_gw_write_buffer_text() local
861 curr_gw = batadv_gw_get_selected_gw_node(bat_priv); in batadv_v_gw_write_buffer_text()
864 (curr_gw == gw_node ? "=>" : " "), in batadv_v_gw_write_buffer_text()
875 if (curr_gw) in batadv_v_gw_write_buffer_text()
876 batadv_gw_node_put(curr_gw); in batadv_v_gw_write_buffer_text()
930 struct batadv_gw_node *curr_gw = NULL; in batadv_v_gw_dump_entry() local
942 curr_gw = batadv_gw_get_selected_gw_node(bat_priv); in batadv_v_gw_dump_entry()
953 if (curr_gw == gw_node) { in batadv_v_gw_dump_entry()
998 if (curr_gw) in batadv_v_gw_dump_entry()
999 batadv_gw_node_put(curr_gw); in batadv_v_gw_dump_entry()