Lines Matching refs:clhash

675 void qdisc_class_hash_grow(struct Qdisc *sch, struct Qdisc_class_hash *clhash)  in qdisc_class_hash_grow()  argument
684 if (clhash->hashelems * 4 <= clhash->hashsize * 3) in qdisc_class_hash_grow()
686 nsize = clhash->hashsize * 2; in qdisc_class_hash_grow()
692 ohash = clhash->hash; in qdisc_class_hash_grow()
693 osize = clhash->hashsize; in qdisc_class_hash_grow()
702 clhash->hash = nhash; in qdisc_class_hash_grow()
703 clhash->hashsize = nsize; in qdisc_class_hash_grow()
704 clhash->hashmask = nmask; in qdisc_class_hash_grow()
711 int qdisc_class_hash_init(struct Qdisc_class_hash *clhash) in qdisc_class_hash_init() argument
715 clhash->hash = qdisc_class_hash_alloc(size); in qdisc_class_hash_init()
716 if (!clhash->hash) in qdisc_class_hash_init()
718 clhash->hashsize = size; in qdisc_class_hash_init()
719 clhash->hashmask = size - 1; in qdisc_class_hash_init()
720 clhash->hashelems = 0; in qdisc_class_hash_init()
725 void qdisc_class_hash_destroy(struct Qdisc_class_hash *clhash) in qdisc_class_hash_destroy() argument
727 kvfree(clhash->hash); in qdisc_class_hash_destroy()
731 void qdisc_class_hash_insert(struct Qdisc_class_hash *clhash, in qdisc_class_hash_insert() argument
737 h = qdisc_class_hash(cl->classid, clhash->hashmask); in qdisc_class_hash_insert()
738 hlist_add_head(&cl->hnode, &clhash->hash[h]); in qdisc_class_hash_insert()
739 clhash->hashelems++; in qdisc_class_hash_insert()
743 void qdisc_class_hash_remove(struct Qdisc_class_hash *clhash, in qdisc_class_hash_remove() argument
747 clhash->hashelems--; in qdisc_class_hash_remove()