Lines Matching refs:orig_node
59 struct batadv_orig_node *orig_node; in batadv_v_ogm_orig_get() local
62 orig_node = batadv_orig_hash_find(bat_priv, addr); in batadv_v_ogm_orig_get()
63 if (orig_node) in batadv_v_ogm_orig_get()
64 return orig_node; in batadv_v_ogm_orig_get()
66 orig_node = batadv_orig_node_new(bat_priv, addr); in batadv_v_ogm_orig_get()
67 if (!orig_node) in batadv_v_ogm_orig_get()
70 kref_get(&orig_node->refcount); in batadv_v_ogm_orig_get()
72 batadv_choose_orig, orig_node, in batadv_v_ogm_orig_get()
73 &orig_node->hash_entry); in batadv_v_ogm_orig_get()
76 batadv_orig_node_put(orig_node); in batadv_v_ogm_orig_get()
77 batadv_orig_node_put(orig_node); in batadv_v_ogm_orig_get()
78 orig_node = NULL; in batadv_v_ogm_orig_get()
81 return orig_node; in batadv_v_ogm_orig_get()
519 struct batadv_orig_node *orig_node, in batadv_v_ogm_forward() argument
537 orig_ifinfo = batadv_orig_ifinfo_new(orig_node, if_outgoing); in batadv_v_ogm_forward()
542 router = batadv_orig_router_get(orig_node, if_outgoing); in batadv_v_ogm_forward()
608 struct batadv_orig_node *orig_node, in batadv_v_ogm_metric_update() argument
620 orig_ifinfo = batadv_orig_ifinfo_new(orig_node, if_outgoing); in batadv_v_ogm_metric_update()
626 if (!hlist_empty(&orig_node->neigh_list) && in batadv_v_ogm_metric_update()
648 orig_node->last_seen = jiffies; in batadv_v_ogm_metric_update()
690 struct batadv_orig_node *orig_node, in batadv_v_ogm_route_update() argument
715 router = batadv_orig_router_get(orig_node, if_outgoing); in batadv_v_ogm_route_update()
716 if (router && router->orig_node != orig_node && !orig_neigh_router) { in batadv_v_ogm_route_update()
759 batadv_update_route(bat_priv, orig_node, if_outgoing, neigh_node); in batadv_v_ogm_route_update()
784 struct batadv_orig_node *orig_node, in batadv_v_ogm_process_per_outif() argument
793 seqno_age = batadv_v_ogm_metric_update(bat_priv, ogm2, orig_node, in batadv_v_ogm_process_per_outif()
803 batadv_tvlv_containers_process(bat_priv, true, orig_node, in batadv_v_ogm_process_per_outif()
809 forward = batadv_v_ogm_route_update(bat_priv, ethhdr, ogm2, orig_node, in batadv_v_ogm_process_per_outif()
815 batadv_v_ogm_forward(bat_priv, ogm2, orig_node, neigh_node, in batadv_v_ogm_process_per_outif()
856 struct batadv_orig_node *orig_node = NULL; in batadv_v_ogm_process() local
899 orig_node = batadv_v_ogm_orig_get(bat_priv, ogm_packet->orig); in batadv_v_ogm_process()
900 if (!orig_node) in batadv_v_ogm_process()
903 neigh_node = batadv_neigh_node_get_or_create(orig_node, if_incoming, in batadv_v_ogm_process()
919 batadv_v_ogm_process_per_outif(bat_priv, ethhdr, ogm_packet, orig_node, in batadv_v_ogm_process()
964 orig_node, neigh_node, in batadv_v_ogm_process()
971 batadv_orig_node_put(orig_node); in batadv_v_ogm_process()