Searched refs:tp_c (Results 1 - 1 of 1) sorted by relevance
/linux-4.1.27/net/sched/ |
H A D | cls_u32.c | 78 struct tc_u_common *tp_c; member in struct:tc_u_hnode 253 u32_lookup_ht(struct tc_u_common *tp_c, u32 handle) u32_lookup_ht() argument 257 for (ht = rtnl_dereference(tp_c->hlist); u32_lookup_ht() 289 struct tc_u_common *tp_c = tp->data; u32_get() local 294 ht = u32_lookup_ht(tp_c, TC_U32_HTID(handle)); u32_get() 305 static u32 gen_new_htid(struct tc_u_common *tp_c) gen_new_htid() argument 313 if (++tp_c->hgenerator == 0x7FF) gen_new_htid() 314 tp_c->hgenerator = 1; gen_new_htid() 315 } while (--i > 0 && u32_lookup_ht(tp_c, (tp_c->hgenerator|0x800)<<20)); gen_new_htid() 317 return i > 0 ? (tp_c->hgenerator|0x800)<<20 : 0; gen_new_htid() 323 struct tc_u_common *tp_c; u32_init() local 325 tp_c = tp->q->u32_node; u32_init() 333 root_ht->handle = tp_c ? gen_new_htid(tp_c) : 0x80000000; u32_init() 336 if (tp_c == NULL) { u32_init() 337 tp_c = kzalloc(sizeof(*tp_c), GFP_KERNEL); u32_init() 338 if (tp_c == NULL) { u32_init() 342 tp_c->q = tp->q; u32_init() 343 tp->q->u32_node = tp_c; u32_init() 346 tp_c->refcnt++; u32_init() 347 RCU_INIT_POINTER(root_ht->next, tp_c->hlist); u32_init() 348 rcu_assign_pointer(tp_c->hlist, root_ht); u32_init() 349 root_ht->tp_c = tp_c; u32_init() 352 tp->data = tp_c; u32_init() 444 struct tc_u_common *tp_c = tp->data; u32_destroy_hnode() local 452 hn = &tp_c->hlist; u32_destroy_hnode() 479 struct tc_u_common *tp_c = tp->data; u32_destroy() local 494 if (tp_c->refcnt > 1) u32_destroy() 497 if (tp_c->refcnt == 1) { u32_destroy() 500 for (ht = rtnl_dereference(tp_c->hlist); u32_destroy() 511 if (--tp_c->refcnt == 0) { u32_destroy() 516 for (ht = rtnl_dereference(tp_c->hlist); u32_destroy() 523 while ((ht = rtnl_dereference(tp_c->hlist)) != NULL) { u32_destroy() 524 RCU_INIT_POINTER(tp_c->hlist, ht->next); u32_destroy() 528 kfree(tp_c); u32_destroy() 614 ht_down = u32_lookup_ht(ht->tp_c, handle); u32_set_parms() 650 struct tc_u_common *tp_c, u32_replace_knode() 660 ht = u32_lookup_ht(tp_c, TC_U32_HTID(n->handle)); u32_replace_knode() 730 struct tc_u_common *tp_c = tp->data; u32_change() local 769 u32_replace_knode(tp, tp_c, new); u32_change() 790 ht->tp_c = tp_c; u32_change() 795 RCU_INIT_POINTER(ht->next, tp_c->hlist); u32_change() 796 rcu_assign_pointer(tp_c->hlist, ht); u32_change() 899 struct tc_u_common *tp_c = tp->data; u32_walk() local 907 for (ht = rtnl_dereference(tp_c->hlist); u32_walk() 649 u32_replace_knode(struct tcf_proto *tp, struct tc_u_common *tp_c, struct tc_u_knode *n) u32_replace_knode() argument
|
Completed in 63 milliseconds