/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_dcbnl.c | 13 u8 pfc_en = pfvf->pfc_en; in otx2_check_pfc_config() local 16 if ((pfc_en & (1 << prio)) && in otx2_check_pfc_config() 30 u8 pfc_en, pfc_bit_set; in otx2_pfc_txschq_config() local 33 pfc_en = pfvf->pfc_en; in otx2_pfc_txschq_config() 35 pfc_bit_set = pfc_en & (1 << prio); in otx2_pfc_txschq_config() 105 u8 pfc_en = pfvf->pfc_en; in otx2_pfc_txschq_alloc() local 110 pfc_bit_set = pfc_en in otx2_pfc_txschq_alloc() 200 u8 pfc_en = pfvf->pfc_en, pfc_bit_set; otx2_pfc_txschq_update() local 266 u8 pfc_en, pfc_bit_set; otx2_pfc_txschq_stop() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-eth-dcb.c | 20 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() 40 /* For priorities not set in the pfc_en mask, we leave 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() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-eth-dcb.c | 20 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() 40 /* For priorities not set in the pfc_en mask, we leave 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() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_dcb.c | 162 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_t in ixgbe_dcb_hw_pfc_config() [all...] |
H A D | ixgbe_dcb_82599.c | 185 * @pfc_en: enabled pfc bitmask 190 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() 324 * @pfc_en: enabled pfc bitmask 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()
|
H A D | ixgbe_dcb_82598.c | 170 * @pfc_en: enabled pfc bitmask 174 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() 255 * @pfc_en: enabled pfc bitmask 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()
|
H A D | ixgbe_dcb_82598.h | 49 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,
|
H A D | ixgbe_dcb_82599.h | 73 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,
|
H A D | ixgbe_dcb.h | 118 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);
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_dcb.c | 162 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_t in ixgbe_dcb_hw_pfc_config() [all...] |
H A D | ixgbe_dcb_82599.c | 185 * @pfc_en: enabled pfc bitmask 190 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() 324 * @pfc_en: enabled pfc bitmask 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()
|
H A D | ixgbe_dcb_82598.c | 170 * @pfc_en: enabled pfc bitmask 174 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() 255 * @pfc_en: enabled pfc bitmask 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()
|
H A D | ixgbe_dcb_82598.h | 49 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,
|
H A D | ixgbe_dcb_82599.h | 73 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,
|
H A D | ixgbe_dcb.h | 118 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);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_dcbnl.c | 83 pfc->pfc_en = interface->pfc_en; in fm10k_dcbnl_ieee_getpfc() 98 interface->pfc_en = pfc->pfc_en; in fm10k_dcbnl_ieee_setpfc()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_dcbnl.c | 83 pfc->pfc_en = interface->pfc_en; in fm10k_dcbnl_ieee_getpfc() 98 interface->pfc_en = pfc->pfc_en; in fm10k_dcbnl_ieee_setpfc()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-dcb.c | 219 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-dcb.c | 219 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | port_buffer.c | 178 * @pfc_en: <input> current pfc configuration 196 u8 pfc_en, u8 *buffer, u32 xoff, u16 port_buff_cell_sz, in update_buffer_lossy() 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() 195 update_buffer_lossy(unsigned int max_mtu, u8 pfc_en, u8 *buffer, u32 xoff, u16 port_buff_cell_sz, struct mlx5e_port_buffer *port_buffer, bool *change) update_buffer_lossy() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_dcb.c | 338 pfc->pfc_en = hdev->tm_info.pfc_en; in hclge_ieee_getpfc() 366 if (pfc->pfc_en == hdev->tm_info.pfc_en) in hclge_ieee_setpfc() 374 if ((prio_tc[j] == i) && (pfc->pfc_en & BIT(j))) { in hclge_ieee_setpfc() 382 hdev->tm_info.pfc_en = pfc->pfc_en; in hclge_ieee_setpfc() 385 "set pfc: pfc_en=%x, pfc_map=%x, num_tc=%u\n", in hclge_ieee_setpfc() 386 pfc->pfc_en, pfc_map, hdev->tm_info.num_tc); in hclge_ieee_setpfc()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | port_buffer.c | 391 * @pfc_en: <input> current pfc configuration 410 u8 pfc_en, u8 *buffer, u32 xoff, u16 port_buff_cell_sz, in update_buffer_lossy() 431 lossy_count += !(pfc_en & (1 << prio)); in update_buffer_lossy() 460 static int fill_pfc_en(struct mlx5_core_dev *mdev, u8 *pfc_en) in fill_pfc_en() argument 473 *pfc_en = 0xff; in fill_pfc_en() 475 err = mlx5_query_port_pfc(mdev, pfc_en, NULL); in fill_pfc_en() 516 __func__, pfc->pfc_en); in mlx5e_port_manual_buffer_config() 521 err = update_buffer_lossy(priv->mdev, max_mtu, pfc->pfc_en, buffer, xoff, in mlx5e_port_manual_buffer_config() 408 update_buffer_lossy(struct mlx5_core_dev *mdev, unsigned int max_mtu, u8 pfc_en, u8 *buffer, u32 xoff, u16 port_buff_cell_sz, struct mlx5e_port_buffer *port_buffer, bool *change) update_buffer_lossy() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_dcb.c | 311 pfc->pfc_en = hdev->tm_info.pfc_en; in hclge_ieee_getpfc() 338 if (pfc->pfc_en == hdev->tm_info.pfc_en) in hclge_ieee_setpfc() 346 if ((prio_tc[j] == i) && (pfc->pfc_en & BIT(j))) { in hclge_ieee_setpfc() 354 hdev->tm_info.pfc_en = pfc->pfc_en; in hclge_ieee_setpfc() 357 "set pfc: pfc_en=%x, pfc_map=%x, num_tc=%u\n", in hclge_ieee_setpfc() 358 pfc->pfc_en, pfc_map, hdev->tm_info.num_tc); in hclge_ieee_setpfc()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_dcbnl.c | 359 return mlx5_query_port_pfc(mdev, &pfc->pfc_en, NULL); in mlx5e_dcbnl_ieee_getpfc() 373 /* pfc_en */ in mlx5e_dcbnl_ieee_setpfc() 375 if (pfc->pfc_en != curr_pfc_en) { in mlx5e_dcbnl_ieee_setpfc() 376 ret = mlx5_set_port_pfc(mdev, pfc->pfc_en, pfc->pfc_en); in mlx5e_dcbnl_ieee_setpfc() 391 pfc_new.pfc_en = (changed & MLX5E_PORT_BUFFER_PFC) ? pfc->pfc_en : curr_pfc_en; in mlx5e_dcbnl_ieee_setpfc() 404 __func__, pfc->pfc_en); in mlx5e_dcbnl_ieee_setpfc() 663 pfc.pfc_en = 0; in mlx5e_dcbnl_setall() 666 pfc.pfc_en | in mlx5e_dcbnl_setall() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_dcbnl.c | 359 return mlx5_query_port_pfc(mdev, &pfc->pfc_en, NULL); in mlx5e_dcbnl_ieee_getpfc() 373 /* pfc_en */ in mlx5e_dcbnl_ieee_setpfc() 375 if (pfc->pfc_en != curr_pfc_en) { in mlx5e_dcbnl_ieee_setpfc() 376 ret = mlx5_set_port_pfc(mdev, pfc->pfc_en, pfc->pfc_en); in mlx5e_dcbnl_ieee_setpfc() 391 pfc_new.pfc_en = (changed & MLX5E_PORT_BUFFER_PFC) ? pfc->pfc_en : curr_pfc_en; in mlx5e_dcbnl_ieee_setpfc() 404 __func__, pfc->pfc_en); in mlx5e_dcbnl_ieee_setpfc() 663 pfc.pfc_en = 0; in mlx5e_dcbnl_setall() 666 pfc.pfc_en | in mlx5e_dcbnl_setall() [all...] |