Lines Matching refs:irq_ctx

18 static void vfio_platform_mask(struct vfio_platform_irq *irq_ctx)  in vfio_platform_mask()  argument
22 spin_lock_irqsave(&irq_ctx->lock, flags); in vfio_platform_mask()
24 if (!irq_ctx->masked) { in vfio_platform_mask()
25 disable_irq_nosync(irq_ctx->hwirq); in vfio_platform_mask()
26 irq_ctx->masked = true; in vfio_platform_mask()
29 spin_unlock_irqrestore(&irq_ctx->lock, flags); in vfio_platform_mask()
34 struct vfio_platform_irq *irq_ctx = opaque; in vfio_platform_mask_handler() local
36 vfio_platform_mask(irq_ctx); in vfio_platform_mask_handler()
78 static void vfio_platform_unmask(struct vfio_platform_irq *irq_ctx) in vfio_platform_unmask() argument
82 spin_lock_irqsave(&irq_ctx->lock, flags); in vfio_platform_unmask()
84 if (irq_ctx->masked) { in vfio_platform_unmask()
85 enable_irq(irq_ctx->hwirq); in vfio_platform_unmask()
86 irq_ctx->masked = false; in vfio_platform_unmask()
89 spin_unlock_irqrestore(&irq_ctx->lock, flags); in vfio_platform_unmask()
94 struct vfio_platform_irq *irq_ctx = opaque; in vfio_platform_unmask_handler() local
96 vfio_platform_unmask(irq_ctx); in vfio_platform_unmask_handler()
141 struct vfio_platform_irq *irq_ctx = dev_id; in vfio_automasked_irq_handler() local
145 spin_lock_irqsave(&irq_ctx->lock, flags); in vfio_automasked_irq_handler()
147 if (!irq_ctx->masked) { in vfio_automasked_irq_handler()
151 disable_irq_nosync(irq_ctx->hwirq); in vfio_automasked_irq_handler()
152 irq_ctx->masked = true; in vfio_automasked_irq_handler()
155 spin_unlock_irqrestore(&irq_ctx->lock, flags); in vfio_automasked_irq_handler()
158 eventfd_signal(irq_ctx->trigger, 1); in vfio_automasked_irq_handler()
165 struct vfio_platform_irq *irq_ctx = dev_id; in vfio_irq_handler() local
167 eventfd_signal(irq_ctx->trigger, 1); in vfio_irq_handler()