Lines Matching refs:hfsc_class

111 struct hfsc_class;
112 TAILQ_HEAD(hfsc_eligible, hfsc_class);
113 TAILQ_HEAD(hfsc_active, hfsc_class);
116 struct hfsc_class { struct
121 struct hfsc_class *cl_parent; /* parent class */ argument
122 struct hfsc_class *cl_siblings; /* sibling classes */ argument
123 struct hfsc_class *cl_children; /* child classes */ argument
168 TAILQ_ENTRY(hfsc_class) cl_actlist; /* active children list entry */ argument
169 TAILQ_ENTRY(hfsc_class) cl_ellist; /* eligible list entry */
183 struct hfsc_class *hif_rootclass; /* root class */ argument
184 struct hfsc_class *hif_defaultclass; /* default class */
185 struct hfsc_class **hif_class_tbl;
200 struct hfsc_class *hfsc_class_create(struct hfsc_if *,
202 struct hfsc_sc *, struct hfsc_class *, int,
205 struct hfsc_class *);
206 struct hfsc_class *hfsc_nextclass(struct hfsc_class *);
208 void hfsc_cl_purge(struct hfsc_if *, struct hfsc_class *,
211 void hfsc_update_sc(struct hfsc_if *, struct hfsc_class *, int);
213 void hfsc_update_cfmin(struct hfsc_class *);
214 void hfsc_set_active(struct hfsc_if *, struct hfsc_class *, int);
215 void hfsc_set_passive(struct hfsc_if *, struct hfsc_class *);
216 void hfsc_init_ed(struct hfsc_if *, struct hfsc_class *, int);
217 void hfsc_update_ed(struct hfsc_if *, struct hfsc_class *, int);
218 void hfsc_update_d(struct hfsc_class *, int);
219 void hfsc_init_vf(struct hfsc_class *, int);
220 void hfsc_update_vf(struct hfsc_class *, int, u_int64_t);
221 void hfsc_ellist_insert(struct hfsc_if *, struct hfsc_class *);
222 void hfsc_ellist_remove(struct hfsc_if *, struct hfsc_class *);
223 void hfsc_ellist_update(struct hfsc_if *, struct hfsc_class *);
224 struct hfsc_class *hfsc_ellist_get_mindl(struct hfsc_if *, u_int64_t);
225 void hfsc_actlist_insert(struct hfsc_class *);
226 void hfsc_actlist_remove(struct hfsc_class *);
227 void hfsc_actlist_update(struct hfsc_class *);
229 struct hfsc_class *hfsc_actlist_firstfit(struct hfsc_class *,
248 void hfsc_getclstats(struct hfsc_class_stats *, struct hfsc_class *);
249 struct hfsc_class *hfsc_clh2cph(struct hfsc_if *, u_int32_t);
315 hfsc_class_qlength(struct hfsc_class *cl) in hfsc_class_qlength()
324 hfsc_class_enqueue(struct hfsc_class *cl, struct mbuf *m) in hfsc_class_enqueue()
330 hfsc_class_deq_begin(struct hfsc_class *cl, struct mbuf_list *ml) in hfsc_class_deq_begin()
336 hfsc_class_deq_commit(struct hfsc_class *cl, struct mbuf *m) in hfsc_class_deq_commit()
342 hfsc_class_purge(struct hfsc_class *cl, struct mbuf_list *ml) in hfsc_class_purge()
360 struct hfsc_class **newtbl, **old; in hfsc_grow_class_tbl()
377 pool_init(&hfsc_class_pl, sizeof(struct hfsc_class), 0, in hfsc_initialize()
405 struct hfsc_class *cl, *parent, *np = NULL; in hfsc_pf_addqueue()
482 struct hfsc_class *cl; in hfsc_pf_qstats()
587 struct hfsc_class *cl; in hfsc_free()
612 struct hfsc_class *cl; in hfsc_purge()
618 struct hfsc_class *
620 struct hfsc_sc *fsc, struct hfsc_sc *usc, struct hfsc_class *parent, in hfsc_class_create()
623 struct hfsc_class *cl, *p; in hfsc_class_create()
719 hfsc_class_destroy(struct hfsc_if *hif, struct hfsc_class *cl) in hfsc_class_destroy()
733 struct hfsc_class *p = cl->cl_parent->cl_children; in hfsc_class_destroy()
782 struct hfsc_class *
783 hfsc_nextclass(struct hfsc_class *cl) in hfsc_nextclass()
804 struct hfsc_class *cl; in hfsc_enq()
835 struct hfsc_class *cl, *tcl; in hfsc_deq_begin()
890 struct hfsc_class *cl = cookie; in hfsc_deq_commit()
899 hfsc_update_sc(struct hfsc_if *hif, struct hfsc_class *cl, int len) in hfsc_update_sc()
959 hfsc_cl_purge(struct hfsc_if *hif, struct hfsc_class *cl, struct mbuf_list *ml) in hfsc_cl_purge()
974 hfsc_set_active(struct hfsc_if *hif, struct hfsc_class *cl, int len) in hfsc_set_active()
985 hfsc_set_passive(struct hfsc_if *hif, struct hfsc_class *cl) in hfsc_set_passive()
997 hfsc_init_ed(struct hfsc_if *hif, struct hfsc_class *cl, int next_len) in hfsc_init_ed()
1025 hfsc_update_ed(struct hfsc_if *hif, struct hfsc_class *cl, int next_len) in hfsc_update_ed()
1034 hfsc_update_d(struct hfsc_class *cl, int next_len) in hfsc_update_d()
1040 hfsc_init_vf(struct hfsc_class *cl, int len) in hfsc_init_vf()
1042 struct hfsc_class *max_cl, *p; in hfsc_init_vf()
1132 hfsc_update_vf(struct hfsc_class *cl, int len, u_int64_t cur_time) in hfsc_update_vf()
1217 hfsc_update_cfmin(struct hfsc_class *cl) in hfsc_update_cfmin()
1219 struct hfsc_class *p; in hfsc_update_cfmin()
1243 hfsc_ellist_insert(struct hfsc_if *hif, struct hfsc_class *cl) in hfsc_ellist_insert()
1245 struct hfsc_class *p; in hfsc_ellist_insert()
1263 hfsc_ellist_remove(struct hfsc_if *hif, struct hfsc_class *cl) in hfsc_ellist_remove()
1269 hfsc_ellist_update(struct hfsc_if *hif, struct hfsc_class *cl) in hfsc_ellist_update()
1271 struct hfsc_class *p, *last; in hfsc_ellist_update()
1303 struct hfsc_class *
1306 struct hfsc_class *p, *cl = NULL; in hfsc_ellist_get_mindl()
1323 hfsc_actlist_insert(struct hfsc_class *cl) in hfsc_actlist_insert()
1325 struct hfsc_class *p; in hfsc_actlist_insert()
1343 hfsc_actlist_remove(struct hfsc_class *cl) in hfsc_actlist_remove()
1349 hfsc_actlist_update(struct hfsc_class *cl) in hfsc_actlist_update()
1351 struct hfsc_class *p, *last; in hfsc_actlist_update()
1383 struct hfsc_class *
1384 hfsc_actlist_firstfit(struct hfsc_class *cl, u_int64_t cur_time) in hfsc_actlist_firstfit()
1386 struct hfsc_class *p; in hfsc_actlist_firstfit()
1642 hfsc_getclstats(struct hfsc_class_stats *sp, struct hfsc_class *cl) in hfsc_getclstats()
1708 struct hfsc_class *
1712 struct hfsc_class *cl; in hfsc_clh2cph()