Lines Matching refs:num_counters
394 int ret, num_counters; in do_get_hw_stats() local
399 num_counters = cnts->num_q_counters + in do_get_hw_stats()
446 return num_counters; in do_get_hw_stats()
554 int num_counters, num_hw_counters, num_op_counters; in mlx5_ib_get_hw_stats() local
561 num_counters = num_hw_counters + cnts->num_op_counters; in mlx5_ib_get_hw_stats()
563 if (index < 0 || index > num_counters) in mlx5_ib_get_hw_stats()
567 else if (index >= num_hw_counters && index < num_counters) in mlx5_ib_get_hw_stats()
806 u32 num_counters, num_op_counters = 0, size; in __mlx5_ib_alloc_counters() local
810 num_counters = size; in __mlx5_ib_alloc_counters()
815 num_counters += size; in __mlx5_ib_alloc_counters()
820 num_counters += size; in __mlx5_ib_alloc_counters()
825 num_counters += size; in __mlx5_ib_alloc_counters()
830 num_counters += size; in __mlx5_ib_alloc_counters()
832 cnts->num_q_counters = num_counters; in __mlx5_ib_alloc_counters()
839 num_counters += ARRAY_SIZE(cong_cnts); in __mlx5_ib_alloc_counters()
843 num_counters += ARRAY_SIZE(ext_ppcnt_cnts); in __mlx5_ib_alloc_counters()
860 num_counters += num_op_counters; in __mlx5_ib_alloc_counters()
861 cnts->descs = kcalloc(num_counters, in __mlx5_ib_alloc_counters()
866 cnts->offsets = kcalloc(num_counters, in __mlx5_ib_alloc_counters()