Lines Matching defs:curr_gw
565 struct batadv_gw_node *gw_node, *curr_gw = NULL;
576 if (curr_gw && bw <= max_bw)
579 batadv_gw_node_put(curr_gw);
581 curr_gw = gw_node;
582 kref_get(&curr_gw->refcount);
590 return curr_gw;
605 struct batadv_gw_node *curr_gw, *orig_gw = NULL;
611 curr_gw = batadv_gw_node_get(bat_priv, curr_gw_orig);
612 if (!curr_gw) {
617 if (batadv_v_gw_throughput_get(curr_gw, &gw_throughput) < 0) {
641 batadv_gw_node_put(curr_gw);
664 struct batadv_gw_node *curr_gw = NULL;
676 curr_gw = batadv_gw_get_selected_gw_node(bat_priv);
690 if (curr_gw == gw_node) {
741 batadv_gw_node_put(curr_gw);