Home
last modified time | relevance | path

Searched refs:cq_period_mode (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/lib/dim/
Dnet_dim.c65 net_dim_get_rx_moderation(u8 cq_period_mode, int ix) in net_dim_get_rx_moderation() argument
67 struct dim_cq_moder cq_moder = rx_profile[cq_period_mode][ix]; in net_dim_get_rx_moderation()
69 cq_moder.cq_period_mode = cq_period_mode; in net_dim_get_rx_moderation()
75 net_dim_get_def_rx_moderation(u8 cq_period_mode) in net_dim_get_def_rx_moderation() argument
77 u8 profile_ix = cq_period_mode == DIM_CQ_PERIOD_MODE_START_FROM_CQE ? in net_dim_get_def_rx_moderation()
80 return net_dim_get_rx_moderation(cq_period_mode, profile_ix); in net_dim_get_def_rx_moderation()
85 net_dim_get_tx_moderation(u8 cq_period_mode, int ix) in net_dim_get_tx_moderation() argument
87 struct dim_cq_moder cq_moder = tx_profile[cq_period_mode][ix]; in net_dim_get_tx_moderation()
89 cq_moder.cq_period_mode = cq_period_mode; in net_dim_get_tx_moderation()
95 net_dim_get_def_tx_moderation(u8 cq_period_mode) in net_dim_get_def_tx_moderation() argument
[all …]
/linux-6.1.9/include/linux/
Ddim.h46 u8 cq_period_mode; member
283 struct dim_cq_moder net_dim_get_rx_moderation(u8 cq_period_mode, int ix);
289 struct dim_cq_moder net_dim_get_def_rx_moderation(u8 cq_period_mode);
296 struct dim_cq_moder net_dim_get_tx_moderation(u8 cq_period_mode, int ix);
302 struct dim_cq_moder net_dim_get_def_tx_moderation(u8 cq_period_mode);
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dparams.c475 static struct dim_cq_moder mlx5e_get_def_tx_moderation(u8 cq_period_mode) in mlx5e_get_def_tx_moderation() argument
479 moder.cq_period_mode = cq_period_mode; in mlx5e_get_def_tx_moderation()
482 if (cq_period_mode == MLX5_CQ_PERIOD_MODE_START_FROM_CQE) in mlx5e_get_def_tx_moderation()
488 static struct dim_cq_moder mlx5e_get_def_rx_moderation(u8 cq_period_mode) in mlx5e_get_def_rx_moderation() argument
492 moder.cq_period_mode = cq_period_mode; in mlx5e_get_def_rx_moderation()
495 if (cq_period_mode == MLX5_CQ_PERIOD_MODE_START_FROM_CQE) in mlx5e_get_def_rx_moderation()
501 static u8 mlx5_to_net_dim_cq_period_mode(u8 cq_period_mode) in mlx5_to_net_dim_cq_period_mode() argument
503 return cq_period_mode == MLX5_CQ_PERIOD_MODE_START_FROM_CQE ? in mlx5_to_net_dim_cq_period_mode()
508 void mlx5e_reset_tx_moderation(struct mlx5e_params *params, u8 cq_period_mode) in mlx5e_reset_tx_moderation() argument
511 u8 dim_period_mode = mlx5_to_net_dim_cq_period_mode(cq_period_mode); in mlx5e_reset_tx_moderation()
[all …]
Dparams.h19 u8 cq_period_mode; member
79 void mlx5e_reset_tx_moderation(struct mlx5e_params *params, u8 cq_period_mode);
80 void mlx5e_reset_rx_moderation(struct mlx5e_params *params, u8 cq_period_mode);
81 void mlx5e_set_tx_cq_mode_params(struct mlx5e_params *params, u8 cq_period_mode);
82 void mlx5e_set_rx_cq_mode_params(struct mlx5e_params *params, u8 cq_period_mode);
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_ethtool.c609 u8 cq_period_mode; in mlx5e_ethtool_set_coalesce() local
651 cq_period_mode = cqe_mode_to_period_mode(kernel_coal->use_cqe_mode_rx); in mlx5e_ethtool_set_coalesce()
652 if (cq_period_mode != rx_moder->cq_period_mode) { in mlx5e_ethtool_set_coalesce()
653 mlx5e_set_rx_cq_mode_params(&new_params, cq_period_mode); in mlx5e_ethtool_set_coalesce()
657 cq_period_mode = cqe_mode_to_period_mode(kernel_coal->use_cqe_mode_tx); in mlx5e_ethtool_set_coalesce()
658 if (cq_period_mode != tx_moder->cq_period_mode) { in mlx5e_ethtool_set_coalesce()
659 mlx5e_set_tx_cq_mode_params(&new_params, cq_period_mode); in mlx5e_ethtool_set_coalesce()
1885 u8 cq_period_mode, current_cq_period_mode; in set_pflag_cqe_based_moder() local
1891 cq_period_mode = cqe_mode_to_period_mode(enable); in set_pflag_cqe_based_moder()
1894 priv->channels.params.rx_cq_moderation.cq_period_mode : in set_pflag_cqe_based_moder()
[all …]
Den_rep.c686 u8 cq_period_mode = MLX5_CAP_GEN(mdev, cq_period_start_from_cqe) ? in mlx5e_build_rep_params() local
707 mlx5e_set_rx_cq_mode_params(params, cq_period_mode); in mlx5e_build_rep_params()
Den_main.c836 switch (params->rx_cq_moderation.cq_period_mode) { in mlx5e_alloc_rq()
1493 sq->dim.mode = params->tx_cq_moderation.cq_period_mode; in mlx5e_alloc_txqsq()
1961 MLX5_SET(cqc, cqc, cq_period_mode, param->cq_period_mode); in mlx5e_create_cq()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/lib/
Daso.c101 MLX5_SET(cqc, cqc, cq_period_mode, DIM_CQ_PERIOD_MODE_START_FROM_EQE); in create_aso_cq()
/linux-6.1.9/include/linux/mlx5/
Dmlx5_ifc.h4229 u8 cq_period_mode[0x2]; member