Lines Matching full:irqc
177 struct lpc32xx_irq_chip *irqc; in lpc32xx_of_ic_init() local
182 irqc = kzalloc(sizeof(*irqc), GFP_KERNEL); in lpc32xx_of_ic_init()
183 if (!irqc) in lpc32xx_of_ic_init()
186 irqc->base = of_iomap(node, 0); in lpc32xx_of_ic_init()
187 if (!irqc->base) { in lpc32xx_of_ic_init()
189 kfree(irqc); in lpc32xx_of_ic_init()
193 irqc->chip.irq_ack = lpc32xx_irq_ack; in lpc32xx_of_ic_init()
194 irqc->chip.irq_mask = lpc32xx_irq_mask; in lpc32xx_of_ic_init()
195 irqc->chip.irq_unmask = lpc32xx_irq_unmask; in lpc32xx_of_ic_init()
196 irqc->chip.irq_set_type = lpc32xx_irq_set_type; in lpc32xx_of_ic_init()
198 irqc->chip.name = kasprintf(GFP_KERNEL, "%08x.mic", addr); in lpc32xx_of_ic_init()
200 irqc->chip.name = kasprintf(GFP_KERNEL, "%08x.sic", addr); in lpc32xx_of_ic_init()
202 irqc->domain = irq_domain_add_linear(node, NR_LPC32XX_IC_IRQS, in lpc32xx_of_ic_init()
203 &lpc32xx_irq_domain_ops, irqc); in lpc32xx_of_ic_init()
204 if (!irqc->domain) { in lpc32xx_of_ic_init()
206 iounmap(irqc->base); in lpc32xx_of_ic_init()
207 kfree(irqc->chip.name); in lpc32xx_of_ic_init()
208 kfree(irqc); in lpc32xx_of_ic_init()
213 lpc32xx_mic_irqc = irqc; in lpc32xx_of_ic_init()
220 lpc32xx_sic_handler, irqc); in lpc32xx_of_ic_init()
224 lpc32xx_ic_write(irqc, LPC32XX_INTC_MASK, 0x00); in lpc32xx_of_ic_init()
225 lpc32xx_ic_write(irqc, LPC32XX_INTC_POL, 0x00); in lpc32xx_of_ic_init()
226 lpc32xx_ic_write(irqc, LPC32XX_INTC_TYPE, 0x00); in lpc32xx_of_ic_init()