Lines Matching refs:num
73 uint32_t num; member
80 uint32_t num, int level, bool expect_failure);
86 #define _KVM_INJECT_MULTI(cmd, intid, num, expect_failure) \ argument
87 kvm_inject_call(cmd, intid, num, -1 /* not used */, expect_failure)
89 #define KVM_INJECT_MULTI(cmd, intid, num) \ argument
90 _KVM_INJECT_MULTI(cmd, intid, num, false)
198 uint32_t num, int level, bool expect_failure) in kvm_inject_call() argument
203 .num = num, in kvm_inject_call()
263 uint32_t first_intid, uint32_t num, in guest_inject() argument
271 for (i = first_intid; i < num + first_intid; i++) in guest_inject()
275 KVM_INJECT_MULTI(cmd, first_intid, num); in guest_inject()
277 while (irq_handled < num) { in guest_inject()
286 GUEST_ASSERT_EQ(irq_handled, num); in guest_inject()
287 for (i = first_intid; i < num + first_intid; i++) in guest_inject()
301 uint32_t first_intid, uint32_t num, in guest_restore_active() argument
311 for (i = 0, prio = (num - 1) * 8; i < num; i++, prio -= 8) { in guest_restore_active()
321 for (i = 0; i < num; i++) { in guest_restore_active()
332 for (i = 0; i < num; i++) { in guest_restore_active()
333 intid = num - i - 1 + first_intid; in guest_restore_active()
339 for (i = 0; i < num; i++) in guest_restore_active()
369 uint32_t first_intid, int num, in test_inject_preemption() argument
378 for (i = 0, prio = (num - 1) * step; i < num; i++, prio -= step) { in test_inject_preemption()
386 for (i = 0; i < num; i++) { in test_inject_preemption()
398 for (i = 0; i < num; i++) { in test_inject_preemption()
399 intid = num - i - 1 + first_intid; in test_inject_preemption()
407 for (i = 0; i < num; i++) in test_inject_preemption()
560 uint32_t intid, uint32_t num, uint32_t kvm_max_routes, in kvm_set_gsi_routing_irqchip_check() argument
567 assert(num <= kvm_max_routes && kvm_max_routes <= KVM_MAX_IRQ_ROUTES); in kvm_set_gsi_routing_irqchip_check()
570 for (i = intid; i < (uint64_t)intid + num; i++) in kvm_set_gsi_routing_irqchip_check()
578 if (((uint64_t)intid + num - 1 - MIN_SPI) >= KVM_IRQCHIP_NUM_PINS) in kvm_set_gsi_routing_irqchip_check()
605 uint32_t intid, uint32_t num, uint32_t kvm_max_routes, in kvm_routing_and_irqfd_check() argument
621 kvm_set_gsi_routing_irqchip_check(vm, intid, num, in kvm_routing_and_irqfd_check()
630 for (f = 0, i = intid; i < (uint64_t)intid + num; i++, f++) { in kvm_routing_and_irqfd_check()
635 for (f = 0, i = intid; i < (uint64_t)intid + num; i++, f++) { in kvm_routing_and_irqfd_check()
644 for (f = 0, i = intid; i < (uint64_t)intid + num; i++, f++) { in kvm_routing_and_irqfd_check()
651 for (f = 0, i = intid; i < (uint64_t)intid + num; i++, f++) in kvm_routing_and_irqfd_check()
656 #define for_each_intid(first, num, tmp, i) \ argument
658 (tmp) < (uint64_t)(first) + (uint64_t)(num); \
667 uint32_t num = inject_args->num; in run_guest_cmd() local
675 assert(intid < UINT_MAX - num || num == 1); in run_guest_cmd()
679 for_each_intid(intid, num, tmp, i) in run_guest_cmd()
682 for_each_intid(intid, num, tmp, i) in run_guest_cmd()
687 for_each_intid(intid, num, tmp, i) in run_guest_cmd()
692 for_each_intid(intid, num, tmp, i) in run_guest_cmd()
697 for_each_intid(intid, num, tmp, i) in run_guest_cmd()
702 kvm_routing_and_irqfd_check(vm, intid, num, in run_guest_cmd()
707 for (i = intid; i < intid + num; i++) in run_guest_cmd()
712 for (i = intid; i < intid + num; i++) in run_guest_cmd()