/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/ |
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_tc); in ixgbe_dcb_hw_pfc_config()
|
D | ixgbe_dcb_82599.c | 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() 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()
|
D | ixgbe_dcb_82598.c | 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() 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()
|
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,
|
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,
|
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);
|
D | ixgbe_dcb_nl.c | 348 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()
|
D | ixgbe_main.c | 961 bool pfc_en = adapter->dcb_cfg.pfc_mode_enable; in ixgbe_update_xoff_received() local 964 pfc_en |= !!(adapter->ixgbe_ieee_pfc->pfc_en); in ixgbe_update_xoff_received() 966 if (!(adapter->flags & IXGBE_FLAG_DCB_ENABLED) || !pfc_en) { in ixgbe_update_xoff_received() 3663 bool pfc_en = adapter->dcb_cfg.pfc_mode_enable; in ixgbe_set_rx_drop_en() local 3666 pfc_en |= !!(adapter->ixgbe_ieee_pfc->pfc_en); in ixgbe_set_rx_drop_en() 3678 !(adapter->hw.fc.current_mode & ixgbe_fc_tx_pause) && !pfc_en)) { in ixgbe_set_rx_drop_en() 5007 adapter->ixgbe_ieee_pfc->pfc_en, in ixgbe_configure_dcb() 7269 bool pfc_en = adapter->dcb_cfg.pfc_mode_enable; in ixgbe_watchdog_update_link() local 7283 pfc_en |= !!(adapter->ixgbe_ieee_pfc->pfc_en); in ixgbe_watchdog_update_link() 7285 if (link_up && !((adapter->flags & IXGBE_FLAG_DCB_ENABLED) && pfc_en)) { in ixgbe_watchdog_update_link()
|
/Linux-v4.19/drivers/net/ethernet/intel/fm10k/ |
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()
|
D | fm10k.h | 391 u8 pfc_en; member
|
D | fm10k_pci.c | 1020 if (interface->pfc_en) in fm10k_configure_rx_ring() 1021 rx_pause = interface->pfc_en; in fm10k_configure_rx_ring() 1065 if (interface->pfc_en) in fm10k_update_rx_drop_en() 1066 rx_pause = interface->pfc_en; in fm10k_update_rx_drop_en()
|
/Linux-v4.19/drivers/net/ethernet/amd/xgbe/ |
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()
|
D | xgbe-dev.c | 476 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() 2442 if (!pdata->pfc->pfc_en) in xgbe_get_pfc_queues() 2575 if (pdata->pfc && pdata->ets && pdata->pfc->pfc_en) { in xgbe_config_rx_fifo_size()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_dcbnl.c | 349 return mlx5_query_port_pfc(mdev, &pfc->pfc_en, NULL); in mlx5e_dcbnl_ieee_getpfc() 365 if (pfc->pfc_en != curr_pfc_en) { in mlx5e_dcbnl_ieee_setpfc() 366 ret = mlx5_set_port_pfc(mdev, pfc->pfc_en, pfc->pfc_en); in mlx5e_dcbnl_ieee_setpfc() 381 pfc_new.pfc_en = (changed & MLX5E_PORT_BUFFER_PFC) ? pfc->pfc_en : curr_pfc_en; in mlx5e_dcbnl_ieee_setpfc() 394 __func__, pfc->pfc_en); in mlx5e_dcbnl_ieee_setpfc() 653 pfc.pfc_en = 0; in mlx5e_dcbnl_setall() 656 pfc.pfc_en |= cee_cfg->pfc_setting[i] << i; in mlx5e_dcbnl_setall() 794 *setting = (pfc.pfc_en >> priority) & 0x01; in mlx5e_dcbnl_get_priority_pfc() 882 return pfc.pfc_en ? MLX5E_CEE_STATE_UP : MLX5E_CEE_STATE_DOWN; in mlx5e_dcbnl_getpfcstate()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/ |
D | en_dcb_nl.c | 406 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-v4.19/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | port_buffer.c | 185 u8 pfc_en, u8 *buffer, u32 xoff, in update_buffer_lossy() argument 206 lossy_count += !(pfc_en & (1 << prio)); in update_buffer_lossy() 265 err = update_buffer_lossy(mtu, pfc->pfc_en, buffer, xoff, in mlx5e_port_manual_buffer_config()
|
/Linux-v4.19/include/uapi/linux/ |
D | dcbnl.h | 159 __u8 pfc_en; member 210 __u8 pfc_en; member
|
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_dcb.c | 217 pfc->pfc_en |= BIT(j); in hclge_ieee_getpfc() 251 if ((prio_tc[j] == i) && (pfc->pfc_en & BIT(j))) { in hclge_ieee_setpfc()
|
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_dcb.c | 246 if ((pfc->pfc_en & (1 << pri)) && in bnxt_hwrm_queue_pfc_cfg() 298 pfc->pfc_en = pri_mask; in bnxt_hwrm_queue_pfc_qcfg() 569 pfc->pfc_en = my_pfc->pfc_en; in bnxt_dcbnl_ieee_getpfc()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_dcb.c | 579 mlxsw_reg_pfcc_prio_pack(pfcc_pl, pfc->pfc_en); in mlxsw_sp_port_pfc_set() 592 if (pause_en && pfc->pfc_en) { in mlxsw_sp_dcbnl_ieee_setpfc()
|
D | spectrum.c | 826 u8 pfc_en = !!my_pfc ? my_pfc->pfc_en : 0; in __mlxsw_sp_port_headroom_set() local 844 pfc = pfc_en & BIT(j); in __mlxsw_sp_port_headroom_set() 1755 if (mlxsw_sp_port->dcb.pfc && mlxsw_sp_port->dcb.pfc->pfc_en) { in mlxsw_sp_port_set_pauseparam()
|
/Linux-v4.19/drivers/net/ethernet/intel/i40e/ |
D | i40e_dcb_nl.c | 83 pfc->pfc_en = dcbxcfg->pfc.pfcenable; in i40e_dcbnl_ieee_getpfc()
|
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/ |
D | qed_dcbx.c | 2028 pfc->pfc_en |= BIT(i); in qed_dcbnl_cee_peer_getpfc() 2032 pfc->pfc_en, pfc->tcs_supported); in qed_dcbnl_cee_peer_getpfc() 2093 pfc->pfc_en = 0; in qed_dcbnl_get_ieee_pfc() 2096 pfc->pfc_en |= BIT(i); in qed_dcbnl_get_ieee_pfc() 2135 dcbx_set.config.params.pfc.prio[i] = !!(pfc->pfc_en & BIT(i)); in qed_dcbnl_ieee_setpfc()
|
/Linux-v4.19/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_dcb.c | 1105 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-v4.19/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_dcb.c | 997 pfc->pfc_en = bitswap_1(dcb->pfcen); in cxgb4_ieee_get_pfc() 1220 pfc->pfc_en = bitswap_1(pi->dcb.pfcen); in cxgb4_cee_peer_getpfc()
|