Lines Matching refs:root_ht
364 struct tc_u_hnode *root_ht; in u32_init() local
368 root_ht = kzalloc(struct_size(root_ht, ht, 1), GFP_KERNEL); in u32_init()
369 if (root_ht == NULL) in u32_init()
372 refcount_set(&root_ht->refcnt, 1); in u32_init()
373 root_ht->handle = tp_c ? gen_new_htid(tp_c, root_ht) : id2handle(0); in u32_init()
374 root_ht->prio = tp->prio; in u32_init()
375 root_ht->is_root = true; in u32_init()
376 idr_init(&root_ht->handle_idr); in u32_init()
381 kfree(root_ht); in u32_init()
394 RCU_INIT_POINTER(root_ht->next, tp_c->hlist); in u32_init()
395 rcu_assign_pointer(tp_c->hlist, root_ht); in u32_init()
398 rcu_assign_pointer(tp->root, root_ht); in u32_init()
639 struct tc_u_hnode *root_ht = rtnl_dereference(tp->root); in u32_destroy() local
641 WARN_ON(root_ht == NULL); in u32_destroy()
643 if (root_ht && refcount_dec_and_test(&root_ht->refcnt)) in u32_destroy()
644 u32_destroy_hnode(tp, root_ht, extack); in u32_destroy()