• Home
  • Raw
  • Download

Lines Matching refs:neigh_ifinfo

171 batadv_neigh_ifinfo_release(struct batadv_neigh_ifinfo *neigh_ifinfo)  in batadv_neigh_ifinfo_release()  argument
173 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() argument
186 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() local
201 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()
348 struct batadv_neigh_ifinfo *neigh_ifinfo = NULL, in batadv_neigh_ifinfo_get() local
360 neigh_ifinfo = tmp_neigh_ifinfo; in batadv_neigh_ifinfo_get()
365 return neigh_ifinfo; in batadv_neigh_ifinfo_get()
383 struct batadv_neigh_ifinfo *neigh_ifinfo; in batadv_neigh_ifinfo_new() local
387 neigh_ifinfo = batadv_neigh_ifinfo_get(neigh, if_outgoing); in batadv_neigh_ifinfo_new()
388 if (neigh_ifinfo) in batadv_neigh_ifinfo_new()
391 neigh_ifinfo = kzalloc(sizeof(*neigh_ifinfo), GFP_ATOMIC); in batadv_neigh_ifinfo_new()
392 if (!neigh_ifinfo) in batadv_neigh_ifinfo_new()
396 kfree(neigh_ifinfo); in batadv_neigh_ifinfo_new()
397 neigh_ifinfo = NULL; in batadv_neigh_ifinfo_new()
401 INIT_HLIST_NODE(&neigh_ifinfo->list); in batadv_neigh_ifinfo_new()
402 atomic_set(&neigh_ifinfo->refcount, 2); in batadv_neigh_ifinfo_new()
403 neigh_ifinfo->if_outgoing = if_outgoing; in batadv_neigh_ifinfo_new()
405 hlist_add_head_rcu(&neigh_ifinfo->list, &neigh->ifinfo_list); in batadv_neigh_ifinfo_new()
410 return neigh_ifinfo; in batadv_neigh_ifinfo_new()
735 struct batadv_neigh_ifinfo *neigh_ifinfo; in batadv_purge_neigh_ifinfo() local
742 hlist_for_each_entry_safe(neigh_ifinfo, node_tmp, in batadv_purge_neigh_ifinfo()
744 if_outgoing = neigh_ifinfo->if_outgoing; in batadv_purge_neigh_ifinfo()
760 hlist_del_rcu(&neigh_ifinfo->list); in batadv_purge_neigh_ifinfo()
761 batadv_neigh_ifinfo_free_ref(neigh_ifinfo); in batadv_purge_neigh_ifinfo()