Home
last modified time | relevance | path

Searched refs:irq_ctx (Results 1 – 9 of 9) sorted by relevance

/linux-6.6.21/kernel/irq/
Dirq_sim.c29 struct irq_sim_irq_ctx *irq_ctx = irq_data_get_irq_chip_data(data); in irq_sim_irqmask() local
31 irq_ctx->enabled = false; in irq_sim_irqmask()
36 struct irq_sim_irq_ctx *irq_ctx = irq_data_get_irq_chip_data(data); in irq_sim_irqunmask() local
38 irq_ctx->enabled = true; in irq_sim_irqunmask()
55 struct irq_sim_irq_ctx *irq_ctx = irq_data_get_irq_chip_data(data); in irq_sim_get_irqchip_state() local
60 if (irq_ctx->enabled) in irq_sim_get_irqchip_state()
61 *state = test_bit(hwirq, irq_ctx->work_ctx->pending); in irq_sim_get_irqchip_state()
73 struct irq_sim_irq_ctx *irq_ctx = irq_data_get_irq_chip_data(data); in irq_sim_set_irqchip_state() local
78 if (irq_ctx->enabled) { in irq_sim_set_irqchip_state()
79 assign_bit(hwirq, irq_ctx->work_ctx->pending, state); in irq_sim_set_irqchip_state()
[all …]
/linux-6.6.21/drivers/vfio/platform/
Dvfio_platform_irq.c18 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()
[all …]
/linux-6.6.21/arch/sh/kernel/
Dirq.c61 union irq_ctx { union
66 static union irq_ctx *hardirq_ctx[NR_CPUS] __read_mostly;
67 static union irq_ctx *softirq_ctx[NR_CPUS] __read_mostly;
74 union irq_ctx *curctx, *irqctx; in handle_one_irq()
76 curctx = (union irq_ctx *)current_thread_info(); in handle_one_irq()
122 union irq_ctx *irqctx; in irq_ctx_init()
127 irqctx = (union irq_ctx *)&hardirq_stack[cpu * THREAD_SIZE]; in irq_ctx_init()
135 irqctx = (union irq_ctx *)&softirq_stack[cpu * THREAD_SIZE]; in irq_ctx_init()
156 union irq_ctx *irqctx; in do_softirq_own_stack()
/linux-6.6.21/drivers/i2c/
Di2c-core-acpi.c178 struct i2c_acpi_irq_context *irq_ctx = data; in i2c_acpi_add_irq_resource() local
181 if (irq_ctx->irq > 0) in i2c_acpi_add_irq_resource()
187 irq_ctx->irq = i2c_dev_irq_from_resources(&r, 1); in i2c_acpi_add_irq_resource()
188 irq_ctx->wake_capable = r.flags & IORESOURCE_IRQ_WAKECAPABLE; in i2c_acpi_add_irq_resource()
206 struct i2c_acpi_irq_context irq_ctx = { in i2c_acpi_get_irq() local
214 i2c_acpi_add_irq_resource, &irq_ctx); in i2c_acpi_get_irq()
220 if (irq_ctx.irq == -ENOENT) in i2c_acpi_get_irq()
221 irq_ctx.irq = acpi_dev_gpio_irq_wake_get(adev, 0, &irq_ctx.wake_capable); in i2c_acpi_get_irq()
223 if (irq_ctx.irq < 0) in i2c_acpi_get_irq()
224 return irq_ctx.irq; in i2c_acpi_get_irq()
[all …]
/linux-6.6.21/drivers/fpga/
Ddfl.c420 ddev->irqs[i] = feature->irq_ctx[i].irq; in dfl_dev_add()
859 feature->irq_ctx = ctx; in build_info_commit_dev()
1886 irq = feature->irq_ctx[idx].irq; in do_set_irq_trigger()
1888 if (feature->irq_ctx[idx].trigger) { in do_set_irq_trigger()
1889 free_irq(irq, feature->irq_ctx[idx].trigger); in do_set_irq_trigger()
1890 kfree(feature->irq_ctx[idx].name); in do_set_irq_trigger()
1891 eventfd_ctx_put(feature->irq_ctx[idx].trigger); in do_set_irq_trigger()
1892 feature->irq_ctx[idx].trigger = NULL; in do_set_irq_trigger()
1898 feature->irq_ctx[idx].name = in do_set_irq_trigger()
1901 if (!feature->irq_ctx[idx].name) in do_set_irq_trigger()
[all …]
Ddfl.h290 struct dfl_feature_irq_ctx *irq_ctx; member
/linux-6.6.21/drivers/scsi/megaraid/
Dmegaraid_sas_fusion.c3754 struct megasas_irq_context *irq_ctx; in megasas_enable_irq_poll() local
3759 irq_ctx = &instance->irq_context[i]; in megasas_enable_irq_poll()
3760 irq_poll_enable(&irq_ctx->irqpoll); in megasas_enable_irq_poll()
3773 struct megasas_irq_context *irq_ctx; in megasas_sync_irqs() local
3779 irq_ctx = &instance->irq_context[i]; in megasas_sync_irqs()
3780 irq_poll_disable(&irq_ctx->irqpoll); in megasas_sync_irqs()
3781 if (irq_ctx->irq_poll_scheduled) { in megasas_sync_irqs()
3782 irq_ctx->irq_poll_scheduled = false; in megasas_sync_irqs()
3783 enable_irq(irq_ctx->os_irq); in megasas_sync_irqs()
3784 complete_cmd_fusion(instance, irq_ctx->MSIxIndex, irq_ctx); in megasas_sync_irqs()
[all …]
Dmegaraid_sas_base.c5646 struct megasas_irq_context *irq_ctx; in megasas_setup_irq_poll() local
5653 irq_ctx = &instance->irq_context[i]; in megasas_setup_irq_poll()
5654 irq_ctx->os_irq = pci_irq_vector(instance->pdev, i); in megasas_setup_irq_poll()
5655 irq_ctx->irq_poll_scheduled = false; in megasas_setup_irq_poll()
5656 irq_poll_init(&irq_ctx->irqpoll, in megasas_setup_irq_poll()
5753 struct megasas_irq_context *irq_ctx; in megasas_destroy_irqs() local
5758 irq_ctx = &instance->irq_context[i]; in megasas_destroy_irqs()
5759 irq_poll_disable(&irq_ctx->irqpoll); in megasas_destroy_irqs()
/linux-6.6.21/drivers/mailbox/
Domap-mailbox.c80 u32 *irq_ctx; member
605 mdev->irq_ctx[usr] = mbox_read_reg(mdev, reg); in omap_mbox_suspend()
621 mbox_write_reg(mdev, mdev->irq_ctx[usr], reg); in omap_mbox_resume()
767 mdev->irq_ctx = devm_kcalloc(&pdev->dev, num_users, sizeof(u32), in omap_mbox_probe()
769 if (!mdev->irq_ctx) in omap_mbox_probe()