Lines Matching refs:gfpic
35 struct goldfish_pic_data *gfpic = irq_desc_get_handler_data(desc); in goldfish_pic_cascade() local
41 pending = readl(gfpic->base + GFPIC_REG_IRQ_PENDING); in goldfish_pic_cascade()
44 virq = irq_linear_revmap(gfpic->irq_domain, hwirq); in goldfish_pic_cascade()
59 struct goldfish_pic_data *gfpic; in goldfish_pic_of_init() local
65 gfpic = kzalloc(sizeof(*gfpic), GFP_KERNEL); in goldfish_pic_of_init()
66 if (!gfpic) { in goldfish_pic_of_init()
78 gfpic->base = of_iomap(of_node, 0); in goldfish_pic_of_init()
79 if (!gfpic->base) { in goldfish_pic_of_init()
86 writel(1, gfpic->base + GFPIC_REG_IRQ_DISABLE_ALL); in goldfish_pic_of_init()
88 gc = irq_alloc_generic_chip("GFPIC", 1, GFPIC_IRQ_BASE, gfpic->base, in goldfish_pic_of_init()
105 gfpic->irq_domain = irq_domain_add_legacy(of_node, GFPIC_NR_IRQS, in goldfish_pic_of_init()
109 if (!gfpic->irq_domain) { in goldfish_pic_of_init()
116 goldfish_pic_cascade, gfpic); in goldfish_pic_of_init()
125 iounmap(gfpic->base); in goldfish_pic_of_init()
129 kfree(gfpic); in goldfish_pic_of_init()