Lines Matching refs:work_ctx
48 struct irq_sim_work_ctx *work_ctx; in irq_sim_handle_irq() local
53 work_ctx = container_of(work, struct irq_sim_work_ctx, work); in irq_sim_handle_irq()
54 sim = container_of(work_ctx, struct irq_sim, work_ctx); in irq_sim_handle_irq()
56 while (!bitmap_empty(work_ctx->pending, sim->irq_count)) { in irq_sim_handle_irq()
57 offset = find_next_bit(work_ctx->pending, in irq_sim_handle_irq()
59 clear_bit(offset, work_ctx->pending); in irq_sim_handle_irq()
89 sim->work_ctx.pending = bitmap_zalloc(num_irqs, GFP_KERNEL); in irq_sim_init()
90 if (!sim->work_ctx.pending) { in irq_sim_init()
106 init_irq_work(&sim->work_ctx.work, irq_sim_handle_irq); in irq_sim_init()
121 irq_work_sync(&sim->work_ctx.work); in irq_sim_fini()
122 bitmap_free(sim->work_ctx.pending); in irq_sim_fini()
177 set_bit(offset, sim->work_ctx.pending); in irq_sim_fire()
178 irq_work_queue(&sim->work_ctx.work); in irq_sim_fire()