Lines Matching refs:root_ht
322 struct tc_u_hnode *root_ht; in u32_init() local
327 root_ht = kzalloc(sizeof(*root_ht), GFP_KERNEL); in u32_init()
328 if (root_ht == NULL) in u32_init()
331 root_ht->divisor = 0; in u32_init()
332 root_ht->refcnt++; in u32_init()
333 root_ht->handle = tp_c ? gen_new_htid(tp_c) : 0x80000000; in u32_init()
334 root_ht->prio = tp->prio; in u32_init()
339 kfree(root_ht); in u32_init()
347 RCU_INIT_POINTER(root_ht->next, tp_c->hlist); in u32_init()
348 rcu_assign_pointer(tp_c->hlist, root_ht); in u32_init()
349 root_ht->tp_c = tp_c; in u32_init()
351 rcu_assign_pointer(tp->root, root_ht); in u32_init()
480 struct tc_u_hnode *root_ht = rtnl_dereference(tp->root); in u32_destroy() local
482 WARN_ON(root_ht == NULL); in u32_destroy()
485 if (root_ht) { in u32_destroy()
486 if (root_ht->refcnt > 1) in u32_destroy()
488 if (root_ht->refcnt == 1) { in u32_destroy()
489 if (!ht_empty(root_ht)) in u32_destroy()
508 if (root_ht && --root_ht->refcnt == 0) in u32_destroy()
509 u32_destroy_hnode(tp, root_ht); in u32_destroy()
538 struct tc_u_hnode *root_ht = rtnl_dereference(tp->root); in u32_delete() local
546 if (root_ht == ht) in u32_delete()