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 …]
584 struct batadv_gw_node *gw_node, *curr_gw = NULL; in batadv_v_gw_get_best_gw_node() local595 if (curr_gw && bw <= max_bw) in batadv_v_gw_get_best_gw_node()598 batadv_gw_node_put(curr_gw); in batadv_v_gw_get_best_gw_node()600 curr_gw = gw_node; in batadv_v_gw_get_best_gw_node()601 kref_get(&curr_gw->refcount); in batadv_v_gw_get_best_gw_node()609 return curr_gw; in batadv_v_gw_get_best_gw_node()624 struct batadv_gw_node *curr_gw, *orig_gw = NULL; in batadv_v_gw_is_eligible() local630 curr_gw = batadv_gw_node_get(bat_priv, curr_gw_orig); in batadv_v_gw_is_eligible()631 if (!curr_gw) { in batadv_v_gw_is_eligible()636 if (batadv_v_gw_throughput_get(curr_gw, &gw_throughput) < 0) { in batadv_v_gw_is_eligible()[all …]
2253 struct batadv_gw_node *gw_node, *curr_gw = NULL; in batadv_iv_gw_get_best_gw_node() local2287 batadv_gw_node_put(curr_gw); in batadv_iv_gw_get_best_gw_node()2288 curr_gw = gw_node; in batadv_iv_gw_get_best_gw_node()2289 kref_get(&curr_gw->refcount); in batadv_iv_gw_get_best_gw_node()2301 batadv_gw_node_put(curr_gw); in batadv_iv_gw_get_best_gw_node()2302 curr_gw = gw_node; in batadv_iv_gw_get_best_gw_node()2303 kref_get(&curr_gw->refcount); in batadv_iv_gw_get_best_gw_node()2322 return curr_gw; in batadv_iv_gw_get_best_gw_node()2407 struct batadv_gw_node *curr_gw = NULL; in batadv_iv_gw_dump_entry() local2419 curr_gw = batadv_gw_get_selected_gw_node(bat_priv); in batadv_iv_gw_dump_entry()[all …]
1113 struct batadv_gw_node __rcu *curr_gw; member