Home
last modified time | relevance | path

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

12345

/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/net/ethernet/freescale/dpaa2/
H A 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()
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/net/ethernet/freescale/dpaa2/
H A 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()
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/net/ethernet/freescale/dpaa2/
H A 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()
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/net/ethernet/intel/ixgbe/
H A 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()
H A 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()
H A 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()
H A 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,
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/net/ethernet/intel/ixgbe/
H A 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()
H A 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()
H A 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()
H A 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,
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/net/ethernet/intel/ixgbe/
H A 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()
H A 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()
H A 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()
H A 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,
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/net/ethernet/intel/fm10k/
H A 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()
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/net/ethernet/intel/fm10k/
H A 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()
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/net/ethernet/intel/fm10k/
H A 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()
/dports/misc/rump/buildrump.sh-b914579/src/sys/dev/pci/ixgbe/
H A Dixgbe_dcb.c567 u8 pfc_en; in ixgbe_dcb_config_pfc_cee() local
571 ixgbe_dcb_unpack_pfc_cee(dcb_config, map, &pfc_en); in ixgbe_dcb_config_pfc_cee()
575 ret = ixgbe_dcb_config_pfc_82598(hw, pfc_en); in ixgbe_dcb_config_pfc_cee()
580 ret = ixgbe_dcb_config_pfc_82599(hw, pfc_en, map); in ixgbe_dcb_config_pfc_cee()
626 u8 pfc_en; in ixgbe_dcb_hw_config_cee() local
664 ixgbe_dcb_unpack_pfc_cee(dcb_config, map, &pfc_en); in ixgbe_dcb_hw_config_cee()
665 ret = ixgbe_dcb_config_pfc(hw, pfc_en, map); in ixgbe_dcb_hw_config_cee()
672 s32 ixgbe_dcb_config_pfc(struct ixgbe_hw *hw, u8 pfc_en, u8 *map) in ixgbe_dcb_config_pfc() argument
678 ret = ixgbe_dcb_config_pfc_82598(hw, pfc_en); in ixgbe_dcb_config_pfc()
683 ret = ixgbe_dcb_config_pfc_82599(hw, pfc_en, map); in ixgbe_dcb_config_pfc()
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/net/ethernet/amd/xgbe/
H A 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()
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/net/ethernet/amd/xgbe/
H A 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()
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/net/ethernet/amd/xgbe/
H A 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()
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/net/ethernet/mellanox/mlx5/core/en/
H A 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()
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/net/ethernet/mellanox/mlx5/core/en/
H A 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()
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/net/ethernet/mellanox/mlx5/core/en/
H A 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()

12345