Lines Matching refs:idtpic
29 struct idt_pic_data *idtpic = irq_desc_get_handler_data(desc); in idt_irq_dispatch() local
35 pending = irq_reg_readl(idtpic->gc, IDT_PIC_IRQ_PEND); in idt_irq_dispatch()
36 pending &= ~idtpic->gc->mask_cache; in idt_irq_dispatch()
39 generic_handle_domain_irq(idtpic->irq_domain, hwirq); in idt_irq_dispatch()
49 struct idt_pic_data *idtpic; in idt_pic_init() local
55 idtpic = kzalloc(sizeof(*idtpic), GFP_KERNEL); in idt_pic_init()
56 if (!idtpic) { in idt_pic_init()
68 idtpic->base = of_iomap(of_node, 0); in idt_pic_init()
69 if (!idtpic->base) { in idt_pic_init()
82 idtpic->irq_domain = domain; in idt_pic_init()
91 gc->reg_base = idtpic->base; in idt_pic_init()
92 gc->private = idtpic; in idt_pic_init()
98 idtpic->gc = gc; in idt_pic_init()
101 writel(0xffffffff, idtpic->base + IDT_PIC_IRQ_MASK); in idt_pic_init()
105 idt_irq_dispatch, idtpic); in idt_pic_init()
112 iounmap(idtpic->base); in idt_pic_init()
116 kfree(idtpic); in idt_pic_init()