Lines Matching refs:num_engines

415 static void log_busy(unsigned int num_engines, uint64_t *val)  in log_busy()  argument
422 for (i = 0; i < num_engines; i++) { in log_busy()
436 const unsigned int num_engines, unsigned int flags) in busy_check_all() argument
439 uint64_t tval[2][num_engines]; in busy_check_all()
441 uint64_t val[num_engines]; in busy_check_all()
442 int fd[num_engines]; in busy_check_all()
457 igt_assert_eq(i, num_engines); in busy_check_all()
460 pmu_read_multi(fd[0], num_engines, tval[0]); in busy_check_all()
464 pmu_read_multi(fd[0], num_engines, tval[1]); in busy_check_all()
470 for (i = 0; i < num_engines; i++) in busy_check_all()
473 log_busy(num_engines, val); in busy_check_all()
476 for (i = 0; i < num_engines; i++) { in busy_check_all()
500 const unsigned int num_engines, unsigned int flags) in most_busy_check_all() argument
503 uint64_t tval[2][num_engines]; in most_busy_check_all()
504 uint64_t val[num_engines]; in most_busy_check_all()
505 int fd[num_engines]; in most_busy_check_all()
521 igt_assert(i == num_engines); in most_busy_check_all()
525 for (i = 0; i < num_engines; i++) in most_busy_check_all()
529 usleep(__spin_wait(gem_fd, spin) * num_engines / 1e3); in most_busy_check_all()
531 pmu_read_multi(fd[0], num_engines, tval[0]); in most_busy_check_all()
535 pmu_read_multi(fd[0], num_engines, tval[1]); in most_busy_check_all()
541 for (i = 0; i < num_engines; i++) in most_busy_check_all()
544 log_busy(num_engines, val); in most_busy_check_all()
546 for (i = 0; i < num_engines; i++) { in most_busy_check_all()
556 all_busy_check_all(int gem_fd, const unsigned int num_engines, in all_busy_check_all() argument
560 uint64_t tval[2][num_engines]; in all_busy_check_all()
561 uint64_t val[num_engines]; in all_busy_check_all()
562 int fd[num_engines]; in all_busy_check_all()
576 igt_assert(i == num_engines); in all_busy_check_all()
579 for (i = 0; i < num_engines; i++) in all_busy_check_all()
583 usleep(__spin_wait(gem_fd, spin) * num_engines / 1e3); in all_busy_check_all()
585 pmu_read_multi(fd[0], num_engines, tval[0]); in all_busy_check_all()
589 pmu_read_multi(fd[0], num_engines, tval[1]); in all_busy_check_all()
595 for (i = 0; i < num_engines; i++) in all_busy_check_all()
598 log_busy(num_engines, val); in all_busy_check_all()
600 for (i = 0; i < num_engines; i++) in all_busy_check_all()
1678 unsigned int num_engines = 0; variable
1690 num_engines++;
1734 busy_check_all(fd, e, num_engines, TEST_BUSY); in __for_each_physical_engine()
1736 busy_check_all(fd, e, num_engines, in __for_each_physical_engine()
1744 most_busy_check_all(fd, e, num_engines, in __for_each_physical_engine()
1747 most_busy_check_all(fd, e, num_engines, in __for_each_physical_engine()
1834 all_busy_check_all(fd, num_engines, TEST_BUSY);
1836 all_busy_check_all(fd, num_engines,