Lines Matching defs:htpic
27 static struct loongson_htpic *htpic;
65 writel(0x0, htpic->base + HTINT_EN_OFF + i * 0x4);
66 val = readl(htpic->base + i * 0x4);
68 writel(GENMASK(31, 0), htpic->base + i * 0x4);
72 writel(0xffff, htpic->base + HTINT_EN_OFF);
90 if (htpic) {
91 pr_err("loongson-htpic: Only one HTPIC is allowed in the system\n");
95 htpic = kzalloc(sizeof(*htpic), GFP_KERNEL);
96 if (!htpic)
99 htpic->base = of_iomap(node, 0);
100 if (!htpic->base) {
105 htpic->domain = __init_i8259_irqs(node);
106 if (!htpic->domain) {
107 pr_err("loongson-htpic: Failed to initialize i8259 IRQs\n");
122 pr_err("loongson-htpic: Failed to get parent irqs\n");
131 htpic_irq_dispatch, htpic);
139 irq_domain_remove(htpic->domain);
141 iounmap(htpic->base);
143 kfree(htpic);
147 IRQCHIP_DECLARE(loongson_htpic, "loongson,htpic-1.0", htpic_of_init);