Searched refs:neigh_ifinfo (Results 1 – 3 of 3) sorted by relevance
171 batadv_neigh_ifinfo_release(struct batadv_neigh_ifinfo *neigh_ifinfo) in batadv_neigh_ifinfo_release() argument173 if (neigh_ifinfo->if_outgoing != BATADV_IF_DEFAULT) in batadv_neigh_ifinfo_release()174 batadv_hardif_free_ref(neigh_ifinfo->if_outgoing); in batadv_neigh_ifinfo_release()176 kfree_rcu(neigh_ifinfo, rcu); in batadv_neigh_ifinfo_release()184 void batadv_neigh_ifinfo_free_ref(struct batadv_neigh_ifinfo *neigh_ifinfo) in batadv_neigh_ifinfo_free_ref() argument186 if (atomic_dec_and_test(&neigh_ifinfo->refcount)) in batadv_neigh_ifinfo_free_ref()187 batadv_neigh_ifinfo_release(neigh_ifinfo); in batadv_neigh_ifinfo_free_ref()199 struct batadv_neigh_ifinfo *neigh_ifinfo; in batadv_neigh_node_release() local201 hlist_for_each_entry_safe(neigh_ifinfo, node_tmp, in batadv_neigh_node_release()203 batadv_neigh_ifinfo_free_ref(neigh_ifinfo); in batadv_neigh_node_release()[all …]
1037 struct batadv_neigh_ifinfo *neigh_ifinfo = NULL; in batadv_iv_ogm_orig_update() local1068 neigh_ifinfo = batadv_neigh_ifinfo_get(tmp_neigh_node, in batadv_iv_ogm_orig_update()1070 if (!neigh_ifinfo) in batadv_iv_ogm_orig_update()1074 batadv_ring_buffer_set(neigh_ifinfo->bat_iv.tq_recv, in batadv_iv_ogm_orig_update()1075 &neigh_ifinfo->bat_iv.tq_index, 0); in batadv_iv_ogm_orig_update()1076 tq_avg = batadv_ring_buffer_avg(neigh_ifinfo->bat_iv.tq_recv); in batadv_iv_ogm_orig_update()1077 neigh_ifinfo->bat_iv.tq_avg = tq_avg; in batadv_iv_ogm_orig_update()1080 batadv_neigh_ifinfo_free_ref(neigh_ifinfo); in batadv_iv_ogm_orig_update()1081 neigh_ifinfo = NULL; in batadv_iv_ogm_orig_update()1104 neigh_ifinfo = batadv_neigh_ifinfo_new(neigh_node, if_outgoing); in batadv_iv_ogm_orig_update()[all …]
57 void batadv_neigh_ifinfo_free_ref(struct batadv_neigh_ifinfo *neigh_ifinfo);