Lines Matching refs:orig_node

69 	batadv_orig_node_put(gw_node->orig_node);  in batadv_gw_node_release()
107 struct batadv_orig_node *orig_node = NULL; in batadv_gw_get_selected_orig() local
114 orig_node = gw_node->orig_node; in batadv_gw_get_selected_orig()
115 if (!orig_node) in batadv_gw_get_selected_orig()
118 if (!kref_get_unless_zero(&orig_node->refcount)) in batadv_gw_get_selected_orig()
119 orig_node = NULL; in batadv_gw_get_selected_orig()
125 return orig_node; in batadv_gw_get_selected_orig()
227 sprintf(gw_addr, "%pM", next_gw->orig_node->orig); in batadv_gw_election()
229 router = batadv_orig_router_get(next_gw->orig_node, in batadv_gw_election()
252 next_gw->orig_node->orig, in batadv_gw_election()
263 next_gw->orig_node->orig, in batadv_gw_election()
288 struct batadv_orig_node *orig_node) in batadv_gw_check_election() argument
303 if (curr_gw_orig == orig_node) in batadv_gw_check_election()
307 orig_node)) in batadv_gw_check_election()
326 struct batadv_orig_node *orig_node, in batadv_gw_node_add() argument
342 kref_get(&orig_node->refcount); in batadv_gw_node_add()
343 gw_node->orig_node = orig_node; in batadv_gw_node_add()
353 orig_node->orig, in batadv_gw_node_add()
371 struct batadv_orig_node *orig_node) in batadv_gw_node_get() argument
378 if (gw_node_tmp->orig_node != orig_node) in batadv_gw_node_get()
400 struct batadv_orig_node *orig_node, in batadv_gw_node_update() argument
406 gw_node = batadv_gw_node_get(bat_priv, orig_node); in batadv_gw_node_update()
408 batadv_gw_node_add(bat_priv, orig_node, gateway); in batadv_gw_node_update()
420 orig_node->orig, in batadv_gw_node_update()
436 orig_node->orig); in batadv_gw_node_update()
466 struct batadv_orig_node *orig_node) in batadv_gw_node_delete() argument
473 batadv_gw_node_update(bat_priv, orig_node, &gateway); in batadv_gw_node_delete()
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()