Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/intel/ixgbe/ !
H A Dixgbe_dcb_82599.c16 * @prio_tc: priority to tc assignments indexed by priority
25 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()
127 * @prio_tc: priority to tc assignments indexed by priority
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()
186 * @prio_tc: priority to tc assignments indexed by priority
190 int 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[ in ixgbe_dcb_config_pfc_82599()
334 ixgbe_dcb_hw_config_82599(struct ixgbe_hw * hw,u8 pfc_en,u16 * refill,u16 * max,u8 * bwg_id,u8 * prio_type,u8 * prio_tc) ixgbe_dcb_hw_config_82599() argument
[all...]
H A Dixgbe_dcb_82599.h73 int ixgbe_dcb_config_pfc_82599(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc);
78 u8 *prio_tc);
85 u8 *prio_tc);
89 u8 *prio_tc);
H A Dixgbe_dcb_nl.c317 u8 prio_tc[MAX_USER_PRIORITY]; in ixgbe_dcbnl_set_all() local
334 ixgbe_dcb_unpack_map(dcb_cfg, DCB_TX_CONFIG, prio_tc); in ixgbe_dcbnl_set_all()
337 prio_type, prio_tc); in ixgbe_dcbnl_set_all()
340 netdev_set_prio_tc_map(netdev, i, prio_tc[i]); in ixgbe_dcbnl_set_all()
348 u8 prio_tc[MAX_USER_PRIORITY]; in ixgbe_dcbnl_set_all() local
350 ixgbe_dcb_unpack_map(dcb_cfg, DCB_TX_CONFIG, prio_tc); in ixgbe_dcbnl_set_all()
352 ixgbe_dcb_hw_pfc_config(hw, pfc_en, prio_tc); in ixgbe_dcbnl_set_all()
502 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in ixgbe_dcbnl_ieee_getets()
589 u8 *prio_tc; ixgbe_dcbnl_ieee_setpfc() local
[all...]
H A 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 int 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/drivers/net/ethernet/hisilicon/hns3/hns3pf/ !
H A 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()
94 "prio_tc[%d] checking failed, %u >= num_tc(%u)\n", 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[ in hclge_ets_tc_changed()
331 u8 i, j, pfc_map, *prio_tc; hclge_ieee_setpfc() local
[all...]
H A 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[ in hclge_tm_prio_tc_info_update()
[all...]
H A Dhclge_tm.h239 void hclge_tm_prio_tc_info_update(struct hclge_dev *hdev, u8 *prio_tc);
H A Dhclge_main.h387 u8 prio_tc[HNAE3_MAX_USER_PRIO]; member
/linux/drivers/net/ethernet/intel/fm10k/ !
H A 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/drivers/net/ethernet/amd/xgbe/ !
H A Dxgbe-dcb.c28 memcpy(ets->prio_tc, pdata->ets->prio_tc, in xgbe_dcb_ieee_getets()
29 sizeof(ets->prio_tc)); in xgbe_dcb_ieee_getets()
50 ets->prio_tc[i]); in xgbe_dcb_ieee_setets()
52 max_tc = max_t(u8, max_tc, ets->prio_tc[i]); in xgbe_dcb_ieee_setets()
H A Dxgbe-dev.c378 tc = pdata->ets->prio_tc[prio]; in xgbe_is_pfc_queue()
2628 pdata->ets->prio_tc[prio]); in xgbe_config_tc()
2656 if (ets->prio_tc[prio] == i) in xgbe_config_dcb_tc()
/linux/drivers/net/ethernet/broadcom/bnxt/ !
H A 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()
550 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in bnxt_dcbnl_ieee_getets()
[all...]
/linux/drivers/net/ethernet/mellanox/mlx4/ !
H A Den_dcb_nl.c297 memcpy(ets->prio_tc, my_ets->prio_tc, sizeof(ets->prio_tc)); in mlx4_en_dcbnl_ieee_getets()
309 if (ets->prio_tc[i] >= MLX4_EN_NUM_UP_HIGH) { in mlx4_en_ets_validate()
311 i, ets->prio_tc[i]); in mlx4_en_ets_validate()
384 err = mlx4_SET_PORT_PRIO2TC(mdev->dev, priv->port, ets->prio_tc); in mlx4_en_dcbnl_ieee_setets()
/linux/drivers/net/ethernet/mellanox/mlx5/core/ !
H A 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()
644 "%s: Priority group %d: tx_bw %d, rx_bw %d, prio_tc %d\n", 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[ in mlx5e_ets_init()
[all...]
H A Dport.c638 int mlx5_set_port_prio_tc(struct mlx5_core_dev *mdev, u8 *prio_tc) in mlx5_set_port_prio_tc() argument
646 if (prio_tc[i] > mlx5_max_tc(mdev)) in mlx5_set_port_prio_tc()
650 MLX5_SET(qtct_reg, in, tclass, prio_tc[i]); in mlx5_set_port_prio_tc()
H A Dmlx5_core.h336 int mlx5_set_port_prio_tc(struct mlx5_core_dev *mdev, u8 *prio_tc);
H A Den_stats.c1760 MLX5_SET(ppcnt_reg, in, prio_tc, prio); in mlx5e_grp_per_tc_prio_update_stats()
1791 MLX5_SET(ppcnt_reg, in, prio_tc, prio); in mlx5e_grp_per_tc_congest_prio_update_stats()
2011 MLX5_SET(ppcnt_reg, in, prio_tc, prio); in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
/linux/drivers/net/ethernet/mellanox/mlxsw/ !
H A 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()
H A Dreg.h5272 MLXSW_ITEM32(reg, ppcnt, prio_tc, 0x04, 0, 5);
5658 * selected by prio_tc and the port selected by local_port.
5689 u8 prio_tc) in mlxsw_reg_ppcnt_pack() argument
5698 mlxsw_reg_ppcnt_prio_tc_set(payload, prio_tc); in mlxsw_reg_ppcnt_pack()
/linux/drivers/net/ethernet/netronome/nfp/nic/ !
H A 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/include/uapi/linux/ !
H A Ddcbnl.h42 * @prio_tc: priority assignment table mapping 8021Qp to traffic class
65 __u8 prio_tc[IEEE_8021QAZ_MAX_TCS]; member
/linux/drivers/net/ethernet/qlogic/qed/ !
H A 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/drivers/net/ethernet/hisilicon/hns3/ !
H A Dhnae3.h838 u8 prio_tc[HNAE3_MAX_USER_PRIO]; /* TC indexed by prio */ member
/linux/drivers/net/ethernet/chelsio/cxgb4/ !
H A Dcxgb4_dcb.c986 ets->prio_tc[i] = bwg; in cxgb4_ieee_read_ets()
/linux/include/linux/mlx5/ !
H A Dmlx5_ifc.h10263 u8 prio_tc[0x5]; member