Lines Matching refs:curr_gw

85 	gw_node = rcu_dereference(bat_priv->gw.curr_gw);  in batadv_gw_get_selected_gw_node()
138 curr_gw_node = rcu_replace_pointer(bat_priv->gw.curr_gw, new_gw_node, in batadv_gw_select()
172 struct batadv_gw_node *curr_gw; in batadv_gw_check_client_stop() local
177 curr_gw = batadv_gw_get_selected_gw_node(bat_priv); in batadv_gw_check_client_stop()
178 if (!curr_gw) in batadv_gw_check_client_stop()
191 batadv_gw_node_put(curr_gw); in batadv_gw_check_client_stop()
200 struct batadv_gw_node *curr_gw = NULL; in batadv_gw_election() local
212 curr_gw = batadv_gw_get_selected_gw_node(bat_priv); in batadv_gw_election()
214 if (!batadv_atomic_dec_not_zero(&bat_priv->gw.reselect) && curr_gw) in batadv_gw_election()
223 if (curr_gw == next_gw) in batadv_gw_election()
244 if (curr_gw && !next_gw) { in batadv_gw_election()
249 } else if (!curr_gw && next_gw) { in batadv_gw_election()
276 batadv_gw_node_put(curr_gw); in batadv_gw_election()
403 struct batadv_gw_node *gw_node, *curr_gw = NULL; in batadv_gw_node_update() local
449 curr_gw = batadv_gw_get_selected_gw_node(bat_priv); in batadv_gw_node_update()
450 if (gw_node == curr_gw) in batadv_gw_node_update()
453 batadv_gw_node_put(curr_gw); in batadv_gw_node_update()
690 struct batadv_gw_node *curr_gw = NULL; in batadv_gw_out_of_range() local
719 curr_gw = batadv_gw_get_selected_gw_node(bat_priv); in batadv_gw_out_of_range()
720 if (!curr_gw) in batadv_gw_out_of_range()
724 if (curr_gw->orig_node == orig_dst_node) in batadv_gw_out_of_range()
731 neigh_curr = batadv_find_router(bat_priv, curr_gw->orig_node, in batadv_gw_out_of_range()
764 batadv_gw_node_put(curr_gw); in batadv_gw_out_of_range()