Lines Matching refs:parent

108 	struct htb_class	*parent;	/* parent class */  member
290 struct rb_node **p = &root->rb_node, *parent = NULL; in htb_add_to_id_tree() local
294 parent = *p; in htb_add_to_id_tree()
295 c = rb_entry(parent, struct htb_class, node[prio]); in htb_add_to_id_tree()
298 p = &parent->rb_right; in htb_add_to_id_tree()
300 p = &parent->rb_left; in htb_add_to_id_tree()
302 rb_link_node(&cl->node[prio], parent, p); in htb_add_to_id_tree()
319 struct rb_node **p = &q->hlevel[cl->level].wait_pq.rb_node, *parent = NULL; in htb_add_to_wait_tree() local
331 parent = *p; in htb_add_to_wait_tree()
332 c = rb_entry(parent, struct htb_class, pq_node); in htb_add_to_wait_tree()
334 p = &parent->rb_right; in htb_add_to_wait_tree()
336 p = &parent->rb_left; in htb_add_to_wait_tree()
338 rb_link_node(&cl->pq_node, parent, p); in htb_add_to_wait_tree()
427 struct htb_class *p = cl->parent; in htb_activate_prios()
449 p = cl->parent; in htb_activate_prios()
467 struct htb_class *p = cl->parent; in htb_deactivate_prios()
495 p = cl->parent; in htb_deactivate_prios()
732 cl = cl->parent; in htb_charge_class()
913 htb_next_rb_node(level ? &cl->parent->inner.clprio[prio].ptr: in htb_dequeue_tree()
924 htb_next_rb_node(level ? &cl->parent->inner.clprio[prio].ptr : in htb_dequeue_tree()
1084 if (sch->parent != TC_H_ROOT) { in htb_init()
1251 tcm->tcm_parent = cl->parent ? cl->parent->common.classid : TC_H_ROOT; in htb_dump_class()
1303 p = p->parent; in htb_offload_aggregate_stats()
1493 if (!cl->parent) in htb_parent_last_child()
1496 if (cl->parent->children > 1) in htb_parent_last_child()
1506 struct htb_class *parent = cl->parent; in htb_parent_to_leaf() local
1510 if (parent->cmode != HTB_CAN_SEND) in htb_parent_to_leaf()
1511 htb_safe_rb_erase(&parent->pq_node, in htb_parent_to_leaf()
1512 &q->hlevel[parent->level].wait_pq); in htb_parent_to_leaf()
1514 parent->level = 0; in htb_parent_to_leaf()
1515 memset(&parent->inner, 0, sizeof(parent->inner)); in htb_parent_to_leaf()
1516 parent->leaf.q = new_q ? new_q : &noop_qdisc; in htb_parent_to_leaf()
1517 parent->tokens = parent->buffer; in htb_parent_to_leaf()
1518 parent->ctokens = parent->cbuffer; in htb_parent_to_leaf()
1519 parent->t_c = ktime_get_ns(); in htb_parent_to_leaf()
1520 parent->cmode = HTB_CAN_SEND; in htb_parent_to_leaf()
1522 parent->leaf.offload_queue = cl->leaf.offload_queue; in htb_parent_to_leaf()
1565 if (cl->parent) { in htb_destroy_class_offload()
1566 _bstats_update(&cl->parent->bstats_bias, in htb_destroy_class_offload()
1663 if (cl->parent) in htb_destroy()
1664 cl->parent->children--; in htb_destroy()
1725 cl->parent->common.classid, in htb_delete()
1738 if (cl->parent) in htb_delete()
1739 cl->parent->children--; in htb_delete()
1763 struct htb_class *cl = (struct htb_class *)*arg, *parent; in htb_change_class() local
1786 parent = parentid == TC_H_ROOT ? NULL : htb_find(parentid, sch); in htb_change_class()
1841 if (parent && parent->parent && parent->parent->level < 2) { in htb_change_class()
1887 } else if (!(parent && !parent->level)) { in htb_change_class()
1892 .parent_classid = parent ? in htb_change_class()
1893 TC_H_MIN(parent->common.classid) : in htb_change_class()
1909 dev_queue = htb_offload_get_queue(parent); in htb_change_class()
1911 WARN_ON(old_q != parent->leaf.q); in htb_change_class()
1916 TC_H_MIN(parent->common.classid), in htb_change_class()
1930 _bstats_update(&parent->bstats_bias, in htb_change_class()
1946 if (parent && !parent->level) { in htb_change_class()
1948 qdisc_purge_queue(parent->leaf.q); in htb_change_class()
1949 parent_qdisc = parent->leaf.q; in htb_change_class()
1950 if (parent->prio_activity) in htb_change_class()
1951 htb_deactivate(q, parent); in htb_change_class()
1954 if (parent->cmode != HTB_CAN_SEND) { in htb_change_class()
1955 htb_safe_rb_erase(&parent->pq_node, &q->hlevel[0].wait_pq); in htb_change_class()
1956 parent->cmode = HTB_CAN_SEND; in htb_change_class()
1958 parent->level = (parent->parent ? parent->parent->level in htb_change_class()
1960 memset(&parent->inner, 0, sizeof(parent->inner)); in htb_change_class()
1968 cl->parent = parent; in htb_change_class()
1979 if (parent) in htb_change_class()
1980 parent->children++; in htb_change_class()
2080 static unsigned long htb_bind_filter(struct Qdisc *sch, unsigned long parent, in htb_bind_filter() argument