Lines Matching refs:counters_arr
1238 int *counters_arr; in mlx4_calc_vf_counters() local
1243 counters_arr = kmalloc_array(dev->caps.max_counters, in mlx4_calc_vf_counters()
1244 sizeof(*counters_arr), GFP_KERNEL); in mlx4_calc_vf_counters()
1245 if (!counters_arr) in mlx4_calc_vf_counters()
1254 counters_arr[i] = (int)tmp->res_id; in mlx4_calc_vf_counters()
1259 counters_arr[i] = -1; in mlx4_calc_vf_counters()
1263 while (counters_arr[i] != -1) { in mlx4_calc_vf_counters()
1264 err = mlx4_get_counter_stats(dev, counters_arr[i], data, in mlx4_calc_vf_counters()
1274 kfree(counters_arr); in mlx4_calc_vf_counters()
5182 int *counters_arr = NULL; in rem_slave_counters() local
5190 counters_arr = kmalloc_array(dev->caps.max_counters, in rem_slave_counters()
5191 sizeof(*counters_arr), GFP_KERNEL); in rem_slave_counters()
5192 if (!counters_arr) in rem_slave_counters()
5201 counters_arr[i++] = counter->com.res_id; in rem_slave_counters()
5211 __mlx4_counter_free(dev, counters_arr[j++]); in rem_slave_counters()
5216 kfree(counters_arr); in rem_slave_counters()