Home
last modified time | relevance | path

Searched refs:max_tc (Results 1 – 20 of 20) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_dcb.c28 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() argument
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()
[all …]
H A Dbnxt_dcb.h17 u8 max_tc; member
H A Dbnxt.c7677 bp->max_tc = resp->max_configurable_queues; in bnxt_hwrm_queue_qportcfg()
7679 if (bp->max_tc > BNXT_MAX_QUEUE) in bnxt_hwrm_queue_qportcfg()
7680 bp->max_tc = BNXT_MAX_QUEUE; in bnxt_hwrm_queue_qportcfg()
7684 for (i = 0, j = 0; i < bp->max_tc; i++) { in bnxt_hwrm_queue_qportcfg()
7693 bp->max_q = bp->max_tc; in bnxt_hwrm_queue_qportcfg()
7694 bp->max_tc = max_t(u8, j, 1); in bnxt_hwrm_queue_qportcfg()
7697 bp->max_tc = 1; in bnxt_hwrm_queue_qportcfg()
7699 if (bp->max_lltc > bp->max_tc) in bnxt_hwrm_queue_qportcfg()
7700 bp->max_lltc = bp->max_tc; in bnxt_hwrm_queue_qportcfg()
11835 if (tc > bp->max_tc) { in bnxt_setup_mq_tc()
[all …]
H A Dbnxt.h1785 u8 max_tc; member
/OK3568_Linux_fs/kernel/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-dcb.c149 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_dcb_82599.c193 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 Dixgbe_dcb_nl.c513 __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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_dcb.c113 u8 max_tc = 0; in hclge_ets_validate() local
121 if (ets->prio_tc[i] > max_tc) in hclge_ets_validate()
122 max_tc = ets->prio_tc[i]; in hclge_ets_validate()
125 ret = hclge_dcb_common_validate(hdev, max_tc + 1, ets->prio_tc); in hclge_ets_validate()
161 *tc = max_tc + 1; in hclge_ets_validate()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_dcbnl.c162 static void mlx5e_build_tc_group(struct ieee_ets *ets, u8 *tc_group, int max_tc) in mlx5e_build_tc_group() argument
169 for (i = 0; i <= max_tc; i++) { in mlx5e_build_tc_group()
184 for (i = 0; i <= max_tc; i++) { in mlx5e_build_tc_group()
202 u8 *tc_group, int max_tc) in mlx5e_build_tc_tx_bw() argument
209 for (i = 0; i <= max_tc; i++) { in mlx5e_build_tc_tx_bw()
220 for (i = 0; i <= max_tc; i++) { in mlx5e_build_tc_tx_bw()
254 int max_tc = mlx5_max_tc(mdev); in mlx5e_dcbnl_ieee_setets_core() local
257 mlx5e_build_tc_group(ets, tc_group, max_tc); in mlx5e_dcbnl_ieee_setets_core()
258 mlx5e_build_tc_tx_bw(ets, tc_tx_bw, tc_group, max_tc); in mlx5e_dcbnl_ieee_setets_core()
H A Den_rep.c1176 .max_tc = 1,
1195 .max_tc = MLX5E_MAX_NUM_TC,
H A Den.h860 int max_tc; member
H A Den_main.c3347 for (tc = 0; tc < priv->profile->max_tc; tc++) in mlx5e_destroy_tises()
3362 for (tc = 0; tc < priv->profile->max_tc; tc++) { in mlx5e_create_tises()
3385 tc = priv->profile->max_tc; in mlx5e_create_tises()
5382 .max_tc = MLX5E_MAX_NUM_TC,
5445 nch * profile->max_tc, in mlx5e_create_netdev()
H A Dport.c594 u8 num_tc = MLX5_CAP_GEN(mdev, max_tc) ? : 8; in mlx5_max_tc()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/ice/
H A Dice_dcb_nl.c67 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/qlogic/qed/
H A Dqed_dcbx.c527 p_params->pfc.max_tc = QED_MFW_GET_FIELD(pfc, DCBX_PFC_CAPS); 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()
H A Dqed_dev.c1747 u8 max_tc = qed_init_qm_get_num_tcs(p_hwfn); in qed_get_cm_pq_idx_mcos() local
1749 if (max_tc == 0) { in qed_get_cm_pq_idx_mcos()
1755 if (tc > max_tc) in qed_get_cm_pq_idx_mcos()
1756 DP_ERR(p_hwfn, "tc %d must be smaller than %d\n", tc, max_tc); in qed_get_cm_pq_idx_mcos()
1758 return qed_get_cm_pq_idx(p_hwfn, PQ_FLAGS_MCOS) + (tc % max_tc); in qed_get_cm_pq_idx_mcos()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
H A Dipoib_vlan.c353 .max_tc = MLX5I_MAX_NUM_TC,
H A Dipoib.c461 .max_tc = MLX5I_MAX_NUM_TC,
/OK3568_Linux_fs/kernel/include/linux/qed/
H A Dqed_if.h69 u8 max_tc; member
/OK3568_Linux_fs/kernel/include/linux/mlx5/
H A Dmlx5_ifc.h1345 u8 max_tc[0x4]; member