Lines Matching +full:flip +full:- +full:chip

38 	for (n = 0; n < d->revmap_size; n += 32) {  in dw_apb_ictl_handle_irq()
40 u32 stat = readl_relaxed(gc->reg_base + APB_INT_FINALSTATUS_L); in dw_apb_ictl_handle_irq()
43 u32 hwirq = ffs(stat) - 1; in dw_apb_ictl_handle_irq()
54 struct irq_chip *chip = irq_desc_get_chip(desc); in dw_apb_ictl_handle_irq_cascaded() local
57 chained_irq_enter(chip, desc); in dw_apb_ictl_handle_irq_cascaded()
59 for (n = 0; n < d->revmap_size; n += 32) { in dw_apb_ictl_handle_irq_cascaded()
61 u32 stat = readl_relaxed(gc->reg_base + APB_INT_FINALSTATUS_L); in dw_apb_ictl_handle_irq_cascaded()
64 u32 hwirq = ffs(stat) - 1; in dw_apb_ictl_handle_irq_cascaded()
65 generic_handle_domain_irq(d, gc->irq_base + hwirq); in dw_apb_ictl_handle_irq_cascaded()
71 chained_irq_exit(chip, desc); in dw_apb_ictl_handle_irq_cascaded()
105 writel_relaxed(~0, gc->reg_base + ct->regs.enable); in dw_apb_ictl_resume()
106 writel_relaxed(*ct->mask_cache, gc->reg_base + ct->regs.mask); in dw_apb_ictl_resume()
134 return -EINVAL; in dw_apb_ictl_init()
145 if (!request_mem_region(r.start, resource_size(&r), np->full_name)) { in dw_apb_ictl_init()
147 return -ENOMEM; in dw_apb_ictl_init()
153 ret = -ENOMEM; in dw_apb_ictl_init()
158 * DW IP can be configured to allow 2-64 irqs. We can determine in dw_apb_ictl_init()
160 * and look for bits not set, as corresponding flip-flops will in dw_apb_ictl_init()
179 ret = -ENOMEM; in dw_apb_ictl_init()
183 ret = irq_alloc_domain_generic_chips(domain, 32, 1, np->name, in dw_apb_ictl_init()
193 gc->reg_base = iobase + i * APB_INT_BASE_OFFSET; in dw_apb_ictl_init()
194 gc->chip_types[0].regs.mask = APB_INT_MASK_L; in dw_apb_ictl_init()
195 gc->chip_types[0].regs.enable = APB_INT_ENABLE_L; in dw_apb_ictl_init()
196 gc->chip_types[0].chip.irq_mask = irq_gc_mask_set_bit; in dw_apb_ictl_init()
197 gc->chip_types[0].chip.irq_unmask = irq_gc_mask_clr_bit; in dw_apb_ictl_init()
198 gc->chip_types[0].chip.irq_resume = dw_apb_ictl_resume; in dw_apb_ictl_init()
218 "snps,dw-apb-ictl", dw_apb_ictl_init);