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()
77 struct irq_chip_generic *gc = in orion_irq_init() local
86 gc->reg_base = ioremap(r.start, resource_size(&r)); in orion_irq_init()
87 if (!gc->reg_base) in orion_irq_init()
90 gc->chip_types[0].regs.mask = ORION_IRQ_MASK; in orion_irq_init()
91 gc->chip_types[0].chip.irq_mask = irq_gc_mask_clr_bit; in orion_irq_init()
92 gc->chip_types[0].chip.irq_unmask = irq_gc_mask_set_bit; in orion_irq_init()
95 writel(0, gc->reg_base + ORION_IRQ_MASK); in orion_irq_init()
113 struct irq_chip_generic *gc = irq_get_domain_generic_chip(d, 0); in orion_bridge_irq_handler() local
114 u32 stat = readl_relaxed(gc->reg_base + ORION_BRIDGE_IRQ_CAUSE) & in orion_bridge_irq_handler()
115 gc->mask_cache; in orion_bridge_irq_handler()
120 generic_handle_domain_irq(d, gc->irq_base + hwirq); in orion_bridge_irq_handler()
144 struct irq_chip_generic *gc; in orion_bridge_irq_init() local
182 gc = irq_get_domain_generic_chip(domain, 0); in orion_bridge_irq_init()
183 gc->reg_base = ioremap(r.start, resource_size(&r)); in orion_bridge_irq_init()
184 if (!gc->reg_base) { in orion_bridge_irq_init()
189 gc->chip_types[0].regs.ack = ORION_BRIDGE_IRQ_CAUSE; in orion_bridge_irq_init()
190 gc->chip_types[0].regs.mask = ORION_BRIDGE_IRQ_MASK; in orion_bridge_irq_init()
191 gc->chip_types[0].chip.irq_startup = orion_bridge_irq_startup; in orion_bridge_irq_init()
192 gc->chip_types[0].chip.irq_ack = irq_gc_ack_clr_bit; in orion_bridge_irq_init()
193 gc->chip_types[0].chip.irq_mask = irq_gc_mask_clr_bit; in orion_bridge_irq_init()
194 gc->chip_types[0].chip.irq_unmask = irq_gc_mask_set_bit; in orion_bridge_irq_init()
197 writel(0, gc->reg_base + ORION_BRIDGE_IRQ_MASK); in orion_bridge_irq_init()
198 writel(0, gc->reg_base + ORION_BRIDGE_IRQ_CAUSE); in orion_bridge_irq_init()