Lines Matching refs:ntx
56 unsigned int ntx; in mq_destroy() local
62 for (ntx = 0; ntx < dev->num_tx_queues && priv->qdiscs[ntx]; ntx++) in mq_destroy()
63 qdisc_put(priv->qdiscs[ntx]); in mq_destroy()
74 unsigned int ntx; in mq_init() local
88 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) { in mq_init()
89 dev_queue = netdev_get_tx_queue(dev, ntx); in mq_init()
90 qdisc = qdisc_create_dflt(dev_queue, get_default_qdisc_ops(dev, ntx), in mq_init()
92 TC_H_MIN(ntx + 1)), in mq_init()
96 priv->qdiscs[ntx] = qdisc; in mq_init()
111 unsigned int ntx; in mq_attach() local
113 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) { in mq_attach()
114 qdisc = priv->qdiscs[ntx]; in mq_attach()
119 if (ntx < dev->real_num_tx_queues) in mq_attach()
132 unsigned int ntx; in mq_dump() local
143 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) { in mq_dump()
144 qdisc = rtnl_dereference(netdev_get_tx_queue(dev, ntx)->qdisc_sleeping); in mq_dump()
162 unsigned long ntx = cl - 1; in mq_queue_get() local
164 if (ntx >= dev->num_tx_queues) in mq_queue_get()
166 return netdev_get_tx_queue(dev, ntx); in mq_queue_get()
210 unsigned int ntx = TC_H_MIN(classid); in mq_find() local
212 if (!mq_queue_get(sch, ntx)) in mq_find()
214 return ntx; in mq_find()
243 unsigned int ntx; in mq_walk() local
249 for (ntx = arg->skip; ntx < dev->num_tx_queues; ntx++) { in mq_walk()
250 if (!tc_qdisc_stats_dump(sch, ntx + 1, arg)) in mq_walk()