Home
last modified time | relevance | path

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

12

/Linux-v5.10/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth-dcb.c20 static inline bool dpaa2_eth_is_prio_enabled(u8 pfc_en, u8 tc) in dpaa2_eth_is_prio_enabled() argument
22 return !!(pfc_en & (1 << tc)); in dpaa2_eth_is_prio_enabled()
25 static int dpaa2_eth_set_pfc_cn(struct dpaa2_eth_priv *priv, u8 pfc_en) in dpaa2_eth_set_pfc_cn() argument
36 if (dpaa2_eth_is_prio_enabled(pfc_en, i)) { in dpaa2_eth_set_pfc_cn()
73 if (priv->pfc.pfc_en == pfc->pfc_en) in dpaa2_eth_dcbnl_ieee_setpfc()
85 if (pfc->pfc_en) in dpaa2_eth_dcbnl_ieee_setpfc()
96 err = dpaa2_eth_set_pfc_cn(priv, pfc->pfc_en); in dpaa2_eth_dcbnl_ieee_setpfc()
101 priv->pfc_enabled = !!pfc->pfc_en; in dpaa2_eth_dcbnl_ieee_setpfc()
/Linux-v5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb.c162 void ixgbe_dcb_unpack_pfc(struct ixgbe_dcb_config *cfg, u8 *pfc_en) in ixgbe_dcb_unpack_pfc() argument
167 for (*pfc_en = 0, tc = 0; tc < MAX_TRAFFIC_CLASS; tc++) { in ixgbe_dcb_unpack_pfc()
169 *pfc_en |= BIT(tc); in ixgbe_dcb_unpack_pfc()
253 u8 pfc_en; in ixgbe_dcb_hw_config() local
261 ixgbe_dcb_unpack_pfc(dcb_config, &pfc_en); in ixgbe_dcb_hw_config()
270 return ixgbe_dcb_hw_config_82598(hw, pfc_en, refill, max, in ixgbe_dcb_hw_config()
277 return ixgbe_dcb_hw_config_82599(hw, pfc_en, refill, max, 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
290 return ixgbe_dcb_config_pfc_82598(hw, pfc_en); in ixgbe_dcb_hw_pfc_config()
296 return ixgbe_dcb_config_pfc_82599(hw, pfc_en, prio_tc); in ixgbe_dcb_hw_pfc_config()
Dixgbe_dcb_82599.c190 s32 ixgbe_dcb_config_pfc_82599(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc) in ixgbe_dcb_config_pfc_82599() argument
210 reg |= pfc_en << IXGBE_MFLCN_RPFCE_SHIFT; in ixgbe_dcb_config_pfc_82599()
212 if (pfc_en) in ixgbe_dcb_config_pfc_82599()
228 if ((prio_tc[j] == i) && (pfc_en & BIT(j))) { in ixgbe_dcb_config_pfc_82599()
333 s32 ixgbe_dcb_hw_config_82599(struct ixgbe_hw *hw, u8 pfc_en, u16 *refill, in ixgbe_dcb_hw_config_82599() argument
342 ixgbe_dcb_config_pfc_82599(hw, pfc_en, prio_tc); in ixgbe_dcb_hw_config_82599()
Dixgbe_dcb_82598.c174 s32 ixgbe_dcb_config_pfc_82598(struct ixgbe_hw *hw, u8 pfc_en) in ixgbe_dcb_config_pfc_82598() argument
189 if (pfc_en) in ixgbe_dcb_config_pfc_82598()
196 if (!(pfc_en & BIT(i))) { in ixgbe_dcb_config_pfc_82598()
263 s32 ixgbe_dcb_hw_config_82598(struct ixgbe_hw *hw, u8 pfc_en, u16 *refill, in ixgbe_dcb_hw_config_82598() argument
271 ixgbe_dcb_config_pfc_82598(hw, pfc_en); in ixgbe_dcb_hw_config_82598()
Dixgbe_dcb_82598.h49 s32 ixgbe_dcb_config_pfc_82598(struct ixgbe_hw *, u8 pfc_en);
69 s32 ixgbe_dcb_hw_config_82598(struct ixgbe_hw *hw, u8 pfc_en, u16 *refill,
Dixgbe_dcb_82599.h73 s32 ixgbe_dcb_config_pfc_82599(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc);
96 s32 ixgbe_dcb_hw_config_82599(struct ixgbe_hw *hw, u8 pfc_en, u16 *refill,
Dixgbe_dcb.h118 void ixgbe_dcb_unpack_pfc(struct ixgbe_dcb_config *cfg, u8 *pfc_en);
134 s32 ixgbe_dcb_hw_pfc_config(struct ixgbe_hw *hw, u8 pfc_en, u8 *tc_prio);
Dixgbe_dcb_nl.c348 u8 pfc_en; in ixgbe_dcbnl_set_all() local
352 ixgbe_dcb_unpack_pfc(dcb_cfg, &pfc_en); in ixgbe_dcbnl_set_all()
353 ixgbe_dcb_hw_pfc_config(hw, pfc_en, prio_tc); in ixgbe_dcbnl_set_all()
573 pfc->pfc_en = my_pfc->pfc_en; in ixgbe_dcbnl_ieee_getpfc()
607 if (pfc->pfc_en) in ixgbe_dcbnl_ieee_setpfc()
608 err = ixgbe_dcb_hw_pfc_config(hw, pfc->pfc_en, prio_tc); in ixgbe_dcbnl_ieee_setpfc()
/Linux-v5.10/drivers/net/ethernet/intel/fm10k/
Dfm10k_dcbnl.c83 pfc->pfc_en = interface->pfc_en; in fm10k_dcbnl_ieee_getpfc()
98 interface->pfc_en = pfc->pfc_en; in fm10k_dcbnl_ieee_setpfc()
Dfm10k.h381 u8 pfc_en; member
/Linux-v5.10/drivers/net/ethernet/amd/xgbe/
Dxgbe-dcb.c219 pfc->pfc_en = pdata->pfc->pfc_en; in xgbe_dcb_ieee_getpfc()
234 pfc->pfc_cap, pfc->pfc_en, pfc->mbc, pfc->delay); in xgbe_dcb_ieee_setpfc()
237 if (pfc->pfc_en & ~((1 << pdata->hw_feat.tc_cnt) - 1)) { in xgbe_dcb_ieee_setpfc()
Dxgbe-dev.c476 if (pdata->pfc->pfc_en & (1 << tc)) in xgbe_is_pfc_queue()
619 if (pdata->tx_pause || (pfc && pfc->pfc_en)) in xgbe_config_tx_flow_control()
631 if (pdata->rx_pause || (pfc && pfc->pfc_en)) in xgbe_config_rx_flow_control()
647 (pfc && pfc->pfc_en) ? 1 : 0); in xgbe_config_flow_control()
2452 if (!pdata->pfc->pfc_en) in xgbe_get_pfc_queues()
2585 if (pdata->pfc && pdata->ets && pdata->pfc->pfc_en) { in xgbe_config_rx_fifo_size()
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_dcb.c298 pfc->pfc_en |= BIT(j); in hclge_ieee_getpfc()
329 if (pfc->pfc_en == hdev->tm_info.pfc_en) in hclge_ieee_setpfc()
337 if ((prio_tc[j] == i) && (pfc->pfc_en & BIT(j))) { in hclge_ieee_setpfc()
345 hdev->tm_info.pfc_en = pfc->pfc_en; in hclge_ieee_setpfc()
349 pfc->pfc_en, pfc_map, hdev->tm_info.num_tc); in hclge_ieee_setpfc()
Dhclge_tm.c653 if (hdev->tm_info.num_tc > 1 || hdev->tm_info.pfc_en) in hclge_tm_tc_info_init()
1296 hdev->tm_info.pfc_en); in hclge_pfc_setup_hw()
1452 if (hdev->tm_info.num_tc > 1 || hdev->tm_info.pfc_en) in hclge_tm_pfc_info_update()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dport_buffer.c196 u8 pfc_en, u8 *buffer, u32 xoff, u16 port_buff_cell_sz, in update_buffer_lossy() argument
217 lossy_count += !(pfc_en & (1 << prio)); in update_buffer_lossy()
242 static int fill_pfc_en(struct mlx5_core_dev *mdev, u8 *pfc_en) in fill_pfc_en() argument
255 *pfc_en = 0xff; in fill_pfc_en()
257 err = mlx5_query_port_pfc(mdev, pfc_en, NULL); in fill_pfc_en()
300 err = update_buffer_lossy(max_mtu, pfc->pfc_en, buffer, xoff, port_buff_cell_sz, in mlx5e_port_manual_buffer_config()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_dcbnl.c357 return mlx5_query_port_pfc(mdev, &pfc->pfc_en, NULL); in mlx5e_dcbnl_ieee_getpfc()
373 if (pfc->pfc_en != curr_pfc_en) { in mlx5e_dcbnl_ieee_setpfc()
374 ret = mlx5_set_port_pfc(mdev, pfc->pfc_en, pfc->pfc_en); in mlx5e_dcbnl_ieee_setpfc()
389 pfc_new.pfc_en = (changed & MLX5E_PORT_BUFFER_PFC) ? pfc->pfc_en : curr_pfc_en; in mlx5e_dcbnl_ieee_setpfc()
402 __func__, pfc->pfc_en); in mlx5e_dcbnl_ieee_setpfc()
661 pfc.pfc_en = 0; in mlx5e_dcbnl_setall()
664 pfc.pfc_en |= cee_cfg->pfc_setting[i] << i; in mlx5e_dcbnl_setall()
802 *setting = (pfc.pfc_en >> priority) & 0x01; in mlx5e_dcbnl_get_priority_pfc()
890 return pfc.pfc_en ? MLX5E_CEE_STATE_UP : MLX5E_CEE_STATE_DOWN; in mlx5e_dcbnl_getpfcstate()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx4/
Den_dcb_nl.c406 pfc->pfc_en = priv->prof->tx_ppp; in mlx4_en_dcbnl_ieee_getpfc()
422 pfc->pfc_en, in mlx4_en_dcbnl_ieee_setpfc()
426 rx_pause = prof->rx_pause && !pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc()
427 tx_pause = prof->tx_pause && !pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc()
428 rx_ppp = pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc()
429 tx_ppp = pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc()
/Linux-v5.10/include/uapi/linux/
Ddcbnl.h159 __u8 pfc_en; member
210 __u8 pfc_en; member
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_dcb.c538 mlxsw_reg_pfcc_prio_pack(pfcc_pl, pfc->pfc_en); in mlxsw_sp_port_pfc_set()
554 if (pause_en && pfc->pfc_en) { in mlxsw_sp_dcbnl_ieee_setpfc()
562 if (pfc->pfc_en) in mlxsw_sp_dcbnl_ieee_setpfc()
568 hdroom.prios.prio[prio].lossy = !(pfc->pfc_en & BIT(prio)); in mlxsw_sp_dcbnl_ieee_setpfc()
/Linux-v5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_dcb.c243 if ((pfc->pfc_en & (1 << pri)) && in bnxt_hwrm_queue_pfc_cfg()
291 pfc->pfc_en = pri_mask; in bnxt_hwrm_queue_pfc_qcfg()
567 pfc->pfc_en = my_pfc->pfc_en; in bnxt_dcbnl_ieee_getpfc()
/Linux-v5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_port.c1210 int hinic_dcb_set_pfc(struct hinic_hwdev *hwdev, u8 pfc_en, u8 pfc_bitmap) in hinic_dcb_set_pfc() argument
1224 pfc.pfc_en = pfc_en; in hinic_dcb_set_pfc()
1230 pfc_en ? "enable" : "disable", err, pfc.status, in hinic_dcb_set_pfc()
1237 nic_cfg->rx_pause = pfc_en ? 0 : 1; in hinic_dcb_set_pfc()
1238 nic_cfg->tx_pause = pfc_en ? 0 : 1; in hinic_dcb_set_pfc()
Dhinic_port.h675 u8 pfc_en; member
851 int hinic_dcb_set_pfc(struct hinic_hwdev *hwdev, u8 pfc_en, u8 pfc_bitmap);
/Linux-v5.10/drivers/net/ethernet/intel/i40e/
Di40e_dcb_nl.c83 pfc->pfc_en = dcbxcfg->pfc.pfcenable; in i40e_dcbnl_ieee_getpfc()
/Linux-v5.10/drivers/net/ethernet/intel/ice/
Dice_dcb_nl.c230 pfc->pfc_en = dcbxcfg->pfc.pfcena; in ice_dcbnl_getpfc()
266 new_cfg->pfc.pfcena = pfc->pfc_en; in ice_dcbnl_setpfc()
/Linux-v5.10/drivers/net/ethernet/qlogic/qed/
Dqed_dcbx.c2000 pfc->pfc_en |= BIT(i); in qed_dcbnl_cee_peer_getpfc()
2004 pfc->pfc_en, pfc->tcs_supported); in qed_dcbnl_cee_peer_getpfc()
2065 pfc->pfc_en = 0; in qed_dcbnl_get_ieee_pfc()
2068 pfc->pfc_en |= BIT(i); in qed_dcbnl_get_ieee_pfc()
2107 dcbx_set.config.params.pfc.prio[i] = !!(pfc->pfc_en & BIT(i)); in qed_dcbnl_ieee_setpfc()

12