Lines Matching refs:ntx
99 unsigned int ntx; in mqprio_destroy() local
102 for (ntx = 0; in mqprio_destroy()
103 ntx < dev->num_tx_queues && priv->qdiscs[ntx]; in mqprio_destroy()
104 ntx++) in mqprio_destroy()
105 qdisc_put(priv->qdiscs[ntx]); in mqprio_destroy()
437 unsigned int ntx; in mqprio_attach() local
440 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) { in mqprio_attach()
441 qdisc = priv->qdiscs[ntx]; in mqprio_attach()
445 if (ntx < dev->real_num_tx_queues) in mqprio_attach()
456 unsigned long ntx = cl - 1; in mqprio_queue_get() local
458 if (ntx >= dev->num_tx_queues) in mqprio_queue_get()
460 return netdev_get_tx_queue(dev, ntx); in mqprio_queue_get()
560 unsigned int ntx; in mqprio_dump() local
571 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) { in mqprio_dump()
572 qdisc = rtnl_dereference(netdev_get_tx_queue(dev, ntx)->qdisc_sleeping); in mqprio_dump()
625 unsigned int ntx = TC_H_MIN(classid); in mqprio_find() local
631 if (ntx < TC_H_MIN_PRIORITY) in mqprio_find()
632 return (ntx <= dev->num_tx_queues) ? ntx : 0; in mqprio_find()
638 return ((ntx - TC_H_MIN_PRIORITY) < netdev_get_num_tc(dev)) ? ntx : 0; in mqprio_find()
720 unsigned long ntx; in mqprio_walk() local
727 for (ntx = arg->skip; ntx < netdev_get_num_tc(dev); ntx++) { in mqprio_walk()
728 if (!tc_qdisc_stats_dump(sch, ntx + TC_H_MIN_PRIORITY, arg)) in mqprio_walk()
733 if (ntx < TC_MAX_QUEUE) { in mqprio_walk()
735 ntx = TC_MAX_QUEUE; in mqprio_walk()
739 for (ntx -= TC_MAX_QUEUE; ntx < dev->num_tx_queues; ntx++) { in mqprio_walk()
740 if (arg->fn(sch, ntx + 1, arg) < 0) { in mqprio_walk()