/linux-6.6.21/drivers/irqchip/ |
D | irq-sun4i.c | 39 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() 69 irq_ic_data->irq_base + SUN4I_IRQ_ENABLE_REG(irq_ic_data, reg)); in sun4i_irq_mask() 79 val = readl(irq_ic_data->irq_base + in sun4i_irq_unmask() 82 irq_ic_data->irq_base + SUN4I_IRQ_ENABLE_REG(irq_ic_data, reg)); 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() 116 writel(0, irq_ic_data->irq_base + SUN4I_IRQ_ENABLE_REG(irq_ic_data, 0)); in sun4i_of_init() 117 writel(0, irq_ic_data->irq_base + SUN4I_IRQ_ENABLE_REG(irq_ic_data, 1)); in sun4i_of_init() [all …]
|
D | irq-davinci-cp-intc.c | 163 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-6.6.21/drivers/mfd/ |
D | twl4030-irq.c | 416 int irq_base; member 441 agent->imr |= BIT(data->irq - agent->irq_base); in twl4030_sih_mask() 449 agent->imr &= ~BIT(data->irq - agent->irq_base); in twl4030_sih_unmask() 461 agent->edge_change |= BIT(data->irq - agent->irq_base); in twl4030_sih_set_type() 528 type = irq_get_trigger_type(i + agent->irq_base); in twl4030_sih_bus_sync_unlock() 603 handle_nested_irq(agent->irq_base + irq); in handle_twl4030_sih() 612 int twl4030_sih_setup(struct device *dev, int module, int irq_base) in twl4030_sih_setup() argument 638 agent->irq_base = irq_base; in twl4030_sih_setup() 644 irq = irq_base + i; in twl4030_sih_setup() 662 irq, irq_base, irq_base + i - 1); in twl4030_sih_setup() [all …]
|
D | ucb1x00-core.c | 183 return ucb->irq_base > 0 ? ucb->irq_base + offset : -ENXIO; in ucb1x00_to_irq() 294 generic_handle_irq(ucb->irq_base + i); in ucb1x00_irq() 317 unsigned mask = 1 << (data->irq - ucb->irq_base); in ucb1x00_irq_mask() 328 unsigned mask = 1 << (data->irq - ucb->irq_base); in ucb1x00_irq_unmask() 339 unsigned mask = 1 << (data->irq - ucb->irq_base); in ucb1x00_irq_set_type() 366 unsigned mask = 1 << (data->irq - ucb->irq_base); in ucb1x00_irq_set_wake() 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() [all …]
|
D | wm8350-irq.c | 364 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 …]
|
D | da9055-core.c | 363 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()
|
D | ezx-pcap.c | 41 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() 197 for (irq = pcap->irq_base; service; service >>= 1, irq++) { in pcap_isr_work() 409 for (i = pcap->irq_base; i < (pcap->irq_base + PCAP_NIRQS); i++) in ezx_pcap_remove() 448 pcap->irq_base = pdata->irq_base; in ezx_pcap_probe() 462 for (i = pcap->irq_base; i < (pcap->irq_base + PCAP_NIRQS); i++) { in ezx_pcap_probe() 502 for (i = pcap->irq_base; i < (pcap->irq_base + PCAP_NIRQS); i++) in ezx_pcap_probe()
|
D | rc5t583-irq.c | 149 unsigned int __irq = irq_data->irq - rc5t583->irq_base; in rc5t583_irq_unmask() 160 unsigned int __irq = irq_data->irq - rc5t583->irq_base; in rc5t583_irq_mask() 173 unsigned int __irq = irq_data->irq - rc5t583->irq_base; in rc5t583_irq_set_type() 304 handle_nested_irq(rc5t583->irq_base + i); in rc5t583_irq() 320 int rc5t583_irq_init(struct rc5t583 *rc5t583, int irq, int irq_base) in rc5t583_irq_init() argument 324 if (!irq_base) { in rc5t583_irq_init() 365 rc5t583->irq_base = irq_base; in rc5t583_irq_init() 369 int __irq = i + rc5t583->irq_base; in rc5t583_irq_init()
|
D | wm831x-irq.c | 564 int i, ret, irq_base; in wm831x_irq_init() local 577 if (pdata->irq_base) { in wm831x_irq_init() 578 irq_base = irq_alloc_descs(pdata->irq_base, 0, in wm831x_irq_init() 580 if (irq_base < 0) { in wm831x_irq_init() 582 irq_base); in wm831x_irq_init() 583 irq_base = 0; in wm831x_irq_init() 586 irq_base = 0; in wm831x_irq_init() 589 if (irq_base) in wm831x_irq_init() 592 irq_base, 0, in wm831x_irq_init()
|
/linux-6.6.21/arch/mips/kernel/ |
D | irq-msc01.c | 24 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-6.6.21/arch/arm/mach-sa1100/ |
D | neponset.c | 80 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() 309 irq_set_chip_and_handler(d->irq_base + NEP_IRQ_SMC91X, &nochip, in neponset_probe() 311 irq_clear_status_flags(d->irq_base + NEP_IRQ_SMC91X, IRQ_NOREQUEST | IRQ_NOPROBE); in neponset_probe() 312 irq_set_chip_and_handler(d->irq_base + NEP_IRQ_USAR, &nochip, in neponset_probe() 314 irq_clear_status_flags(d->irq_base + NEP_IRQ_USAR, IRQ_NOREQUEST | IRQ_NOPROBE); in neponset_probe() 315 irq_set_chip(d->irq_base + NEP_IRQ_SA1111, &nochip); in neponset_probe() [all …]
|
/linux-6.6.21/drivers/gpio/ |
D | gpio-timberdale.c | 38 int irq_base; member 93 if (tgpio->irq_base <= 0) in timbgpio_to_irq() 96 return tgpio->irq_base + offset; in timbgpio_to_irq() 105 int offset = d->irq - tgpio->irq_base; in timbgpio_irq_disable() 117 int offset = d->irq - tgpio->irq_base; in timbgpio_irq_enable() 129 int offset = d->irq - tgpio->irq_base; in timbgpio_irq_type() 233 tgpio->irq_base = pdata->irq_base; in timbgpio_probe() 250 gc->to_irq = (irq >= 0 && tgpio->irq_base > 0) ? timbgpio_to_irq : NULL; in timbgpio_probe() 263 if (irq < 0 || tgpio->irq_base <= 0) in timbgpio_probe() 267 irq_set_chip_and_handler(tgpio->irq_base + i, in timbgpio_probe() [all …]
|
D | gpio-pch.c | 98 int irq_base; member 208 return chip->irq_base + offset; in pch_gpio_to_irq() 237 ch = irq - chip->irq_base; in pch_irq_type() 238 if (irq < chip->irq_base + 8) { in pch_irq_type() 288 iowrite32(BIT(d->irq - chip->irq_base), &chip->reg->imaskclr); in pch_irq_unmask() 296 iowrite32(BIT(d->irq - chip->irq_base), &chip->reg->imask); in pch_irq_mask() 304 iowrite32(BIT(d->irq - chip->irq_base), &chip->reg->iclr); in pch_irq_ack() 318 generic_handle_irq(chip->irq_base + i); in pch_gpio_handler() 357 int irq_base; in pch_gpio_probe() local 383 irq_base = devm_irq_alloc_descs(dev, -1, 0, in pch_gpio_probe() [all …]
|
D | gpio-ml-ioh.c | 86 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(BIT(d->irq - chip->irq_base), in ioh_irq_unmask() 316 iowrite32(BIT(d->irq - chip->irq_base), in ioh_irq_mask() 329 ien &= ~BIT(d->irq - chip->irq_base); in ioh_irq_disable() 343 ien |= BIT(d->irq - chip->irq_base); in ioh_irq_enable() 364 generic_handle_irq(chip->irq_base + j); in ioh_gpio_handler() 410 int irq_base; in ioh_gpio_probe() local [all …]
|
D | gpio-twl4030.c | 58 int irq_base; member 407 return (priv->irq_base && (offset < TWL4030_GPIO_MAX)) in twl_to_irq() 408 ? (priv->irq_base + offset) in twl_to_irq() 507 int ret, irq_base; in gpio_twl4030_probe() local 520 irq_base = devm_irq_alloc_descs(&pdev->dev, -1, in gpio_twl4030_probe() 522 if (irq_base < 0) { in gpio_twl4030_probe() 524 return irq_base; in gpio_twl4030_probe() 527 irq_domain_add_legacy(node, TWL4030_GPIO_MAX, irq_base, 0, in gpio_twl4030_probe() 530 ret = twl4030_sih_setup(&pdev->dev, TWL4030_MODULE_GPIO, irq_base); in gpio_twl4030_probe() 534 priv->irq_base = irq_base; in gpio_twl4030_probe()
|
D | gpio-sodaville.c | 38 int irq_base; member 131 sd->irq_base = devm_irq_alloc_descs(&pdev->dev, -1, 0, in sdv_register_irqsupport() 133 if (sd->irq_base < 0) in sdv_register_irqsupport() 134 return sd->irq_base; in sdv_register_irqsupport() 152 sd->irq_base, in sdv_register_irqsupport() 173 sd->irq_base, 0, &irq_domain_sdv_ops, sd); in sdv_register_irqsupport()
|
/linux-6.6.21/arch/sh/cchips/hd6446x/ |
D | hd64461.c | 77 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-6.6.21/drivers/sh/intc/ |
D | irqdomain.c | 47 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-6.6.21/arch/mips/pci/ |
D | pci-ar71xx.c | 51 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-6.6.21/arch/arm/mach-omap1/ |
D | irq.c | 187 int i, j, irq_base; in omap1_init_irq() local 215 irq_base = irq_alloc_descs(-1, 0, nr_irqs, 0); in omap1_init_irq() 216 if (irq_base < 0) { in omap1_init_irq() 218 irq_base = 0; in omap1_init_irq() 220 omap_l2_irq = irq_base; in omap1_init_irq() 223 domain = irq_domain_add_legacy(NULL, nr_irqs, irq_base, 0, in omap1_init_irq() 248 omap_alloc_gc(irq_banks[i].va, irq_base + i * 32, 32); in omap1_init_irq()
|
/linux-6.6.21/arch/arm/mach-imx/ |
D | tzic.c | 151 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()
|
D | avic.c | 169 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()
|
/linux-6.6.21/arch/arm/mach-pxa/ |
D | irq.c | 54 static inline void __iomem *irq_base(int i) in irq_base() function 125 void __iomem *base = irq_base(hw / 32); in pxa_irq_map() 158 void __iomem *base = irq_base(n >> 5); in pxa_init_irq_common() 164 __raw_writel(1, irq_base(0) + ICCR); in pxa_init_irq_common() 187 void __iomem *base = irq_base(i); in pxa_irq_suspend() 206 void __iomem *base = irq_base(i); in pxa_irq_resume()
|
/linux-6.6.21/kernel/irq/ |
D | generic-chip.c | 219 int num_ct, unsigned int irq_base, in irq_init_generic_chip() argument 224 gc->irq_base = irq_base; in irq_init_generic_chip() 242 irq_alloc_generic_chip(const char *name, int num_ct, unsigned int irq_base, in irq_alloc_generic_chip() argument 249 irq_init_generic_chip(gc, name, num_ct, irq_base, reg_base, in irq_alloc_generic_chip() 487 for (i = gc->irq_base; msk; msk >>= 1, i++) { in irq_setup_generic_chip() 501 d->mask = 1 << (i - gc->irq_base); in irq_setup_generic_chip() 507 gc->irq_cnt = i - gc->irq_base; in irq_setup_generic_chip() 563 virq = irq_find_mapping(gc->domain, gc->irq_base + i); in irq_remove_generic_chip() 567 virq = gc->irq_base + i; in irq_remove_generic_chip() 584 return irq_get_irq_data(gc->irq_base); in irq_gc_get_irq_data() [all …]
|
/linux-6.6.21/drivers/base/regmap/ |
D | regmap-irq.c | 27 int irq_base; member 630 int irq_flags, int irq_base, in regmap_add_irq_chip_fwnode() argument 656 if (irq_base) { in regmap_add_irq_chip_fwnode() 657 irq_base = irq_alloc_descs(irq_base, 0, chip->num_irqs, 0); in regmap_add_irq_chip_fwnode() 658 if (irq_base < 0) { in regmap_add_irq_chip_fwnode() 660 irq_base); in regmap_add_irq_chip_fwnode() 661 return irq_base; in regmap_add_irq_chip_fwnode() 734 d->irq_base = irq_base; in regmap_add_irq_chip_fwnode() 859 if (irq_base) in regmap_add_irq_chip_fwnode() 861 irq_base, 0, in regmap_add_irq_chip_fwnode() [all …]
|