Lines Matching refs:tt_req_node
2572 struct batadv_tt_req_node *tt_req_node; in batadv_tt_req_node_release() local
2574 tt_req_node = container_of(ref, struct batadv_tt_req_node, refcount); in batadv_tt_req_node_release()
2576 kmem_cache_free(batadv_tt_req_cache, tt_req_node); in batadv_tt_req_node_release()
2584 static void batadv_tt_req_node_put(struct batadv_tt_req_node *tt_req_node) in batadv_tt_req_node_put() argument
2586 if (!tt_req_node) in batadv_tt_req_node_put()
2589 kref_put(&tt_req_node->refcount, batadv_tt_req_node_release); in batadv_tt_req_node_put()
2656 struct batadv_tt_req_node *tt_req_node_tmp, *tt_req_node = NULL; in batadv_tt_req_node_new() local
2666 tt_req_node = kmem_cache_alloc(batadv_tt_req_cache, GFP_ATOMIC); in batadv_tt_req_node_new()
2667 if (!tt_req_node) in batadv_tt_req_node_new()
2670 kref_init(&tt_req_node->refcount); in batadv_tt_req_node_new()
2671 ether_addr_copy(tt_req_node->addr, orig_node->orig); in batadv_tt_req_node_new()
2672 tt_req_node->issued_at = jiffies; in batadv_tt_req_node_new()
2674 kref_get(&tt_req_node->refcount); in batadv_tt_req_node_new()
2675 hlist_add_head(&tt_req_node->list, &bat_priv->tt.req_list); in batadv_tt_req_node_new()
2678 return tt_req_node; in batadv_tt_req_node_new()
2919 struct batadv_tt_req_node *tt_req_node = NULL; in batadv_send_tt_request() local
2932 tt_req_node = batadv_tt_req_node_new(bat_priv, dst_orig_node); in batadv_send_tt_request()
2933 if (!tt_req_node) in batadv_send_tt_request()
2972 if (ret && tt_req_node) { in batadv_send_tt_request()
2974 if (!hlist_unhashed(&tt_req_node->list)) { in batadv_send_tt_request()
2975 hlist_del_init(&tt_req_node->list); in batadv_send_tt_request()
2976 batadv_tt_req_node_put(tt_req_node); in batadv_send_tt_request()
2981 batadv_tt_req_node_put(tt_req_node); in batadv_send_tt_request()