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()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() local177 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() local212 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()[all …]
563 struct batadv_gw_node *gw_node, *curr_gw = NULL; in batadv_v_gw_get_best_gw_node() local574 if (curr_gw && bw <= max_bw) in batadv_v_gw_get_best_gw_node()577 batadv_gw_node_put(curr_gw); in batadv_v_gw_get_best_gw_node()579 curr_gw = gw_node; in batadv_v_gw_get_best_gw_node()580 kref_get(&curr_gw->refcount); in batadv_v_gw_get_best_gw_node()588 return curr_gw; in batadv_v_gw_get_best_gw_node()603 struct batadv_gw_node *curr_gw, *orig_gw = NULL; in batadv_v_gw_is_eligible() local609 curr_gw = batadv_gw_node_get(bat_priv, curr_gw_orig); in batadv_v_gw_is_eligible()610 if (!curr_gw) { in batadv_v_gw_is_eligible()615 if (batadv_v_gw_throughput_get(curr_gw, &gw_throughput) < 0) { in batadv_v_gw_is_eligible()[all …]
2252 struct batadv_gw_node *gw_node, *curr_gw = NULL; in batadv_iv_gw_get_best_gw_node() local2286 batadv_gw_node_put(curr_gw); in batadv_iv_gw_get_best_gw_node()2287 curr_gw = gw_node; in batadv_iv_gw_get_best_gw_node()2288 kref_get(&curr_gw->refcount); in batadv_iv_gw_get_best_gw_node()2300 batadv_gw_node_put(curr_gw); in batadv_iv_gw_get_best_gw_node()2301 curr_gw = gw_node; in batadv_iv_gw_get_best_gw_node()2302 kref_get(&curr_gw->refcount); in batadv_iv_gw_get_best_gw_node()2321 return curr_gw; in batadv_iv_gw_get_best_gw_node()2406 struct batadv_gw_node *curr_gw = NULL; in batadv_iv_gw_dump_entry() local2418 curr_gw = batadv_gw_get_selected_gw_node(bat_priv); in batadv_iv_gw_dump_entry()[all …]
1110 struct batadv_gw_node __rcu *curr_gw; member