Searched refs:mcounters (Results 1 – 2 of 2) sorted by relevance
147 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters); in mlx5_ib_read_counters() local152 mutex_lock(&mcounters->mcntrs_mutex); in mlx5_ib_read_counters()153 if (mcounters->cntrs_max_index > read_attr->ncounters) { in mlx5_ib_read_counters()158 mread_attr.out = kcalloc(mcounters->counters_num, sizeof(u64), in mlx5_ib_read_counters()165 mread_attr.hw_cntrs_hndl = mcounters->hw_cntrs_hndl; in mlx5_ib_read_counters()167 ret = mcounters->read_counters(counters->device, &mread_attr); in mlx5_ib_read_counters()174 desc = mcounters->counters_data; in mlx5_ib_read_counters()175 for (i = 0; i < mcounters->ncounters; i++) in mlx5_ib_read_counters()181 mutex_unlock(&mcounters->mcntrs_mutex); in mlx5_ib_read_counters()187 struct mlx5_ib_mcounters *mcounters = to_mcounters(counters); in mlx5_ib_destroy_counters() local[all …]
1106 struct mlx5_ib_mcounters *mcounters; in _create_flow_rule() local1112 mcounters = to_mcounters(flow_act.counters); in _create_flow_rule()1117 mlx5_fc_id(mcounters->hw_cntrs_hndl); in _create_flow_rule()