Lines Matching refs:curr_gw
747 struct batadv_gw_node *gw_node, *curr_gw = NULL;
758 if (curr_gw && bw <= max_bw)
761 if (curr_gw)
762 batadv_gw_node_put(curr_gw);
764 curr_gw = gw_node;
765 kref_get(&curr_gw->refcount);
773 return curr_gw;
788 struct batadv_gw_node *curr_gw, *orig_gw = NULL;
794 curr_gw = batadv_gw_node_get(bat_priv, curr_gw_orig);
795 if (!curr_gw) {
800 if (batadv_v_gw_throughput_get(curr_gw, &gw_throughput) < 0) {
824 if (curr_gw)
825 batadv_gw_node_put(curr_gw);
838 struct batadv_gw_node *curr_gw;
851 curr_gw = batadv_gw_get_selected_gw_node(bat_priv);
854 (curr_gw == gw_node ? "=>" : " "),
865 if (curr_gw)
866 batadv_gw_node_put(curr_gw);
921 struct batadv_gw_node *curr_gw = NULL;
933 curr_gw = batadv_gw_get_selected_gw_node(bat_priv);
947 if (curr_gw == gw_node) {
992 if (curr_gw)
993 batadv_gw_node_put(curr_gw);