Lines Matching refs:mdev
23 static int mlx5e_monitor_counter_cap(struct mlx5_core_dev *mdev)
25 if (!MLX5_CAP_GEN(mdev, max_num_of_monitor_counters))
27 if (MLX5_CAP_PCAM_REG(mdev, ppcnt) &&
28 MLX5_CAP_GEN(mdev, num_ppcnt_monitor_counters) <
31 if (MLX5_CAP_GEN(mdev, num_q_monitor_counters) <
42 mlx5_sd_for_each_dev(i, priv->mdev, pos)
48 static void mlx5e_monitor_counter_arm(struct mlx5_core_dev *mdev)
54 mlx5_cmd_exec_in(mdev, arm_monitor_counter, in);
67 mlx5_sd_for_each_dev(i, priv->mdev, pos)
112 static void mlx5e_set_monitor_counter(struct mlx5_core_dev *mdev, int q_counter)
114 int max_num_of_counters = MLX5_CAP_GEN(mdev, max_num_of_monitor_counters);
115 int num_q_counters = MLX5_CAP_GEN(mdev, num_q_monitor_counters);
116 int num_ppcnt_counters = !MLX5_CAP_PCAM_REG(mdev, ppcnt) ? 0 :
117 MLX5_CAP_GEN(mdev, num_ppcnt_monitor_counters);
134 mlx5_cmd_exec_in(mdev, set_monitor_counter, in);
146 mlx5_sd_for_each_dev(i, priv->mdev, pos) {
164 mlx5_sd_for_each_dev(i, priv->mdev, pos) {