• Home
  • Raw
  • Download

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()
126 return orig_node; in batadv_gw_get_selected_orig()
229 sprintf(gw_addr, "%pM", next_gw->orig_node->orig); in batadv_gw_election()
231 router = batadv_orig_router_get(next_gw->orig_node, in batadv_gw_election()
254 next_gw->orig_node->orig, in batadv_gw_election()
265 next_gw->orig_node->orig, in batadv_gw_election()
294 struct batadv_orig_node *orig_node) in batadv_gw_check_election() argument
309 if (curr_gw_orig == orig_node) in batadv_gw_check_election()
313 orig_node)) in batadv_gw_check_election()
333 struct batadv_orig_node *orig_node, in batadv_gw_node_add() argument
349 kref_get(&orig_node->refcount); in batadv_gw_node_add()
350 gw_node->orig_node = orig_node; in batadv_gw_node_add()
360 orig_node->orig, in batadv_gw_node_add()
378 struct batadv_orig_node *orig_node) in batadv_gw_node_get() argument
385 if (gw_node_tmp->orig_node != orig_node) in batadv_gw_node_get()
407 struct batadv_orig_node *orig_node, in batadv_gw_node_update() argument
413 gw_node = batadv_gw_node_get(bat_priv, orig_node); in batadv_gw_node_update()
415 batadv_gw_node_add(bat_priv, orig_node, gateway); in batadv_gw_node_update()
427 orig_node->orig, in batadv_gw_node_update()
443 orig_node->orig); in batadv_gw_node_update()
475 struct batadv_orig_node *orig_node) in batadv_gw_node_delete() argument
482 batadv_gw_node_update(bat_priv, orig_node, &gateway); in batadv_gw_node_delete()
773 if (curr_gw->orig_node == orig_dst_node) in batadv_gw_out_of_range()
780 neigh_curr = batadv_find_router(bat_priv, curr_gw->orig_node, in batadv_gw_out_of_range()