Searched refs:curr_gw (Results 1 – 4 of 4) sorted by relevance
85 gw_node = rcu_dereference(bat_priv->gw.curr_gw); in batadv_gw_get_selected_gw_node()139 curr_gw_node = rcu_replace_pointer(bat_priv->gw.curr_gw, new_gw_node, in batadv_gw_select()174 struct batadv_gw_node *curr_gw; in batadv_gw_check_client_stop() local179 curr_gw = batadv_gw_get_selected_gw_node(bat_priv); in batadv_gw_check_client_stop()180 if (!curr_gw) in batadv_gw_check_client_stop()193 batadv_gw_node_put(curr_gw); in batadv_gw_check_client_stop()202 struct batadv_gw_node *curr_gw = NULL; in batadv_gw_election() local214 curr_gw = batadv_gw_get_selected_gw_node(bat_priv); in batadv_gw_election()216 if (!batadv_atomic_dec_not_zero(&bat_priv->gw.reselect) && curr_gw) in batadv_gw_election()225 if (curr_gw == next_gw) in batadv_gw_election()[all …]
747 struct batadv_gw_node *gw_node, *curr_gw = NULL; in batadv_v_gw_get_best_gw_node() local758 if (curr_gw && bw <= max_bw) in batadv_v_gw_get_best_gw_node()761 if (curr_gw) in batadv_v_gw_get_best_gw_node()762 batadv_gw_node_put(curr_gw); in batadv_v_gw_get_best_gw_node()764 curr_gw = gw_node; in batadv_v_gw_get_best_gw_node()765 kref_get(&curr_gw->refcount); in batadv_v_gw_get_best_gw_node()773 return curr_gw; in batadv_v_gw_get_best_gw_node()788 struct batadv_gw_node *curr_gw, *orig_gw = NULL; in batadv_v_gw_is_eligible() local794 curr_gw = batadv_gw_node_get(bat_priv, curr_gw_orig); in batadv_v_gw_is_eligible()795 if (!curr_gw) { in batadv_v_gw_is_eligible()[all …]
2418 struct batadv_gw_node *gw_node, *curr_gw = NULL; in batadv_iv_gw_get_best_gw_node() local2452 if (curr_gw) in batadv_iv_gw_get_best_gw_node()2453 batadv_gw_node_put(curr_gw); in batadv_iv_gw_get_best_gw_node()2454 curr_gw = gw_node; in batadv_iv_gw_get_best_gw_node()2455 kref_get(&curr_gw->refcount); in batadv_iv_gw_get_best_gw_node()2467 if (curr_gw) in batadv_iv_gw_get_best_gw_node()2468 batadv_gw_node_put(curr_gw); in batadv_iv_gw_get_best_gw_node()2469 curr_gw = gw_node; in batadv_iv_gw_get_best_gw_node()2470 kref_get(&curr_gw->refcount); in batadv_iv_gw_get_best_gw_node()2490 return curr_gw; in batadv_iv_gw_get_best_gw_node()[all …]
1123 struct batadv_gw_node __rcu *curr_gw; member