/linux/drivers/irqchip/ |
H A 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 …]
|
H A D | irq-davinci-cp-intc.c | 162 int offset, irq_base; in davinci_cp_intc_do_init() local 208 irq_base = irq_alloc_descs(-1, 0, config->num_irqs, 0); in davinci_cp_intc_do_init() 209 if (irq_base < 0) { in davinci_cp_intc_do_init() 211 __func__, irq_base); in davinci_cp_intc_do_init() 212 return irq_base; in davinci_cp_intc_do_init() 216 node, config->num_irqs, irq_base, 0, in davinci_cp_intc_do_init()
|
/linux/drivers/mfd/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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/arch/mips/kernel/ |
H A 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/arch/arm/mach-sa1100/ |
H A 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/drivers/gpio/ |
H A 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 …]
|
H A D | gpio-pch.c | 97 int irq_base; member 207 return chip->irq_base + offset; in pch_gpio_to_irq() 236 ch = irq - chip->irq_base; in pch_irq_type() 237 if (irq < chip->irq_base + 8) { in pch_irq_type() 287 iowrite32(BIT(d->irq - chip->irq_base), &chip->reg->imaskclr); in pch_irq_unmask() 295 iowrite32(BIT(d->irq - chip->irq_base), &chip->reg->imask); in pch_irq_mask() 303 iowrite32(BIT(d->irq - chip->irq_base), &chip->reg->iclr); in pch_irq_ack() 317 generic_handle_irq(chip->irq_base + i); in pch_gpio_handler() 356 int irq_base; in pch_gpio_probe() local 382 irq_base = devm_irq_alloc_descs(dev, -1, 0, in pch_gpio_probe() [all …]
|
H A 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 …]
|
H A 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()
|
H A 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()
|
H A D | gpio-mxs.c | 186 static int mxs_gpio_init_gc(struct mxs_gpio_port *port, int irq_base) in mxs_gpio_init_gc() argument 192 gc = devm_irq_alloc_generic_chip(port->dev, "gpio-mxs", 2, irq_base, in mxs_gpio_init_gc() 264 int irq_base; in mxs_gpio_probe() local 300 irq_base = devm_irq_alloc_descs(&pdev->dev, -1, 0, 32, numa_node_id()); in mxs_gpio_probe() 301 if (irq_base < 0) { in mxs_gpio_probe() 302 err = irq_base; in mxs_gpio_probe() 306 port->domain = irq_domain_add_legacy(np, 32, irq_base, 0, in mxs_gpio_probe() 314 err = mxs_gpio_init_gc(port, irq_base); in mxs_gpio_probe()
|
/linux/arch/sh/cchips/hd6446x/ |
H A 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/arch/mips/pci/ |
H A 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/drivers/sh/intc/ |
H A 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/arch/arm/mach-omap1/ |
H A 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/arch/arm/mach-imx/ |
H A 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()
|
H A 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/drivers/base/regmap/ |
H A D | regmap-irq.c | 27 int irq_base; member 612 static int regmap_irq_create_domain(struct fwnode_handle *fwnode, int irq_base, in regmap_irq_create_domain() argument 620 .virq_base = irq_base, in regmap_irq_create_domain() 655 int irq_flags, int irq_base, in regmap_add_irq_chip_fwnode() argument 681 if (irq_base) { in regmap_add_irq_chip_fwnode() 682 irq_base = irq_alloc_descs(irq_base, 0, chip->num_irqs, 0); in regmap_add_irq_chip_fwnode() 683 if (irq_base < 0) { in regmap_add_irq_chip_fwnode() 685 irq_base); in regmap_add_irq_chip_fwnode() 686 return irq_base; in regmap_add_irq_chip_fwnode() 759 d->irq_base = irq_base; in regmap_add_irq_chip_fwnode() [all …]
|
/linux/arch/arm/mach-pxa/ |
H A 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()
|