Lines Matching refs:num

74 	uint32_t num;  member
81 uint32_t num, int level, bool expect_failure);
87 #define _KVM_INJECT_MULTI(cmd, intid, num, expect_failure) \ argument
88 kvm_inject_call(cmd, intid, num, -1 /* not used */, expect_failure)
90 #define KVM_INJECT_MULTI(cmd, intid, num) \ argument
91 _KVM_INJECT_MULTI(cmd, intid, num, false)
199 uint32_t num, int level, bool expect_failure) in kvm_inject_call() argument
204 .num = num, in kvm_inject_call()
264 uint32_t first_intid, uint32_t num, in guest_inject() argument
272 for (i = first_intid; i < num + first_intid; i++) in guest_inject()
276 KVM_INJECT_MULTI(cmd, first_intid, num); in guest_inject()
278 while (irq_handled < num) { in guest_inject()
287 GUEST_ASSERT_EQ(irq_handled, num); in guest_inject()
288 for (i = first_intid; i < num + first_intid; i++) in guest_inject()
302 uint32_t first_intid, uint32_t num, in guest_restore_active() argument
312 for (i = 0, prio = (num - 1) * 8; i < num; i++, prio -= 8) { in guest_restore_active()
322 for (i = 0; i < num; i++) { in guest_restore_active()
333 for (i = 0; i < num; i++) { in guest_restore_active()
334 intid = num - i - 1 + first_intid; in guest_restore_active()
340 for (i = 0; i < num; i++) in guest_restore_active()
370 uint32_t first_intid, int num, in test_inject_preemption() argument
379 for (i = 0, prio = (num - 1) * step; i < num; i++, prio -= step) { in test_inject_preemption()
387 for (i = 0; i < num; i++) { in test_inject_preemption()
399 for (i = 0; i < num; i++) { in test_inject_preemption()
400 intid = num - i - 1 + first_intid; in test_inject_preemption()
408 for (i = 0; i < num; i++) in test_inject_preemption()
561 uint32_t intid, uint32_t num, uint32_t kvm_max_routes, in kvm_set_gsi_routing_irqchip_check() argument
568 assert(num <= kvm_max_routes && kvm_max_routes <= KVM_MAX_IRQ_ROUTES); in kvm_set_gsi_routing_irqchip_check()
571 for (i = intid; i < (uint64_t)intid + num; i++) in kvm_set_gsi_routing_irqchip_check()
579 if (((uint64_t)intid + num - 1 - MIN_SPI) >= KVM_IRQCHIP_NUM_PINS) in kvm_set_gsi_routing_irqchip_check()
606 uint32_t intid, uint32_t num, uint32_t kvm_max_routes, in kvm_routing_and_irqfd_check() argument
622 kvm_set_gsi_routing_irqchip_check(vm, intid, num, in kvm_routing_and_irqfd_check()
631 for (f = 0, i = intid; i < (uint64_t)intid + num; i++, f++) { in kvm_routing_and_irqfd_check()
636 for (f = 0, i = intid; i < (uint64_t)intid + num; i++, f++) { in kvm_routing_and_irqfd_check()
645 for (f = 0, i = intid; i < (uint64_t)intid + num; i++, f++) { in kvm_routing_and_irqfd_check()
652 for (f = 0, i = intid; i < (uint64_t)intid + num; i++, f++) in kvm_routing_and_irqfd_check()
657 #define for_each_intid(first, num, tmp, i) \ argument
659 (tmp) < (uint64_t)(first) + (uint64_t)(num); \
668 uint32_t num = inject_args->num; in run_guest_cmd() local
676 assert(intid < UINT_MAX - num || num == 1); in run_guest_cmd()
680 for_each_intid(intid, num, tmp, i) in run_guest_cmd()
683 for_each_intid(intid, num, tmp, i) in run_guest_cmd()
688 for_each_intid(intid, num, tmp, i) in run_guest_cmd()
693 for_each_intid(intid, num, tmp, i) in run_guest_cmd()
698 for_each_intid(intid, num, tmp, i) in run_guest_cmd()
703 kvm_routing_and_irqfd_check(vm, intid, num, in run_guest_cmd()
708 for (i = intid; i < intid + num; i++) in run_guest_cmd()
713 for (i = intid; i < intid + num; i++) in run_guest_cmd()