clhash 657 net/sched/sch_api.c void qdisc_class_hash_grow(struct Qdisc *sch, struct Qdisc_class_hash *clhash) clhash 666 net/sched/sch_api.c if (clhash->hashelems * 4 <= clhash->hashsize * 3) clhash 668 net/sched/sch_api.c nsize = clhash->hashsize * 2; clhash 674 net/sched/sch_api.c ohash = clhash->hash; clhash 675 net/sched/sch_api.c osize = clhash->hashsize; clhash 684 net/sched/sch_api.c clhash->hash = nhash; clhash 685 net/sched/sch_api.c clhash->hashsize = nsize; clhash 686 net/sched/sch_api.c clhash->hashmask = nmask; clhash 693 net/sched/sch_api.c int qdisc_class_hash_init(struct Qdisc_class_hash *clhash) clhash 697 net/sched/sch_api.c clhash->hash = qdisc_class_hash_alloc(size); clhash 698 net/sched/sch_api.c if (!clhash->hash) clhash 700 net/sched/sch_api.c clhash->hashsize = size; clhash 701 net/sched/sch_api.c clhash->hashmask = size - 1; clhash 702 net/sched/sch_api.c clhash->hashelems = 0; clhash 707 net/sched/sch_api.c void qdisc_class_hash_destroy(struct Qdisc_class_hash *clhash) clhash 709 net/sched/sch_api.c kvfree(clhash->hash); clhash 713 net/sched/sch_api.c void qdisc_class_hash_insert(struct Qdisc_class_hash *clhash, clhash 719 net/sched/sch_api.c h = qdisc_class_hash(cl->classid, clhash->hashmask); clhash 720 net/sched/sch_api.c hlist_add_head(&cl->hnode, &clhash->hash[h]); clhash 721 net/sched/sch_api.c clhash->hashelems++; clhash 725 net/sched/sch_api.c void qdisc_class_hash_remove(struct Qdisc_class_hash *clhash, clhash 729 net/sched/sch_api.c clhash->hashelems--; clhash 133 net/sched/sch_cbq.c struct Qdisc_class_hash clhash; /* Hash table of all classes */ clhash 170 net/sched/sch_cbq.c clc = qdisc_class_find(&q->clhash, classid); clhash 892 net/sched/sch_cbq.c for (h = 0; h < q->clhash.hashsize; h++) { clhash 893 net/sched/sch_cbq.c hlist_for_each_entry(cl, &q->clhash.hash[h], common.hnode) { clhash 932 net/sched/sch_cbq.c for (h = 0; h < q->clhash.hashsize; h++) { clhash 935 net/sched/sch_cbq.c hlist_for_each_entry(c, &q->clhash.hash[h], clhash 983 net/sched/sch_cbq.c qdisc_class_hash_remove(&q->clhash, &this->common); clhash 1012 net/sched/sch_cbq.c qdisc_class_hash_insert(&q->clhash, &this->common); clhash 1045 net/sched/sch_cbq.c for (h = 0; h < q->clhash.hashsize; h++) { clhash 1046 net/sched/sch_cbq.c hlist_for_each_entry(cl, &q->clhash.hash[h], common.hnode) { clhash 1188 net/sched/sch_cbq.c err = qdisc_class_hash_init(&q->clhash); clhash 1462 net/sched/sch_cbq.c for (h = 0; h < q->clhash.hashsize; h++) { clhash 1463 net/sched/sch_cbq.c hlist_for_each_entry(cl, &q->clhash.hash[h], common.hnode) { clhash 1468 net/sched/sch_cbq.c for (h = 0; h < q->clhash.hashsize; h++) { clhash 1469 net/sched/sch_cbq.c hlist_for_each_entry_safe(cl, next, &q->clhash.hash[h], clhash 1473 net/sched/sch_cbq.c qdisc_class_hash_destroy(&q->clhash); clhash 1668 net/sched/sch_cbq.c qdisc_class_hash_grow(sch, &q->clhash); clhash 1760 net/sched/sch_cbq.c for (h = 0; h < q->clhash.hashsize; h++) { clhash 1761 net/sched/sch_cbq.c hlist_for_each_entry(cl, &q->clhash.hash[h], common.hnode) { clhash 36 net/sched/sch_drr.c struct Qdisc_class_hash clhash; clhash 44 net/sched/sch_drr.c clc = qdisc_class_find(&q->clhash, classid); clhash 133 net/sched/sch_drr.c qdisc_class_hash_insert(&q->clhash, &cl->common); clhash 136 net/sched/sch_drr.c qdisc_class_hash_grow(sch, &q->clhash); clhash 160 net/sched/sch_drr.c qdisc_class_hash_remove(&q->clhash, &cl->common); clhash 287 net/sched/sch_drr.c for (i = 0; i < q->clhash.hashsize; i++) { clhash 288 net/sched/sch_drr.c hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { clhash 426 net/sched/sch_drr.c err = qdisc_class_hash_init(&q->clhash); clhash 439 net/sched/sch_drr.c for (i = 0; i < q->clhash.hashsize; i++) { clhash 440 net/sched/sch_drr.c hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { clhash 459 net/sched/sch_drr.c for (i = 0; i < q->clhash.hashsize; i++) { clhash 460 net/sched/sch_drr.c hlist_for_each_entry_safe(cl, next, &q->clhash.hash[i], clhash 464 net/sched/sch_drr.c qdisc_class_hash_destroy(&q->clhash); clhash 172 net/sched/sch_hfsc.c struct Qdisc_class_hash clhash; /* class hash */ clhash 869 net/sched/sch_hfsc.c clc = qdisc_class_find(&q->clhash, classid); clhash 1067 net/sched/sch_hfsc.c qdisc_class_hash_insert(&q->clhash, &cl->cl_common); clhash 1074 net/sched/sch_hfsc.c qdisc_class_hash_grow(sch, &q->clhash); clhash 1107 net/sched/sch_hfsc.c qdisc_class_hash_remove(&q->clhash, &cl->cl_common); clhash 1350 net/sched/sch_hfsc.c for (i = 0; i < q->clhash.hashsize; i++) { clhash 1351 net/sched/sch_hfsc.c hlist_for_each_entry(cl, &q->clhash.hash[i], clhash 1399 net/sched/sch_hfsc.c err = qdisc_class_hash_init(&q->clhash); clhash 1420 net/sched/sch_hfsc.c qdisc_class_hash_insert(&q->clhash, &q->root.cl_common); clhash 1421 net/sched/sch_hfsc.c qdisc_class_hash_grow(sch, &q->clhash); clhash 1481 net/sched/sch_hfsc.c for (i = 0; i < q->clhash.hashsize; i++) { clhash 1482 net/sched/sch_hfsc.c hlist_for_each_entry(cl, &q->clhash.hash[i], cl_common.hnode) clhash 1499 net/sched/sch_hfsc.c for (i = 0; i < q->clhash.hashsize; i++) { clhash 1500 net/sched/sch_hfsc.c hlist_for_each_entry(cl, &q->clhash.hash[i], cl_common.hnode) { clhash 1505 net/sched/sch_hfsc.c for (i = 0; i < q->clhash.hashsize; i++) { clhash 1506 net/sched/sch_hfsc.c hlist_for_each_entry_safe(cl, next, &q->clhash.hash[i], clhash 1510 net/sched/sch_hfsc.c qdisc_class_hash_destroy(&q->clhash); clhash 149 net/sched/sch_htb.c struct Qdisc_class_hash clhash; clhash 185 net/sched/sch_htb.c clc = qdisc_class_find(&q->clhash, handle); clhash 955 net/sched/sch_htb.c for (i = 0; i < q->clhash.hashsize; i++) { clhash 956 net/sched/sch_htb.c hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { clhash 1025 net/sched/sch_htb.c err = qdisc_class_hash_init(&q->clhash); clhash 1234 net/sched/sch_htb.c for (i = 0; i < q->clhash.hashsize; i++) { clhash 1235 net/sched/sch_htb.c hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { clhash 1240 net/sched/sch_htb.c for (i = 0; i < q->clhash.hashsize; i++) { clhash 1241 net/sched/sch_htb.c hlist_for_each_entry_safe(cl, next, &q->clhash.hash[i], clhash 1245 net/sched/sch_htb.c qdisc_class_hash_destroy(&q->clhash); clhash 1276 net/sched/sch_htb.c qdisc_class_hash_remove(&q->clhash, &cl->common); clhash 1432 net/sched/sch_htb.c qdisc_class_hash_insert(&q->clhash, &cl->common); clhash 1490 net/sched/sch_htb.c qdisc_class_hash_grow(sch, &q->clhash); clhash 1544 net/sched/sch_htb.c for (i = 0; i < q->clhash.hashsize; i++) { clhash 1545 net/sched/sch_htb.c hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { clhash 182 net/sched/sch_qfq.c struct Qdisc_class_hash clhash; clhash 211 net/sched/sch_qfq.c clc = qdisc_class_find(&q->clhash, classid); clhash 489 net/sched/sch_qfq.c qdisc_class_hash_insert(&q->clhash, &cl->common); clhash 492 net/sched/sch_qfq.c qdisc_class_hash_grow(sch, &q->clhash); clhash 543 net/sched/sch_qfq.c qdisc_class_hash_remove(&q->clhash, &cl->common); clhash 661 net/sched/sch_qfq.c for (i = 0; i < q->clhash.hashsize; i++) { clhash 662 net/sched/sch_qfq.c hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { clhash 1422 net/sched/sch_qfq.c err = qdisc_class_hash_init(&q->clhash); clhash 1457 net/sched/sch_qfq.c for (i = 0; i < q->clhash.hashsize; i++) { clhash 1458 net/sched/sch_qfq.c hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { clhash 1478 net/sched/sch_qfq.c for (i = 0; i < q->clhash.hashsize; i++) { clhash 1479 net/sched/sch_qfq.c hlist_for_each_entry_safe(cl, next, &q->clhash.hash[i], clhash 1484 net/sched/sch_qfq.c qdisc_class_hash_destroy(&q->clhash);