Home
last modified time | relevance | path

Searched refs:num_tc (Results 1 – 25 of 96) sorted by relevance

1234

/openbmc/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_dcbnl.c38 u8 num_tc = 0; in fm10k_dcbnl_ieee_setets() local
47 if (ets->prio_tc[i] > num_tc) in fm10k_dcbnl_ieee_setets()
48 num_tc = ets->prio_tc[i]; in fm10k_dcbnl_ieee_setets()
52 if (num_tc) in fm10k_dcbnl_ieee_setets()
53 num_tc++; in fm10k_dcbnl_ieee_setets()
55 if (num_tc > IEEE_8021QAZ_MAX_TCS) in fm10k_dcbnl_ieee_setets()
59 if (num_tc != netdev_get_num_tc(dev)) { in fm10k_dcbnl_ieee_setets()
60 int err = fm10k_setup_tc(dev, num_tc); in fm10k_dcbnl_ieee_setets()
/openbmc/linux/net/sched/
H A Dsch_mqprio_lib.c26 for (i = 0; i < qopt->num_tc; i++) { in mqprio_validate_queue_counts()
51 for (j = i + 1; j < qopt->num_tc; j++) { in mqprio_validate_queue_counts()
76 if (qopt->num_tc > TC_MAX_QUEUE) { in mqprio_validate_qopt()
84 if (qopt->prio_tc_map[i] >= qopt->num_tc) { in mqprio_validate_qopt()
105 int tc, num_tc = netdev_get_num_tc(dev); in mqprio_qopt_reconstruct() local
107 qopt->num_tc = num_tc; in mqprio_qopt_reconstruct()
110 for (tc = 0; tc < num_tc; tc++) { in mqprio_qopt_reconstruct()
H A Dsch_taprio.c116 int num_tc = netdev_get_num_tc(dev); in taprio_calculate_gate_durations() local
133 for (tc = 0; tc < num_tc; tc++) { in taprio_calculate_gate_durations()
150 for (tc = 0; tc < num_tc; tc++) in taprio_calculate_gate_durations()
275 for (tc = 0; tc < num_tc; tc++) { in taprio_update_queue_max_sdu()
675 for (tc = 0; tc < num_tc; tc++) { in taprio_set_budgets()
689 int tc_consumed, int num_tc) in taprio_update_budgets() argument
693 for (tc = 0; tc < num_tc; tc++) { in taprio_update_budgets()
971 for (tc = 0; tc < num_tc; tc++) { in advance_sched()
1190 if (!dev->num_tc) { in taprio_parse_mqprio_opt()
1264 for (tc = 0; tc < num_tc; tc++) { in setup_first_end_time()
[all …]
H A Dsch_mqprio.c58 for (i = 0; i < mqprio.qopt.num_tc; i++) in mqprio_enable_offload()
61 for (i = 0; i < mqprio.qopt.num_tc; i++) in mqprio_enable_offload()
300 if (i >= qopt->num_tc) in mqprio_parse_nlattr()
329 if (i >= qopt->num_tc) in mqprio_parse_nlattr()
420 netdev_set_num_tc(dev, qopt->num_tc); in mqprio_init()
421 for (i = 0; i < qopt->num_tc; i++) in mqprio_init()
499 for (i = 0; i < opt->num_tc; i++) { in dump_rates()
513 for (i = 0; i < opt->num_tc; i++) { in dump_rates()
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_dcb.c55 if (i < hdev->tm_info.num_tc) in hclge_tm_info_to_ieee_ets()
84 if (num_tc > hdev->tc_max) { in hclge_dcb_common_validate()
87 num_tc, hdev->tc_max); in hclge_dcb_common_validate()
92 if (prio_tc[i] >= num_tc) { in hclge_dcb_common_validate()
95 i, prio_tc[i], num_tc); in hclge_dcb_common_validate()
195 if (*tc != hdev->tm_info.num_tc) in hclge_ets_validate()
258 u8 num_tc = 0; in hclge_ieee_setets() local
519 if (!mqprio_qopt->qopt.num_tc) { in hclge_mqprio_qopt_check()
520 mqprio_qopt->qopt.num_tc = 1; in hclge_mqprio_qopt_check()
572 tc_info->num_tc = mqprio_qopt->qopt.num_tc; in hclge_sync_mqprio_qopt()
[all …]
H A Dhclge_tm.c234 if (tc >= hdev->tm_info.num_tc) in hclge_fill_pri_array()
665 return kinfo->rss_size * tc_info->num_tc; in hclge_vport_get_tqp_num()
687 kinfo->tc_info.num_tc = 1; in hclge_tm_update_kinfo_rss_size()
693 kinfo->tc_info.num_tc = in hclge_tm_update_kinfo_rss_size()
766 if (i < hdev->tm_info.num_tc) { in hclge_tm_tc_info_init()
782 (i >= hdev->tm_info.num_tc) ? 0 : i; in hclge_tm_tc_info_init()
807 for (k = 0; k < hdev->tm_info.num_tc; k++) in hclge_tm_pg_info_init()
958 for (i = 0; i < tc_info->num_tc; i++) { in hclge_vport_q_to_qs_map()
1656 hdev->tm_info.num_tc = num_tc; in hclge_tm_schd_info_update()
1658 for (i = 0; i < hdev->tm_info.num_tc; i++) in hclge_tm_schd_info_update()
[all …]
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_mqprio.c5 int lan966x_mqprio_add(struct lan966x_port *port, u8 num_tc) in lan966x_mqprio_add() argument
9 if (num_tc != NUM_PRIO_QUEUES) { in lan966x_mqprio_add()
15 netdev_set_num_tc(port->dev, num_tc); in lan966x_mqprio_add()
17 for (i = 0; i < num_tc; ++i) in lan966x_mqprio_add()
H A Dlan966x_tc.c13 u8 num_tc = mqprio->qopt.num_tc; in lan966x_tc_setup_qdisc_mqprio() local
17 return num_tc ? lan966x_mqprio_add(port, num_tc) : in lan966x_tc_setup_qdisc_mqprio()
/openbmc/linux/drivers/net/ethernet/sfc/siena/
H A Dtx.c363 unsigned tc, num_tc; in efx_siena_setup_tc() local
372 num_tc = mqprio->num_tc; in efx_siena_setup_tc()
374 if (num_tc > EFX_MAX_TX_TC) in efx_siena_setup_tc()
379 if (num_tc == net_dev->num_tc) in efx_siena_setup_tc()
382 for (tc = 0; tc < num_tc; tc++) { in efx_siena_setup_tc()
387 net_dev->num_tc = num_tc; in efx_siena_setup_tc()
390 max_t(int, num_tc, 1) * in efx_siena_setup_tc()
/openbmc/linux/drivers/net/ethernet/sfc/falcon/
H A Dtx.c433 unsigned tc, num_tc; in ef4_setup_tc() local
439 num_tc = mqprio->num_tc; in ef4_setup_tc()
441 if (ef4_nic_rev(efx) < EF4_REV_FALCON_B0 || num_tc > EF4_MAX_TX_TC) in ef4_setup_tc()
446 if (num_tc == net_dev->num_tc) in ef4_setup_tc()
449 for (tc = 0; tc < num_tc; tc++) { in ef4_setup_tc()
454 if (num_tc > net_dev->num_tc) { in ef4_setup_tc()
473 net_dev->num_tc = num_tc; in ef4_setup_tc()
477 max_t(int, num_tc, 1) * in ef4_setup_tc()
488 net_dev->num_tc = num_tc; in ef4_setup_tc()
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_mqprio.c19 if (!mqprio->qopt.num_tc) in cxgb4_mqprio_validate()
31 } else if (mqprio->qopt.num_tc > adap->params.nsched_cls) { in cxgb4_mqprio_validate()
47 for (i = 0; i < mqprio->qopt.num_tc; i++) { in cxgb4_mqprio_validate()
53 for (j = i + 1; j < mqprio->qopt.num_tc; j++) { in cxgb4_mqprio_validate()
339 for (i = 0; i < mqprio->qopt.num_tc; i++) { in cxgb4_mqprio_alloc_tc()
444 for (i = 0; i < mqprio->qopt.num_tc; i++) { in cxgb4_mqprio_enable_offload()
480 ret = netdev_set_num_tc(dev, mqprio->qopt.num_tc); in cxgb4_mqprio_enable_offload()
485 for (i = 0; i < mqprio->qopt.num_tc; i++) { in cxgb4_mqprio_enable_offload()
510 i = mqprio->qopt.num_tc; in cxgb4_mqprio_enable_offload()
602 if (!mqprio->qopt.num_tc) in cxgb4_setup_tc_mqprio()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dqos.c446 u8 num_tc; member
459 int mlx5e_mqprio_rl_init(struct mlx5e_mqprio_rl *rl, struct mlx5_core_dev *mdev, u8 num_tc, in mlx5e_mqprio_rl_init() argument
469 if (num_tc > mlx5e_qos_max_leaf_nodes(mdev)) in mlx5e_mqprio_rl_init()
473 rl->num_tc = num_tc; in mlx5e_mqprio_rl_init()
474 rl->leaves_id = kvcalloc(num_tc, sizeof(*rl->leaves_id), GFP_KERNEL); in mlx5e_mqprio_rl_init()
484 for (tc = 0; tc < num_tc; tc++) { in mlx5e_mqprio_rl_init()
511 for (tc = 0; tc < rl->num_tc; tc++) in mlx5e_mqprio_rl_cleanup()
519 if (tc >= rl->num_tc) in mlx5e_mqprio_rl_get_node_hw_id()
H A Dptp.c276 for (i = 0; i < c->num_tc; i++) { in mlx5e_ptp_napi_poll()
301 for (i = 0; i < c->num_tc; i++) { in mlx5e_ptp_napi_poll()
519 for (tc = 0; tc < num_tc; tc++) { in mlx5e_ptp_open_txqsqs()
541 for (tc = 0; tc < c->num_tc; tc++) in mlx5e_ptp_close_txqsqs()
552 u8 num_tc; in mlx5e_ptp_open_tx_cqs() local
565 for (tc = 0; tc < num_tc; tc++) { in mlx5e_ptp_open_tx_cqs()
573 for (tc = 0; tc < num_tc; tc++) { in mlx5e_ptp_open_tx_cqs()
589 tc = num_tc; in mlx5e_ptp_open_tx_cqs()
619 for (tc = 0; tc < c->num_tc; tc++) in mlx5e_ptp_close_tx_cqs()
622 for (tc = 0; tc < c->num_tc; tc++) in mlx5e_ptp_close_tx_cqs()
[all …]
H A Dqos.h47 int mlx5e_mqprio_rl_init(struct mlx5e_mqprio_rl *rl, struct mlx5_core_dev *mdev, u8 num_tc,
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_dcb_lib.c14 u8 i, num_tc, ena_tc = 1; in ice_dcb_get_ena_tc() local
16 num_tc = ice_dcb_get_num_tc(dcbcfg); in ice_dcb_get_ena_tc()
18 for (i = 0; i < num_tc; i++) in ice_dcb_get_ena_tc()
109 u8 num_tc = 0; in ice_dcb_get_num_tc() local
121 if (num_tc & BIT(i)) { in ice_dcb_get_num_tc()
153 u8 num_tc, ena_tc_map, pfc_ena_map; in ice_get_first_droptc() local
156 num_tc = ice_dcb_get_num_tc(cfg); in ice_get_first_droptc()
165 for (i = 0; i < num_tc; i++) { in ice_get_first_droptc()
315 u8 num_tc, total_bw = 0; in ice_dcb_bwchk() local
326 if (num_tc == 1) { in ice_dcb_bwchk()
[all …]
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_main.c380 const unsigned int num_tc) in aq_validate_mqprio_opt() argument
387 if (num_tc > tcs_max) { in aq_validate_mqprio_opt()
392 if (num_tc != 0 && !is_power_of_2(num_tc)) { in aq_validate_mqprio_opt()
421 err = aq_validate_mqprio_opt(aq_nic, mqprio, mqprio->qopt.num_tc); in aq_ndo_setup_tc()
425 for (i = 0; i < mqprio->qopt.num_tc; i++) { in aq_ndo_setup_tc()
441 return aq_nic_setup_tc_mqprio(aq_nic, mqprio->qopt.num_tc, in aq_ndo_setup_tc()
/openbmc/linux/drivers/infiniband/hw/irdma/
H A Dmain.c68 l2params->num_tc = qos_info->num_tc; in irdma_fill_qos_info()
71 for (i = 0; i < l2params->num_tc; i++) { in irdma_fill_qos_info()
117 iwdev->dcb_vlan_mode = qos_info.num_tc > 1 && !l2params.dscp_mode; in irdma_iidc_event_handler()
292 iwdev->dcb_vlan_mode = l2params.num_tc > 1 && !l2params.dscp_mode; in irdma_probe()
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_qos.c458 int sparx5_tc_mqprio_add(struct net_device *ndev, u8 num_tc) in sparx5_tc_mqprio_add() argument
462 if (num_tc != SPX5_PRIOS) { in sparx5_tc_mqprio_add()
468 netdev_set_num_tc(ndev, num_tc); in sparx5_tc_mqprio_add()
470 for (i = 0; i < num_tc; i++) in sparx5_tc_mqprio_add()
474 ndev->num_tc, ndev->real_num_tx_queues); in sparx5_tc_mqprio_add()
484 ndev->num_tc, ndev->real_num_tx_queues); in sparx5_tc_mqprio_del()
H A Dsparx5_tc.c81 if (m->qopt.num_tc == 0) in sparx5_tc_setup_qdisc_mqprio()
84 return sparx5_tc_mqprio_add(ndev, m->qopt.num_tc); in sparx5_tc_setup_qdisc_mqprio()
H A Dsparx5_qos.h65 int sparx5_tc_mqprio_add(struct net_device *ndev, u8 num_tc);
/openbmc/linux/drivers/net/ethernet/ti/
H A Dcpsw_priv.c782 static int cpsw_tc_to_fifo(int tc, int num_tc) in cpsw_tc_to_fifo() argument
784 if (tc == num_tc - 1) in cpsw_tc_to_fifo()
948 fifo = cpsw_tc_to_fifo(tc, ndev->num_tc); in cpsw_set_cbs()
997 int fifo, num_tc, count, offset; in cpsw_set_mqprio() local
1002 num_tc = mqprio->qopt.num_tc; in cpsw_set_mqprio()
1003 if (num_tc > CPSW_TC_NUM) in cpsw_set_mqprio()
1013 if (num_tc) { in cpsw_set_mqprio()
1016 fifo = cpsw_tc_to_fifo(tc, num_tc); in cpsw_set_mqprio()
1020 netdev_set_num_tc(ndev, num_tc); in cpsw_set_mqprio()
1021 for (i = 0; i < num_tc; i++) { in cpsw_set_mqprio()
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_dcb.h252 u8 num_tc, u8 num_ports);
255 void i40e_dcb_hw_set_num_tc(struct i40e_hw *hw, u8 num_tc);
H A Di40e_virtchnl_pf.c347 for (i = 0; i < vf->num_tc; i++) { in i40e_get_real_pf_qid()
900 num_tc = vf->num_tc; in i40e_map_pf_queues_to_vsi()
902 for (i = 0; i < num_tc; i++) { in i40e_map_pf_queues_to_vsi()
948 num_tc = vf->num_tc; in i40e_map_pf_to_vf_queues()
950 for (i = 0; i < num_tc; i++) { in i40e_map_pf_to_vf_queues()
2083 for (i = 1; i < vf->num_tc; i++) { in i40e_del_qch()
2362 for (i = 0; i < vf->num_tc; i++) in i40e_vc_config_queues_msg()
4045 if (!tci->num_tc || tci->num_tc > I40E_MAX_VF_VSI) { in i40e_vc_add_qch_msg()
4054 for (i = 0; i < tci->num_tc; i++) in i40e_vc_add_qch_msg()
4092 vf->num_tc = tci->num_tc; in i40e_vc_add_qch_msg()
[all …]
/openbmc/linux/include/linux/net/intel/
H A Diidc.h64 u8 num_tc; member
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_txrx.c149 for (i = 0; i < c->num_tc; i++) in mlx5e_napi_poll()
219 for (i = 0; i < c->num_tc; i++) { in mlx5e_napi_poll()

1234