Lines Matching refs:refcount
65 if (!atomic_inc_not_zero(&tmp->refcount)) in batadv_orig_node_vlan_get()
106 atomic_set(&vlan->refcount, 2); in batadv_orig_node_vlan_new()
124 if (atomic_dec_and_test(&orig_vlan->refcount)) in batadv_orig_node_vlan_free_ref()
173 if (atomic_dec_and_test(&neigh_ifinfo->refcount)) in batadv_neigh_ifinfo_free_ref()
203 if (atomic_dec_and_test(&neigh_node->refcount)) in batadv_neigh_node_free_ref()
233 if (router && !atomic_inc_not_zero(&router->refcount)) in batadv_orig_router_get()
261 if (!atomic_inc_not_zero(&tmp->refcount)) in batadv_orig_ifinfo_get()
301 !atomic_inc_not_zero(&if_outgoing->refcount)) { in batadv_orig_ifinfo_new()
312 atomic_set(&orig_ifinfo->refcount, 2); in batadv_orig_ifinfo_new()
342 if (!atomic_inc_not_zero(&tmp_neigh_ifinfo->refcount)) in batadv_neigh_ifinfo_get()
380 if (if_outgoing && !atomic_inc_not_zero(&if_outgoing->refcount)) { in batadv_neigh_ifinfo_new()
387 atomic_set(&neigh_ifinfo->refcount, 2); in batadv_neigh_ifinfo_new()
427 atomic_set(&neigh_node->refcount, 2); in batadv_neigh_node_new()
458 if (!atomic_inc_not_zero(&tmp_neigh_node->refcount)) in batadv_neigh_node_get()
496 if (atomic_dec_and_test(&orig_ifinfo->refcount)) in batadv_orig_ifinfo_free_ref()
561 if (atomic_dec_and_test(&orig_node->refcount)) in batadv_orig_node_free_ref()
633 atomic_set(&orig_node->refcount, 2); in batadv_orig_node_new()
848 if (!atomic_inc_not_zero(&neigh->refcount)) in batadv_find_best_neighbor()