Searched refs:cq_period_mode (Results 1 – 9 of 9) sorted by relevance
/Linux-v6.1/lib/dim/ |
D | net_dim.c | 65 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-v6.1/include/linux/ |
D | dim.h | 46 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-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | params.c | 475 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 …]
|
D | params.h | 19 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-v6.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_ethtool.c | 609 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 …]
|
D | en_rep.c | 686 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()
|
D | en_main.c | 836 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-v6.1/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | aso.c | 101 MLX5_SET(cqc, cqc, cq_period_mode, DIM_CQ_PERIOD_MODE_START_FROM_EQE); in create_aso_cq()
|
/Linux-v6.1/include/linux/mlx5/ |
D | mlx5_ifc.h | 4228 u8 cq_period_mode[0x2]; member
|