Lines Matching refs:irq_ctx
29 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()
81 irq_work_queue(&irq_ctx->work_ctx->work); in irq_sim_set_irqchip_state()
121 struct irq_sim_irq_ctx *irq_ctx; in irq_sim_domain_map() local
123 irq_ctx = kzalloc(sizeof(*irq_ctx), GFP_KERNEL); in irq_sim_domain_map()
124 if (!irq_ctx) in irq_sim_domain_map()
128 irq_set_chip_data(virq, irq_ctx); in irq_sim_domain_map()
131 irq_ctx->work_ctx = work_ctx; in irq_sim_domain_map()
138 struct irq_sim_irq_ctx *irq_ctx; in irq_sim_domain_unmap() local
142 irq_ctx = irq_data_get_irq_chip_data(irqd); in irq_sim_domain_unmap()
146 kfree(irq_ctx); in irq_sim_domain_unmap()