Lines Matching refs:num_hw_counters
241 u32 num_hw_counters; in do_alloc_stats() local
244 num_hw_counters = cnts->num_q_counters + cnts->num_cong_counters + in do_alloc_stats()
247 num_hw_counters + in do_alloc_stats()
254 set_bit(num_hw_counters + i, stats->is_disabled); in do_alloc_stats()
467 int index, ret, num_hw_counters; in do_get_op_stats() local
470 num_hw_counters = cnts->num_q_counters + cnts->num_cong_counters + in do_get_op_stats()
472 for (index = num_hw_counters; in do_get_op_stats()
473 index < (num_hw_counters + cnts->num_op_counters); index++) { in do_get_op_stats()
486 int num_counters, num_hw_counters, num_op_counters; in mlx5_ib_get_hw_stats() local
491 num_hw_counters = cnts->num_q_counters + cnts->num_cong_counters + in mlx5_ib_get_hw_stats()
493 num_counters = num_hw_counters + cnts->num_op_counters; in mlx5_ib_get_hw_stats()
497 else if (index > 0 && index < num_hw_counters) in mlx5_ib_get_hw_stats()
499 else if (index >= num_hw_counters && index < num_counters) in mlx5_ib_get_hw_stats()
502 num_hw_counters = do_get_hw_stats(ibdev, stats, port_num, index); in mlx5_ib_get_hw_stats()
503 if (num_hw_counters < 0) in mlx5_ib_get_hw_stats()
504 return num_hw_counters; in mlx5_ib_get_hw_stats()
510 return num_hw_counters + num_op_counters; in mlx5_ib_get_hw_stats()
984 u32 num_hw_counters, type; in mlx5_ib_modify_stat() local
988 num_hw_counters = cnts->num_q_counters + cnts->num_cong_counters + in mlx5_ib_modify_stat()
990 if (index < num_hw_counters || in mlx5_ib_modify_stat()
991 index >= (num_hw_counters + cnts->num_op_counters)) in mlx5_ib_modify_stat()