Lines Matching refs:ct
80 struct irq_chip_type *ct = irq_data_get_chip_type(d); in brcmstb_l2_mask_and_ack() local
84 irq_reg_writel(gc, mask, ct->regs.disable); in brcmstb_l2_mask_and_ack()
85 *ct->mask_cache &= ~mask; in brcmstb_l2_mask_and_ack()
86 irq_reg_writel(gc, mask, ct->regs.ack); in brcmstb_l2_mask_and_ack()
124 struct irq_chip_type *ct = irq_data_get_chip_type(d); in brcmstb_l2_intc_suspend() local
130 b->saved_mask = irq_reg_readl(gc, ct->regs.mask); in brcmstb_l2_intc_suspend()
134 irq_reg_writel(gc, ~gc->wake_active, ct->regs.disable); in brcmstb_l2_intc_suspend()
135 irq_reg_writel(gc, gc->wake_active, ct->regs.enable); in brcmstb_l2_intc_suspend()
143 struct irq_chip_type *ct = irq_data_get_chip_type(d); in brcmstb_l2_intc_resume() local
148 if (ct->chip.irq_ack) { in brcmstb_l2_intc_resume()
151 ct->regs.ack); in brcmstb_l2_intc_resume()
155 irq_reg_writel(gc, b->saved_mask, ct->regs.disable); in brcmstb_l2_intc_resume()
156 irq_reg_writel(gc, ~b->saved_mask, ct->regs.enable); in brcmstb_l2_intc_resume()
168 struct irq_chip_type *ct; in brcmstb_l2_intc_of_init() local
235 ct = data->gc->chip_types; in brcmstb_l2_intc_of_init()
238 ct->regs.ack = init_params->cpu_clear; in brcmstb_l2_intc_of_init()
239 ct->chip.irq_ack = irq_gc_ack_set_bit; in brcmstb_l2_intc_of_init()
240 ct->chip.irq_mask_ack = brcmstb_l2_mask_and_ack; in brcmstb_l2_intc_of_init()
243 ct->chip.irq_mask_ack = irq_gc_mask_disable_reg; in brcmstb_l2_intc_of_init()
246 ct->chip.irq_mask = irq_gc_mask_disable_reg; in brcmstb_l2_intc_of_init()
247 ct->regs.disable = init_params->cpu_mask_set; in brcmstb_l2_intc_of_init()
248 ct->regs.mask = init_params->cpu_mask_status; in brcmstb_l2_intc_of_init()
250 ct->chip.irq_unmask = irq_gc_unmask_enable_reg; in brcmstb_l2_intc_of_init()
251 ct->regs.enable = init_params->cpu_mask_clear; in brcmstb_l2_intc_of_init()
253 ct->chip.irq_suspend = brcmstb_l2_intc_suspend; in brcmstb_l2_intc_of_init()
254 ct->chip.irq_resume = brcmstb_l2_intc_resume; in brcmstb_l2_intc_of_init()
255 ct->chip.irq_pm_shutdown = brcmstb_l2_intc_suspend; in brcmstb_l2_intc_of_init()
262 ct->chip.irq_set_wake = irq_gc_set_wake; in brcmstb_l2_intc_of_init()