Lines Matching refs:num_counters
375 int ret, num_counters; in do_get_hw_stats() local
380 num_counters = cnts->num_q_counters + in do_get_hw_stats()
427 return num_counters; in do_get_hw_stats()
486 int num_counters, num_hw_counters, num_op_counters; in mlx5_ib_get_hw_stats() local
493 num_counters = num_hw_counters + cnts->num_op_counters; in mlx5_ib_get_hw_stats()
495 if (index < 0 || index > num_counters) in mlx5_ib_get_hw_stats()
499 else if (index >= num_hw_counters && index < num_counters) in mlx5_ib_get_hw_stats()
688 u32 num_counters, num_op_counters = 0, size; in __mlx5_ib_alloc_counters() local
692 num_counters = size; in __mlx5_ib_alloc_counters()
697 num_counters += size; in __mlx5_ib_alloc_counters()
702 num_counters += size; in __mlx5_ib_alloc_counters()
707 num_counters += size; in __mlx5_ib_alloc_counters()
712 num_counters += size; in __mlx5_ib_alloc_counters()
714 cnts->num_q_counters = num_counters; in __mlx5_ib_alloc_counters()
721 num_counters += ARRAY_SIZE(cong_cnts); in __mlx5_ib_alloc_counters()
725 num_counters += ARRAY_SIZE(ext_ppcnt_cnts); in __mlx5_ib_alloc_counters()
740 num_counters += num_op_counters; in __mlx5_ib_alloc_counters()
741 cnts->descs = kcalloc(num_counters, in __mlx5_ib_alloc_counters()
746 cnts->offsets = kcalloc(num_counters, in __mlx5_ib_alloc_counters()