Lines Matching refs:refcount
76 if (!kref_get_unless_zero(&orig_node->refcount)) in batadv_orig_hash_find()
123 if (!kref_get_unless_zero(&tmp->refcount)) in batadv_orig_node_vlan_get()
164 kref_init(&vlan->refcount); in batadv_orig_node_vlan_new()
167 kref_get(&vlan->refcount); in batadv_orig_node_vlan_new()
185 orig_vlan = container_of(ref, struct batadv_orig_node_vlan, refcount); in batadv_orig_node_vlan_release()
197 kref_put(&orig_vlan->refcount, batadv_orig_node_vlan_release); in batadv_orig_node_vlan_put()
239 neigh_ifinfo = container_of(ref, struct batadv_neigh_ifinfo, refcount); in batadv_neigh_ifinfo_release()
254 kref_put(&neigh_ifinfo->refcount, batadv_neigh_ifinfo_release); in batadv_neigh_ifinfo_put()
267 refcount); in batadv_hardif_neigh_release()
284 kref_put(&hardif_neigh->refcount, batadv_hardif_neigh_release); in batadv_hardif_neigh_put()
298 neigh_node = container_of(ref, struct batadv_neigh_node, refcount); in batadv_neigh_node_release()
319 kref_put(&neigh_node->refcount, batadv_neigh_node_release); in batadv_neigh_node_put()
348 if (router && !kref_get_unless_zero(&router->refcount)) in batadv_orig_router_get()
376 if (!kref_get_unless_zero(&tmp->refcount)) in batadv_orig_ifinfo_get()
416 kref_get(&if_outgoing->refcount); in batadv_orig_ifinfo_new()
423 kref_init(&orig_ifinfo->refcount); in batadv_orig_ifinfo_new()
425 kref_get(&orig_ifinfo->refcount); in batadv_orig_ifinfo_new()
455 if (!kref_get_unless_zero(&tmp_neigh_ifinfo->refcount)) in batadv_neigh_ifinfo_get()
494 kref_get(&if_outgoing->refcount); in batadv_neigh_ifinfo_new()
497 kref_init(&neigh_ifinfo->refcount); in batadv_neigh_ifinfo_new()
500 kref_get(&neigh_ifinfo->refcount); in batadv_neigh_ifinfo_new()
535 if (!kref_get_unless_zero(&tmp_neigh_node->refcount)) in batadv_neigh_node_get()
573 kref_get(&hard_iface->refcount); in batadv_hardif_neigh_create()
580 kref_init(&hardif_neigh->refcount); in batadv_hardif_neigh_create()
637 if (!kref_get_unless_zero(&tmp_hardif_neigh->refcount)) in batadv_hardif_neigh_get()
685 kref_get(&hard_iface->refcount); in batadv_neigh_node_create()
692 kref_get(&hardif_neigh->refcount); in batadv_neigh_node_create()
696 kref_init(&neigh_node->refcount); in batadv_neigh_node_create()
698 kref_get(&neigh_node->refcount); in batadv_neigh_node_create()
859 orig_ifinfo = container_of(ref, struct batadv_orig_ifinfo, refcount); in batadv_orig_ifinfo_release()
879 kref_put(&orig_ifinfo->refcount, batadv_orig_ifinfo_release); in batadv_orig_ifinfo_put()
914 orig_node = container_of(ref, struct batadv_orig_node, refcount); in batadv_orig_node_release()
958 kref_put(&orig_node->refcount, batadv_orig_node_release); in batadv_orig_node_put()
1034 kref_init(&orig_node->refcount); in batadv_orig_node_new()
1250 if (!kref_get_unless_zero(&neigh->refcount)) in batadv_find_best_neighbor()
1311 if (!kref_get_unless_zero(&hard_iface->refcount)) in batadv_purge_orig_node()