Home
last modified time | relevance | path

Searched refs:tp_c (Results 1 – 1 of 1) sorted by relevance

/linux/net/sched/
H A Dcls_u32.c265 static struct tc_u_hnode *u32_lookup_ht(struct tc_u_common *tp_c, u32 handle) in u32_lookup_ht() argument
269 for (ht = rtnl_dereference(tp_c->hlist); in u32_lookup_ht()
300 struct tc_u_common *tp_c = tp->data; in u32_get() local
305 ht = u32_lookup_ht(tp_c, TC_U32_HTID(handle)); in u32_get()
317 static u32 gen_new_htid(struct tc_u_common *tp_c, struct tc_u_hnode *ptr) in gen_new_htid() argument
319 int id = idr_alloc_cyclic(&tp_c->handle_idr, ptr, 1, 0x7FF, GFP_KERNEL); in gen_new_htid()
365 struct tc_u_common *tp_c = tc_u_common_find(key); in u32_init() local
372 root_ht->handle = tp_c ? gen_new_htid(tp_c, root_ht) : id2handle(0); in u32_init()
377 if (tp_c == NULL) { in u32_init()
378 tp_c = kzalloc(sizeof(*tp_c), GFP_KERNEL); in u32_init()
[all …]