• Home
  • Raw
  • Download

Lines Matching refs:prio

90 	int prio;		/* these two are used only by leaves... */  member
251 struct htb_class *cl, int prio) in htb_add_to_id_tree() argument
258 c = rb_entry(parent, struct htb_class, node[prio]); in htb_add_to_id_tree()
265 rb_link_node(&cl->node[prio], parent, p); in htb_add_to_id_tree()
266 rb_insert_color(&cl->node[prio], root); in htb_add_to_id_tree()
324 int prio = ffz(~mask); in htb_add_class_to_row() local
325 mask &= ~(1 << prio); in htb_add_class_to_row()
326 htb_add_to_id_tree(q->row[cl->level] + prio, cl, prio); in htb_add_class_to_row()
354 int prio = ffz(~mask); in htb_remove_class_from_row() local
356 mask &= ~(1 << prio); in htb_remove_class_from_row()
357 if (q->ptr[cl->level][prio] == cl->node + prio) in htb_remove_class_from_row()
358 htb_next_rb_node(q->ptr[cl->level] + prio); in htb_remove_class_from_row()
360 htb_safe_rb_erase(cl->node + prio, q->row[cl->level] + prio); in htb_remove_class_from_row()
361 if (!q->row[cl->level][prio].rb_node) in htb_remove_class_from_row()
362 m |= 1 << prio; in htb_remove_class_from_row()
382 int prio = ffz(~m); in htb_activate_prios() local
383 m &= ~(1 << prio); in htb_activate_prios()
385 if (p->un.inner.feed[prio].rb_node) in htb_activate_prios()
389 mask &= ~(1 << prio); in htb_activate_prios()
391 htb_add_to_id_tree(p->un.inner.feed + prio, cl, prio); in htb_activate_prios()
418 int prio = ffz(~m); in htb_deactivate_prios() local
419 m &= ~(1 << prio); in htb_deactivate_prios()
421 if (p->un.inner.ptr[prio] == cl->node + prio) { in htb_deactivate_prios()
426 p->un.inner.last_ptr_id[prio] = cl->common.classid; in htb_deactivate_prios()
427 p->un.inner.ptr[prio] = NULL; in htb_deactivate_prios()
430 htb_safe_rb_erase(cl->node + prio, p->un.inner.feed + prio); in htb_deactivate_prios()
432 if (!p->un.inner.feed[prio].rb_node) in htb_deactivate_prios()
433 mask |= 1 << prio; in htb_deactivate_prios()
528 cl->prio_activity = 1 << cl->prio; in htb_activate()
531 q->drops + cl->prio); in htb_activate()
706 static struct rb_node *htb_id_find_next_upper(int prio, struct rb_node *n, in htb_id_find_next_upper() argument
712 rb_entry(n, struct htb_class, node[prio]); in htb_id_find_next_upper()
731 static struct htb_class *htb_lookup_leaf(struct rb_root *tree, int prio, in htb_lookup_leaf() argument
752 htb_id_find_next_upper(prio, sp->root, *sp->pid); in htb_lookup_leaf()
771 cl = rb_entry(*sp->pptr, struct htb_class, node[prio]); in htb_lookup_leaf()
774 (++sp)->root = cl->un.inner.feed[prio].rb_node; in htb_lookup_leaf()
775 sp->pptr = cl->un.inner.ptr + prio; in htb_lookup_leaf()
776 sp->pid = cl->un.inner.last_ptr_id + prio; in htb_lookup_leaf()
786 static struct sk_buff *htb_dequeue_tree(struct htb_sched *q, int prio, in htb_dequeue_tree() argument
792 start = cl = htb_lookup_leaf(q->row[level] + prio, prio, in htb_dequeue_tree()
793 q->ptr[level] + prio, in htb_dequeue_tree()
794 q->last_ptr_id[level] + prio); in htb_dequeue_tree()
811 if ((q->row_mask[level] & (1 << prio)) == 0) in htb_dequeue_tree()
814 next = htb_lookup_leaf(q->row[level] + prio, in htb_dequeue_tree()
815 prio, q->ptr[level] + prio, in htb_dequeue_tree()
816 q->last_ptr_id[level] + prio); in htb_dequeue_tree()
830 ptr[0]) + prio); in htb_dequeue_tree()
831 cl = htb_lookup_leaf(q->row[level] + prio, prio, in htb_dequeue_tree()
832 q->ptr[level] + prio, in htb_dequeue_tree()
833 q->last_ptr_id[level] + prio); in htb_dequeue_tree()
843 ptr[0]) + prio); in htb_dequeue_tree()
898 int prio = ffz(m); in htb_dequeue() local
900 m |= 1 << prio; in htb_dequeue()
901 skb = htb_dequeue_tree(q, prio, level); in htb_dequeue()
926 int prio; in htb_drop() local
928 for (prio = TC_HTB_NUMPRIO - 1; prio >= 0; prio--) { in htb_drop()
930 list_for_each(p, q->drops + prio) { in htb_drop()
1098 opt.prio = cl->prio; in htb_dump_class()
1338 int prio; in htb_change_class() local
1382 for (prio = 0; prio < TC_HTB_NUMPRIO; prio++) in htb_change_class()
1383 RB_CLEAR_NODE(&cl->node[prio]); in htb_change_class()
1458 if ((cl->prio = hopt->prio) >= TC_HTB_NUMPRIO) in htb_change_class()
1459 cl->prio = TC_HTB_NUMPRIO - 1; in htb_change_class()