• Home
  • Raw
  • Download

Lines Matching refs:neigh_node

265 	struct batadv_neigh_node *neigh_node;  in batadv_neigh_node_release()  local
268 neigh_node = container_of(ref, struct batadv_neigh_node, refcount); in batadv_neigh_node_release()
271 &neigh_node->ifinfo_list, list) { in batadv_neigh_node_release()
275 batadv_hardif_neigh_put(neigh_node->hardif_neigh); in batadv_neigh_node_release()
277 batadv_hardif_put(neigh_node->if_incoming); in batadv_neigh_node_release()
279 kfree_rcu(neigh_node, rcu); in batadv_neigh_node_release()
623 struct batadv_neigh_node *neigh_node; in batadv_neigh_node_create() local
628 neigh_node = batadv_neigh_node_get(orig_node, hard_iface, neigh_addr); in batadv_neigh_node_create()
629 if (neigh_node) in batadv_neigh_node_create()
637 neigh_node = kzalloc(sizeof(*neigh_node), GFP_ATOMIC); in batadv_neigh_node_create()
638 if (!neigh_node) in batadv_neigh_node_create()
641 INIT_HLIST_NODE(&neigh_node->list); in batadv_neigh_node_create()
642 INIT_HLIST_HEAD(&neigh_node->ifinfo_list); in batadv_neigh_node_create()
643 spin_lock_init(&neigh_node->ifinfo_lock); in batadv_neigh_node_create()
646 ether_addr_copy(neigh_node->addr, neigh_addr); in batadv_neigh_node_create()
647 neigh_node->if_incoming = hard_iface; in batadv_neigh_node_create()
648 neigh_node->orig_node = orig_node; in batadv_neigh_node_create()
649 neigh_node->last_seen = jiffies; in batadv_neigh_node_create()
653 neigh_node->hardif_neigh = hardif_neigh; in batadv_neigh_node_create()
656 kref_init(&neigh_node->refcount); in batadv_neigh_node_create()
658 kref_get(&neigh_node->refcount); in batadv_neigh_node_create()
659 hlist_add_head_rcu(&neigh_node->list, &orig_node->neigh_list); in batadv_neigh_node_create()
670 return neigh_node; in batadv_neigh_node_create()
686 struct batadv_neigh_node *neigh_node; in batadv_neigh_node_get_or_create() local
689 neigh_node = batadv_neigh_node_get(orig_node, hard_iface, neigh_addr); in batadv_neigh_node_get_or_create()
690 if (neigh_node) in batadv_neigh_node_get_or_create()
691 return neigh_node; in batadv_neigh_node_get_or_create()
858 struct batadv_neigh_node *neigh_node; in batadv_orig_node_release() local
869 hlist_for_each_entry_safe(neigh_node, node_tmp, in batadv_orig_node_release()
871 hlist_del_rcu(&neigh_node->list); in batadv_orig_node_release()
872 batadv_neigh_node_put(neigh_node); in batadv_orig_node_release()
1122 struct batadv_neigh_node *neigh_node; in batadv_purge_orig_neighbors() local
1130 hlist_for_each_entry_safe(neigh_node, node_tmp, in batadv_purge_orig_neighbors()
1132 last_seen = neigh_node->last_seen; in batadv_purge_orig_neighbors()
1133 if_incoming = neigh_node->if_incoming; in batadv_purge_orig_neighbors()
1144 orig_node->orig, neigh_node->addr, in batadv_purge_orig_neighbors()
1149 orig_node->orig, neigh_node->addr, in batadv_purge_orig_neighbors()
1154 hlist_del_rcu(&neigh_node->list); in batadv_purge_orig_neighbors()
1155 batadv_neigh_node_put(neigh_node); in batadv_purge_orig_neighbors()
1160 batadv_purge_neigh_ifinfo(bat_priv, neigh_node); in batadv_purge_orig_neighbors()