Lines Matching refs:num
67 uint32_t num; member
74 uint32_t num, int level, bool expect_failure);
80 #define _KVM_INJECT_MULTI(cmd, intid, num, expect_failure) \ argument
81 kvm_inject_call(cmd, intid, num, -1 /* not used */, expect_failure)
83 #define KVM_INJECT_MULTI(cmd, intid, num) \ argument
84 _KVM_INJECT_MULTI(cmd, intid, num, false)
192 uint32_t num, int level, bool expect_failure) in kvm_inject_call() argument
197 .num = num, in kvm_inject_call()
257 uint32_t first_intid, uint32_t num, in guest_inject() argument
265 for (i = first_intid; i < num + first_intid; i++) in guest_inject()
269 KVM_INJECT_MULTI(cmd, first_intid, num); in guest_inject()
271 while (irq_handled < num) { in guest_inject()
279 GUEST_ASSERT_EQ(irq_handled, num); in guest_inject()
280 for (i = first_intid; i < num + first_intid; i++) in guest_inject()
294 uint32_t first_intid, uint32_t num, in guest_restore_active() argument
304 for (i = 0, prio = (num - 1) * 8; i < num; i++, prio -= 8) { in guest_restore_active()
314 for (i = 0; i < num; i++) { in guest_restore_active()
325 for (i = 0; i < num; i++) { in guest_restore_active()
326 intid = num - i - 1 + first_intid; in guest_restore_active()
332 for (i = 0; i < num; i++) in guest_restore_active()
362 uint32_t first_intid, int num, in test_inject_preemption() argument
371 for (i = 0, prio = (num - 1) * step; i < num; i++, prio -= step) { in test_inject_preemption()
379 for (i = 0; i < num; i++) { in test_inject_preemption()
391 for (i = 0; i < num; i++) { in test_inject_preemption()
392 intid = num - i - 1 + first_intid; in test_inject_preemption()
400 for (i = 0; i < num; i++) in test_inject_preemption()
553 uint32_t intid, uint32_t num, uint32_t kvm_max_routes, in kvm_set_gsi_routing_irqchip_check() argument
560 assert(num <= kvm_max_routes && kvm_max_routes <= KVM_MAX_IRQ_ROUTES); in kvm_set_gsi_routing_irqchip_check()
563 for (i = intid; i < (uint64_t)intid + num; i++) in kvm_set_gsi_routing_irqchip_check()
571 if (((uint64_t)intid + num - 1 - MIN_SPI) >= KVM_IRQCHIP_NUM_PINS) in kvm_set_gsi_routing_irqchip_check()
598 uint32_t intid, uint32_t num, uint32_t kvm_max_routes, in kvm_routing_and_irqfd_check() argument
614 kvm_set_gsi_routing_irqchip_check(vm, intid, num, in kvm_routing_and_irqfd_check()
623 for (f = 0, i = intid; i < (uint64_t)intid + num; i++, f++) { in kvm_routing_and_irqfd_check()
628 for (f = 0, i = intid; i < (uint64_t)intid + num; i++, f++) { in kvm_routing_and_irqfd_check()
637 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()
649 #define for_each_intid(first, num, tmp, i) \ argument
651 (tmp) < (uint64_t)(first) + (uint64_t)(num); \
660 uint32_t num = inject_args->num; in run_guest_cmd() local
668 assert(intid < UINT_MAX - num || num == 1); in run_guest_cmd()
672 for_each_intid(intid, num, tmp, i) in run_guest_cmd()
675 for_each_intid(intid, num, tmp, i) in run_guest_cmd()
680 for_each_intid(intid, num, tmp, i) in run_guest_cmd()
685 for_each_intid(intid, num, tmp, i) in run_guest_cmd()
690 for_each_intid(intid, num, tmp, i) in run_guest_cmd()
695 kvm_routing_and_irqfd_check(vm, intid, num, in run_guest_cmd()
700 for (i = intid; i < intid + num; i++) in run_guest_cmd()
705 for (i = intid; i < intid + num; i++) in run_guest_cmd()