Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb.c177 void ixgbe_dcb_unpack_pfc(struct ixgbe_dcb_config *cfg, u8 *pfc_en) in ixgbe_dcb_unpack_pfc() argument
182 for (*pfc_en = 0, tc = 0; tc < MAX_TRAFFIC_CLASS; tc++) { in ixgbe_dcb_unpack_pfc()
184 *pfc_en |= 1 << tc; in ixgbe_dcb_unpack_pfc()
268 u8 pfc_en; in ixgbe_dcb_hw_config() local
276 ixgbe_dcb_unpack_pfc(dcb_config, &pfc_en); in ixgbe_dcb_hw_config()
285 return ixgbe_dcb_hw_config_82598(hw, pfc_en, refill, max, in ixgbe_dcb_hw_config()
291 return ixgbe_dcb_hw_config_82599(hw, pfc_en, refill, max, in ixgbe_dcb_hw_config()
300 s32 ixgbe_dcb_hw_pfc_config(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc) in ixgbe_dcb_hw_pfc_config() argument
304 return ixgbe_dcb_config_pfc_82598(hw, pfc_en); in ixgbe_dcb_hw_pfc_config()
309 return ixgbe_dcb_config_pfc_82599(hw, pfc_en, prio_tc); in ixgbe_dcb_hw_pfc_config()
Dixgbe_dcb_82599.c213 s32 ixgbe_dcb_config_pfc_82599(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc) in ixgbe_dcb_config_pfc_82599() argument
233 reg |= pfc_en << IXGBE_MFLCN_RPFCE_SHIFT; in ixgbe_dcb_config_pfc_82599()
235 if (pfc_en) in ixgbe_dcb_config_pfc_82599()
251 if ((prio_tc[j] == i) && (pfc_en & (1 << j))) { in ixgbe_dcb_config_pfc_82599()
349 s32 ixgbe_dcb_hw_config_82599(struct ixgbe_hw *hw, u8 pfc_en, u16 *refill, in ixgbe_dcb_hw_config_82599() argument
358 ixgbe_dcb_config_pfc_82599(hw, pfc_en, prio_tc); in ixgbe_dcb_hw_config_82599()
Dixgbe_dcb_82598.c191 s32 ixgbe_dcb_config_pfc_82598(struct ixgbe_hw *hw, u8 pfc_en) in ixgbe_dcb_config_pfc_82598() argument
206 if (pfc_en) in ixgbe_dcb_config_pfc_82598()
213 if (!(pfc_en & (1 << i))) { in ixgbe_dcb_config_pfc_82598()
276 s32 ixgbe_dcb_hw_config_82598(struct ixgbe_hw *hw, u8 pfc_en, u16 *refill, in ixgbe_dcb_hw_config_82598() argument
284 ixgbe_dcb_config_pfc_82598(hw, pfc_en); in ixgbe_dcb_hw_config_82598()
Dixgbe_dcb_82598.h74 s32 ixgbe_dcb_config_pfc_82598(struct ixgbe_hw *, u8 pfc_en);
94 s32 ixgbe_dcb_hw_config_82598(struct ixgbe_hw *hw, u8 pfc_en, u16 *refill,
Dixgbe_dcb_82599.h98 s32 ixgbe_dcb_config_pfc_82599(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc);
121 s32 ixgbe_dcb_hw_config_82599(struct ixgbe_hw *hw, u8 pfc_en, u16 *refill,
Dixgbe_dcb.h143 void ixgbe_dcb_unpack_pfc(struct ixgbe_dcb_config *cfg, u8 *pfc_en);
159 s32 ixgbe_dcb_hw_pfc_config(struct ixgbe_hw *hw, u8 pfc_en, u8 *tc_prio);
Dixgbe_dcb_nl.c373 u8 pfc_en; in ixgbe_dcbnl_set_all() local
377 ixgbe_dcb_unpack_pfc(dcb_cfg, &pfc_en); in ixgbe_dcbnl_set_all()
378 ixgbe_dcb_hw_pfc_config(hw, pfc_en, prio_tc); in ixgbe_dcbnl_set_all()
598 pfc->pfc_en = my_pfc->pfc_en; in ixgbe_dcbnl_ieee_getpfc()
632 if (pfc->pfc_en) in ixgbe_dcbnl_ieee_setpfc()
633 err = ixgbe_dcb_hw_pfc_config(hw, pfc->pfc_en, prio_tc); in ixgbe_dcbnl_ieee_setpfc()
Dixgbe_main.c962 bool pfc_en = adapter->dcb_cfg.pfc_mode_enable; in ixgbe_update_xoff_received() local
965 pfc_en |= !!(adapter->ixgbe_ieee_pfc->pfc_en); in ixgbe_update_xoff_received()
967 if (!(adapter->flags & IXGBE_FLAG_DCB_ENABLED) || !pfc_en) { in ixgbe_update_xoff_received()
3176 bool pfc_en = adapter->dcb_cfg.pfc_mode_enable; in ixgbe_set_rx_drop_en() local
3179 pfc_en |= !!(adapter->ixgbe_ieee_pfc->pfc_en); in ixgbe_set_rx_drop_en()
3191 !(adapter->hw.fc.current_mode & ixgbe_fc_tx_pause) && !pfc_en)) { in ixgbe_set_rx_drop_en()
4255 adapter->ixgbe_ieee_pfc->pfc_en, in ixgbe_configure_dcb()
6246 bool pfc_en = adapter->dcb_cfg.pfc_mode_enable; in ixgbe_watchdog_update_link() local
6260 pfc_en |= !!(adapter->ixgbe_ieee_pfc->pfc_en); in ixgbe_watchdog_update_link()
6262 if (link_up && !((adapter->flags & IXGBE_FLAG_DCB_ENABLED) && pfc_en)) { in ixgbe_watchdog_update_link()
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k_dcbnl.c101 pfc->pfc_en = interface->pfc_en; in fm10k_dcbnl_ieee_getpfc()
116 interface->pfc_en = pfc->pfc_en; in fm10k_dcbnl_ieee_setpfc()
Dfm10k_pci.c655 if (interface->pfc_en) in fm10k_configure_rx_ring()
656 rx_pause = interface->pfc_en; in fm10k_configure_rx_ring()
694 if (interface->pfc_en) in fm10k_update_rx_drop_en()
695 rx_pause = interface->pfc_en; in fm10k_update_rx_drop_en()
Dfm10k.h334 u8 pfc_en; member
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/
Dxgbe-dcb.c204 pfc->pfc_en = pdata->pfc->pfc_en; in xgbe_dcb_ieee_getpfc()
218 pfc->pfc_cap, pfc->pfc_en, pfc->mbc, pfc->delay); in xgbe_dcb_ieee_setpfc()
Dxgbe-dev.c567 if (pdata->tx_pause || (pfc && pfc->pfc_en)) in xgbe_config_tx_flow_control()
579 if (pdata->rx_pause || (pfc && pfc->pfc_en)) in xgbe_config_rx_flow_control()
595 (pfc && pfc->pfc_en) ? 1 : 0); in xgbe_config_flow_control()
1356 if ((pfc->pfc_en & (1 << prio)) && in xgbe_config_dcb_pfc()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Den_dcb_nl.c198 pfc->pfc_en = priv->prof->tx_ppp; in mlx4_en_dcbnl_ieee_getpfc()
213 pfc->pfc_en, in mlx4_en_dcbnl_ieee_setpfc()
217 prof->rx_pause = !pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc()
218 prof->tx_pause = !pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc()
219 prof->rx_ppp = pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc()
220 prof->tx_ppp = pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc()
/linux-4.1.27/include/uapi/linux/
Ddcbnl.h158 __u8 pfc_en; member
199 __u8 pfc_en; member
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_dcb_nl.c106 pfc->pfc_en = dcbxcfg->pfc.pfcenable; in i40e_dcbnl_ieee_getpfc()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_dcb.c1105 pfc->pfc_en = 0; in qlcnic_dcb_cee_peer_get_pfc()
1119 pfc->pfc_en |= QLC_DCB_GET_MAP(i); in qlcnic_dcb_cee_peer_get_pfc()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_dcb.c978 pfc->pfc_en = bitswap_1(dcb->pfcen); in cxgb4_ieee_get_pfc()
1199 pfc->pfc_en = bitswap_1(pi->dcb.pfcen); in cxgb4_cee_peer_getpfc()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_dcb.c2517 pfc->pfc_en = bp->dcbx_remote_feat.pfc.pri_en_bitmap; in bnx2x_cee_peer_getpfc()