Lines Matching refs:refcount
87 if (!kref_get_unless_zero(&orig_node->refcount)) in batadv_orig_hash_find()
134 if (!kref_get_unless_zero(&tmp->refcount)) in batadv_orig_node_vlan_get()
175 kref_init(&vlan->refcount); in batadv_orig_node_vlan_new()
178 kref_get(&vlan->refcount); in batadv_orig_node_vlan_new()
196 orig_vlan = container_of(ref, struct batadv_orig_node_vlan, refcount); in batadv_orig_node_vlan_release()
208 kref_put(&orig_vlan->refcount, batadv_orig_node_vlan_release); in batadv_orig_node_vlan_put()
250 neigh_ifinfo = container_of(ref, struct batadv_neigh_ifinfo, refcount); in batadv_neigh_ifinfo_release()
265 kref_put(&neigh_ifinfo->refcount, batadv_neigh_ifinfo_release); in batadv_neigh_ifinfo_put()
278 refcount); in batadv_hardif_neigh_release()
295 kref_put(&hardif_neigh->refcount, batadv_hardif_neigh_release); in batadv_hardif_neigh_put()
309 neigh_node = container_of(ref, struct batadv_neigh_node, refcount); in batadv_neigh_node_release()
330 kref_put(&neigh_node->refcount, batadv_neigh_node_release); in batadv_neigh_node_put()
359 if (router && !kref_get_unless_zero(&router->refcount)) in batadv_orig_router_get()
387 if (!kref_get_unless_zero(&tmp->refcount)) in batadv_orig_ifinfo_get()
427 kref_get(&if_outgoing->refcount); in batadv_orig_ifinfo_new()
434 kref_init(&orig_ifinfo->refcount); in batadv_orig_ifinfo_new()
436 kref_get(&orig_ifinfo->refcount); in batadv_orig_ifinfo_new()
466 if (!kref_get_unless_zero(&tmp_neigh_ifinfo->refcount)) in batadv_neigh_ifinfo_get()
505 kref_get(&if_outgoing->refcount); in batadv_neigh_ifinfo_new()
508 kref_init(&neigh_ifinfo->refcount); in batadv_neigh_ifinfo_new()
511 kref_get(&neigh_ifinfo->refcount); in batadv_neigh_ifinfo_new()
546 if (!kref_get_unless_zero(&tmp_neigh_node->refcount)) in batadv_neigh_node_get()
584 kref_get(&hard_iface->refcount); in batadv_hardif_neigh_create()
591 kref_init(&hardif_neigh->refcount); in batadv_hardif_neigh_create()
648 if (!kref_get_unless_zero(&tmp_hardif_neigh->refcount)) in batadv_hardif_neigh_get()
696 kref_get(&hard_iface->refcount); in batadv_neigh_node_create()
703 kref_get(&hardif_neigh->refcount); in batadv_neigh_node_create()
707 kref_init(&neigh_node->refcount); in batadv_neigh_node_create()
709 kref_get(&neigh_node->refcount); in batadv_neigh_node_create()
870 orig_ifinfo = container_of(ref, struct batadv_orig_ifinfo, refcount); in batadv_orig_ifinfo_release()
890 kref_put(&orig_ifinfo->refcount, batadv_orig_ifinfo_release); in batadv_orig_ifinfo_put()
928 orig_node = container_of(ref, struct batadv_orig_node, refcount); in batadv_orig_node_release()
972 kref_put(&orig_node->refcount, batadv_orig_node_release); in batadv_orig_node_put()
1048 kref_init(&orig_node->refcount); in batadv_orig_node_new()
1263 if (!kref_get_unless_zero(&neigh->refcount)) in batadv_find_best_neighbor()
1324 if (!kref_get_unless_zero(&hard_iface->refcount)) in batadv_purge_orig_node()