Lines Matching refs:q
43 struct Qdisc *q; /* FIFO, TBF, etc. */ member
94 *old = flow->q; in atm_tc_graft()
95 flow->q = new; in atm_tc_graft()
106 return flow ? flow->q : NULL; in atm_tc_leaf()
143 pr_debug("atm_tc_put: qdisc %p\n", flow->q); in atm_tc_put()
144 qdisc_destroy(flow->q); in atm_tc_put()
277 flow->q = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, classid); in atm_tc_change()
278 if (!flow->q) in atm_tc_change()
279 flow->q = &noop_qdisc; in atm_tc_change()
280 pr_debug("atm_tc_change: qdisc %p\n", flow->q); in atm_tc_change()
416 ret = qdisc_enqueue(skb, flow->q); in atm_tc_enqueue()
436 sch->q.qlen++; in atm_tc_enqueue()
465 while ((skb = flow->q->ops->peek(flow->q))) { in sch_atm_dequeue()
469 skb = qdisc_dequeue_peeked(flow->q); in sch_atm_dequeue()
507 skb = qdisc_dequeue_peeked(p->link.q); in atm_tc_dequeue()
509 sch->q.qlen--; in atm_tc_dequeue()
519 return p->link.q->ops->peek(p->link.q); in atm_tc_peek()
530 if (flow->q->ops->drop && (len = flow->q->ops->drop(flow->q))) in atm_tc_drop()
544 p->link.q = qdisc_create_dflt(sch->dev_queue, in atm_tc_init()
546 if (!p->link.q) in atm_tc_init()
547 p->link.q = &noop_qdisc; in atm_tc_init()
548 pr_debug("atm_tc_init: link (%p) qdisc %p\n", &p->link, p->link.q); in atm_tc_init()
565 qdisc_reset(flow->q); in atm_tc_reset()
566 sch->q.qlen = 0; in atm_tc_reset()
598 tcm->tcm_info = flow->q->handle; in atm_tc_dump_class()
641 gnet_stats_copy_queue(d, NULL, &flow->qstats, flow->q->q.qlen) < 0) in atm_tc_dump_class_stats()