• Home
  • Raw
  • Download

Lines Matching refs:i

49 	int i, j;  in mqprio_parse_opt()  local
56 for (i = 0; i < TC_BITMASK + 1; i++) { in mqprio_parse_opt()
57 if (qopt->prio_tc_map[i] >= qopt->num_tc) in mqprio_parse_opt()
71 for (i = 0; i < qopt->num_tc; i++) { in mqprio_parse_opt()
72 unsigned int last = qopt->offset[i] + qopt->count[i]; in mqprio_parse_opt()
77 if (qopt->offset[i] >= dev->real_num_tx_queues || in mqprio_parse_opt()
78 !qopt->count[i] || in mqprio_parse_opt()
83 for (j = i + 1; j < qopt->num_tc; j++) { in mqprio_parse_opt()
98 int i, err = -EOPNOTSUPP; in mqprio_init() local
123 for (i = 0; i < dev->num_tx_queues; i++) { in mqprio_init()
124 dev_queue = netdev_get_tx_queue(dev, i); in mqprio_init()
127 TC_H_MIN(i + 1))); in mqprio_init()
131 priv->qdiscs[i] = qdisc; in mqprio_init()
146 for (i = 0; i < qopt->num_tc; i++) in mqprio_init()
147 netdev_set_tc_queue(dev, i, in mqprio_init()
148 qopt->count[i], qopt->offset[i]); in mqprio_init()
152 for (i = 0; i < TC_BITMASK + 1; i++) in mqprio_init()
153 netdev_set_prio_tc_map(dev, i, qopt->prio_tc_map[i]); in mqprio_init()
220 unsigned int i; in mqprio_dump() local
226 for (i = 0; i < dev->num_tx_queues; i++) { in mqprio_dump()
227 qdisc = rtnl_dereference(netdev_get_tx_queue(dev, i)->qdisc); in mqprio_dump()
243 for (i = 0; i < netdev_get_num_tc(dev); i++) { in mqprio_dump()
244 opt.count[i] = dev->tc_to_txq[i].count; in mqprio_dump()
245 opt.offset[i] = dev->tc_to_txq[i].offset; in mqprio_dump()
290 int i; in mqprio_dump_class() local
295 for (i = 0; i < netdev_get_num_tc(dev); i++) { in mqprio_dump_class()
296 struct netdev_tc_txq tc = dev->tc_to_txq[i]; in mqprio_dump_class()
303 TC_H_MIN(i + 1)); in mqprio_dump_class()
321 int i; in mqprio_dump_class_stats() local
335 for (i = tc.offset; i < tc.offset + tc.count; i++) { in mqprio_dump_class_stats()
336 struct netdev_queue *q = netdev_get_tx_queue(dev, i); in mqprio_dump_class_stats()