Lines Matching defs:counters
9 #include "counters.h"
139 static int mlx5_ib_read_counters(struct ib_counters *counters,
143 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters);
163 ret = mcounters->read_counters(counters->device, &mread_attr);
167 /* do the pass over the counters data array to assign according to the
181 static int mlx5_ib_destroy_counters(struct ib_counters *counters)
183 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters);
185 mlx5_ib_counters_clear_description(counters);
187 mlx5_fc_destroy(to_mdev(counters->device)->mdev,
192 static int mlx5_ib_create_counters(struct ib_counters *counters,
195 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters);
219 * mlx5_ib_get_counters_id - Returns counters id to use for device+port
223 * mlx5_ib_get_counters_id() Returns counters set id to use for given
389 /* We don't expose device counters over Vports */
405 * which doesn't have any counters yet, so it would be
851 /* flow counters currently expose two counters packets and bytes */
854 struct ib_counters *counters, enum mlx5_ib_counters_type counters_type,
857 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters);
926 /* counters already bound to at least one flow */
940 /* counters not bound yet, must have udata passed */
958 void mlx5_ib_counters_clear_description(struct ib_counters *counters)
962 if (!counters || atomic_read(&counters->usecnt) != 1)
965 mcounters = to_mcounters(counters);