• Home
  • Raw
  • Download

Lines Matching refs:neigh_node

180 	struct batadv_neigh_node *neigh_node;  in batadv_iv_ogm_neigh_new()  local
182 neigh_node = batadv_neigh_node_get_or_create(orig_node, in batadv_iv_ogm_neigh_new()
184 if (!neigh_node) in batadv_iv_ogm_neigh_new()
187 neigh_node->orig_node = orig_neigh; in batadv_iv_ogm_neigh_new()
190 return neigh_node; in batadv_iv_ogm_neigh_new()
929 struct batadv_neigh_node *neigh_node = NULL; in batadv_iv_ogm_orig_update() local
947 if (WARN(neigh_node, "too many matching neigh_nodes")) in batadv_iv_ogm_orig_update()
948 batadv_neigh_node_put(neigh_node); in batadv_iv_ogm_orig_update()
949 neigh_node = tmp_neigh_node; in batadv_iv_ogm_orig_update()
973 if (!neigh_node) { in batadv_iv_ogm_orig_update()
980 neigh_node = batadv_iv_ogm_neigh_new(if_incoming, in batadv_iv_ogm_orig_update()
985 if (!neigh_node) in batadv_iv_ogm_orig_update()
993 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing); in batadv_iv_ogm_orig_update()
997 neigh_node->last_seen = jiffies; in batadv_iv_ogm_orig_update()
999 spin_lock_bh(&neigh_node->ifinfo_lock); in batadv_iv_ogm_orig_update()
1005 spin_unlock_bh(&neigh_node->ifinfo_lock); in batadv_iv_ogm_orig_update()
1016 if (router == neigh_node) in batadv_iv_ogm_orig_update()
1038 sum_neigh = batadv_iv_orig_ifinfo_sum(neigh_node->orig_node, in batadv_iv_ogm_orig_update()
1039 neigh_node->if_incoming); in batadv_iv_ogm_orig_update()
1044 batadv_update_route(bat_priv, orig_node, if_outgoing, neigh_node); in batadv_iv_ogm_orig_update()
1050 if (neigh_node) in batadv_iv_ogm_orig_update()
1051 batadv_neigh_node_put(neigh_node); in batadv_iv_ogm_orig_update()
1077 struct batadv_neigh_node *neigh_node = NULL, *tmp_neigh_node; in batadv_iv_ogm_calc_tq() local
1101 neigh_node = tmp_neigh_node; in batadv_iv_ogm_calc_tq()
1106 if (!neigh_node) in batadv_iv_ogm_calc_tq()
1107 neigh_node = batadv_iv_ogm_neigh_new(if_incoming, in batadv_iv_ogm_calc_tq()
1112 if (!neigh_node) in batadv_iv_ogm_calc_tq()
1117 neigh_node->last_seen = jiffies; in batadv_iv_ogm_calc_tq()
1123 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing); in batadv_iv_ogm_calc_tq()
1198 if (neigh_node) in batadv_iv_ogm_calc_tq()
1199 batadv_neigh_node_put(neigh_node); in batadv_iv_ogm_calc_tq()
1222 struct batadv_neigh_node *neigh_node; in batadv_iv_ogm_update_seqnos() local
1257 hlist_for_each_entry_rcu(neigh_node, &orig_node->neigh_list, list) { in batadv_iv_ogm_update_seqnos()
1258 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, in batadv_iv_ogm_update_seqnos()
1263 neigh_addr = neigh_node->addr; in batadv_iv_ogm_update_seqnos()
1269 neigh_node->if_incoming == if_incoming) { in batadv_iv_ogm_update_seqnos()
1799 struct batadv_neigh_node *neigh_node; in batadv_iv_ogm_orig_print_neigh() local
1802 hlist_for_each_entry_rcu(neigh_node, &orig_node->neigh_list, list) { in batadv_iv_ogm_orig_print_neigh()
1803 n_ifinfo = batadv_neigh_ifinfo_get(neigh_node, if_outgoing); in batadv_iv_ogm_orig_print_neigh()
1808 neigh_node->addr, in batadv_iv_ogm_orig_print_neigh()
1825 struct batadv_neigh_node *neigh_node; in batadv_iv_ogm_orig_print() local
1843 neigh_node = batadv_orig_router_get(orig_node, in batadv_iv_ogm_orig_print()
1845 if (!neigh_node) in batadv_iv_ogm_orig_print()
1848 n_ifinfo = batadv_neigh_ifinfo_get(neigh_node, in batadv_iv_ogm_orig_print()
1864 neigh_node->addr, in batadv_iv_ogm_orig_print()
1865 neigh_node->if_incoming->net_dev->name); in batadv_iv_ogm_orig_print()
1873 batadv_neigh_node_put(neigh_node); in batadv_iv_ogm_orig_print()
1895 batadv_iv_ogm_neigh_get_tq_avg(struct batadv_neigh_node *neigh_node, in batadv_iv_ogm_neigh_get_tq_avg() argument
1901 n_ifinfo = batadv_neigh_ifinfo_get(neigh_node, if_outgoing); in batadv_iv_ogm_neigh_get_tq_avg()
1930 struct batadv_neigh_node *neigh_node, in batadv_iv_ogm_orig_dump_subentry() argument
1939 if (!batadv_iv_ogm_neigh_get_tq_avg(neigh_node, if_outgoing, &tq_avg)) in batadv_iv_ogm_orig_dump_subentry()
1943 if_outgoing != neigh_node->if_incoming) in batadv_iv_ogm_orig_dump_subentry()
1954 neigh_node->addr) || in batadv_iv_ogm_orig_dump_subentry()
1956 neigh_node->if_incoming->net_dev->ifindex) || in batadv_iv_ogm_orig_dump_subentry()
1994 struct batadv_neigh_node *neigh_node; in batadv_iv_ogm_orig_dump_entry() local
2010 hlist_for_each_entry_rcu(neigh_node, &orig_node->neigh_list, list) { in batadv_iv_ogm_orig_dump_entry()
2014 best = (neigh_node == neigh_node_best); in batadv_iv_ogm_orig_dump_entry()
2018 orig_node, neigh_node, in batadv_iv_ogm_orig_dump_entry()