Lines Matching refs:tc

2610 	struct netdev_tc_txq *tc = &dev->tc_to_txq[0];  in netif_setup_tc()  local
2613 if (tc->offset + tc->count > txq) { in netif_setup_tc()
2623 tc = &dev->tc_to_txq[q]; in netif_setup_tc()
2624 if (tc->offset + tc->count > txq) { in netif_setup_tc()
2635 struct netdev_tc_txq *tc = &dev->tc_to_txq[0]; in netdev_txq_to_tc() local
2639 for (i = 0; i < TC_MAX_QUEUE; i++, tc++) { in netdev_txq_to_tc()
2640 if ((txq - tc->offset) < tc->count) in netdev_txq_to_tc()
2812 int tc, bool skip_tc) in xps_copy_dev_maps() argument
2819 if (i == tc && skip_tc) in xps_copy_dev_maps()
2836 int maps_sz, num_tc = 1, tc = 0; in __netif_set_xps_queue() local
2851 tc = netdev_txq_to_tc(dev, index); in __netif_set_xps_queue()
2852 if (tc < 0) in __netif_set_xps_queue()
2895 tci = j * num_tc + tc; in __netif_set_xps_queue()
2918 tci = j * num_tc + tc; in __netif_set_xps_queue()
2943 xps_copy_dev_maps(dev_maps, new_dev_maps, j, tc, in __netif_set_xps_queue()
2991 if (i == tc && in __netif_set_xps_queue()
3072 int netdev_set_tc_queue(struct net_device *dev, u8 tc, u16 count, u16 offset) in netdev_set_tc_queue() argument
3074 if (tc >= dev->num_tc) in netdev_set_tc_queue()
3080 dev->tc_to_txq[tc].count = count; in netdev_set_tc_queue()
3081 dev->tc_to_txq[tc].offset = offset; in netdev_set_tc_queue()
3121 u8 tc, u16 count, u16 offset) in netdev_bind_sb_channel_queue() argument
3124 if (sb_dev->num_tc >= 0 || tc >= dev->num_tc) in netdev_bind_sb_channel_queue()
3132 sb_dev->tc_to_txq[tc].count = count; in netdev_bind_sb_channel_queue()
3133 sb_dev->tc_to_txq[tc].offset = offset; in netdev_bind_sb_channel_queue()
3491 u8 tc = netdev_get_prio_tc_map(dev, skb->priority); in skb_tx_hash() local
3493 qoffset = sb_dev->tc_to_txq[tc].offset; in skb_tx_hash()
3494 qcount = sb_dev->tc_to_txq[tc].count; in skb_tx_hash()
3497 sb_dev->name, qoffset, tc); in skb_tx_hash()
4471 int tc = netdev_get_prio_tc_map(dev, skb->priority); in __get_xps_queue_idx() local
4475 if (tc >= dev_maps->num_tc || tci >= dev_maps->nr_ids) in __get_xps_queue_idx()
4479 tci += tc; in __get_xps_queue_idx()