Searched refs:tp_c (Results 1 – 1 of 1) sorted by relevance
266 static struct tc_u_hnode *u32_lookup_ht(struct tc_u_common *tp_c, u32 handle) in u32_lookup_ht() argument270 for (ht = rtnl_dereference(tp_c->hlist); in u32_lookup_ht()301 struct tc_u_common *tp_c = tp->data; in u32_get() local306 ht = u32_lookup_ht(tp_c, TC_U32_HTID(handle)); in u32_get()318 static u32 gen_new_htid(struct tc_u_common *tp_c, struct tc_u_hnode *ptr) in gen_new_htid() argument320 int id = idr_alloc_cyclic(&tp_c->handle_idr, ptr, 1, 0x7FF, GFP_KERNEL); in gen_new_htid()366 struct tc_u_common *tp_c = tc_u_common_find(key); in u32_init() local373 root_ht->handle = tp_c ? gen_new_htid(tp_c, root_ht) : id2handle(0); in u32_init()378 if (tp_c == NULL) { in u32_init()379 tp_c = kzalloc(sizeof(*tp_c), GFP_KERNEL); in u32_init()[all …]