Lines Matching refs:ntx

92 	unsigned int ntx;  in mqprio_destroy()  local
95 for (ntx = 0; in mqprio_destroy()
96 ntx < dev->num_tx_queues && priv->qdiscs[ntx]; in mqprio_destroy()
97 ntx++) in mqprio_destroy()
98 qdisc_put(priv->qdiscs[ntx]); in mqprio_destroy()
313 unsigned int ntx; in mqprio_attach() local
316 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) { in mqprio_attach()
317 qdisc = priv->qdiscs[ntx]; in mqprio_attach()
321 if (ntx < dev->real_num_tx_queues) in mqprio_attach()
332 unsigned long ntx = cl - 1; in mqprio_queue_get() local
334 if (ntx >= dev->num_tx_queues) in mqprio_queue_get()
336 return netdev_get_tx_queue(dev, ntx); in mqprio_queue_get()
409 unsigned int ntx; in mqprio_dump() local
420 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) { in mqprio_dump()
421 qdisc = netdev_get_tx_queue(dev, ntx)->qdisc_sleeping; in mqprio_dump()
471 unsigned int ntx = TC_H_MIN(classid); in mqprio_find() local
477 if (ntx < TC_H_MIN_PRIORITY) in mqprio_find()
478 return (ntx <= dev->num_tx_queues) ? ntx : 0; in mqprio_find()
484 return ((ntx - TC_H_MIN_PRIORITY) < netdev_get_num_tc(dev)) ? ntx : 0; in mqprio_find()
566 unsigned long ntx; in mqprio_walk() local
573 for (ntx = arg->skip; ntx < netdev_get_num_tc(dev); ntx++) { in mqprio_walk()
574 if (!tc_qdisc_stats_dump(sch, ntx + TC_H_MIN_PRIORITY, arg)) in mqprio_walk()
579 if (ntx < TC_MAX_QUEUE) { in mqprio_walk()
581 ntx = TC_MAX_QUEUE; in mqprio_walk()
585 for (ntx -= TC_MAX_QUEUE; ntx < dev->num_tx_queues; ntx++) { in mqprio_walk()
586 if (arg->fn(sch, ntx + 1, arg) < 0) { in mqprio_walk()