/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-dcb.c | 149 u8 max_tc = 0; in xgbe_dcb_ieee_setets() local 161 max_tc = max_t(u8, max_tc, ets->prio_tc[i]); in xgbe_dcb_ieee_setets() 163 max_tc = max_t(u8, max_tc, i); in xgbe_dcb_ieee_setets() 181 if (max_tc >= pdata->hw_feat.tc_cnt) { in xgbe_dcb_ieee_setets() 202 pdata->num_tcs = max_tc + 1; in xgbe_dcb_ieee_setets()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-dcb.c | 149 u8 max_tc = 0; in xgbe_dcb_ieee_setets() local 161 max_tc = max_t(u8, max_tc, ets->prio_tc[i]); in xgbe_dcb_ieee_setets() 163 max_tc = max_t(u8, max_tc, i); in xgbe_dcb_ieee_setets() 181 if (max_tc >= pdata->hw_feat.tc_cnt) { in xgbe_dcb_ieee_setets() 202 pdata->num_tcs = max_tc + 1; in xgbe_dcb_ieee_setets()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_dcb.c | 28 for (i = 0; i < bp->max_tc; i++) { in bnxt_queue_to_tc() 30 for (j = 0; j < bp->max_tc; j++) { in bnxt_queue_to_tc() 91 u8 max_tc) in bnxt_hwrm_queue_cos2bw_cfg() 99 for (i = 0; i < max_tc; i++) { in bnxt_hwrm_queue_cos2bw_cfg() 151 for (i = 0; i < bp->max_tc; i++, data += sizeof(cos2bw) - 4) { in bnxt_hwrm_queue_cos2bw_qcfg() 177 int max = bp->max_tc; in bnxt_queue_remap() 241 for (i = 0; i < bp->max_tc; i++) { in bnxt_hwrm_queue_pfc_cfg() 255 for (i = 0; i < bp->max_tc; i++) { in bnxt_hwrm_queue_pfc_cfg() 436 u8 max_tc = 0; in bnxt_ets_validate() local 440 if (ets->prio_tc[i] > bp->max_tc) { in bnxt_ets_validate() 90 bnxt_hwrm_queue_cos2bw_cfg(struct bnxt *bp, struct ieee_ets *ets, u8 max_tc) bnxt_hwrm_queue_cos2bw_cfg() argument 512 u8 max_tc = 0; bnxt_dcbnl_ieee_setets() local [all...] |
H A D | bnxt_dcb.h | 17 u8 max_tc; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_dcb.c | 29 for (i = 0; i < bp->max_tc; i++) { in bnxt_queue_to_tc() 31 for (j = 0; j < bp->max_tc; j++) { in bnxt_queue_to_tc() 97 u8 max_tc) in bnxt_hwrm_queue_cos2bw_cfg() 107 for (i = 0; i < max_tc; i++) { in bnxt_hwrm_queue_cos2bw_cfg() 163 for (i = 0; i < bp->max_tc; i++) { in bnxt_hwrm_queue_cos2bw_qcfg() 196 int max = bp->max_tc; in bnxt_queue_remap() 261 for (i = 0; i < bp->max_tc; i++) { in bnxt_hwrm_queue_pfc_cfg() 275 for (i = 0; i < bp->max_tc; i++) { in bnxt_hwrm_queue_pfc_cfg() 476 u8 max_tc = 0; in bnxt_ets_validate() local 480 if (ets->prio_tc[i] > bp->max_tc) { in bnxt_ets_validate() 96 bnxt_hwrm_queue_cos2bw_cfg(struct bnxt *bp, struct ieee_ets *ets, u8 max_tc) bnxt_hwrm_queue_cos2bw_cfg() argument 559 u8 max_tc = 0; bnxt_dcbnl_ieee_setets() local [all...] |
H A D | bnxt_dcb.h | 17 u8 max_tc; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_dcb_82599.c | 193 u8 max_tc = 0; in ixgbe_dcb_config_pfc_82599() local 218 if (prio_tc[i] > max_tc) in ixgbe_dcb_config_pfc_82599() 219 max_tc = prio_tc[i]; in ixgbe_dcb_config_pfc_82599() 224 for (i = 0; i <= max_tc; i++) { in ixgbe_dcb_config_pfc_82599()
|
H A D | ixgbe_dcb_nl.c | 513 __u8 max_tc = 0; in ixgbe_dcbnl_ieee_setets() local 535 if (ets->prio_tc[i] > max_tc) in ixgbe_dcbnl_ieee_setets() 536 max_tc = ets->prio_tc[i]; in ixgbe_dcbnl_ieee_setets() 543 if (max_tc) in ixgbe_dcbnl_ieee_setets() 544 max_tc++; in ixgbe_dcbnl_ieee_setets() 546 if (max_tc > adapter->dcb_cfg.num_tcs.pg_tcs) in ixgbe_dcbnl_ieee_setets() 549 if (max_tc != adapter->hw_tcs) { in ixgbe_dcbnl_ieee_setets() 550 err = ixgbe_setup_tc(dev, max_tc); in ixgbe_dcbnl_ieee_setets()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_dcb_82599.c | 193 u8 max_tc = 0; in ixgbe_dcb_config_pfc_82599() local 218 if (prio_tc[i] > max_tc) in ixgbe_dcb_config_pfc_82599() 219 max_tc = prio_tc[i]; in ixgbe_dcb_config_pfc_82599() 224 for (i = 0; i <= max_tc; i++) { in ixgbe_dcb_config_pfc_82599()
|
H A D | ixgbe_dcb_nl.c | 511 __u8 max_tc = 0; in ixgbe_dcbnl_ieee_setets() local 533 if (ets->prio_tc[i] > max_tc) in ixgbe_dcbnl_ieee_setets() 534 max_tc = ets->prio_tc[i]; in ixgbe_dcbnl_ieee_setets() 541 if (max_tc) in ixgbe_dcbnl_ieee_setets() 542 max_tc++; in ixgbe_dcbnl_ieee_setets() 544 if (max_tc > adapter->dcb_cfg.num_tcs.pg_tcs) in ixgbe_dcbnl_ieee_setets() 547 if (max_tc != adapter->hw_tcs) { in ixgbe_dcbnl_ieee_setets() 548 err = ixgbe_setup_tc(dev, max_tc); in ixgbe_dcbnl_ieee_setets()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/ |
H A D | ice_dcb_nl.c | 738 u8 max_tc; in ice_dcbnl_setapp() local 768 max_tc = pf->hw.func_caps.common_cap.maxtc; in ice_dcbnl_setapp() 769 if (app->priority >= max_tc) { in ice_dcbnl_setapp() 771 app->priority, max_tc); in ice_dcbnl_setapp() 817 new_cfg->pfc.pfccap = max_tc; in ice_dcbnl_setapp() 820 for (i = 0; i < max_tc; i++) in ice_dcbnl_setapp() 824 dscp = (i * max_tc) + j; in ice_dcbnl_setapp() 825 offset = max_tc * ICE_BYTES_PER_DSCP_VAL; in ice_dcbnl_setapp() 829 if (max_tc < ICE_MAX_TRAFFIC_CLASS) in ice_dcbnl_setapp() 837 for (i = 1; i < max_tc; in ice_dcbnl_setapp() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_dcbnl.c | 164 static void mlx5e_build_tc_group(struct ieee_ets *ets, u8 *tc_group, int max_tc) in mlx5e_build_tc_group() argument 171 for (i = 0; i <= max_tc; i++) { in mlx5e_build_tc_group() 186 for (i = 0; i <= max_tc; i++) { in mlx5e_build_tc_group() 204 u8 *tc_group, int max_tc) in mlx5e_build_tc_tx_bw() 211 for (i = 0; i <= max_tc; i++) { in mlx5e_build_tc_tx_bw() 222 for (i = 0; i <= max_tc; i++) { in mlx5e_build_tc_tx_bw() 256 int max_tc = mlx5_max_tc(mdev); in mlx5e_dcbnl_ieee_setets_core() local 259 mlx5e_build_tc_group(ets, tc_group, max_tc); in mlx5e_dcbnl_ieee_setets_core() 260 mlx5e_build_tc_tx_bw(ets, tc_tx_bw, tc_group, max_tc); in mlx5e_dcbnl_ieee_setets_core() 203 mlx5e_build_tc_tx_bw(struct ieee_ets *ets, u8 *tc_tx_bw, u8 *tc_group, int max_tc) mlx5e_build_tc_tx_bw() argument
|
H A D | en_rep.c | 1179 .max_tc = 1, 1198 .max_tc = MLX5E_MAX_NUM_TC,
|
H A D | en.h | 860 int max_tc; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_dcbnl.c | 164 static void mlx5e_build_tc_group(struct ieee_ets *ets, u8 *tc_group, int max_tc) in mlx5e_build_tc_group() argument 171 for (i = 0; i <= max_tc; i++) { in mlx5e_build_tc_group() 186 for (i = 0; i <= max_tc; i++) { in mlx5e_build_tc_group() 204 u8 *tc_group, int max_tc) in mlx5e_build_tc_tx_bw() 211 for (i = 0; i <= max_tc; i++) { in mlx5e_build_tc_tx_bw() 222 for (i = 0; i <= max_tc; i++) { in mlx5e_build_tc_tx_bw() 256 int max_tc = mlx5_max_tc(mdev); in mlx5e_dcbnl_ieee_setets_core() local 259 mlx5e_build_tc_group(ets, tc_group, max_tc); in mlx5e_dcbnl_ieee_setets_core() 260 mlx5e_build_tc_tx_bw(ets, tc_tx_bw, tc_group, max_tc); in mlx5e_dcbnl_ieee_setets_core() 203 mlx5e_build_tc_tx_bw(struct ieee_ets *ets, u8 *tc_tx_bw, u8 *tc_group, int max_tc) mlx5e_build_tc_tx_bw() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
H A D | ice_dcb_nl.c | 67 int err, i, max_tc = 0; in ice_dcbnl_setets() local 84 if (ets->prio_tc[i] > max_tc) in ice_dcbnl_setets() 85 max_tc = ets->prio_tc[i]; in ice_dcbnl_setets() 97 max_tc = pf->hw.func_caps.common_cap.maxtc; in ice_dcbnl_setets() 99 new_cfg->etscfg.maxtcs = max_tc; in ice_dcbnl_setets()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_dcbx.c | 527 p_params->pfc.max_tc = QED_MFW_GET_FIELD(pfc, DCBX_PFC_CAPS); in qed_dcbx_get_pfc_data() 540 "PFC params: willing %d, pfc_bitmap %u max_tc = %u enabled = %d\n", in qed_dcbx_get_pfc_data() 541 p_params->pfc.willing, pfc_map, p_params->pfc.max_tc, in qed_dcbx_get_pfc_data() 1040 *pfc |= (u32)p_params->pfc.max_tc << DCBX_PFC_CAPS_SHIFT; in qed_dcbx_set_pfc_data() 1512 *num = dcbx_info->operational.params.pfc.max_tc; in qed_dcbnl_getnumtcs() 1683 dcbx_set.config.params.pfc.max_tc = num; in qed_dcbnl_setnumtcs() 2004 pfc->tcs_supported = dcbx_info->remote.params.pfc.max_tc; in qed_dcbnl_cee_peer_getpfc() 2066 pfc->pfc_cap = params->pfc.max_tc; in qed_dcbnl_get_ieee_pfc() 2111 dcbx_set.config.params.pfc.max_tc = pfc->pfc_cap; in qed_dcbnl_ieee_setpfc()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_dcbx.c | 527 p_params->pfc.max_tc = QED_MFW_GET_FIELD(pfc, DCBX_PFC_CAPS); in qed_dcbx_get_pfc_data() 540 "PFC params: willing %d, pfc_bitmap %u max_tc = %u enabled = %d\n", in qed_dcbx_get_pfc_data() 541 p_params->pfc.willing, pfc_map, p_params->pfc.max_tc, in qed_dcbx_get_pfc_data() 1038 *pfc |= (u32)p_params->pfc.max_tc << DCBX_PFC_CAPS_SHIFT; in qed_dcbx_set_pfc_data() 1510 *num = dcbx_info->operational.params.pfc.max_tc; in qed_dcbnl_getnumtcs() 1681 dcbx_set.config.params.pfc.max_tc = num; in qed_dcbnl_setnumtcs() 2002 pfc->tcs_supported = dcbx_info->remote.params.pfc.max_tc; in qed_dcbnl_cee_peer_getpfc() 2064 pfc->pfc_cap = params->pfc.max_tc; in qed_dcbnl_get_ieee_pfc() 2109 dcbx_set.config.params.pfc.max_tc = pfc->pfc_cap; in qed_dcbnl_ieee_setpfc()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_tm.c | 686 kinfo->tc_info.max_tc = 1; in hclge_tm_update_kinfo_rss_size() 692 kinfo->tc_info.max_tc = hdev->tc_max; in hclge_tm_update_kinfo_rss_size() 983 for (i = 0; i < kinfo->tc_info.max_tc; i++) { in hclge_tm_pri_q_qs_cfg_tc_base() 1203 if (i >= kinfo->tc_info.max_tc) in hclge_tm_pri_tc_base_dwrr_cfg() 1391 if (pri_id >= kinfo->tc_info.max_tc) in hclge_tm_schd_mode_tc_base_cfg()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
H A D | ipoib_vlan.c | 353 .max_tc = MLX5I_MAX_NUM_TC,
|
H A D | ipoib.c | 465 .max_tc = MLX5I_MAX_NUM_TC,
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
H A D | ipoib_vlan.c | 363 .max_tc = MLX5I_MAX_NUM_TC,
|
H A D | ipoib.c | 507 .max_tc = MLX5I_MAX_NUM_TC,
|
/kernel/linux/linux-5.10/include/linux/qed/ |
H A D | qed_if.h | 69 u8 max_tc; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hnae3.h | 814 u8 max_tc; /* Total number of TCs */ member
|