num_tc 250 drivers/dma/ti/edma.c unsigned num_tc; num_tc 705 drivers/dma/ti/edma.c if (eventq_no >= ecc->num_tc) num_tc 2007 drivers/dma/ti/edma.c ecc->num_tc = value + 1; num_tc 2016 drivers/dma/ti/edma.c dev_dbg(dev, "num_tc: %u\n", ecc->num_tc); num_tc 2033 drivers/dma/ti/edma.c queue_priority_map = devm_kcalloc(dev, ecc->num_tc + 1, sizeof(s8), num_tc 2038 drivers/dma/ti/edma.c for (i = 0; i < ecc->num_tc; i++) { num_tc 2221 drivers/dma/ti/edma.c dma_spec->args[1] < echan->ecc->num_tc) { num_tc 2404 drivers/dma/ti/edma.c ecc->tc_list = devm_kcalloc(dev, ecc->num_tc, num_tc 2414 drivers/dma/ti/edma.c if (ret || i == ecc->num_tc) num_tc 2838 drivers/infiniband/core/cma.c if (dev->num_tc) num_tc 2259 drivers/net/ethernet/amd/xgbe/xgbe-drv.c tc = mqprio->num_tc; num_tc 4236 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c int bnx2x_setup_tc(struct net_device *dev, u8 num_tc) num_tc 4246 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (!num_tc) { num_tc 4252 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (num_tc > bp->max_cos) { num_tc 4254 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c num_tc, bp->max_cos); num_tc 4259 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (netdev_set_num_tc(dev, num_tc)) { num_tc 4260 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c BNX2X_ERR("failed to declare %d traffic classes\n", num_tc); num_tc 4309 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c return bnx2x_setup_tc(dev, mqprio->num_tc); num_tc 490 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h int bnx2x_setup_tc(struct net_device *dev, u8 num_tc); num_tc 10995 drivers/net/ethernet/broadcom/bnxt/bnxt.c return bnxt_setup_mq_tc(dev, mqprio->num_tc); num_tc 354 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c u8 num_tc; num_tc 361 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c num_tc = mqprio->num_tc; num_tc 363 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c if (num_tc == priv->num_tc) num_tc 366 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c if (!num_tc) { num_tc 371 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c if (num_tc > DPAA_TC_NUM) { num_tc 377 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c netdev_set_num_tc(net_dev, num_tc); num_tc 379 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c for (i = 0; i < num_tc; i++) num_tc 384 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c priv->num_tc = num_tc ? : 1; num_tc 385 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c netif_set_real_num_tx_queues(net_dev, priv->num_tc * DPAA_TC_TXQ_NUM); num_tc 2925 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c priv->num_tc = 1; num_tc 2926 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c netif_set_real_num_tx_queues(net_dev, priv->num_tc * DPAA_TC_TXQ_NUM); num_tc 162 drivers/net/ethernet/freescale/dpaa/dpaa_eth.h u8 num_tc; num_tc 819 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c if (net_dev->num_tc) { num_tc 824 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c prio = net_dev->num_tc - prio - 1; num_tc 1954 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c netdev_queues = (net_dev->num_tc ? : 1) * num_queues; num_tc 1980 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c u8 num_tc, num_queues; num_tc 1988 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c num_tc = mqprio->num_tc; num_tc 1990 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c if (num_tc == net_dev->num_tc) num_tc 1993 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c if (num_tc > dpaa2_eth_tc_count(priv)) { num_tc 1999 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c if (!num_tc) { num_tc 2005 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c netdev_set_num_tc(net_dev, num_tc); num_tc 2006 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c netif_set_real_num_tx_queues(net_dev, num_tc * num_queues); num_tc 2008 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c for (i = 0; i < num_tc; i++) num_tc 1436 drivers/net/ethernet/freescale/enetc/enetc.c u8 num_tc; num_tc 1443 drivers/net/ethernet/freescale/enetc/enetc.c num_tc = mqprio->num_tc; num_tc 1445 drivers/net/ethernet/freescale/enetc/enetc.c if (!num_tc) { num_tc 1459 drivers/net/ethernet/freescale/enetc/enetc.c if (num_tc > priv->num_tx_rings) { num_tc 1469 drivers/net/ethernet/freescale/enetc/enetc.c for (i = 0; i < num_tc; i++) { num_tc 1475 drivers/net/ethernet/freescale/enetc/enetc.c netif_set_real_num_tx_queues(ndev, num_tc); num_tc 1477 drivers/net/ethernet/freescale/enetc/enetc.c netdev_set_num_tc(ndev, num_tc); num_tc 1480 drivers/net/ethernet/freescale/enetc/enetc.c for (i = 0; i < num_tc; i++) num_tc 576 drivers/net/ethernet/hisilicon/hns3/hnae3.h u8 num_tc; /* Total number of enabled TCs */ num_tc 263 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c unsigned int queue_size = kinfo->rss_size * kinfo->num_tc; num_tc 266 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c if (kinfo->num_tc <= 1) { num_tc 269 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c ret = netdev_set_num_tc(netdev, kinfo->num_tc); num_tc 309 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c rss_size = alloc_tqps / h->kinfo.num_tc; num_tc 1578 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c u8 tc = mqprio_qopt->qopt.num_tc; num_tc 3845 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c dev_info(priv->dev, "Total number of enabled TCs: %d\n", kinfo->num_tc); num_tc 75 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c static int hclge_dcb_common_validate(struct hclge_dev *hdev, u8 num_tc, num_tc 80 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c if (num_tc > hdev->tc_max) { num_tc 83 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c num_tc, hdev->tc_max); num_tc 88 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c if (prio_tc[i] >= num_tc) { num_tc 91 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c i, prio_tc[i], num_tc); num_tc 96 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c if (num_tc > hdev->vport[0].alloc_tqps) { num_tc 99 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c num_tc, hdev->vport[0].alloc_tqps); num_tc 151 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c if (*tc != hdev->tm_info.num_tc) num_tc 193 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c ret = client->ops->setup_tc(handle, hdev->tm_info.num_tc); num_tc 229 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c u8 num_tc = 0; num_tc 236 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c ret = hclge_ets_validate(hdev, ets, &num_tc, &map_changed); num_tc 248 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c hclge_tm_schd_info_update(hdev, num_tc); num_tc 293 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c for (i = 0; i < hdev->tm_info.num_tc; i++) { num_tc 333 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c for (i = 0; i < hdev->tm_info.num_tc; i++) { num_tc 347 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c pfc->pfc_en, pfc_map, hdev->tm_info.num_tc); num_tc 1382 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c hdev->tm_info.num_tc = 1; num_tc 1385 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c for (i = 0; i < hdev->tm_info.num_tc; i++) num_tc 1520 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c vport->alloc_tqps / hdev->tm_info.num_tc); num_tc 1524 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c (hdev->num_nic_msi - 1) / hdev->tm_info.num_tc); num_tc 9529 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c vport->alloc_tqps / kinfo->num_tc); num_tc 9616 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c cur_tqps, kinfo->rss_size * kinfo->num_tc); num_tc 351 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h u8 num_tc; num_tc 375 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c for (i = 0; i < kinfo->num_tc; i++) num_tc 233 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c if (tc >= hdev->tm_info.num_tc) num_tc 524 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c kinfo->num_tc = vport->vport_id ? 1 : num_tc 525 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c min_t(u16, vport->alloc_tqps, hdev->tm_info.num_tc); num_tc 526 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c vport->qs_offset = (vport->vport_id ? hdev->tm_info.num_tc : 0) + num_tc 530 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c vport->alloc_tqps / kinfo->num_tc); num_tc 547 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c kinfo->num_tc); num_tc 553 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c kinfo->num_tqps = kinfo->num_tc * kinfo->rss_size; num_tc 559 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c if (hdev->hw_tc_map & BIT(i) && i < kinfo->num_tc) { num_tc 593 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < hdev->tm_info.num_tc; i++) { num_tc 603 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c (i >= hdev->tm_info.num_tc) ? 0 : i; num_tc 608 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c if (hdev->tm_info.num_tc > 1 || hdev->tm_info.pfc_en) num_tc 634 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (k = 0; k < hdev->tm_info.num_tc; k++) num_tc 759 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < kinfo->num_tc; i++) { num_tc 787 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < kinfo->num_tc; i++) { num_tc 826 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < hdev->tm_info.num_tc; i++) { num_tc 893 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < kinfo->num_tc; i++) { num_tc 952 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < hdev->tm_info.num_tc; i++) { num_tc 1016 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < kinfo->num_tc; i++) { num_tc 1147 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < kinfo->num_tc; i++) { num_tc 1166 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < hdev->tm_info.num_tc; i++) { num_tc 1318 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < hdev->tm_info.num_tc; i++) { num_tc 1375 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c void hclge_tm_schd_info_update(struct hclge_dev *hdev, u8 num_tc) num_tc 1380 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.num_tc = num_tc; num_tc 1382 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c for (i = 0; i < hdev->tm_info.num_tc; i++) num_tc 1387 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c hdev->tm_info.num_tc = 1; num_tc 1400 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c if (hdev->tm_info.num_tc > 1 || hdev->tm_info.pfc_en) num_tc 149 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h void hclge_tm_schd_info_update(struct hclge_dev *hdev, u8 num_tc); num_tc 390 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c kinfo->num_tc = 0; num_tc 396 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c kinfo->num_tc++; num_tc 399 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c = min_t(u16, hdev->rss_size_max, new_tqps / kinfo->num_tc); num_tc 400 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c new_tqps = kinfo->rss_size * kinfo->num_tc; num_tc 418 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c kinfo->rss_size = min_t(u16, kinfo->num_tqps / kinfo->num_tc, num_tc 2828 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c hdev->num_tqps / kinfo->num_tc); num_tc 2871 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c hdev->num_tqps / kinfo->num_tc); num_tc 2883 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c kinfo->num_tqps = kinfo->num_tc * kinfo->rss_size; num_tc 2927 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c cur_tqps, kinfo->rss_size * kinfo->num_tc); num_tc 38 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c u8 num_tc = 0; num_tc 47 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c if (ets->prio_tc[i] > num_tc) num_tc 48 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c num_tc = ets->prio_tc[i]; num_tc 52 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c if (num_tc) num_tc 53 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c num_tc++; num_tc 55 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c if (num_tc > IEEE_8021QAZ_MAX_TCS) num_tc 59 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c if (num_tc != netdev_get_num_tc(dev)) { num_tc 60 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c int err = fm10k_setup_tc(dev, num_tc); num_tc 1440 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c return fm10k_setup_tc(dev, mqprio->num_tc); num_tc 1686 drivers/net/ethernet/intel/i40e/i40e_main.c vsi->tc_config.numtc = vsi->mqprio_qopt.qopt.num_tc; num_tc 5031 drivers/net/ethernet/intel/i40e/i40e_main.c u8 num_tc = 0; num_tc 5039 drivers/net/ethernet/intel/i40e/i40e_main.c num_tc |= BIT(dcbcfg->etscfg.prioritytable[i]); num_tc 5045 drivers/net/ethernet/intel/i40e/i40e_main.c if (num_tc & BIT(i)) { num_tc 5073 drivers/net/ethernet/intel/i40e/i40e_main.c u8 num_tc = i40e_dcb_get_num_tc(dcbcfg); num_tc 5077 drivers/net/ethernet/intel/i40e/i40e_main.c for (i = 0; i < num_tc; i++) num_tc 5093 drivers/net/ethernet/intel/i40e/i40e_main.c u8 num_tc = vsi->mqprio_qopt.qopt.num_tc; num_tc 5096 drivers/net/ethernet/intel/i40e/i40e_main.c for (i = 1; i < num_tc; i++) num_tc 5111 drivers/net/ethernet/intel/i40e/i40e_main.c u8 num_tc = 0; num_tc 5115 drivers/net/ethernet/intel/i40e/i40e_main.c return pf->vsi[pf->lan_vsi]->mqprio_qopt.qopt.num_tc; num_tc 5133 drivers/net/ethernet/intel/i40e/i40e_main.c num_tc++; num_tc 5135 drivers/net/ethernet/intel/i40e/i40e_main.c return num_tc; num_tc 6831 drivers/net/ethernet/intel/i40e/i40e_main.c mqprio_qopt->qopt.num_tc < 1 || num_tc 6832 drivers/net/ethernet/intel/i40e/i40e_main.c mqprio_qopt->qopt.num_tc > I40E_MAX_TRAFFIC_CLASS) num_tc 6846 drivers/net/ethernet/intel/i40e/i40e_main.c if (i >= mqprio_qopt->qopt.num_tc - 1) num_tc 7022 drivers/net/ethernet/intel/i40e/i40e_main.c int ret = 0, num_tc = 1, i, aq_err; num_tc 7035 drivers/net/ethernet/intel/i40e/i40e_main.c for (i = 0; i < num_tc; i++) num_tc 7386 drivers/net/ethernet/intel/i40e/i40e_main.c u8 enabled_tc = 0, num_tc, hw; num_tc 7394 drivers/net/ethernet/intel/i40e/i40e_main.c num_tc = mqprio_qopt->qopt.num_tc; num_tc 7421 drivers/net/ethernet/intel/i40e/i40e_main.c if (num_tc > i40e_pf_get_num_tc(pf)) { num_tc 7449 drivers/net/ethernet/intel/i40e/i40e_main.c for (i = 0; i < num_tc; i++) num_tc 260 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (i = 0; i < vf->num_tc; i++) { num_tc 803 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c u32 reg, num_tc = 1; /* VF has at least one traffic class */ num_tc 808 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c num_tc = vf->num_tc; num_tc 810 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (i = 0; i < num_tc; i++) { num_tc 851 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c u32 qps, num_tc = 1; /* VF has at least one traffic class */ num_tc 856 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c num_tc = vf->num_tc; num_tc 858 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (i = 0; i < num_tc; i++) { num_tc 963 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (j = 0; j < vf->num_tc; j++) { num_tc 1038 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (idx = 1; idx < vf->num_tc; idx++) { num_tc 1831 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (i = 1; i < vf->num_tc; i++) { num_tc 2186 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (i = 0; i < vf->num_tc; i++) num_tc 2386 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (i = 1; i < vf->num_tc; i++) { num_tc 3262 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (i = 0; i < vf->num_tc ; i++) { num_tc 3593 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (!tci->num_tc || tci->num_tc > I40E_MAX_VF_VSI) { num_tc 3596 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c vf->vf_id, tci->num_tc, I40E_MAX_VF_VSI); num_tc 3602 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (i = 0; i < tci->num_tc; i++) num_tc 3658 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c vf->num_tc = tci->num_tc; num_tc 3659 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c for (i = 0; i < vf->num_tc; i++) { num_tc 3715 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c vf->num_tc = 0; num_tc 109 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h u8 num_tc; num_tc 342 drivers/net/ethernet/intel/iavf/iavf.h u8 num_tc; num_tc 894 drivers/net/ethernet/intel/iavf/iavf_ethtool.c adapter->num_tc) { num_tc 1106 drivers/net/ethernet/intel/iavf/iavf_main.c adapter->num_tc) num_tc 1441 drivers/net/ethernet/intel/iavf/iavf_main.c adapter->num_tc) num_tc 1443 drivers/net/ethernet/intel/iavf/iavf_main.c adapter->num_tc); num_tc 2207 drivers/net/ethernet/intel/iavf/iavf_main.c adapter->num_tc) { num_tc 2539 drivers/net/ethernet/intel/iavf/iavf_main.c if (mqprio_qopt->qopt.num_tc > IAVF_MAX_TRAFFIC_CLASS || num_tc 2540 drivers/net/ethernet/intel/iavf/iavf_main.c mqprio_qopt->qopt.num_tc < 1) num_tc 2543 drivers/net/ethernet/intel/iavf/iavf_main.c for (i = 0; i <= mqprio_qopt->qopt.num_tc - 1; i++) { num_tc 2599 drivers/net/ethernet/intel/iavf/iavf_main.c u8 num_tc = 0, total_qps = 0; num_tc 2605 drivers/net/ethernet/intel/iavf/iavf_main.c num_tc = mqprio_qopt->qopt.num_tc; num_tc 2613 drivers/net/ethernet/intel/iavf/iavf_main.c adapter->num_tc = 0; num_tc 2639 drivers/net/ethernet/intel/iavf/iavf_main.c if (adapter->num_tc == num_tc) num_tc 2641 drivers/net/ethernet/intel/iavf/iavf_main.c adapter->num_tc = num_tc; num_tc 2644 drivers/net/ethernet/intel/iavf/iavf_main.c if (i < num_tc) { num_tc 2667 drivers/net/ethernet/intel/iavf/iavf_main.c netdev_set_num_tc(adapter->netdev, num_tc); num_tc 2672 drivers/net/ethernet/intel/iavf/iavf_main.c if (i < num_tc) num_tc 2940 drivers/net/ethernet/intel/iavf/iavf_main.c if (tc < adapter->num_tc) { num_tc 983 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c len = struct_size(vti, list, adapter->num_tc - 1); num_tc 987 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c vti->num_tc = adapter->num_tc; num_tc 988 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c for (i = 0; i < vti->num_tc; i++) { num_tc 54 drivers/net/ethernet/intel/ice/ice_dcb_lib.c u8 i, num_tc, ena_tc = 1; num_tc 56 drivers/net/ethernet/intel/ice/ice_dcb_lib.c num_tc = ice_dcb_get_num_tc(dcbcfg); num_tc 58 drivers/net/ethernet/intel/ice/ice_dcb_lib.c for (i = 0; i < num_tc; i++) num_tc 71 drivers/net/ethernet/intel/ice/ice_dcb_lib.c u8 num_tc = 0; num_tc 79 drivers/net/ethernet/intel/ice/ice_dcb_lib.c num_tc |= BIT(dcbcfg->etscfg.prio_table[i]); num_tc 83 drivers/net/ethernet/intel/ice/ice_dcb_lib.c if (num_tc & BIT(i)) { num_tc 3203 drivers/net/ethernet/intel/ice/ice_lib.c u8 num_tc = 0; num_tc 3208 drivers/net/ethernet/intel/ice/ice_lib.c num_tc++; num_tc 3214 drivers/net/ethernet/intel/ice/ice_lib.c vsi->tc_cfg.numtc = num_tc; num_tc 5202 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int num_tc = adapter->hw_tcs; num_tc 5205 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (!num_tc) num_tc 5206 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c num_tc = 1; num_tc 5208 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c for (i = 0; i < num_tc; i++) { num_tc 5346 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int num_tc = netdev_get_num_tc(adapter->netdev); num_tc 5359 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c for (i = 0; i < num_tc; i++) num_tc 9638 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c return ixgbe_setup_tc(dev, mqprio->num_tc); num_tc 272 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c u8 num_tc; num_tc 294 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c num_tc = adapter->hw_tcs; num_tc 297 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c limit = (num_tc > 4) ? IXGBE_MAX_VFS_8TC : num_tc 298 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c (num_tc > 1) ? IXGBE_MAX_VFS_4TC : IXGBE_MAX_VFS_1TC; num_tc 302 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c num_tc, num_rx_pools - 1, limit - num_rx_pools); num_tc 149 drivers/net/ethernet/mellanox/mlx4/en_netdev.c if (mqprio->num_tc && mqprio->num_tc != MLX4_EN_NUM_UP_HIGH) num_tc 154 drivers/net/ethernet/mellanox/mlx4/en_netdev.c return mlx4_en_alloc_tx_queue_per_tc(dev, mqprio->num_tc); num_tc 2123 drivers/net/ethernet/mellanox/mlx4/port.c u8 num_tc = dev->caps.max_tc_eth; num_tc 2125 drivers/net/ethernet/mellanox/mlx4/port.c if (!num_tc) num_tc 2126 drivers/net/ethernet/mellanox/mlx4/port.c num_tc = MLX4_TC_MAX_NUMBER; num_tc 2128 drivers/net/ethernet/mellanox/mlx4/port.c return num_tc; num_tc 255 drivers/net/ethernet/mellanox/mlx5/core/en.h u8 num_tc; num_tc 718 drivers/net/ethernet/mellanox/mlx5/core/en.h u8 num_tc; num_tc 259 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c for (tc = 0; tc < priv->channels.params.num_tc; tc++) { num_tc 523 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c for (tc = 0; tc < c->num_tc; tc++) { num_tc 1688 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (tc = 0; tc < c->num_tc; tc++) { num_tc 1708 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (tc = 0; tc < c->num_tc; tc++) num_tc 1718 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (tc = 0; tc < params->num_tc; tc++) { num_tc 1740 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (tc = 0; tc < c->num_tc; tc++) num_tc 1992 drivers/net/ethernet/mellanox/mlx5/core/en_main.c c->num_tc = params->num_tc; num_tc 2036 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (tc = 0; tc < c->num_tc; tc++) num_tc 2055 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (tc = 0; tc < c->num_tc; tc++) num_tc 2884 drivers/net/ethernet/mellanox/mlx5/core/en_main.c int ntc = priv->channels.params.num_tc; num_tc 2903 drivers/net/ethernet/mellanox/mlx5/core/en_main.c int num_txqs = priv->channels.num * priv->channels.params.num_tc; num_tc 2932 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (tc = 0; tc < priv->channels.params.num_tc; tc++) { num_tc 2986 drivers/net/ethernet/mellanox/mlx5/core/en_main.c new_num_txqs = new_chs->num * new_chs->params.num_tc; num_tc 3464 drivers/net/ethernet/mellanox/mlx5/core/en_main.c u8 tc = mqprio->num_tc; num_tc 3475 drivers/net/ethernet/mellanox/mlx5/core/en_main.c new_channels.params.num_tc = tc ? tc : 1; num_tc 3487 drivers/net/ethernet/mellanox/mlx5/core/en_main.c new_channels.params.num_tc); num_tc 4349 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (i = 0; i < priv->channels.num * priv->channels.params.num_tc; i++) { num_tc 4805 drivers/net/ethernet/mellanox/mlx5/core/en_main.c params->num_tc = 1; num_tc 475 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c sqs = kcalloc(priv->channels.num * priv->channels.params.num_tc, sizeof(*sqs), GFP_KERNEL); num_tc 481 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c for (tc = 0; tc < c->num_tc; tc++) num_tc 1435 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c params->num_tc = 1; num_tc 126 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c for (i = 0; i < c->num_tc; i++) num_tc 173 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c for (i = 0; i < c->num_tc; i++) { num_tc 548 drivers/net/ethernet/mellanox/mlx5/core/port.c u8 num_tc = MLX5_CAP_GEN(mdev, max_tc) ? : 8; num_tc 550 drivers/net/ethernet/mellanox/mlx5/core/port.c return num_tc - 1; num_tc 1530 drivers/net/ethernet/qlogic/qed/qed_int.c u8 num_tc = p_hwfn->hw_info.num_hw_tc; num_tc 1552 drivers/net/ethernet/qlogic/qed/qed_int.c for (i = 0; i < num_tc; i++) { num_tc 2211 drivers/net/ethernet/qlogic/qed/qed_l2.c info->num_tc = p_hwfn->hw_info.num_hw_tc; num_tc 2227 drivers/net/ethernet/qlogic/qed/qed_l2.c cids /= (2 + info->num_tc); num_tc 2264 drivers/net/ethernet/qlogic/qed/qed_l2.c info->num_tc = 1; num_tc 590 drivers/net/ethernet/qlogic/qede/qede.h for ((var) = 0; (var) < (edev)->dev_info.num_tc; (var)++) num_tc 385 drivers/net/ethernet/qlogic/qede/qede_ethtool.c edev->dev_info.num_tc; num_tc 1449 drivers/net/ethernet/qlogic/qede/qede_fp.c WARN_ON(txq_index >= QEDE_TSS_COUNT(edev) * edev->dev_info.num_tc); num_tc 1695 drivers/net/ethernet/qlogic/qede/qede_fp.c total_txq = QEDE_TSS_COUNT(edev) * edev->dev_info.num_tc; num_tc 530 drivers/net/ethernet/qlogic/qede/qede_main.c static int qede_setup_tc(struct net_device *ndev, u8 num_tc) num_tc 535 drivers/net/ethernet/qlogic/qede/qede_main.c if (num_tc > edev->dev_info.num_tc) num_tc 539 drivers/net/ethernet/qlogic/qede/qede_main.c netdev_set_num_tc(ndev, num_tc); num_tc 601 drivers/net/ethernet/qlogic/qede/qede_main.c return qede_setup_tc(dev, mqprio->num_tc); num_tc 696 drivers/net/ethernet/qlogic/qede/qede_main.c info->num_queues * info->num_tc, num_tc 906 drivers/net/ethernet/qlogic/qede/qede_main.c fp->txq = kcalloc(edev->dev_info.num_tc, num_tc 1715 drivers/net/ethernet/qlogic/qede/qede_main.c edev->dev_info.num_tc); num_tc 2245 drivers/net/ethernet/qlogic/qede/qede_main.c u8 num_tc; num_tc 2292 drivers/net/ethernet/qlogic/qede/qede_main.c num_tc = netdev_get_num_tc(edev->ndev); num_tc 2293 drivers/net/ethernet/qlogic/qede/qede_main.c num_tc = num_tc ? num_tc : edev->dev_info.num_tc; num_tc 2294 drivers/net/ethernet/qlogic/qede/qede_main.c qede_setup_tc(edev->ndev, num_tc); num_tc 1211 drivers/net/ethernet/sfc/falcon/net_driver.h return !(tx_queue->efx->net_dev->num_tc < 2 && num_tc 432 drivers/net/ethernet/sfc/falcon/tx.c unsigned tc, num_tc; num_tc 438 drivers/net/ethernet/sfc/falcon/tx.c num_tc = mqprio->num_tc; num_tc 440 drivers/net/ethernet/sfc/falcon/tx.c if (ef4_nic_rev(efx) < EF4_REV_FALCON_B0 || num_tc > EF4_MAX_TX_TC) num_tc 445 drivers/net/ethernet/sfc/falcon/tx.c if (num_tc == net_dev->num_tc) num_tc 448 drivers/net/ethernet/sfc/falcon/tx.c for (tc = 0; tc < num_tc; tc++) { num_tc 453 drivers/net/ethernet/sfc/falcon/tx.c if (num_tc > net_dev->num_tc) { num_tc 472 drivers/net/ethernet/sfc/falcon/tx.c net_dev->num_tc = num_tc; num_tc 476 drivers/net/ethernet/sfc/falcon/tx.c max_t(int, num_tc, 1) * num_tc 487 drivers/net/ethernet/sfc/falcon/tx.c net_dev->num_tc = num_tc; num_tc 1492 drivers/net/ethernet/sfc/net_driver.h return !(tx_queue->efx->net_dev->num_tc < 2 && num_tc 689 drivers/net/ethernet/sfc/tx.c unsigned tc, num_tc; num_tc 695 drivers/net/ethernet/sfc/tx.c num_tc = mqprio->num_tc; num_tc 697 drivers/net/ethernet/sfc/tx.c if (num_tc > EFX_MAX_TX_TC) num_tc 702 drivers/net/ethernet/sfc/tx.c if (num_tc == net_dev->num_tc) num_tc 705 drivers/net/ethernet/sfc/tx.c for (tc = 0; tc < num_tc; tc++) { num_tc 710 drivers/net/ethernet/sfc/tx.c if (num_tc > net_dev->num_tc) { num_tc 729 drivers/net/ethernet/sfc/tx.c net_dev->num_tc = num_tc; num_tc 733 drivers/net/ethernet/sfc/tx.c max_t(int, num_tc, 1) * num_tc 744 drivers/net/ethernet/sfc/tx.c net_dev->num_tc = num_tc; num_tc 1413 drivers/net/ethernet/ti/cpsw.c static int cpsw_tc_to_fifo(int tc, int num_tc) num_tc 1415 drivers/net/ethernet/ti/cpsw.c if (tc == num_tc - 1) num_tc 1547 drivers/net/ethernet/ti/cpsw.c fifo = cpsw_tc_to_fifo(tc, ndev->num_tc); num_tc 2274 drivers/net/ethernet/ti/cpsw.c int fifo, num_tc, count, offset; num_tc 2279 drivers/net/ethernet/ti/cpsw.c num_tc = mqprio->qopt.num_tc; num_tc 2280 drivers/net/ethernet/ti/cpsw.c if (num_tc > CPSW_TC_NUM) num_tc 2292 drivers/net/ethernet/ti/cpsw.c if (num_tc) { num_tc 2295 drivers/net/ethernet/ti/cpsw.c fifo = cpsw_tc_to_fifo(tc, num_tc); num_tc 2299 drivers/net/ethernet/ti/cpsw.c netdev_set_num_tc(ndev, num_tc); num_tc 2300 drivers/net/ethernet/ti/cpsw.c for (i = 0; i < num_tc; i++) { num_tc 1882 drivers/net/ethernet/ti/netcp_core.c u8 num_tc; num_tc 1892 drivers/net/ethernet/ti/netcp_core.c num_tc = mqprio->num_tc; num_tc 1896 drivers/net/ethernet/ti/netcp_core.c (dev->real_num_tx_queues < num_tc)) num_tc 1900 drivers/net/ethernet/ti/netcp_core.c if (num_tc) { num_tc 1901 drivers/net/ethernet/ti/netcp_core.c netdev_set_num_tc(dev, num_tc); num_tc 1902 drivers/net/ethernet/ti/netcp_core.c for (i = 0; i < num_tc; i++) num_tc 521 include/linux/avf/virtchnl.h u32 num_tc; num_tc 812 include/linux/avf/virtchnl.h valid_len += (vti->num_tc - 1) * num_tc 814 include/linux/avf/virtchnl.h if (vti->num_tc == 0) num_tc 2051 include/linux/netdevice.h s16 num_tc; num_tc 2090 include/linux/netdevice.h if (tc >= dev->num_tc) num_tc 2100 include/linux/netdevice.h int netdev_set_num_tc(struct net_device *dev, u8 num_tc); num_tc 2105 include/linux/netdevice.h return dev->num_tc; num_tc 2116 include/linux/netdevice.h return max_t(int, -dev->num_tc, 0); num_tc 107 include/linux/qed/qed_eth_if.h u8 num_tc; num_tc 703 include/uapi/linux/pkt_sched.h __u8 num_tc; num_tc 2024 net/core/dev.c dev->num_tc = 0; num_tc 2043 net/core/dev.c if (dev->num_tc) { num_tc 2102 net/core/dev.c int num_tc = dev->num_tc ? : 1; num_tc 2106 net/core/dev.c for (tci = cpu * num_tc; num_tc--; tci++) { num_tc 2246 net/core/dev.c int maps_sz, num_tc = 1, tc = 0; num_tc 2251 net/core/dev.c if (dev->num_tc) { num_tc 2253 net/core/dev.c num_tc = dev->num_tc; num_tc 2254 net/core/dev.c if (num_tc < 0) num_tc 2267 net/core/dev.c maps_sz = XPS_RXQ_DEV_MAPS_SIZE(num_tc, dev->num_rx_queues); num_tc 2271 net/core/dev.c maps_sz = XPS_CPU_DEV_MAPS_SIZE(num_tc); num_tc 2293 net/core/dev.c tci = j * num_tc + tc; num_tc 2317 net/core/dev.c for (i = tc, tci = j * num_tc; dev_maps && i--; tci++) { num_tc 2326 net/core/dev.c tci = j * num_tc + tc; num_tc 2354 net/core/dev.c for (i = num_tc - tc, tci++; dev_maps && --i; tci++) { num_tc 2372 net/core/dev.c for (i = num_tc, tci = j * num_tc; i--; tci++) { num_tc 2400 net/core/dev.c for (i = tc, tci = j * num_tc; i--; tci++) num_tc 2405 net/core/dev.c for (i = num_tc - tc, tci++; --i; tci++) num_tc 2421 net/core/dev.c for (i = num_tc, tci = j * num_tc; i--; tci++) { num_tc 2471 net/core/dev.c dev->num_tc = 0; num_tc 2479 net/core/dev.c if (tc >= dev->num_tc) num_tc 2491 net/core/dev.c int netdev_set_num_tc(struct net_device *dev, u8 num_tc) num_tc 2493 net/core/dev.c if (num_tc > TC_MAX_QUEUE) num_tc 2501 net/core/dev.c dev->num_tc = num_tc; num_tc 2529 net/core/dev.c if (sb_dev->num_tc >= 0 || tc >= dev->num_tc) num_tc 2564 net/core/dev.c dev->num_tc = -channel; num_tc 2593 net/core/dev.c if (dev->num_tc) num_tc 2789 net/core/dev.c if (dev->num_tc) { num_tc 3544 net/core/dev.c if (dev->num_tc) { num_tc 3545 net/core/dev.c tci *= dev->num_tc; num_tc 1079 net/core/net-sysfs.c return dev->num_tc < 0 ? sprintf(buf, "%u%d\n", tc, dev->num_tc) : num_tc 1239 net/core/net-sysfs.c int cpu, len, num_tc = 1, tc = 0; num_tc 1249 net/core/net-sysfs.c if (dev->num_tc) { num_tc 1251 net/core/net-sysfs.c num_tc = dev->num_tc; num_tc 1252 net/core/net-sysfs.c if (num_tc < 0) num_tc 1270 net/core/net-sysfs.c int i, tci = cpu * num_tc + tc; num_tc 1332 net/core/net-sysfs.c int j, len, num_tc = 1, tc = 0; num_tc 1336 net/core/net-sysfs.c if (dev->num_tc) { num_tc 1337 net/core/net-sysfs.c num_tc = dev->num_tc; num_tc 1353 net/core/net-sysfs.c int i, tci = j * num_tc + tc; num_tc 67 net/sched/sch_mqprio.c if (qopt->num_tc > TC_MAX_QUEUE) num_tc 72 net/sched/sch_mqprio.c if (qopt->prio_tc_map[i] >= qopt->num_tc) num_tc 91 net/sched/sch_mqprio.c for (i = 0; i < qopt->num_tc; i++) { num_tc 103 net/sched/sch_mqprio.c for (j = i + 1; j < qopt->num_tc; j++) { num_tc 195 net/sched/sch_mqprio.c if (i >= qopt->num_tc) num_tc 211 net/sched/sch_mqprio.c if (i >= qopt->num_tc) num_tc 258 net/sched/sch_mqprio.c for (i = 0; i < mqprio.qopt.num_tc; i++) num_tc 261 net/sched/sch_mqprio.c for (i = 0; i < mqprio.qopt.num_tc; i++) num_tc 275 net/sched/sch_mqprio.c netdev_set_num_tc(dev, qopt->num_tc); num_tc 276 net/sched/sch_mqprio.c for (i = 0; i < qopt->num_tc; i++) num_tc 354 net/sched/sch_mqprio.c for (i = 0; i < opt->num_tc; i++) { num_tc 368 net/sched/sch_mqprio.c for (i = 0; i < opt->num_tc; i++) { num_tc 428 net/sched/sch_mqprio.c opt.num_tc = netdev_get_num_tc(dev); num_tc 910 net/sched/sch_taprio.c if (!qopt && !dev->num_tc) { num_tc 918 net/sched/sch_taprio.c if (dev->num_tc) num_tc 922 net/sched/sch_taprio.c if (qopt->num_tc > TC_MAX_QUEUE) { num_tc 928 net/sched/sch_taprio.c if (qopt->num_tc > dev->num_tx_queues) { num_tc 935 net/sched/sch_taprio.c if (qopt->prio_tc_map[i] >= qopt->num_tc) { num_tc 941 net/sched/sch_taprio.c for (i = 0; i < qopt->num_tc; i++) { num_tc 958 net/sched/sch_taprio.c for (j = i + 1; j < qopt->num_tc; j++) { num_tc 1364 net/sched/sch_taprio.c if (!mqprio || mqprio->num_tc != dev->num_tc) num_tc 1367 net/sched/sch_taprio.c for (i = 0; i < mqprio->num_tc; i++) num_tc 1476 net/sched/sch_taprio.c netdev_set_num_tc(dev, mqprio->num_tc); num_tc 1477 net/sched/sch_taprio.c for (i = 0; i < mqprio->num_tc; i++) num_tc 1790 net/sched/sch_taprio.c opt.num_tc = netdev_get_num_tc(dev); num_tc 702 tools/include/uapi/linux/pkt_sched.h __u8 num_tc;