Lines Matching refs:irqfds
92 mutex_lock(&kvm->irqfds.resampler_lock); in irqfd_resampler_shutdown()
105 mutex_unlock(&kvm->irqfds.resampler_lock); in irqfd_resampler_shutdown()
213 spin_lock_irqsave(&kvm->irqfds.lock, iflags); in irqfd_wakeup()
227 spin_unlock_irqrestore(&kvm->irqfds.lock, iflags); in irqfd_wakeup()
306 seqcount_spinlock_init(&irqfd->irq_entry_sc, &kvm->irqfds.lock); in kvm_irqfd_assign()
334 mutex_lock(&kvm->irqfds.resampler_lock); in kvm_irqfd_assign()
337 &kvm->irqfds.resampler_list, link) { in kvm_irqfd_assign()
349 mutex_unlock(&kvm->irqfds.resampler_lock); in kvm_irqfd_assign()
359 list_add(&resampler->link, &kvm->irqfds.resampler_list); in kvm_irqfd_assign()
368 mutex_unlock(&kvm->irqfds.resampler_lock); in kvm_irqfd_assign()
378 spin_lock_irq(&kvm->irqfds.lock); in kvm_irqfd_assign()
381 list_for_each_entry(tmp, &kvm->irqfds.items, list) { in kvm_irqfd_assign()
386 spin_unlock_irq(&kvm->irqfds.lock); in kvm_irqfd_assign()
393 list_add_tail(&irqfd->list, &kvm->irqfds.items); in kvm_irqfd_assign()
395 spin_unlock_irq(&kvm->irqfds.lock); in kvm_irqfd_assign()
514 spin_lock_init(&kvm->irqfds.lock); in kvm_eventfd_init()
515 INIT_LIST_HEAD(&kvm->irqfds.items); in kvm_eventfd_init()
516 INIT_LIST_HEAD(&kvm->irqfds.resampler_list); in kvm_eventfd_init()
517 mutex_init(&kvm->irqfds.resampler_lock); in kvm_eventfd_init()
536 spin_lock_irq(&kvm->irqfds.lock); in kvm_irqfd_deassign()
538 list_for_each_entry_safe(irqfd, tmp, &kvm->irqfds.items, list) { in kvm_irqfd_deassign()
553 spin_unlock_irq(&kvm->irqfds.lock); in kvm_irqfd_deassign()
587 spin_lock_irq(&kvm->irqfds.lock); in kvm_irqfd_release()
589 list_for_each_entry_safe(irqfd, tmp, &kvm->irqfds.items, list) in kvm_irqfd_release()
592 spin_unlock_irq(&kvm->irqfds.lock); in kvm_irqfd_release()
610 spin_lock_irq(&kvm->irqfds.lock); in kvm_irq_routing_update()
612 list_for_each_entry(irqfd, &kvm->irqfds.items, list) { in kvm_irq_routing_update()
625 spin_unlock_irq(&kvm->irqfds.lock); in kvm_irq_routing_update()