Lines Matching refs:ct

81 	struct irq_chip_type *ct = irq_data_get_chip_type(d);  in brcmstb_l2_mask_and_ack()  local
85 irq_reg_writel(gc, mask, ct->regs.disable); in brcmstb_l2_mask_and_ack()
86 *ct->mask_cache &= ~mask; in brcmstb_l2_mask_and_ack()
87 irq_reg_writel(gc, mask, ct->regs.ack); in brcmstb_l2_mask_and_ack()
122 struct irq_chip_type *ct = irq_data_get_chip_type(d); in brcmstb_l2_intc_suspend() local
128 b->saved_mask = irq_reg_readl(gc, ct->regs.mask); in brcmstb_l2_intc_suspend()
132 irq_reg_writel(gc, ~gc->wake_active, ct->regs.disable); in brcmstb_l2_intc_suspend()
133 irq_reg_writel(gc, gc->wake_active, ct->regs.enable); in brcmstb_l2_intc_suspend()
141 struct irq_chip_type *ct = irq_data_get_chip_type(d); in brcmstb_l2_intc_resume() local
146 if (ct->chip.irq_ack) { in brcmstb_l2_intc_resume()
149 ct->regs.ack); in brcmstb_l2_intc_resume()
153 irq_reg_writel(gc, b->saved_mask, ct->regs.disable); in brcmstb_l2_intc_resume()
154 irq_reg_writel(gc, ~b->saved_mask, ct->regs.enable); in brcmstb_l2_intc_resume()
165 struct irq_chip_type *ct; in brcmstb_l2_intc_of_init() local
229 ct = data->gc->chip_types; in brcmstb_l2_intc_of_init()
232 ct->regs.ack = init_params->cpu_clear; in brcmstb_l2_intc_of_init()
233 ct->chip.irq_ack = irq_gc_ack_set_bit; in brcmstb_l2_intc_of_init()
234 ct->chip.irq_mask_ack = brcmstb_l2_mask_and_ack; in brcmstb_l2_intc_of_init()
237 ct->chip.irq_mask_ack = irq_gc_mask_disable_reg; in brcmstb_l2_intc_of_init()
240 ct->chip.irq_mask = irq_gc_mask_disable_reg; in brcmstb_l2_intc_of_init()
241 ct->regs.disable = init_params->cpu_mask_set; in brcmstb_l2_intc_of_init()
242 ct->regs.mask = init_params->cpu_mask_status; in brcmstb_l2_intc_of_init()
244 ct->chip.irq_unmask = irq_gc_unmask_enable_reg; in brcmstb_l2_intc_of_init()
245 ct->regs.enable = init_params->cpu_mask_clear; in brcmstb_l2_intc_of_init()
247 ct->chip.irq_suspend = brcmstb_l2_intc_suspend; in brcmstb_l2_intc_of_init()
248 ct->chip.irq_resume = brcmstb_l2_intc_resume; in brcmstb_l2_intc_of_init()
249 ct->chip.irq_pm_shutdown = brcmstb_l2_intc_suspend; in brcmstb_l2_intc_of_init()
256 ct->chip.irq_set_wake = irq_gc_set_wake; in brcmstb_l2_intc_of_init()