/drivers/mfd/ |
D | t7l66xb.c | 78 int irq_base; member 195 unsigned int i, irq_base; in t7l66xb_irq() local 197 irq_base = t7l66xb->irq_base; in t7l66xb_irq() 203 generic_handle_irq(irq_base + i); in t7l66xb_irq() 214 imr |= 1 << (data->irq - t7l66xb->irq_base); in t7l66xb_irq_mask() 227 imr &= ~(1 << (data->irq - t7l66xb->irq_base)); in t7l66xb_irq_unmask() 245 unsigned int irq, irq_base; in t7l66xb_attach_irq() local 247 irq_base = t7l66xb->irq_base; in t7l66xb_attach_irq() 249 for (irq = irq_base; irq < irq_base + T7L66XB_NR_IRQS; irq++) { in t7l66xb_attach_irq() 261 unsigned int irq, irq_base; in t7l66xb_detach_irq() local [all …]
|
D | twl4030-irq.c | 428 int irq_base; member 453 agent->imr |= BIT(data->irq - agent->irq_base); in twl4030_sih_mask() 461 agent->imr &= ~BIT(data->irq - agent->irq_base); in twl4030_sih_unmask() 473 agent->edge_change |= BIT(data->irq - agent->irq_base); in twl4030_sih_set_type() 540 type = irq_get_trigger_type(i + agent->irq_base); in twl4030_sih_bus_sync_unlock() 615 handle_nested_irq(agent->irq_base + irq); in handle_twl4030_sih() 624 int twl4030_sih_setup(struct device *dev, int module, int irq_base) in twl4030_sih_setup() argument 650 agent->irq_base = irq_base; in twl4030_sih_setup() 656 irq = irq_base + i; in twl4030_sih_setup() 674 irq, irq_base, irq_base + i - 1); in twl4030_sih_setup() [all …]
|
D | ucb1x00-core.c | 186 return ucb->irq_base > 0 ? ucb->irq_base + offset : -ENXIO; in ucb1x00_to_irq() 297 generic_handle_irq(ucb->irq_base + i); in ucb1x00_irq() 320 unsigned mask = 1 << (data->irq - ucb->irq_base); in ucb1x00_irq_mask() 331 unsigned mask = 1 << (data->irq - ucb->irq_base); in ucb1x00_irq_unmask() 342 unsigned mask = 1 << (data->irq - ucb->irq_base); in ucb1x00_irq_set_type() 369 unsigned mask = 1 << (data->irq - ucb->irq_base); in ucb1x00_irq_set_wake() 500 unsigned id, i, irq_base; in ucb1x00_probe() local 547 irq_base = pdata ? pdata->irq_base : 0; in ucb1x00_probe() 548 ucb->irq_base = irq_alloc_descs(-1, irq_base, 16, -1); in ucb1x00_probe() 549 if (ucb->irq_base < 0) { in ucb1x00_probe() [all …]
|
D | asic3.c | 80 unsigned int irq_base; member 187 irqnr = asic->irq_base + in asic3_irq_demux() 202 generic_handle_irq(asic->irq_base + i); in asic3_irq_demux() 214 n = (irq - asic->irq_base) >> 4; in asic3_irq_to_bank() 221 return (irq - asic->irq_base) & 0xf; in asic3_irq_to_index() 252 (data->irq - (asic->irq_base + ASIC3_NUM_GPIOS))); in asic3_mask_irq() 289 (data->irq - (asic->irq_base + ASIC3_NUM_GPIOS))); in asic3_unmask_irq() 316 asic->irq_bothedge[(data->irq - asic->irq_base) >> 4] &= ~bit; in asic3_gpio_irq_type() 326 if (asic3_gpio_get(&asic->gpio, data->irq - asic->irq_base)) in asic3_gpio_irq_type() 330 asic->irq_bothedge[(data->irq - asic->irq_base) >> 4] |= bit; in asic3_gpio_irq_type() [all …]
|
D | wm8350-irq.c | 369 return &wm8350_irqs[irq - wm8350->irq_base]; in irq_to_wm8350_irq() 413 handle_nested_irq(wm8350->irq_base + i); in wm8350_irq() 473 int irq_base = -1; in wm8350_irq_init() local 497 if (pdata && pdata->irq_base > 0) in wm8350_irq_init() 498 irq_base = pdata->irq_base; in wm8350_irq_init() 500 wm8350->irq_base = in wm8350_irq_init() 501 irq_alloc_descs(irq_base, 0, ARRAY_SIZE(wm8350_irqs), 0); in wm8350_irq_init() 502 if (wm8350->irq_base < 0) { in wm8350_irq_init() 504 wm8350->irq_base); in wm8350_irq_init() 521 for (cur_irq = wm8350->irq_base; in wm8350_irq_init() [all …]
|
D | tc6393xb.c | 111 int irq_base; member 529 unsigned int i, irq_base; in tc6393xb_irq() local 531 irq_base = tc6393xb->irq_base; in tc6393xb_irq() 537 generic_handle_irq(irq_base + i); in tc6393xb_irq() 553 imr |= 1 << (data->irq - tc6393xb->irq_base); in tc6393xb_irq_mask() 566 imr &= ~(1 << (data->irq - tc6393xb->irq_base)); in tc6393xb_irq_unmask() 581 unsigned int irq, irq_base; in tc6393xb_attach_irq() local 583 irq_base = tc6393xb->irq_base; in tc6393xb_attach_irq() 585 for (irq = irq_base; irq < irq_base + TC6393XB_NR_IRQS; irq++) { in tc6393xb_attach_irq() 599 unsigned int irq, irq_base; in tc6393xb_detach_irq() local [all …]
|
D | jz4740-adc.c | 78 generic_handle_irq(gc->irq_base + i); in jz4740_adc_irq_demux() 212 int irq_base; in jz4740_adc_probe() local 227 irq_base = platform_get_irq(pdev, 1); in jz4740_adc_probe() 228 if (irq_base < 0) { in jz4740_adc_probe() 229 dev_err(&pdev->dev, "Failed to get irq base: %d\n", irq_base); in jz4740_adc_probe() 230 return irq_base; in jz4740_adc_probe() 266 gc = irq_alloc_generic_chip("INTC", 1, irq_base, adc->base, in jz4740_adc_probe() 288 irq_base, NULL); in jz4740_adc_probe()
|
D | da9055-core.c | 389 if (!pdata || !pdata->irq_base) in da9055_device_init() 390 da9055->irq_base = -1; in da9055_device_init() 392 da9055->irq_base = pdata->irq_base; in da9055_device_init() 400 da9055->irq_base, &da9055_regmap_irq_chip, in da9055_device_init() 405 da9055->irq_base = regmap_irq_chip_get_base(da9055->irq_data); in da9055_device_init() 409 NULL, da9055->irq_base, NULL); in da9055_device_init()
|
D | twl-core.c | 721 add_children(struct twl4030_platform_data *pdata, unsigned irq_base, in add_children() argument 729 false, irq_base + GPIO_INTR_OFFSET, 0); in add_children() 737 true, irq_base + KEYPAD_INTR_OFFSET, 0); in add_children() 746 true, irq_base + MADC_INTR_OFFSET, 0); in add_children() 760 true, irq_base + RTC_INTR_OFFSET, 0); in add_children() 827 irq_base + USB_PRES_INTR_OFFSET, in add_children() 828 irq_base + USB_INTR_OFFSET); in add_children() 850 NULL, 0, true, irq_base + 8 + 0, 0); in add_children() 958 irq_base + BCI_PRES_INTR_OFFSET, in add_children() 959 irq_base + BCI_INTR_OFFSET); in add_children() [all …]
|
D | ezx-pcap.c | 45 unsigned int irq_base; member 137 return irq - pcap->irq_base; in irq_to_pcap() 143 return pcap->irq_base + irq; in pcap_to_irq() 199 for (irq = pcap->irq_base; service; service >>= 1, irq++) { in pcap_isr_work() 408 for (i = pcap->irq_base; i < (pcap->irq_base + PCAP_NIRQS); i++) in ezx_pcap_remove() 449 pcap->irq_base = pdata->irq_base; in ezx_pcap_probe() 463 for (i = pcap->irq_base; i < (pcap->irq_base + PCAP_NIRQS); i++) { in ezx_pcap_probe() 503 for (i = pcap->irq_base; i < (pcap->irq_base + PCAP_NIRQS); i++) in ezx_pcap_probe()
|
D | rc5t583-irq.c | 161 unsigned int __irq = irq_data->irq - rc5t583->irq_base; in rc5t583_irq_unmask() 172 unsigned int __irq = irq_data->irq - rc5t583->irq_base; in rc5t583_irq_mask() 185 unsigned int __irq = irq_data->irq - rc5t583->irq_base; in rc5t583_irq_set_type() 319 handle_nested_irq(rc5t583->irq_base + i); in rc5t583_irq() 335 int rc5t583_irq_init(struct rc5t583 *rc5t583, int irq, int irq_base) in rc5t583_irq_init() argument 339 if (!irq_base) { in rc5t583_irq_init() 380 rc5t583->irq_base = irq_base; in rc5t583_irq_init() 384 int __irq = i + rc5t583->irq_base; in rc5t583_irq_init()
|
D | wm831x-irq.c | 569 int i, ret, irq_base; in wm831x_irq_init() local 582 if (pdata->irq_base) { in wm831x_irq_init() 583 irq_base = irq_alloc_descs(pdata->irq_base, 0, in wm831x_irq_init() 585 if (irq_base < 0) { in wm831x_irq_init() 587 irq_base); in wm831x_irq_init() 588 irq_base = 0; in wm831x_irq_init() 591 irq_base = 0; in wm831x_irq_init() 594 if (irq_base) in wm831x_irq_init() 597 irq_base, 0, in wm831x_irq_init()
|
D | da9063-core.c | 174 da9063->irq_base = pdata->irq_base; in da9063_device_init() 177 da9063->irq_base = -1; in da9063_device_init() 227 da9063->irq_base = regmap_irq_chip_get_base(da9063->regmap_irq); in da9063_device_init() 230 ARRAY_SIZE(da9063_devs), NULL, da9063->irq_base, in da9063_device_init()
|
/drivers/gpio/ |
D | gpio-timberdale.c | 50 int irq_base; member 104 if (tgpio->irq_base <= 0) in timbgpio_to_irq() 107 return tgpio->irq_base + offset; in timbgpio_to_irq() 116 int offset = d->irq - tgpio->irq_base; in timbgpio_irq_disable() 128 int offset = d->irq - tgpio->irq_base; in timbgpio_irq_enable() 140 int offset = d->irq - tgpio->irq_base; in timbgpio_irq_type() 246 tgpio->irq_base = pdata->irq_base; in timbgpio_probe() 264 gc->to_irq = (irq >= 0 && tgpio->irq_base > 0) ? timbgpio_to_irq : NULL; in timbgpio_probe() 279 if (irq < 0 || tgpio->irq_base <= 0) in timbgpio_probe() 283 irq_set_chip_and_handler(tgpio->irq_base + i, in timbgpio_probe() [all …]
|
D | gpio-pch.c | 104 int irq_base; member 215 return chip->irq_base + offset; in pch_gpio_to_irq() 245 ch = irq - chip->irq_base; in pch_irq_type() 246 if (irq <= chip->irq_base + 7) { in pch_irq_type() 298 iowrite32(1 << (d->irq - chip->irq_base), &chip->reg->imaskclr); in pch_irq_unmask() 306 iowrite32(1 << (d->irq - chip->irq_base), &chip->reg->imask); in pch_irq_mask() 314 iowrite32(1 << (d->irq - chip->irq_base), &chip->reg->iclr); in pch_irq_ack() 327 generic_handle_irq(chip->irq_base + i); in pch_gpio_handler() 367 int irq_base; in pch_gpio_probe() local 414 irq_base = devm_irq_alloc_descs(&pdev->dev, -1, 0, in pch_gpio_probe() [all …]
|
D | gpio-adp5588.c | 37 unsigned irq_base; member 155 return dev->irq_base + off; in adp5588_gpio_to_irq() 207 unsigned gpio = d->irq - dev->irq_base; in adp5588_irq_mask() 215 unsigned gpio = d->irq - dev->irq_base; in adp5588_irq_unmask() 223 uint16_t gpio = d->irq - dev->irq_base; in adp5588_irq_set_type() 284 handle_nested_irq(dev->irq_base + in adp5588_irq_handler() 311 dev->irq_base = pdata->irq_base; in adp5588_irq_setup() 315 int irq = gpio + dev->irq_base; in adp5588_irq_setup() 341 dev->irq_base = 0; in adp5588_irq_setup() 347 if (dev->irq_base) in adp5588_irq_teardown() [all …]
|
D | gpio-ml-ioh.c | 100 int irq_base; member 229 return chip->irq_base + offset; in ioh_gpio_to_irq() 262 ch = irq - chip->irq_base; in ioh_irq_type() 263 if (irq <= chip->irq_base + 7) { in ioh_irq_type() 323 iowrite32(1 << (d->irq - chip->irq_base), in ioh_irq_unmask() 332 iowrite32(1 << (d->irq - chip->irq_base), in ioh_irq_mask() 345 ien &= ~(1 << (d->irq - chip->irq_base)); in ioh_irq_disable() 359 ien |= 1 << (d->irq - chip->irq_base); in ioh_irq_enable() 380 generic_handle_irq(chip->irq_base + j); in ioh_gpio_handler() 425 int irq_base; in ioh_gpio_probe() local [all …]
|
D | gpio-twl4030.c | 69 int irq_base; member 379 return (priv->irq_base && (offset < TWL4030_GPIO_MAX)) in twl_to_irq() 380 ? (priv->irq_base + offset) in twl_to_irq() 475 int ret, irq_base; in gpio_twl4030_probe() local 488 irq_base = devm_irq_alloc_descs(&pdev->dev, -1, in gpio_twl4030_probe() 490 if (irq_base < 0) { in gpio_twl4030_probe() 492 return irq_base; in gpio_twl4030_probe() 495 irq_domain_add_legacy(node, TWL4030_GPIO_MAX, irq_base, 0, in gpio_twl4030_probe() 498 ret = twl4030_sih_setup(&pdev->dev, TWL4030_MODULE_GPIO, irq_base); in gpio_twl4030_probe() 502 priv->irq_base = irq_base; in gpio_twl4030_probe()
|
D | gpio-msic.c | 59 unsigned irq_base; member 167 u32 gpio = data->irq - mg->irq_base; in msic_irq_type() 182 return mg->irq_base + offset; in msic_gpio_to_irq() 251 generic_handle_irq(mg->irq_base + in msic_gpio_irq_handler() 285 mg->irq_base = pdata->gpio_base + MSIC_GPIO_IRQ_OFFSET; in platform_msic_gpio_probe() 306 irq_set_chip_data(i + mg->irq_base, mg); in platform_msic_gpio_probe() 307 irq_set_chip_and_handler(i + mg->irq_base, in platform_msic_gpio_probe()
|
D | gpio-sta2x11.c | 56 int irq_base; member 125 return chip->irq_base + offset; in gsta_gpio_to_irq() 236 int nr = data->irq - chip->irq_base; in gsta_irq_disable() 259 int nr = data->irq - chip->irq_base; in gsta_irq_enable() 287 int nr = d->irq - chip->irq_base; in gsta_irq_type() 311 base = chip->irq_base + i * GSTA_GPIO_PER_BLOCK; in gsta_gpio_handler() 330 chip->irq_base, in gsta_alloc_irq_chip() 354 i = chip->irq_base + j; in gsta_alloc_irq_chip() 359 gc->irq_cnt = i - gc->irq_base; in gsta_alloc_irq_chip() 412 chip->irq_base = err; in gsta_probe()
|
D | gpio-sodaville.c | 42 int irq_base; member 138 sd->irq_base = devm_irq_alloc_descs(&pdev->dev, -1, 0, in sdv_register_irqsupport() 140 if (sd->irq_base < 0) in sdv_register_irqsupport() 141 return sd->irq_base; in sdv_register_irqsupport() 158 sd->gc = irq_alloc_generic_chip("sdv-gpio", 1, sd->irq_base, in sdv_register_irqsupport() 178 sd->irq_base, 0, &irq_domain_sdv_ops, sd); in sdv_register_irqsupport()
|
D | gpio-mxs.c | 207 static int mxs_gpio_init_gc(struct mxs_gpio_port *port, int irq_base) in mxs_gpio_init_gc() argument 213 gc = devm_irq_alloc_generic_chip(port->dev, "gpio-mxs", 2, irq_base, in mxs_gpio_init_gc() 297 int irq_base; in mxs_gpio_probe() local 333 irq_base = devm_irq_alloc_descs(&pdev->dev, -1, 0, 32, numa_node_id()); in mxs_gpio_probe() 334 if (irq_base < 0) { in mxs_gpio_probe() 335 err = irq_base; in mxs_gpio_probe() 339 port->domain = irq_domain_add_legacy(np, 32, irq_base, 0, in mxs_gpio_probe() 347 err = mxs_gpio_init_gc(port, irq_base); in mxs_gpio_probe()
|
/drivers/dma/ipu/ |
D | ipu_irq.c | 320 int irq_base = irq_alloc_descs(-1, 0, CONFIG_MX3_IPU_IRQS, in ipu_irq_attach_irq() local 323 if (irq_base < 0) in ipu_irq_attach_irq() 324 return irq_base; in ipu_irq_attach_irq() 332 irq = irq_base + i; in ipu_irq_attach_irq() 350 ipu->irq_base = irq_base; in ipu_irq_attach_irq() 357 unsigned int irq, irq_base; in ipu_irq_detach_irq() local 359 irq_base = ipu->irq_base; in ipu_irq_detach_irq() 365 for (irq = irq_base; irq < irq_base + CONFIG_MX3_IPU_IRQS; irq++) { in ipu_irq_detach_irq()
|
/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()
|
/drivers/base/regmap/ |
D | regmap-irq.c | 31 int irq_base; member 427 int irq_base, const struct regmap_irq_chip *chip, in regmap_add_irq_chip() argument 447 if (irq_base) { in regmap_add_irq_chip() 448 irq_base = irq_alloc_descs(irq_base, 0, chip->num_irqs, 0); in regmap_add_irq_chip() 449 if (irq_base < 0) { in regmap_add_irq_chip() 451 irq_base); in regmap_add_irq_chip() 452 return irq_base; in regmap_add_irq_chip() 499 d->irq_base = irq_base; in regmap_add_irq_chip() 630 if (irq_base) in regmap_add_irq_chip() 632 chip->num_irqs, irq_base, 0, in regmap_add_irq_chip() [all …]
|