• Home
  • Raw
  • Download

Lines Matching refs:orig_node

195 void batadv_nc_init_orig(struct batadv_orig_node *orig_node)  in batadv_nc_init_orig()  argument
197 INIT_LIST_HEAD(&orig_node->in_coding_list); in batadv_nc_init_orig()
198 INIT_LIST_HEAD(&orig_node->out_coding_list); in batadv_nc_init_orig()
199 spin_lock_init(&orig_node->in_coding_list_lock); in batadv_nc_init_orig()
200 spin_lock_init(&orig_node->out_coding_list_lock); in batadv_nc_init_orig()
214 batadv_orig_node_put(nc_node->orig_node); in batadv_nc_node_release()
363 nc_node->addr, nc_node->orig_node->orig); in batadv_nc_purge_orig_nc_nodes()
381 struct batadv_orig_node *orig_node, in batadv_nc_purge_orig() argument
386 batadv_nc_purge_orig_nc_nodes(bat_priv, &orig_node->in_coding_list, in batadv_nc_purge_orig()
387 &orig_node->in_coding_list_lock, in batadv_nc_purge_orig()
391 batadv_nc_purge_orig_nc_nodes(bat_priv, &orig_node->out_coding_list, in batadv_nc_purge_orig()
392 &orig_node->out_coding_list_lock, in batadv_nc_purge_orig()
405 struct batadv_orig_node *orig_node; in batadv_nc_purge_orig_hash() local
416 hlist_for_each_entry_rcu(orig_node, head, hash_entry) in batadv_nc_purge_orig_hash()
417 batadv_nc_purge_orig(bat_priv, orig_node, in batadv_nc_purge_orig_hash()
765 struct batadv_orig_node *orig_node, in batadv_can_nc_with_orig() argument
772 orig_ifinfo = batadv_orig_ifinfo_get(orig_node, BATADV_IF_DEFAULT); in batadv_can_nc_with_orig()
802 batadv_nc_find_nc_node(struct batadv_orig_node *orig_node, in batadv_nc_find_nc_node() argument
817 if (!batadv_compare_eth(nc_node->addr, orig_node->orig)) in batadv_nc_find_nc_node()
845 struct batadv_orig_node *orig_node, in batadv_nc_get_nc_node() argument
865 nc_node = batadv_nc_find_nc_node(orig_node, orig_neigh_node, in_coding); in batadv_nc_get_nc_node()
878 ether_addr_copy(nc_node->addr, orig_node->orig); in batadv_nc_get_nc_node()
880 nc_node->orig_node = orig_neigh_node; in batadv_nc_get_nc_node()
883 nc_node->addr, nc_node->orig_node->orig); in batadv_nc_get_nc_node()
906 struct batadv_orig_node *orig_node, in batadv_nc_update_nc_node() argument
919 if (!test_bit(BATADV_ORIG_CAPA_HAS_NC, &orig_node->capabilities)) in batadv_nc_update_nc_node()
923 if (!batadv_can_nc_with_orig(bat_priv, orig_node, ogm_packet) && in batadv_nc_update_nc_node()
928 in_nc_node = batadv_nc_get_nc_node(bat_priv, orig_node, in batadv_nc_update_nc_node()
937 orig_node, false); in batadv_nc_update_nc_node()
1079 router_neigh = batadv_orig_router_get(neigh_node->orig_node, in batadv_nc_code_packets()
1090 router_coding = batadv_orig_router_get(neigh_tmp->orig_node, in batadv_nc_code_packets()
1344 struct batadv_orig_node *orig_node; in batadv_nc_skb_src_search() local
1348 orig_node = batadv_orig_hash_find(bat_priv, eth_src); in batadv_nc_skb_src_search()
1349 if (!orig_node) in batadv_nc_skb_src_search()
1354 &orig_node->out_coding_list, list) { in batadv_nc_skb_src_search()
1368 batadv_orig_node_put(orig_node); in batadv_nc_skb_src_search()
1426 struct batadv_orig_node *orig_node = neigh_node->orig_node; in batadv_nc_skb_dst_search() local
1431 list_for_each_entry_rcu(nc_node, &orig_node->in_coding_list, list) { in batadv_nc_skb_dst_search()
1903 struct batadv_orig_node *orig_node; in batadv_nc_nodes_seq_print_text() local
1917 hlist_for_each_entry_rcu(orig_node, head, hash_entry) { in batadv_nc_nodes_seq_print_text()
1921 if (list_empty(&orig_node->in_coding_list) && in batadv_nc_nodes_seq_print_text()
1922 list_empty(&orig_node->out_coding_list)) in batadv_nc_nodes_seq_print_text()
1925 seq_printf(seq, "Node: %pM\n", orig_node->orig); in batadv_nc_nodes_seq_print_text()
1930 &orig_node->in_coding_list, in batadv_nc_nodes_seq_print_text()
1937 &orig_node->out_coding_list, in batadv_nc_nodes_seq_print_text()