Lines Matching full:counters

8 #include "counters.h"
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()
106 /* do the pass over the counters data array to assign according to the 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()
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 in mlx5_ib_get_hw_stats()
552 /* flow counters currently expose two counters packets and bytes */
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()
627 /* counters already bound to at least one flow */ in mlx5_ib_flow_counters_set_data()
641 /* counters not bound yet, must have udata passed */ in mlx5_ib_flow_counters_set_data()
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()