Lines Matching refs:counters
78 static int mlx5_ib_read_counters(struct ib_counters *counters, in mlx5_ib_read_counters() argument
82 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters); in mlx5_ib_read_counters()
102 ret = mcounters->read_counters(counters->device, &mread_attr); in mlx5_ib_read_counters()
120 static int mlx5_ib_destroy_counters(struct ib_counters *counters) in mlx5_ib_destroy_counters() argument
122 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters); in mlx5_ib_destroy_counters()
124 mlx5_ib_counters_clear_description(counters); in mlx5_ib_destroy_counters()
126 mlx5_fc_destroy(to_mdev(counters->device)->mdev, in mlx5_ib_destroy_counters()
131 static int mlx5_ib_create_counters(struct ib_counters *counters, in mlx5_ib_create_counters() argument
134 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters); in mlx5_ib_create_counters()
555 struct ib_counters *counters, enum mlx5_ib_counters_type counters_type, in counters_set_description() argument
558 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters); in counters_set_description()
659 void mlx5_ib_counters_clear_description(struct ib_counters *counters) in mlx5_ib_counters_clear_description() argument
663 if (!counters || atomic_read(&counters->usecnt) != 1) in mlx5_ib_counters_clear_description()
666 mcounters = to_mcounters(counters); in mlx5_ib_counters_clear_description()