Lines Matching refs:htb_class
94 struct htb_class { struct
108 struct htb_class *parent; /* parent class */ argument
186 static inline struct htb_class *htb_find(u32 handle, struct Qdisc *sch) in htb_find()
194 return container_of(clc, struct htb_class, common); in htb_find()
202 #define HTB_DIRECT ((struct htb_class *)-1L)
219 static struct htb_class *htb_classify(struct sk_buff *skb, struct Qdisc *sch, in htb_classify()
223 struct htb_class *cl; in htb_classify()
288 struct htb_class *cl, int prio) in htb_add_to_id_tree()
293 struct htb_class *c; in htb_add_to_id_tree()
295 c = rb_entry(parent, struct htb_class, node[prio]); in htb_add_to_id_tree()
317 struct htb_class *cl, s64 delay) in htb_add_to_wait_tree()
330 struct htb_class *c; in htb_add_to_wait_tree()
332 c = rb_entry(parent, struct htb_class, pq_node); in htb_add_to_wait_tree()
364 struct htb_class *cl, int mask) in htb_add_class_to_row()
396 struct htb_class *cl, int mask) in htb_remove_class_from_row()
425 static void htb_activate_prios(struct htb_sched *q, struct htb_class *cl) in htb_activate_prios()
427 struct htb_class *p = cl->parent; in htb_activate_prios()
465 static void htb_deactivate_prios(struct htb_sched *q, struct htb_class *cl) in htb_deactivate_prios()
467 struct htb_class *p = cl->parent; in htb_deactivate_prios()
502 static inline s64 htb_lowater(const struct htb_class *cl) in htb_lowater()
509 static inline s64 htb_hiwater(const struct htb_class *cl) in htb_hiwater()
532 htb_class_mode(struct htb_class *cl, s64 *diff) in htb_class_mode()
561 htb_change_class_mode(struct htb_sched *q, struct htb_class *cl, s64 *diff) in htb_change_class_mode()
592 static inline void htb_activate(struct htb_sched *q, struct htb_class *cl) in htb_activate()
610 static inline void htb_deactivate(struct htb_sched *q, struct htb_class *cl) in htb_deactivate()
624 struct htb_class *cl = htb_classify(skb, sch, &ret); in htb_enqueue()
657 static inline void htb_accnt_tokens(struct htb_class *cl, int bytes, s64 diff) in htb_accnt_tokens()
670 static inline void htb_accnt_ctokens(struct htb_class *cl, int bytes, s64 diff) in htb_accnt_ctokens()
698 static void htb_charge_class(struct htb_sched *q, struct htb_class *cl, in htb_charge_class()
757 struct htb_class *cl; in htb_do_events()
764 cl = rb_entry(p, struct htb_class, pq_node); in htb_do_events()
792 struct htb_class *cl = in htb_id_find_next_upper()
793 rb_entry(n, struct htb_class, node[prio]); in htb_id_find_next_upper()
814 static struct htb_class *htb_lookup_leaf(struct htb_prio *hprio, const int prio) in htb_lookup_leaf()
852 struct htb_class *cl; in htb_lookup_leaf()
855 cl = rb_entry(*sp->pptr, struct htb_class, node[prio]); in htb_lookup_leaf()
875 struct htb_class *cl, *start; in htb_dequeue_tree()
893 struct htb_class *next; in htb_dequeue_tree()
1000 struct htb_class *cl; in htb_reset()
1243 struct htb_class *cl = (struct htb_class *)arg; in htb_dump_class()
1290 struct htb_class *cl) in htb_offload_aggregate_stats()
1293 struct htb_class *c; in htb_offload_aggregate_stats()
1300 struct htb_class *p = c; in htb_offload_aggregate_stats()
1322 struct htb_class *cl = (struct htb_class *)arg; in htb_dump_class_stats()
1398 static struct netdev_queue *htb_offload_get_queue(struct htb_class *cl) in htb_offload_get_queue()
1409 static void htb_offload_move_qdisc(struct Qdisc *sch, struct htb_class *cl_old, in htb_offload_move_qdisc()
1410 struct htb_class *cl_new, bool destroying) in htb_offload_move_qdisc()
1445 struct htb_class *cl = (struct htb_class *)arg; in htb_graft()
1480 struct htb_class *cl = (struct htb_class *)arg; in htb_leaf()
1486 struct htb_class *cl = (struct htb_class *)arg; in htb_qlen_notify()
1491 static inline int htb_parent_last_child(struct htb_class *cl) in htb_parent_last_child()
1502 static void htb_parent_to_leaf(struct Qdisc *sch, struct htb_class *cl, in htb_parent_to_leaf()
1506 struct htb_class *parent = cl->parent; in htb_parent_to_leaf()
1538 static int htb_destroy_class_offload(struct Qdisc *sch, struct htb_class *cl, in htb_destroy_class_offload()
1593 struct htb_class *moved_cl = htb_find(classid, sch); in htb_destroy_class_offload()
1601 static void htb_destroy_class(struct Qdisc *sch, struct htb_class *cl) in htb_destroy_class()
1619 struct htb_class *cl; in htb_destroy()
1694 struct htb_class *cl = (struct htb_class *)arg; in htb_delete()
1763 struct htb_class *cl = (struct htb_class *)*arg, *parent; in htb_change_class()
2075 struct htb_class *cl = (struct htb_class *)arg; in htb_tcf_block()
2083 struct htb_class *cl = htb_find(classid, sch); in htb_bind_filter()
2101 struct htb_class *cl = (struct htb_class *)arg; in htb_unbind_filter()
2109 struct htb_class *cl; in htb_walk()