Lines Matching refs:irq_source_id
31 struct kvm *kvm, int irq_source_id, int level, in kvm_set_pic_irq() argument
35 return kvm_pic_set_irq(pic, e->irqchip.pin, irq_source_id, level); in kvm_set_pic_irq()
39 struct kvm *kvm, int irq_source_id, int level, in kvm_set_ioapic_irq() argument
43 return kvm_ioapic_set_irq(ioapic, e->irqchip.pin, irq_source_id, level, in kvm_set_ioapic_irq()
135 struct kvm *kvm, int irq_source_id, int level, bool line_status) in kvm_set_msi() argument
152 struct kvm *kvm, int irq_source_id, int level, in kvm_hv_set_sint() argument
162 struct kvm *kvm, int irq_source_id, int level, in kvm_arch_set_irq_inatomic() argument
170 return kvm_hv_set_sint(e, kvm, irq_source_id, level, in kvm_arch_set_irq_inatomic()
193 int irq_source_id; in kvm_request_irq_source_id() local
196 irq_source_id = find_first_zero_bit(bitmap, BITS_PER_LONG); in kvm_request_irq_source_id()
198 if (irq_source_id >= BITS_PER_LONG) { in kvm_request_irq_source_id()
200 irq_source_id = -EFAULT; in kvm_request_irq_source_id()
204 ASSERT(irq_source_id != KVM_USERSPACE_IRQ_SOURCE_ID); in kvm_request_irq_source_id()
205 ASSERT(irq_source_id != KVM_IRQFD_RESAMPLE_IRQ_SOURCE_ID); in kvm_request_irq_source_id()
206 set_bit(irq_source_id, bitmap); in kvm_request_irq_source_id()
210 return irq_source_id; in kvm_request_irq_source_id()
213 void kvm_free_irq_source_id(struct kvm *kvm, int irq_source_id) in kvm_free_irq_source_id() argument
215 ASSERT(irq_source_id != KVM_USERSPACE_IRQ_SOURCE_ID); in kvm_free_irq_source_id()
216 ASSERT(irq_source_id != KVM_IRQFD_RESAMPLE_IRQ_SOURCE_ID); in kvm_free_irq_source_id()
219 if (irq_source_id < 0 || in kvm_free_irq_source_id()
220 irq_source_id >= BITS_PER_LONG) { in kvm_free_irq_source_id()
224 clear_bit(irq_source_id, &kvm->arch.irq_sources_bitmap); in kvm_free_irq_source_id()
228 kvm_ioapic_clear_all(kvm->arch.vioapic, irq_source_id); in kvm_free_irq_source_id()
229 kvm_pic_clear_all(kvm->arch.vpic, irq_source_id); in kvm_free_irq_source_id()