Lines Matching refs:gc

35 	struct irq_domain_chip_generic *dgc = orion_irq_domain->gc;  in orion_handle_irq()
39 struct irq_chip_generic *gc = in orion_handle_irq() local
41 u32 stat = readl_relaxed(gc->reg_base + ORION_IRQ_CAUSE) & in orion_handle_irq()
42 gc->mask_cache; in orion_handle_irq()
46 gc->irq_base + hwirq); in orion_handle_irq()
76 struct irq_chip_generic *gc = in orion_irq_init() local
85 gc->reg_base = ioremap(r.start, resource_size(&r)); in orion_irq_init()
86 if (!gc->reg_base) in orion_irq_init()
89 gc->chip_types[0].regs.mask = ORION_IRQ_MASK; in orion_irq_init()
90 gc->chip_types[0].chip.irq_mask = irq_gc_mask_clr_bit; in orion_irq_init()
91 gc->chip_types[0].chip.irq_unmask = irq_gc_mask_set_bit; in orion_irq_init()
94 writel(0, gc->reg_base + ORION_IRQ_MASK); in orion_irq_init()
112 struct irq_chip_generic *gc = irq_get_domain_generic_chip(d, 0); in orion_bridge_irq_handler() local
113 u32 stat = readl_relaxed(gc->reg_base + ORION_BRIDGE_IRQ_CAUSE) & in orion_bridge_irq_handler()
114 gc->mask_cache; in orion_bridge_irq_handler()
119 generic_handle_domain_irq(d, gc->irq_base + hwirq); in orion_bridge_irq_handler()
143 struct irq_chip_generic *gc; in orion_bridge_irq_init() local
181 gc = irq_get_domain_generic_chip(domain, 0); in orion_bridge_irq_init()
182 gc->reg_base = ioremap(r.start, resource_size(&r)); in orion_bridge_irq_init()
183 if (!gc->reg_base) { in orion_bridge_irq_init()
188 gc->chip_types[0].regs.ack = ORION_BRIDGE_IRQ_CAUSE; in orion_bridge_irq_init()
189 gc->chip_types[0].regs.mask = ORION_BRIDGE_IRQ_MASK; in orion_bridge_irq_init()
190 gc->chip_types[0].chip.irq_startup = orion_bridge_irq_startup; in orion_bridge_irq_init()
191 gc->chip_types[0].chip.irq_ack = irq_gc_ack_clr_bit; in orion_bridge_irq_init()
192 gc->chip_types[0].chip.irq_mask = irq_gc_mask_clr_bit; in orion_bridge_irq_init()
193 gc->chip_types[0].chip.irq_unmask = irq_gc_mask_set_bit; in orion_bridge_irq_init()
196 writel(0, gc->reg_base + ORION_BRIDGE_IRQ_MASK); in orion_bridge_irq_init()
197 writel(0, gc->reg_base + ORION_BRIDGE_IRQ_CAUSE); in orion_bridge_irq_init()