Lines Matching refs:ntx

34 	unsigned int ntx;  in mqprio_destroy()  local
37 for (ntx = 0; in mqprio_destroy()
38 ntx < dev->num_tx_queues && priv->qdiscs[ntx]; in mqprio_destroy()
39 ntx++) in mqprio_destroy()
40 qdisc_put(priv->qdiscs[ntx]); in mqprio_destroy()
294 unsigned int ntx; in mqprio_attach() local
297 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) { in mqprio_attach()
298 qdisc = priv->qdiscs[ntx]; in mqprio_attach()
302 if (ntx < dev->real_num_tx_queues) in mqprio_attach()
313 unsigned long ntx = cl - 1; in mqprio_queue_get() local
315 if (ntx >= dev->num_tx_queues) in mqprio_queue_get()
317 return netdev_get_tx_queue(dev, ntx); in mqprio_queue_get()
390 unsigned int ntx, tc; in mqprio_dump() local
401 for (ntx = 0; ntx < dev->num_tx_queues; ntx++) { in mqprio_dump()
402 qdisc = netdev_get_tx_queue(dev, ntx)->qdisc_sleeping; in mqprio_dump()
472 unsigned int ntx = TC_H_MIN(classid); in mqprio_find() local
478 if (ntx < TC_H_MIN_PRIORITY) in mqprio_find()
479 return (ntx <= dev->num_tx_queues) ? ntx : 0; in mqprio_find()
485 return ((ntx - TC_H_MIN_PRIORITY) < netdev_get_num_tc(dev)) ? ntx : 0; in mqprio_find()
578 unsigned long ntx; in mqprio_walk() local
585 for (ntx = arg->skip; ntx < netdev_get_num_tc(dev); ntx++) { in mqprio_walk()
586 if (arg->fn(sch, ntx + TC_H_MIN_PRIORITY, arg) < 0) { in mqprio_walk()
594 if (ntx < TC_MAX_QUEUE) { in mqprio_walk()
596 ntx = TC_MAX_QUEUE; in mqprio_walk()
600 for (ntx -= TC_MAX_QUEUE; ntx < dev->num_tx_queues; ntx++) { in mqprio_walk()
601 if (arg->fn(sch, ntx + 1, arg) < 0) { in mqprio_walk()