Lines Matching refs:num_counters
280 int ret, num_counters; in do_get_hw_stats() local
285 num_counters = cnts->num_q_counters + in do_get_hw_stats()
324 return num_counters; in do_get_hw_stats()
382 int num_counters, num_hw_counters, num_op_counters; in mlx5_ib_get_hw_stats() local
389 num_counters = num_hw_counters + cnts->num_op_counters; in mlx5_ib_get_hw_stats()
391 if (index < 0 || index > num_counters) in mlx5_ib_get_hw_stats()
395 else if (index >= num_hw_counters && index < num_counters) in mlx5_ib_get_hw_stats()
563 u32 num_counters, num_op_counters; in __mlx5_ib_alloc_counters() local
565 num_counters = ARRAY_SIZE(basic_q_cnts); in __mlx5_ib_alloc_counters()
568 num_counters += ARRAY_SIZE(out_of_seq_q_cnts); in __mlx5_ib_alloc_counters()
571 num_counters += ARRAY_SIZE(retrans_q_cnts); in __mlx5_ib_alloc_counters()
574 num_counters += ARRAY_SIZE(extended_err_cnts); in __mlx5_ib_alloc_counters()
577 num_counters += ARRAY_SIZE(roce_accl_cnts); in __mlx5_ib_alloc_counters()
579 cnts->num_q_counters = num_counters; in __mlx5_ib_alloc_counters()
583 num_counters += ARRAY_SIZE(cong_cnts); in __mlx5_ib_alloc_counters()
587 num_counters += ARRAY_SIZE(ext_ppcnt_cnts); in __mlx5_ib_alloc_counters()
601 num_counters += num_op_counters; in __mlx5_ib_alloc_counters()
602 cnts->descs = kcalloc(num_counters, in __mlx5_ib_alloc_counters()
607 cnts->offsets = kcalloc(num_counters, in __mlx5_ib_alloc_counters()