Lines Matching refs:orig_node
188 void batadv_nc_init_orig(struct batadv_orig_node *orig_node) in batadv_nc_init_orig() argument
190 INIT_LIST_HEAD(&orig_node->in_coding_list); in batadv_nc_init_orig()
191 INIT_LIST_HEAD(&orig_node->out_coding_list); in batadv_nc_init_orig()
192 spin_lock_init(&orig_node->in_coding_list_lock); in batadv_nc_init_orig()
193 spin_lock_init(&orig_node->out_coding_list_lock); in batadv_nc_init_orig()
207 batadv_orig_node_put(nc_node->orig_node); in batadv_nc_node_release()
356 nc_node->addr, nc_node->orig_node->orig); in batadv_nc_purge_orig_nc_nodes()
374 struct batadv_orig_node *orig_node, in batadv_nc_purge_orig() argument
379 batadv_nc_purge_orig_nc_nodes(bat_priv, &orig_node->in_coding_list, in batadv_nc_purge_orig()
380 &orig_node->in_coding_list_lock, in batadv_nc_purge_orig()
384 batadv_nc_purge_orig_nc_nodes(bat_priv, &orig_node->out_coding_list, in batadv_nc_purge_orig()
385 &orig_node->out_coding_list_lock, in batadv_nc_purge_orig()
398 struct batadv_orig_node *orig_node; in batadv_nc_purge_orig_hash() local
409 hlist_for_each_entry_rcu(orig_node, head, hash_entry) in batadv_nc_purge_orig_hash()
410 batadv_nc_purge_orig(bat_priv, orig_node, in batadv_nc_purge_orig_hash()
758 struct batadv_orig_node *orig_node, in batadv_can_nc_with_orig() argument
765 orig_ifinfo = batadv_orig_ifinfo_get(orig_node, BATADV_IF_DEFAULT); in batadv_can_nc_with_orig()
795 batadv_nc_find_nc_node(struct batadv_orig_node *orig_node, in batadv_nc_find_nc_node() argument
810 if (!batadv_compare_eth(nc_node->addr, orig_node->orig)) in batadv_nc_find_nc_node()
838 struct batadv_orig_node *orig_node, in batadv_nc_get_nc_node() argument
858 nc_node = batadv_nc_find_nc_node(orig_node, orig_neigh_node, in_coding); in batadv_nc_get_nc_node()
871 ether_addr_copy(nc_node->addr, orig_node->orig); in batadv_nc_get_nc_node()
873 nc_node->orig_node = orig_neigh_node; in batadv_nc_get_nc_node()
876 nc_node->addr, nc_node->orig_node->orig); in batadv_nc_get_nc_node()
899 struct batadv_orig_node *orig_node, in batadv_nc_update_nc_node() argument
912 if (!test_bit(BATADV_ORIG_CAPA_HAS_NC, &orig_node->capabilities)) in batadv_nc_update_nc_node()
916 if (!batadv_can_nc_with_orig(bat_priv, orig_node, ogm_packet) && in batadv_nc_update_nc_node()
921 in_nc_node = batadv_nc_get_nc_node(bat_priv, orig_node, in batadv_nc_update_nc_node()
930 orig_node, false); in batadv_nc_update_nc_node()
1070 router_neigh = batadv_orig_router_get(neigh_node->orig_node, in batadv_nc_code_packets()
1081 router_coding = batadv_orig_router_get(neigh_tmp->orig_node, in batadv_nc_code_packets()
1331 struct batadv_orig_node *orig_node; in batadv_nc_skb_src_search() local
1335 orig_node = batadv_orig_hash_find(bat_priv, eth_src); in batadv_nc_skb_src_search()
1336 if (!orig_node) in batadv_nc_skb_src_search()
1341 &orig_node->out_coding_list, list) { in batadv_nc_skb_src_search()
1355 batadv_orig_node_put(orig_node); in batadv_nc_skb_src_search()
1413 struct batadv_orig_node *orig_node = neigh_node->orig_node; in batadv_nc_skb_dst_search() local
1418 list_for_each_entry_rcu(nc_node, &orig_node->in_coding_list, list) { in batadv_nc_skb_dst_search()