/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_dcbnl.c | 13 u8 pfc_en = pfvf->pfc_en; local 16 if ((pfc_en & (1 << prio)) && 30 u8 pfc_en, pfc_bit_set; local 33 pfc_en = pfvf->pfc_en; 35 pfc_bit_set = pfc_en & (1 << prio); 105 u8 pfc_en = pfvf->pfc_en; local 110 pfc_bit_set = pfc_en 200 u8 pfc_en = pfvf->pfc_en, pfc_bit_set; local 266 u8 pfc_en, pfc_bit_set; local [all...] |
/linux-master/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) argument 22 return !!(pfc_en & (1 << tc)); 25 static int dpaa2_eth_set_pfc_cn(struct dpaa2_eth_priv *priv, u8 pfc_en) argument 36 if (dpaa2_eth_is_prio_enabled(pfc_en, i)) { 40 /* For priorities not set in the pfc_en mask, we leave 73 if (priv->pfc.pfc_en == pfc->pfc_en) 85 if (pfc->pfc_en) 96 err = dpaa2_eth_set_pfc_cn(priv, pfc->pfc_en); 101 priv->pfc_enabled = !!pfc->pfc_en; [all...] |
/linux-master/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_dcbnl.c | 83 pfc->pfc_en = interface->pfc_en; 98 interface->pfc_en = pfc->pfc_en;
|
/linux-master/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_dcb_82599.h | 73 int ixgbe_dcb_config_pfc_82599(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc); 87 int ixgbe_dcb_hw_config_82599(struct ixgbe_hw *hw, u8 pfc_en, u16 *refill,
|
H A D | ixgbe_dcb_82598.h | 49 int ixgbe_dcb_config_pfc_82598(struct ixgbe_hw *, u8 pfc_en); 61 int ixgbe_dcb_hw_config_82598(struct ixgbe_hw *hw, u8 pfc_en, u16 *refill,
|
H A D | ixgbe_dcb.c | 162 void ixgbe_dcb_unpack_pfc(struct ixgbe_dcb_config *cfg, u8 *pfc_en) argument 167 for (*pfc_en = 0, tc = 0; tc < MAX_TRAFFIC_CLASS; tc++) { 169 *pfc_en |= BIT(tc); 253 u8 pfc_en; local 261 ixgbe_dcb_unpack_pfc(dcb_config, &pfc_en); 270 return ixgbe_dcb_hw_config_82598(hw, pfc_en, refill, max, 277 return ixgbe_dcb_hw_config_82599(hw, pfc_en, refill, max, 286 int ixgbe_dcb_hw_pfc_config(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc) argument 290 return ixgbe_dcb_config_pfc_82598(hw, pfc_en); 296 return ixgbe_dcb_config_pfc_82599(hw, pfc_en, prio_t [all...] |
H A D | ixgbe_dcb_82599.c | 185 * @pfc_en: enabled pfc bitmask 190 int ixgbe_dcb_config_pfc_82599(struct ixgbe_hw *hw, u8 pfc_en, u8 *prio_tc) argument 210 reg |= pfc_en << IXGBE_MFLCN_RPFCE_SHIFT; 212 if (pfc_en) 228 if ((prio_tc[j] == i) && (pfc_en & BIT(j))) { 324 * @pfc_en: enabled pfc bitmask 333 int ixgbe_dcb_hw_config_82599(struct ixgbe_hw *hw, u8 pfc_en, u16 *refill, argument 342 ixgbe_dcb_config_pfc_82599(hw, pfc_en, prio_tc);
|
H A D | ixgbe_dcb_82598.c | 162 * @pfc_en: enabled pfc bitmask 166 int ixgbe_dcb_config_pfc_82598(struct ixgbe_hw *hw, u8 pfc_en) argument 181 if (pfc_en) 188 if (!(pfc_en & BIT(i))) { 247 * @pfc_en: enabled pfc bitmask 255 int ixgbe_dcb_hw_config_82598(struct ixgbe_hw *hw, u8 pfc_en, u16 *refill, argument 263 ixgbe_dcb_config_pfc_82598(hw, pfc_en);
|
H A D | ixgbe_dcb.h | 118 void ixgbe_dcb_unpack_pfc(struct ixgbe_dcb_config *cfg, u8 *pfc_en); 134 int ixgbe_dcb_hw_pfc_config(struct ixgbe_hw *hw, u8 pfc_en, u8 *tc_prio);
|
H A D | ixgbe_dcb_nl.c | 346 u8 pfc_en; local 350 ixgbe_dcb_unpack_pfc(dcb_cfg, &pfc_en); 351 ixgbe_dcb_hw_pfc_config(hw, pfc_en, prio_tc); 571 pfc->pfc_en = my_pfc->pfc_en; 605 if (pfc->pfc_en) 606 err = ixgbe_dcb_hw_pfc_config(hw, pfc->pfc_en, prio_tc);
|
/linux-master/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-dcb.c | 219 pfc->pfc_en = pdata->pfc->pfc_en; 234 pfc->pfc_cap, pfc->pfc_en, pfc->mbc, pfc->delay); 237 if (pfc->pfc_en & ~((1 << pdata->hw_feat.tc_cnt) - 1)) {
|
/linux-master/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_dcb.c | 311 pfc->pfc_en = hdev->tm_info.pfc_en; 338 if (pfc->pfc_en == hdev->tm_info.pfc_en) 346 if ((prio_tc[j] == i) && (pfc->pfc_en & BIT(j))) { 354 hdev->tm_info.pfc_en = pfc->pfc_en; 357 "set pfc: pfc_en=%x, pfc_map=%x, num_tc=%u\n", 358 pfc->pfc_en, pfc_map, hdev->tm_info.num_tc);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_dcbnl.c | 359 return mlx5_query_port_pfc(mdev, &pfc->pfc_en, NULL); 373 /* pfc_en */ 375 if (pfc->pfc_en != curr_pfc_en) { 376 ret = mlx5_set_port_pfc(mdev, pfc->pfc_en, pfc->pfc_en); 391 pfc_new.pfc_en = (changed & MLX5E_PORT_BUFFER_PFC) ? pfc->pfc_en : curr_pfc_en; 404 __func__, pfc->pfc_en); 663 pfc.pfc_en = 0; 666 pfc.pfc_en | [all...] |
/linux-master/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, 431 lossy_count += !(pfc_en & (1 << prio)); 460 static int fill_pfc_en(struct mlx5_core_dev *mdev, u8 *pfc_en) argument 473 *pfc_en = 0xff; 475 err = mlx5_query_port_pfc(mdev, pfc_en, NULL); 516 __func__, pfc->pfc_en); 521 err = update_buffer_lossy(priv->mdev, max_mtu, pfc->pfc_en, buffer, xoff, 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) argument
|
/linux-master/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_dcb_nl.c | 406 pfc->pfc_en = priv->prof->tx_ppp; 422 pfc->pfc_en, 426 rx_pause = prof->rx_pause && !pfc->pfc_en; 427 tx_pause = prof->tx_pause && !pfc->pfc_en; 428 rx_ppp = pfc->pfc_en; 429 tx_ppp = pfc->pfc_en;
|
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rpm.c | 208 unsigned long pfc_en, 215 for_each_set_bit(i, &pfc_en, 16) { 612 int rpm_lmac_pfc_config(void *rpmd, int lmac_id, u8 tx_pause, u8 rx_pause, u16 pfc_en) argument 625 pfc_en |= FIELD_GET(RPM_PFC_CLASS_MASK, class_en); 636 rpm_cfg_pfc_quanta_thresh(rpm, lmac_id, pfc_en, true); 638 class_en = FIELD_SET(RPM_PFC_CLASS_MASK, pfc_en, class_en); 207 rpm_cfg_pfc_quanta_thresh(rpm_t *rpm, int lmac_id, unsigned long pfc_en, bool enable) argument
|
H A D | lmac_common.h | 126 u8 tx_pause, u8 rx_pause, u16 pfc_en);
|
H A D | rpm.h | 130 u16 pfc_en);
|
H A D | cgx.h | 181 u16 pfc_en);
|
/linux-master/include/uapi/linux/ |
H A D | dcbnl.h | 150 * @pfc_en: bitmap indicating pfc enabled traffic classes 159 __u8 pfc_en; member in struct:ieee_pfc 204 * @pfc_en: bitmap indicating pfc enabled traffic classes 210 __u8 pfc_en; member in struct:cee_pfc
|
/linux-master/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_dcb.h | 254 u8 pfc_en, u8 *prio_tc); 262 u8 pfc_en, u32 *mfs_tc,
|
H A D | i40e_dcb.c | 1362 * @pfc_en: Bitmap of PFC enabled priorities 1368 u8 pfc_en, u8 *prio_tc) 1380 if (pfc_en & BIT(i)) { 1396 if (pfc_en) { 1399 pfc_en); 1405 if (pfc_en) 1426 pfc_en); 1432 pfc_en); 1438 if (pfc_en) { 1568 * @pfc_en 1367 i40e_dcb_hw_pfc_config(struct i40e_hw *hw, u8 pfc_en, u8 *prio_tc) argument 1575 i40e_dcb_hw_calculate_pool_sizes(struct i40e_hw *hw, u8 num_ports, bool eee_enabled, u8 pfc_en, u32 *mfs_tc, struct i40e_rx_pb_config *pb_cfg) argument [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_dcb.c | 525 mlxsw_reg_pfcc_prio_pack(pfcc_pl, pfc->pfc_en); 541 if (pause_en && pfc->pfc_en) { 549 if (pfc->pfc_en) 555 hdroom.prios.prio[prio].lossy = !(pfc->pfc_en & BIT(prio));
|
/linux-master/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_port.c | 1225 int hinic_dcb_set_pfc(struct hinic_hwdev *hwdev, u8 pfc_en, u8 pfc_bitmap) argument 1239 pfc.pfc_en = pfc_en; 1245 pfc_en ? "enable" : "disable", err, pfc.status, 1252 nic_cfg->rx_pause = pfc_en ? 0 : 1; 1253 nic_cfg->tx_pause = pfc_en ? 0 : 1;
|
/linux-master/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_dcb.c | 263 if ((pfc->pfc_en & (1 << pri)) && 316 pfc->pfc_en = pri_mask; 614 pfc->pfc_en = my_pfc->pfc_en;
|