Lines Matching refs:refcount

78 		if (!atomic_inc_not_zero(&tmp->refcount))  in batadv_orig_node_vlan_get()
119 atomic_set(&vlan->refcount, 2); in batadv_orig_node_vlan_new()
137 if (atomic_dec_and_test(&orig_vlan->refcount)) in batadv_orig_node_vlan_free_ref()
186 if (atomic_dec_and_test(&neigh_ifinfo->refcount)) in batadv_neigh_ifinfo_free_ref()
224 if (atomic_dec_and_test(&neigh_node->refcount)) in batadv_neigh_node_free_ref()
254 if (router && !atomic_inc_not_zero(&router->refcount)) in batadv_orig_router_get()
282 if (!atomic_inc_not_zero(&tmp->refcount)) in batadv_orig_ifinfo_get()
322 !atomic_inc_not_zero(&if_outgoing->refcount)) { in batadv_orig_ifinfo_new()
333 atomic_set(&orig_ifinfo->refcount, 2); in batadv_orig_ifinfo_new()
363 if (!atomic_inc_not_zero(&tmp_neigh_ifinfo->refcount)) in batadv_neigh_ifinfo_get()
401 if (if_outgoing && !atomic_inc_not_zero(&if_outgoing->refcount)) { in batadv_neigh_ifinfo_new()
408 atomic_set(&neigh_ifinfo->refcount, 2); in batadv_neigh_ifinfo_new()
444 if (!atomic_inc_not_zero(&tmp_neigh_node->refcount)) in batadv_neigh_node_get()
479 if (!atomic_inc_not_zero(&hard_iface->refcount)) { in batadv_neigh_node_new()
494 atomic_set(&neigh_node->refcount, 2); in batadv_neigh_node_new()
535 if (atomic_dec_and_test(&orig_ifinfo->refcount)) in batadv_orig_ifinfo_free_ref()
600 if (atomic_dec_and_test(&orig_node->refcount)) in batadv_orig_node_free_ref()
672 atomic_set(&orig_node->refcount, 2); in batadv_orig_node_new()
887 if (!atomic_inc_not_zero(&neigh->refcount)) in batadv_find_best_neighbor()