Lines Matching defs:htpic
27 static struct loongson_htpic *htpic;
63 writel(0x0, htpic->base + HTINT_EN_OFF + i * 0x4);
65 (void) readl(htpic->base + i * 0x4);
67 writel(GENMASK(31, 0), htpic->base + i * 0x4);
71 writel(0xffff, htpic->base + HTINT_EN_OFF);
89 if (htpic) {
90 pr_err("loongson-htpic: Only one HTPIC is allowed in the system\n");
94 htpic = kzalloc(sizeof(*htpic), GFP_KERNEL);
95 if (!htpic)
98 htpic->base = of_iomap(node, 0);
99 if (!htpic->base) {
104 htpic->domain = __init_i8259_irqs(node);
105 if (!htpic->domain) {
106 pr_err("loongson-htpic: Failed to initialize i8259 IRQs\n");
121 pr_err("loongson-htpic: Failed to get parent irqs\n");
130 htpic_irq_dispatch, htpic);
138 irq_domain_remove(htpic->domain);
140 iounmap(htpic->base);
142 kfree(htpic);
146 IRQCHIP_DECLARE(loongson_htpic, "loongson,htpic-1.0", htpic_of_init);