Lines Matching refs:tc
2373 struct netdev_tc_txq *tc = &dev->tc_to_txq[0]; in netif_setup_tc() local
2376 if (tc->offset + tc->count > txq) { in netif_setup_tc()
2386 tc = &dev->tc_to_txq[q]; in netif_setup_tc()
2387 if (tc->offset + tc->count > txq) { in netif_setup_tc()
2398 struct netdev_tc_txq *tc = &dev->tc_to_txq[0]; in netdev_txq_to_tc() local
2402 for (i = 0; i < TC_MAX_QUEUE; i++, tc++) { in netdev_txq_to_tc()
2403 if ((txq - tc->offset) < tc->count) in netdev_txq_to_tc()
2576 int tc, bool skip_tc) in xps_copy_dev_maps() argument
2583 if (i == tc && skip_tc) in xps_copy_dev_maps()
2600 int maps_sz, num_tc = 1, tc = 0; in __netif_set_xps_queue() local
2615 tc = netdev_txq_to_tc(dev, index); in __netif_set_xps_queue()
2616 if (tc < 0) in __netif_set_xps_queue()
2659 tci = j * num_tc + tc; in __netif_set_xps_queue()
2682 tci = j * num_tc + tc; in __netif_set_xps_queue()
2707 xps_copy_dev_maps(dev_maps, new_dev_maps, j, tc, in __netif_set_xps_queue()
2755 if (i == tc && in __netif_set_xps_queue()
2836 int netdev_set_tc_queue(struct net_device *dev, u8 tc, u16 count, u16 offset) in netdev_set_tc_queue() argument
2838 if (tc >= dev->num_tc) in netdev_set_tc_queue()
2844 dev->tc_to_txq[tc].count = count; in netdev_set_tc_queue()
2845 dev->tc_to_txq[tc].offset = offset; in netdev_set_tc_queue()
2885 u8 tc, u16 count, u16 offset) in netdev_bind_sb_channel_queue() argument
2888 if (sb_dev->num_tc >= 0 || tc >= dev->num_tc) in netdev_bind_sb_channel_queue()
2896 sb_dev->tc_to_txq[tc].count = count; in netdev_bind_sb_channel_queue()
2897 sb_dev->tc_to_txq[tc].offset = offset; in netdev_bind_sb_channel_queue()
3197 u8 tc = netdev_get_prio_tc_map(dev, skb->priority); in skb_tx_hash() local
3199 qoffset = sb_dev->tc_to_txq[tc].offset; in skb_tx_hash()
3200 qcount = sb_dev->tc_to_txq[tc].count; in skb_tx_hash()
3203 sb_dev->name, qoffset, tc); in skb_tx_hash()
4014 int tc = netdev_get_prio_tc_map(dev, skb->priority); in __get_xps_queue_idx() local
4018 if (tc >= dev_maps->num_tc || tci >= dev_maps->nr_ids) in __get_xps_queue_idx()
4022 tci += tc; in __get_xps_queue_idx()