Lines Matching defs:counters
8 #include "counters.h"
78 static int mlx5_ib_read_counters(struct ib_counters *counters,
82 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters);
102 ret = mcounters->read_counters(counters->device, &mread_attr);
106 /* do the pass over the counters data array to assign according to the
120 static int mlx5_ib_destroy_counters(struct ib_counters *counters)
122 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters);
124 mlx5_ib_counters_clear_description(counters);
126 mlx5_fc_destroy(to_mdev(counters->device)->mdev,
131 static int mlx5_ib_create_counters(struct ib_counters *counters,
134 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters);
156 * mlx5_ib_get_counters_id - Returns counters id to use for device+port
160 * mlx5_ib_get_counters_id() Returns counters set id to use for given
277 * which doesn't have any counters yet, so it would be
552 /* flow counters currently expose two counters packets and bytes */
555 struct ib_counters *counters, enum mlx5_ib_counters_type counters_type,
558 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters);
627 /* counters already bound to at least one flow */
641 /* counters not bound yet, must have udata passed */
659 void mlx5_ib_counters_clear_description(struct ib_counters *counters)
663 if (!counters || atomic_read(&counters->usecnt) != 1)
666 mcounters = to_mcounters(counters);