Lines Matching refs:irqc
196 struct lpc32xx_irq_chip *irqc; in lpc32xx_of_ic_init() local
201 irqc = kzalloc(sizeof(*irqc), GFP_KERNEL); in lpc32xx_of_ic_init()
202 if (!irqc) in lpc32xx_of_ic_init()
205 irqc->addr = addr; in lpc32xx_of_ic_init()
206 irqc->base = of_iomap(node, 0); in lpc32xx_of_ic_init()
207 if (!irqc->base) { in lpc32xx_of_ic_init()
209 kfree(irqc); in lpc32xx_of_ic_init()
213 irqc->domain = irq_domain_add_linear(node, NR_LPC32XX_IC_IRQS, in lpc32xx_of_ic_init()
214 &lpc32xx_irq_domain_ops, irqc); in lpc32xx_of_ic_init()
215 if (!irqc->domain) { in lpc32xx_of_ic_init()
217 iounmap(irqc->base); in lpc32xx_of_ic_init()
218 kfree(irqc); in lpc32xx_of_ic_init()
223 lpc32xx_mic_irqc = irqc; in lpc32xx_of_ic_init()
230 lpc32xx_sic_handler, irqc); in lpc32xx_of_ic_init()
234 lpc32xx_ic_write(irqc, LPC32XX_INTC_MASK, 0x00); in lpc32xx_of_ic_init()
235 lpc32xx_ic_write(irqc, LPC32XX_INTC_POL, 0x00); in lpc32xx_of_ic_init()
236 lpc32xx_ic_write(irqc, LPC32XX_INTC_TYPE, 0x00); in lpc32xx_of_ic_init()