Searched refs:mcounters (Results 1 – 2 of 2) sorted by relevance
82 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters); in mlx5_ib_read_counters() local87 mutex_lock(&mcounters->mcntrs_mutex); in mlx5_ib_read_counters()88 if (mcounters->cntrs_max_index > read_attr->ncounters) { in mlx5_ib_read_counters()93 mread_attr.out = kcalloc(mcounters->counters_num, sizeof(u64), in mlx5_ib_read_counters()100 mread_attr.hw_cntrs_hndl = mcounters->hw_cntrs_hndl; in mlx5_ib_read_counters()102 ret = mcounters->read_counters(counters->device, &mread_attr); in mlx5_ib_read_counters()109 desc = mcounters->counters_data; in mlx5_ib_read_counters()110 for (i = 0; i < mcounters->ncounters; i++) in mlx5_ib_read_counters()116 mutex_unlock(&mcounters->mcntrs_mutex); in mlx5_ib_read_counters()122 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters); in mlx5_ib_destroy_counters() local[all …]
977 struct mlx5_ib_mcounters *mcounters; in _create_flow_rule() local983 mcounters = to_mcounters(flow_act.counters); in _create_flow_rule()988 mlx5_fc_id(mcounters->hw_cntrs_hndl); in _create_flow_rule()