Home
last modified time | relevance | path

Searched refs:prio_tc (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb_82599.c25 u8 *prio_tc) in ixgbe_dcb_config_rx_arbiter_82599() argument
42 reg |= (prio_tc[i] << (i * IXGBE_RTRUP2TC_UP_SHIFT)); in ixgbe_dcb_config_rx_arbiter_82599()
136 u8 *prio_tc) in ixgbe_dcb_config_tx_data_arbiter_82599() argument
153 reg |= (prio_tc[i] << (i * IXGBE_RTTUP2TC_UP_SHIFT)); in ixgbe_dcb_config_tx_data_arbiter_82599()
190 s32 ixgbe_dcb_config_pfc_82599(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc) in ixgbe_dcb_config_pfc_82599() argument
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()
228 if ((prio_tc[j] == i) && (pfc_en & BIT(j))) { in ixgbe_dcb_config_pfc_82599()
334 u16 *max, u8 *bwg_id, u8 *prio_type, u8 *prio_tc) in ixgbe_dcb_hw_config_82599() argument
337 prio_type, prio_tc); in ixgbe_dcb_hw_config_82599()
[all …]
Dixgbe_dcb_82599.h73 s32 ixgbe_dcb_config_pfc_82599(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc);
81 u8 *prio_tc);
94 u8 *prio_tc);
98 u8 *prio_tc);
Dixgbe_dcb_nl.c316 u8 prio_tc[MAX_USER_PRIORITY]; in ixgbe_dcbnl_set_all() local
333 ixgbe_dcb_unpack_map(dcb_cfg, DCB_TX_CONFIG, prio_tc); in ixgbe_dcbnl_set_all()
336 prio_type, prio_tc); in ixgbe_dcbnl_set_all()
339 netdev_set_prio_tc_map(netdev, i, prio_tc[i]); in ixgbe_dcbnl_set_all()
347 u8 prio_tc[MAX_USER_PRIORITY]; in ixgbe_dcbnl_set_all() local
349 ixgbe_dcb_unpack_map(dcb_cfg, DCB_TX_CONFIG, prio_tc); in ixgbe_dcbnl_set_all()
351 ixgbe_dcb_hw_pfc_config(hw, pfc_en, prio_tc); in ixgbe_dcbnl_set_all()
501 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in ixgbe_dcbnl_ieee_getets()
525 adapter->ixgbe_ieee_ets->prio_tc[i] = in ixgbe_dcbnl_ieee_setets()
529 adapter->ixgbe_ieee_ets->prio_tc); in ixgbe_dcbnl_ieee_setets()
[all …]
Dixgbe_dcb.c256 u8 prio_tc[MAX_TRAFFIC_CLASS]; in ixgbe_dcb_hw_config() local
266 ixgbe_dcb_unpack_map(dcb_config, DCB_TX_CONFIG, prio_tc); in ixgbe_dcb_hw_config()
278 bwgid, ptype, prio_tc); in ixgbe_dcb_hw_config()
286 s32 ixgbe_dcb_hw_pfc_config(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc) in ixgbe_dcb_hw_pfc_config() argument
296 return ixgbe_dcb_config_pfc_82599(hw, pfc_en, prio_tc); in ixgbe_dcb_hw_pfc_config()
333 bwg_id, prio_type, ets->prio_tc); in ixgbe_dcb_hw_ets()
338 u8 *prio_type, u8 *prio_tc) in ixgbe_dcb_hw_ets_config() argument
355 bwg_id, prio_type, prio_tc); in ixgbe_dcb_hw_ets_config()
359 prio_type, prio_tc); in ixgbe_dcb_hw_ets_config()
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_dcb.c39 hclge_tm_prio_tc_info_update(hdev, ets->prio_tc); in hclge_ieee_ets_to_tm_info()
54 ets->prio_tc[i] = hdev->tm_info.prio_tc[i]; in hclge_tm_info_to_ieee_ets()
80 u8 *prio_tc) in hclge_dcb_common_validate() argument
92 if (prio_tc[i] >= num_tc) { in hclge_dcb_common_validate()
95 i, prio_tc[i], num_tc); in hclge_dcb_common_validate()
117 if (ets->prio_tc[i] != hdev->tm_info.prio_tc[i]) in hclge_ets_tc_changed()
120 if (ets->prio_tc[i] > max_tc_id) in hclge_ets_tc_changed()
121 max_tc_id = ets->prio_tc[i]; in hclge_ets_tc_changed()
186 ret = hclge_dcb_common_validate(hdev, tc_num, ets->prio_tc); in hclge_ets_validate()
331 u8 i, j, pfc_map, *prio_tc; in hclge_ieee_setpfc() local
[all …]
Dhclge_tm.c232 tc = hdev->tm_info.prio_tc[pri_id]; in hclge_fill_pri_array()
294 tc_id = hdev->tm_info.prio_tc[pri_id]; in hclge_dscp_to_tc_map()
303 tc_id = hdev->tm_info.prio_tc[pri_id]; in hclge_dscp_to_tc_map()
744 memcpy(kinfo->tc_info.prio_tc, hdev->tm_info.prio_tc, in hclge_tm_vport_tc_info_update()
745 sizeof_field(struct hnae3_tc_info, prio_tc)); in hclge_tm_vport_tc_info_update()
781 hdev->tm_info.prio_tc[i] = in hclge_tm_tc_info_init()
1635 void hclge_tm_prio_tc_info_update(struct hclge_dev *hdev, u8 *prio_tc) in hclge_tm_prio_tc_info_update() argument
1642 hdev->tm_info.prio_tc[i] = prio_tc[i]; in hclge_tm_prio_tc_info_update()
1646 kinfo->tc_info.prio_tc[i] = prio_tc[i]; in hclge_tm_prio_tc_info_update()
Dhclge_tm.h239 void hclge_tm_prio_tc_info_update(struct hclge_dev *hdev, u8 *prio_tc);
Dhclge_main.h366 u8 prio_tc[HNAE3_MAX_USER_PRIO]; member
/linux-6.6.21/drivers/net/ethernet/intel/fm10k/
Dfm10k_dcbnl.c26 ets->prio_tc[i] = netdev_get_prio_tc_map(dev, i); in fm10k_dcbnl_ieee_getets()
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()
67 netdev_set_prio_tc_map(dev, i, ets->prio_tc[i]); in fm10k_dcbnl_ieee_setets()
/linux-6.6.21/drivers/net/ethernet/amd/xgbe/
Dxgbe-dcb.c137 memcpy(ets->prio_tc, pdata->ets->prio_tc, in xgbe_dcb_ieee_getets()
138 sizeof(ets->prio_tc)); in xgbe_dcb_ieee_getets()
159 ets->prio_tc[i]); in xgbe_dcb_ieee_setets()
161 max_tc = max_t(u8, max_tc, ets->prio_tc[i]); in xgbe_dcb_ieee_setets()
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_dcb.c60 qidx = bp->tc_to_qidx[ets->prio_tc[i]]; in bnxt_hwrm_queue_pri2cos_cfg()
89 ets->prio_tc[i] = tc; in bnxt_hwrm_queue_pri2cos_qcfg()
264 (my_ets->prio_tc[pri] == i)) { in bnxt_hwrm_queue_pfc_cfg()
480 if (ets->prio_tc[i] > bp->max_tc) { in bnxt_ets_validate()
482 ets->prio_tc[i]); in bnxt_ets_validate()
485 if (ets->prio_tc[i] > max_tc) in bnxt_ets_validate()
486 max_tc = ets->prio_tc[i]; in bnxt_ets_validate()
548 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in bnxt_dcbnl_ieee_getets()
574 my_ets->prio_tc[i] = IEEE_8021QAZ_MAX_TCS; in bnxt_dcbnl_ieee_setets()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Den_dcb_nl.c300 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in mlx4_en_dcbnl_ieee_getets()
312 if (ets->prio_tc[i] >= MLX4_EN_NUM_UP_HIGH) { in mlx4_en_ets_validate()
314 i, ets->prio_tc[i]); in mlx4_en_ets_validate()
387 err = mlx4_SET_PORT_PRIO2TC(mdev->dev, priv->port, ets->prio_tc); in mlx4_en_dcbnl_ieee_setets()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Den_dcbnl.c121 err = mlx5_query_port_prio_tc(mdev, i, &ets->prio_tc[i]); in mlx5e_dcbnl_ieee_getets()
262 err = mlx5_set_port_prio_tc(mdev, ets->prio_tc); in mlx5e_dcbnl_ieee_setets_core()
279 __func__, i, ets->prio_tc[i]); in mlx5e_dcbnl_ieee_setets_core()
297 if (ets->prio_tc[i] >= MLX5E_MAX_PRIORITY) { in mlx5e_dbcnl_validate_ets()
642 ets.prio_tc[i] = cee_cfg->prio_to_pg_map[i]; in mlx5e_dcbnl_setall()
646 ets.prio_tc[i]); in mlx5e_dcbnl_setall()
1063 ets.prio_tc[i] = i; in mlx5e_ets_init()
1068 ets.prio_tc[0] = 1; in mlx5e_ets_init()
1069 ets.prio_tc[1] = 0; in mlx5e_ets_init()
Dport.c646 int mlx5_set_port_prio_tc(struct mlx5_core_dev *mdev, u8 *prio_tc) in mlx5_set_port_prio_tc() argument
654 if (prio_tc[i] > mlx5_max_tc(mdev)) in mlx5_set_port_prio_tc()
658 MLX5_SET(qtct_reg, in, tclass, prio_tc[i]); in mlx5_set_port_prio_tc()
Den_stats.c1648 MLX5_SET(ppcnt_reg, in, prio_tc, prio); in mlx5e_grp_per_tc_prio_update_stats()
1679 MLX5_SET(ppcnt_reg, in, prio_tc, prio); in mlx5e_grp_per_tc_congest_prio_update_stats()
1901 MLX5_SET(ppcnt_reg, in, prio_tc, prio); in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
/linux-6.6.21/drivers/net/ethernet/intel/i40e/
Di40e_dcb.c1412 u8 pfc_en, u8 *prio_tc) in i40e_dcb_hw_pfc_config() argument
1428 tc2pfc |= BIT(prio_tc[i]); in i40e_dcb_hw_pfc_config()
1597 void i40e_dcb_hw_rx_up2tc_config(struct i40e_hw *hw, u8 *prio_tc) in i40e_dcb_hw_rx_up2tc_config() argument
1604 reg |= I40E_UP2TC_REG(prio_tc[0], 0); in i40e_dcb_hw_rx_up2tc_config()
1605 reg |= I40E_UP2TC_REG(prio_tc[1], 1); in i40e_dcb_hw_rx_up2tc_config()
1606 reg |= I40E_UP2TC_REG(prio_tc[2], 2); in i40e_dcb_hw_rx_up2tc_config()
1607 reg |= I40E_UP2TC_REG(prio_tc[3], 3); in i40e_dcb_hw_rx_up2tc_config()
1608 reg |= I40E_UP2TC_REG(prio_tc[4], 4); in i40e_dcb_hw_rx_up2tc_config()
1609 reg |= I40E_UP2TC_REG(prio_tc[5], 5); in i40e_dcb_hw_rx_up2tc_config()
1610 reg |= I40E_UP2TC_REG(prio_tc[6], 6); in i40e_dcb_hw_rx_up2tc_config()
[all …]
Di40e_dcb.h254 u8 pfc_en, u8 *prio_tc);
259 void i40e_dcb_hw_rx_up2tc_config(struct i40e_hw *hw, u8 *prio_tc);
Di40e_dcb_nl.c54 memcpy(ets->prio_tc, dcbxcfg->etscfg.prioritytable, in i40e_dcbnl_ieee_getets()
55 sizeof(ets->prio_tc)); in i40e_dcbnl_ieee_getets()
128 pf->tmp_cfg.etscfg.prioritytable[i] = ets->prio_tc[i]; in i40e_dcbnl_ieee_setets()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_dcb.c53 if (ets->prio_tc[i] >= IEEE_8021QAZ_MAX_TCS) { in mlxsw_sp_port_ets_validate()
77 hdroom.prios.prio[prio].ets_buf_idx = ets->prio_tc[prio]; in mlxsw_sp_port_headroom_ets_set()
115 ets->prio_tc[i]); in __mlxsw_sp_dcbnl_ieee_setets()
118 ets->prio_tc[i]); in __mlxsw_sp_dcbnl_ieee_setets()
134 mlxsw_sp_port_prio_tc_set(mlxsw_sp_port, i, my_ets->prio_tc[i]); in __mlxsw_sp_dcbnl_ieee_setets()
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/nic/
Ddcb.c78 ets->prio_tc[i] = dcb->prio2tc[i]; in nfp_nic_dcbnl_ieee_getets()
281 dcb->prio2tc[i] = ets->prio_tc[i]; in nfp_nic_dcbnl_ieee_setets()
/linux-6.6.21/include/linux/mlx5/
Dport.h192 int mlx5_set_port_prio_tc(struct mlx5_core_dev *mdev, u8 *prio_tc);
/linux-6.6.21/include/uapi/linux/
Ddcbnl.h65 __u8 prio_tc[IEEE_8021QAZ_MAX_TCS]; member
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_dcb_nl.c46 memcpy(ets->prio_tc, dcbxcfg->etscfg.prio_table, sizeof(ets->prio_tc)); in ice_dcbnl_getets()
90 new_cfg->etscfg.prio_table[i] = ets->prio_tc[i]; in ice_dcbnl_setets()
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/
Dqed_dcbx.c2159 memcpy(ets->prio_tc, params->ets_pri_tc_tbl, sizeof(ets->prio_tc)); in qed_dcbnl_get_ieee_ets()
2203 memcpy(dcbx_set.config.params.ets_pri_tc_tbl, ets->prio_tc, in qed_dcbnl_ieee_setets()
2204 sizeof(ets->prio_tc)); in qed_dcbnl_ieee_setets()
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.h811 u8 prio_tc[HNAE3_MAX_USER_PRIO]; /* TC indexed by prio */ member

12