Lines Matching refs:num_engines
86 int num_engines = 0; in sync_ring() local
90 names[num_engines] = e__->name; in sync_ring()
91 engines[num_engines++] = ring; in sync_ring()
92 if (num_engines == ARRAY_SIZE(engines)) in sync_ring()
96 num_children *= num_engines; in sync_ring()
99 names[num_engines] = NULL; in sync_ring()
100 engines[num_engines++] = ring; in sync_ring()
118 execbuf.flags = engines[child % num_engines]; in sync_ring()
131 names[child % num_engines] ?: "", in sync_ring()
132 names[child % num_engines] ? " c" : "C", in sync_ring()
185 int num_engines = 0; in wakeup_ring() local
192 names[num_engines] = e__->name; in wakeup_ring()
193 engines[num_engines++] = ring; in wakeup_ring()
194 if (num_engines == ARRAY_SIZE(engines)) in wakeup_ring()
197 igt_require(num_engines); in wakeup_ring()
201 names[num_engines] = NULL; in wakeup_ring()
202 engines[num_engines++] = ring; in wakeup_ring()
206 igt_fork(child, num_engines) { in wakeup_ring()
221 execbuf.flags = engines[child % num_engines]; in wakeup_ring()
255 names[child % num_engines] ?: "", in wakeup_ring()
256 names[child % num_engines] ? " b" : "B", in wakeup_ring()
282 names[child % num_engines] ?: "", in wakeup_ring()
283 names[child % num_engines] ? " c" : "C", in wakeup_ring()
297 int num_engines = 0; in active_ring() local
304 names[num_engines] = e__->name; in active_ring()
305 engines[num_engines++] = ring; in active_ring()
306 if (num_engines == ARRAY_SIZE(engines)) in active_ring()
309 igt_require(num_engines); in active_ring()
313 names[num_engines] = NULL; in active_ring()
314 engines[num_engines++] = ring; in active_ring()
318 igt_fork(child, num_engines) { in active_ring()
351 names[child % num_engines] ?: "", in active_ring()
352 names[child % num_engines] ? " c" : "C", in active_ring()
364 int num_engines = 0; in active_wakeup_ring() local
371 names[num_engines] = e__->name; in active_wakeup_ring()
372 engines[num_engines++] = ring; in active_wakeup_ring()
373 if (num_engines == ARRAY_SIZE(engines)) in active_wakeup_ring()
376 igt_require(num_engines); in active_wakeup_ring()
380 names[num_engines] = NULL; in active_wakeup_ring()
381 engines[num_engines++] = ring; in active_wakeup_ring()
385 igt_fork(child, num_engines) { in active_wakeup_ring()
400 execbuf.flags = engines[child % num_engines]; in active_wakeup_ring()
447 names[child % num_engines] ?: "", in active_wakeup_ring()
448 names[child % num_engines] ? " b" : "B", in active_wakeup_ring()
481 names[child % num_engines] ?: "", in active_wakeup_ring()
482 names[child % num_engines] ? " c" : "C", in active_wakeup_ring()
499 int num_engines = 0; in store_ring() local
506 names[num_engines] = e__->name; in store_ring()
507 engines[num_engines++] = ring; in store_ring()
508 if (num_engines == ARRAY_SIZE(engines)) in store_ring()
512 num_children *= num_engines; in store_ring()
516 names[num_engines] = NULL; in store_ring()
517 engines[num_engines++] = ring; in store_ring()
532 execbuf.flags = engines[child % num_engines]; in store_ring()
597 names[child % num_engines] ?: "", in store_ring()
598 names[child % num_engines] ? " c" : "C", in store_ring()
614 int num_engines = 0; in switch_ring() local
623 names[num_engines] = e__->name; in switch_ring()
624 engines[num_engines++] = ring; in switch_ring()
625 if (num_engines == ARRAY_SIZE(engines)) in switch_ring()
629 num_children *= num_engines; in switch_ring()
633 names[num_engines] = NULL; in switch_ring()
634 engines[num_engines++] = ring; in switch_ring()
655 c->execbuf.flags = engines[child % num_engines]; in switch_ring()
750 names[child % num_engines] ?: "", in switch_ring()
751 names[child % num_engines] ? " c" : "C", in switch_ring()
978 int num_engines = 0; in sync_all() local
981 engines[num_engines++] = engine; in sync_all()
982 if (num_engines == ARRAY_SIZE(engines)) in sync_all()
985 igt_require(num_engines); in sync_all()
1009 for (int n = 0; n < num_engines; n++) { in sync_all()
1030 int num_engines = 0; in store_all() local
1037 engines[num_engines++] = ring; in store_all()
1038 if (num_engines == ARRAY_SIZE(engines)) in store_all()
1041 igt_require(num_engines); in store_all()
1114 igt_permute_array(engines, num_engines, xchg); in store_all()
1115 for (int n = 0; n < num_engines; n++) { in store_all()
1138 int num_engines = 0; in preempt() local
1143 names[num_engines] = e__->name; in preempt()
1144 engines[num_engines++] = ring; in preempt()
1145 if (num_engines == ARRAY_SIZE(engines)) in preempt()
1149 num_children *= num_engines; in preempt()
1152 names[num_engines] = NULL; in preempt()
1153 engines[num_engines++] = ring; in preempt()
1177 execbuf.flags = engines[child % num_engines]; in preempt()
1198 names[child % num_engines] ?: "", in preempt()
1199 names[child % num_engines] ? " c" : "C", in preempt()