Lines Matching full:intc
36 struct ingenic_intc_data *intc = irq_get_handler_data(irq); in intc_cascade() local
37 struct irq_domain *domain = intc->domain; in intc_cascade()
42 for (i = 0; i < intc->num_chips; i++) { in intc_cascade()
64 struct ingenic_intc_data *intc; in ingenic_intc_of_init() local
71 intc = kzalloc(sizeof(*intc), GFP_KERNEL); in ingenic_intc_of_init()
72 if (!intc) { in ingenic_intc_of_init()
83 err = irq_set_handler_data(parent_irq, intc); in ingenic_intc_of_init()
87 intc->num_chips = num_chips; in ingenic_intc_of_init()
88 intc->base = of_iomap(node, 0); in ingenic_intc_of_init()
89 if (!intc->base) { in ingenic_intc_of_init()
101 intc->domain = domain; in ingenic_intc_of_init()
103 err = irq_alloc_domain_generic_chips(domain, 32, 1, "INTC", in ingenic_intc_of_init()
113 gc->reg_base = intc->base + (i * CHIP_SIZE); in ingenic_intc_of_init()
129 "SoC intc cascade interrupt", NULL)) in ingenic_intc_of_init()
130 pr_err("Failed to register SoC intc cascade interrupt\n"); in ingenic_intc_of_init()
136 iounmap(intc->base); in ingenic_intc_of_init()
140 kfree(intc); in ingenic_intc_of_init()
150 IRQCHIP_DECLARE(jz4740_intc, "ingenic,jz4740-intc", intc_1chip_of_init);
151 IRQCHIP_DECLARE(jz4725b_intc, "ingenic,jz4725b-intc", intc_1chip_of_init);
158 IRQCHIP_DECLARE(jz4770_intc, "ingenic,jz4770-intc", intc_2chip_of_init);
159 IRQCHIP_DECLARE(jz4775_intc, "ingenic,jz4775-intc", intc_2chip_of_init);
160 IRQCHIP_DECLARE(jz4780_intc, "ingenic,jz4780-intc", intc_2chip_of_init);