Home
last modified time | relevance | path

Searched refs:irq_base (Results 1 – 25 of 173) sorted by relevance

1234567

/linux/drivers/irqchip/
A Dirq-sun4i.c39 void __iomem *irq_base; member
56 writel(BIT(0), irq_ic_data->irq_base + SUN4I_IRQ_PENDING_REG(0)); in sun4i_irq_ack()
66 val = readl(irq_ic_data->irq_base + in sun4i_irq_mask()
79 val = readl(irq_ic_data->irq_base + in sun4i_irq_unmask()
110 irq_ic_data->irq_base = of_iomap(node, 0); in sun4i_of_init()
111 if (!irq_ic_data->irq_base) in sun4i_of_init()
131 writel(0x01, irq_ic_data->irq_base + SUN4I_IRQ_PROTECTION_REG); in sun4i_of_init()
134 writel(0x00, irq_ic_data->irq_base + SUN4I_IRQ_NMI_CTRL_REG); in sun4i_of_init()
191 hwirq = readl(irq_ic_data->irq_base + SUN4I_IRQ_VECTOR_REG) >> 2; in sun4i_handle_irq()
193 !(readl(irq_ic_data->irq_base + SUN4I_IRQ_PENDING_REG(0)) & in sun4i_handle_irq()
[all …]
A Dirq-davinci-aintc.c51 gc->irq_base = irq_start; in davinci_aintc_setup_gc()
84 int ret, irq_base; in davinci_aintc_init() local
132 irq_base = irq_alloc_descs(-1, 0, config->num_irqs, 0); in davinci_aintc_init()
133 if (irq_base < 0) { in davinci_aintc_init()
135 __func__, irq_base); in davinci_aintc_init()
140 config->num_irqs, irq_base, 0, in davinci_aintc_init()
160 irq_base + irq_off, 32); in davinci_aintc_init()
A Dirq-davinci-cp-intc.c163 int offset, irq_base; in davinci_cp_intc_do_init() local
209 irq_base = irq_alloc_descs(-1, 0, config->num_irqs, 0); in davinci_cp_intc_do_init()
210 if (irq_base < 0) { in davinci_cp_intc_do_init()
212 __func__, irq_base); in davinci_cp_intc_do_init()
213 return irq_base; in davinci_cp_intc_do_init()
217 node, config->num_irqs, irq_base, 0, in davinci_cp_intc_do_init()
/linux/drivers/mfd/
A Dt7l66xb.c67 int irq_base; member
180 unsigned int i, irq_base; in t7l66xb_irq() local
182 irq_base = t7l66xb->irq_base; in t7l66xb_irq()
188 generic_handle_irq(irq_base + i); in t7l66xb_irq()
230 unsigned int irq, irq_base; in t7l66xb_attach_irq() local
232 irq_base = t7l66xb->irq_base; in t7l66xb_attach_irq()
234 for (irq = irq_base; irq < irq_base + T7L66XB_NR_IRQS; irq++) { in t7l66xb_attach_irq()
246 unsigned int irq, irq_base; in t7l66xb_detach_irq() local
248 irq_base = t7l66xb->irq_base; in t7l66xb_detach_irq()
252 for (irq = irq_base; irq < irq_base + T7L66XB_NR_IRQS; irq++) { in t7l66xb_detach_irq()
[all …]
A Dtwl4030-irq.c415 int irq_base; member
637 agent->irq_base = irq_base; in twl4030_sih_setup()
643 irq = irq_base + i; in twl4030_sih_setup()
661 irq, irq_base, irq_base + i - 1); in twl4030_sih_setup()
663 return status < 0 ? status : irq_base; in twl4030_sih_setup()
677 int irq_base, irq_end, nr_irqs; in twl4030_init_irq() local
688 if (irq_base < 0) { in twl4030_init_irq()
690 return irq_base; in twl4030_init_irq()
706 twl4030_irq_base = irq_base; in twl4030_init_irq()
725 irq_num, irq_base, irq_end); in twl4030_init_irq()
[all …]
A Ducb1x00-core.c183 return ucb->irq_base > 0 ? ucb->irq_base + offset : -ENXIO; in ucb1x00_to_irq()
497 unsigned id, i, irq_base; in ucb1x00_probe() local
544 irq_base = pdata ? pdata->irq_base : 0; in ucb1x00_probe()
545 ucb->irq_base = irq_alloc_descs(-1, irq_base, 16, -1); in ucb1x00_probe()
546 if (ucb->irq_base < 0) { in ucb1x00_probe()
548 ucb->irq_base); in ucb1x00_probe()
549 ret = ucb->irq_base; in ucb1x00_probe()
554 unsigned irq = ucb->irq_base + i; in ucb1x00_probe()
599 if (ucb->irq_base > 0) in ucb1x00_probe()
600 irq_free_descs(ucb->irq_base, 16); in ucb1x00_probe()
[all …]
A Dasic3.c78 unsigned int irq_base; member
185 irqnr = asic->irq_base + in asic3_irq_demux()
212 n = (irq - asic->irq_base) >> 4; in asic3_irq_to_bank()
388 unsigned int irq, irq_base; in asic3_irq_probe() local
401 irq_base = asic->irq_base; in asic3_irq_probe()
403 for (irq = irq_base; irq < irq_base + ASIC3_NR_IRQS; irq++) { in asic3_irq_probe()
426 unsigned int irq, irq_base; in asic3_irq_remove() local
428 irq_base = asic->irq_base; in asic3_irq_remove()
430 for (irq = irq_base; irq < irq_base + ASIC3_NR_IRQS; irq++) { in asic3_irq_remove()
543 return asic->irq_base + offset; in asic3_gpio_to_irq()
[all …]
A Dwm8350-irq.c364 return &wm8350_irqs[irq - wm8350->irq_base]; in irq_to_wm8350_irq()
408 handle_nested_irq(wm8350->irq_base + i); in wm8350_irq()
468 int irq_base = -1; in wm8350_irq_init() local
492 if (pdata && pdata->irq_base > 0) in wm8350_irq_init()
493 irq_base = pdata->irq_base; in wm8350_irq_init()
495 wm8350->irq_base = in wm8350_irq_init()
496 irq_alloc_descs(irq_base, 0, ARRAY_SIZE(wm8350_irqs), 0); in wm8350_irq_init()
497 if (wm8350->irq_base < 0) { in wm8350_irq_init()
499 wm8350->irq_base); in wm8350_irq_init()
516 for (cur_irq = wm8350->irq_base; in wm8350_irq_init()
[all …]
A Dtc6393xb.c108 int irq_base; member
519 unsigned int i, irq_base; in tc6393xb_irq() local
521 irq_base = tc6393xb->irq_base; in tc6393xb_irq()
527 generic_handle_irq(irq_base + i); in tc6393xb_irq()
571 unsigned int irq, irq_base; in tc6393xb_attach_irq() local
573 irq_base = tc6393xb->irq_base; in tc6393xb_attach_irq()
575 for (irq = irq_base; irq < irq_base + TC6393XB_NR_IRQS; irq++) { in tc6393xb_attach_irq()
589 unsigned int irq, irq_base; in tc6393xb_detach_irq() local
593 irq_base = tc6393xb->irq_base; in tc6393xb_detach_irq()
595 for (irq = irq_base; irq < irq_base + TC6393XB_NR_IRQS; irq++) { in tc6393xb_detach_irq()
[all …]
A Dda9055-core.c363 if (!pdata || !pdata->irq_base) in da9055_device_init()
364 da9055->irq_base = -1; in da9055_device_init()
366 da9055->irq_base = pdata->irq_base; in da9055_device_init()
374 da9055->irq_base, &da9055_regmap_irq_chip, in da9055_device_init()
379 da9055->irq_base = regmap_irq_chip_get_base(da9055->irq_data); in da9055_device_init()
383 NULL, da9055->irq_base, NULL); in da9055_device_init()
A Dtwl-core.c716 false, irq_base + GPIO_INTR_OFFSET, 0); in add_children()
733 true, irq_base + MADC_INTR_OFFSET, 0); in add_children()
747 true, irq_base + RTC_INTR_OFFSET, 0); in add_children()
814 irq_base + USB_PRES_INTR_OFFSET, in add_children()
815 irq_base + USB_INTR_OFFSET); in add_children()
837 NULL, 0, true, irq_base + 8 + 0, 0); in add_children()
945 irq_base + BCI_PRES_INTR_OFFSET, in add_children()
946 irq_base + BCI_INTR_OFFSET); in add_children()
1074 int irq_base = 0; in twl_probe() local
1185 if (irq_base < 0) { in twl_probe()
[all …]
A Dezx-pcap.c41 unsigned int irq_base; member
136 return irq - pcap->irq_base; in irq_to_pcap()
142 return pcap->irq_base + irq; in pcap_to_irq()
198 for (irq = pcap->irq_base; service; service >>= 1, irq++) { in pcap_isr_work()
411 for (i = pcap->irq_base; i < (pcap->irq_base + PCAP_NIRQS); i++) in ezx_pcap_remove()
452 pcap->irq_base = pdata->irq_base; in ezx_pcap_probe()
466 for (i = pcap->irq_base; i < (pcap->irq_base + PCAP_NIRQS); i++) { in ezx_pcap_probe()
506 for (i = pcap->irq_base; i < (pcap->irq_base + PCAP_NIRQS); i++) in ezx_pcap_probe()
/linux/arch/arm/mach-sa1100/
A Dneponset.c80 unsigned irq_base; member
180 generic_handle_irq(d->irq_base + NEP_IRQ_SMC91X); in neponset_irq_handler()
183 generic_handle_irq(d->irq_base + NEP_IRQ_USAR); in neponset_irq_handler()
189 generic_handle_irq(d->irq_base + NEP_IRQ_SA1111); in neponset_irq_handler()
307 d->irq_base = ret; in neponset_probe()
315 irq_set_chip(d->irq_base + NEP_IRQ_SA1111, &nochip); in neponset_probe()
349 d->irq_base, d->irq_base + NEP_IRQ_NR - 1); in neponset_probe()
356 sa1111_resources[1].start = d->irq_base + NEP_IRQ_SA1111; in neponset_probe()
357 sa1111_resources[1].end = d->irq_base + NEP_IRQ_SA1111; in neponset_probe()
363 smc91x_resources[2].end = d->irq_base + NEP_IRQ_SMC91X; in neponset_probe()
[all …]
/linux/arch/mips/kernel/
A Dirq-msc01.c24 static unsigned int irq_base; variable
31 if (irq < (irq_base + 32)) in mask_msc_irq()
32 MSCIC_WRITE(MSC01_IC_DISL, 1<<(irq - irq_base)); in mask_msc_irq()
34 MSCIC_WRITE(MSC01_IC_DISH, 1<<(irq - irq_base - 32)); in mask_msc_irq()
42 if (irq < (irq_base + 32)) in unmask_msc_irq()
43 MSCIC_WRITE(MSC01_IC_ENAL, 1<<(irq - irq_base)); in unmask_msc_irq()
45 MSCIC_WRITE(MSC01_IC_ENAH, 1<<(irq - irq_base - 32)); in unmask_msc_irq()
86 do_IRQ(irq + irq_base); in ll_msc_irq()
152 irq_base = irqbase; in init_msc_irqs()
/linux/drivers/gpio/
A Dgpio-timberdale.c38 int irq_base; member
92 if (tgpio->irq_base <= 0) in timbgpio_to_irq()
95 return tgpio->irq_base + offset; in timbgpio_to_irq()
104 int offset = d->irq - tgpio->irq_base; in timbgpio_irq_disable()
116 int offset = d->irq - tgpio->irq_base; in timbgpio_irq_enable()
128 int offset = d->irq - tgpio->irq_base; in timbgpio_irq_type()
232 tgpio->irq_base = pdata->irq_base; in timbgpio_probe()
249 gc->to_irq = (irq >= 0 && tgpio->irq_base > 0) ? timbgpio_to_irq : NULL; in timbgpio_probe()
264 if (irq < 0 || tgpio->irq_base <= 0) in timbgpio_probe()
268 irq_set_chip_and_handler(tgpio->irq_base + i, in timbgpio_probe()
[all …]
A Dgpio-pch.c93 int irq_base; member
203 return chip->irq_base + offset; in pch_gpio_to_irq()
232 ch = irq - chip->irq_base; in pch_irq_type()
233 if (irq < chip->irq_base + 8) { in pch_irq_type()
299 iowrite32(BIT(d->irq - chip->irq_base), &chip->reg->iclr); in pch_irq_ack()
313 generic_handle_irq(chip->irq_base + i); in pch_gpio_handler()
351 int irq_base; in pch_gpio_probe() local
390 irq_base = devm_irq_alloc_descs(&pdev->dev, -1, 0, in pch_gpio_probe()
392 if (irq_base < 0) { in pch_gpio_probe()
394 chip->irq_base = -1; in pch_gpio_probe()
[all …]
A Dgpio-ml-ioh.c86 int irq_base; member
213 return chip->irq_base + offset; in ioh_gpio_to_irq()
246 ch = irq - chip->irq_base; in ioh_irq_type()
247 if (irq <= chip->irq_base + 7) { in ioh_irq_type()
307 iowrite32(1 << (d->irq - chip->irq_base), in ioh_irq_unmask()
343 ien |= 1 << (d->irq - chip->irq_base); in ioh_irq_enable()
409 int irq_base; in ioh_gpio_probe() local
455 if (irq_base < 0) { in ioh_gpio_probe()
458 ret = irq_base; in ioh_gpio_probe()
461 chip->irq_base = irq_base; in ioh_gpio_probe()
[all …]
A Dgpio-twl4030.c56 int irq_base; member
405 return (priv->irq_base && (offset < TWL4030_GPIO_MAX)) in twl_to_irq()
406 ? (priv->irq_base + offset) in twl_to_irq()
502 int ret, irq_base; in gpio_twl4030_probe() local
515 irq_base = devm_irq_alloc_descs(&pdev->dev, -1, in gpio_twl4030_probe()
517 if (irq_base < 0) { in gpio_twl4030_probe()
519 return irq_base; in gpio_twl4030_probe()
522 irq_domain_add_legacy(node, TWL4030_GPIO_MAX, irq_base, 0, in gpio_twl4030_probe()
525 ret = twl4030_sih_setup(&pdev->dev, TWL4030_MODULE_GPIO, irq_base); in gpio_twl4030_probe()
529 priv->irq_base = irq_base; in gpio_twl4030_probe()
/linux/drivers/dma/ipu/
A Dipu_irq.c317 int irq_base = irq_alloc_descs(-1, 0, CONFIG_MX3_IPU_IRQS, in ipu_irq_attach_irq() local
320 if (irq_base < 0) in ipu_irq_attach_irq()
321 return irq_base; in ipu_irq_attach_irq()
329 irq = irq_base + i; in ipu_irq_attach_irq()
347 ipu->irq_base = irq_base; in ipu_irq_attach_irq()
354 unsigned int irq, irq_base; in ipu_irq_detach_irq() local
356 irq_base = ipu->irq_base; in ipu_irq_detach_irq()
362 for (irq = irq_base; irq < irq_base + CONFIG_MX3_IPU_IRQS; irq++) { in ipu_irq_detach_irq()
/linux/arch/arm/mach-omap1/
A Dirq.c196 int i, j, irq_base; in omap1_init_irq() local
230 irq_base = irq_alloc_descs(-1, 0, nr_irqs, 0); in omap1_init_irq()
231 if (irq_base < 0) { in omap1_init_irq()
233 irq_base = 0; in omap1_init_irq()
235 omap_l2_irq = cpu_is_omap7xx() ? irq_base + 1 : irq_base; in omap1_init_irq()
238 domain = irq_domain_add_legacy(NULL, nr_irqs, irq_base, 0, in omap1_init_irq()
267 omap_alloc_gc(irq_banks[i].va, irq_base + i * 32, 32); in omap1_init_irq()
/linux/arch/sh/cchips/hd6446x/
A Dhd64461.c77 int irq_base, i; in setup_hd64461() local
90 irq_base = irq_alloc_descs(HD64461_IRQBASE, HD64461_IRQBASE, 16, -1); in setup_hd64461()
91 if (IS_ERR_VALUE(irq_base)) { in setup_hd64461()
93 return irq_base; in setup_hd64461()
97 irq_set_chip_and_handler(irq_base + i, &hd64461_irq_chip, in setup_hd64461()
/linux/arch/mips/pci/
A Dpci-ar71xx.c51 int irq_base; member
238 generic_handle_irq(apc->irq_base + 0); in ar71xx_pci_irq_handler()
241 generic_handle_irq(apc->irq_base + 1); in ar71xx_pci_irq_handler()
244 generic_handle_irq(apc->irq_base + 2); in ar71xx_pci_irq_handler()
247 generic_handle_irq(apc->irq_base + 4); in ar71xx_pci_irq_handler()
261 irq = d->irq - apc->irq_base; in ar71xx_pci_irq_unmask()
278 irq = d->irq - apc->irq_base; in ar71xx_pci_irq_mask()
304 apc->irq_base = ATH79_PCI_IRQ_BASE; in ar71xx_pci_irq_init()
305 for (i = apc->irq_base; in ar71xx_pci_irq_init()
306 i < apc->irq_base + AR71XX_PCI_IRQ_COUNT; i++) { in ar71xx_pci_irq_init()
/linux/drivers/sh/intc/
A Dirqdomain.c47 unsigned int irq_base, irq_end; in intc_irq_domain_init() local
52 irq_base = evt2irq(hw->vectors[0].vect); in intc_irq_domain_init()
61 if (irq_base == 0 && irq_end == (irq_base + hw->nr_vectors - 1)) in intc_irq_domain_init()
/linux/arch/arm/mach-imx/
A Dtzic.c151 int irq_base; in tzic_init_dt() local
175 irq_base = irq_alloc_descs(-1, 0, TZIC_NUM_IRQS, numa_node_id()); in tzic_init_dt()
176 WARN_ON(irq_base < 0); in tzic_init_dt()
178 domain = irq_domain_add_legacy(np, TZIC_NUM_IRQS, irq_base, 0, in tzic_init_dt()
182 for (i = 0; i < 4; i++, irq_base += 32) in tzic_init_dt()
183 tzic_init_gc(i, irq_base); in tzic_init_dt()
A Davic.c169 int irq_base; in mxc_init_irq() local
200 irq_base = irq_alloc_descs(-1, 0, AVIC_NUM_IRQS, numa_node_id()); in mxc_init_irq()
201 WARN_ON(irq_base < 0); in mxc_init_irq()
204 domain = irq_domain_add_legacy(np, AVIC_NUM_IRQS, irq_base, 0, in mxc_init_irq()
208 for (i = 0; i < AVIC_NUM_IRQS / 32; i++, irq_base += 32) in mxc_init_irq()
209 avic_init_gc(i, irq_base); in mxc_init_irq()

Completed in 74 milliseconds

1234567