/linux-6.12.1/drivers/gpio/ |
D | gpio-idt3243x.c | 138 struct gpio_irq_chip *girq; in idt_gpio_probe() local 175 girq = &ctrl->gc.irq; in idt_gpio_probe() 176 gpio_irq_chip_set_chip(girq, &idt_gpio_irqchip); in idt_gpio_probe() 177 girq->init_hw = idt_gpio_irq_init_hw; in idt_gpio_probe() 178 girq->parent_handler = idt_gpio_dispatch; in idt_gpio_probe() 179 girq->num_parents = 1; in idt_gpio_probe() 180 girq->parents = devm_kcalloc(dev, girq->num_parents, in idt_gpio_probe() 181 sizeof(*girq->parents), in idt_gpio_probe() 183 if (!girq->parents) in idt_gpio_probe() 186 girq->parents[0] = parent_irq; in idt_gpio_probe() [all …]
|
D | gpio-ep93xx.c | 272 struct gpio_irq_chip *girq = &gc->irq; in ep93xx_setup_irqs() local 286 gpio_irq_chip_set_chip(girq, &gpio_eic_irq_chip); in ep93xx_setup_irqs() 287 girq->num_parents = platform_irq_count(pdev); in ep93xx_setup_irqs() 288 if (girq->num_parents == 0) in ep93xx_setup_irqs() 291 girq->parents = devm_kcalloc(dev, girq->num_parents, sizeof(*girq->parents), in ep93xx_setup_irqs() 293 if (!girq->parents) in ep93xx_setup_irqs() 296 if (girq->num_parents == 1) { /* A/B irqchips */ in ep93xx_setup_irqs() 306 girq->parents[0] = irq; in ep93xx_setup_irqs() 308 girq->parent_handler = ep93xx_gpio_f_irq_handler; in ep93xx_setup_irqs() 310 for (i = 0; i < girq->num_parents; i++) { in ep93xx_setup_irqs() [all …]
|
D | gpio-rda.c | 212 struct gpio_irq_chip *girq; in rda_gpio_probe() local 255 girq = &rda_gpio->chip.irq; in rda_gpio_probe() 256 gpio_irq_chip_set_chip(girq, &rda_gpio_irq_chip); in rda_gpio_probe() 257 girq->handler = handle_bad_irq; in rda_gpio_probe() 258 girq->default_type = IRQ_TYPE_NONE; in rda_gpio_probe() 259 girq->parent_handler = rda_gpio_irq_handler; in rda_gpio_probe() 260 girq->parent_handler_data = rda_gpio; in rda_gpio_probe() 261 girq->num_parents = 1; in rda_gpio_probe() 262 girq->parents = devm_kcalloc(dev, 1, in rda_gpio_probe() 263 sizeof(*girq->parents), in rda_gpio_probe() [all …]
|
D | gpio-tqmx86.c | 295 struct gpio_irq_chip *girq; in tqmx86_gpio_probe() local 355 girq = &chip->irq; in tqmx86_gpio_probe() 356 gpio_irq_chip_set_chip(girq, &tqmx86_gpio_irq_chip); in tqmx86_gpio_probe() 357 girq->parent_handler = tqmx86_gpio_irq_handler; in tqmx86_gpio_probe() 358 girq->num_parents = 1; in tqmx86_gpio_probe() 359 girq->parents = devm_kcalloc(&pdev->dev, 1, in tqmx86_gpio_probe() 360 sizeof(*girq->parents), in tqmx86_gpio_probe() 362 if (!girq->parents) { in tqmx86_gpio_probe() 366 girq->parents[0] = irq; in tqmx86_gpio_probe() 367 girq->default_type = IRQ_TYPE_NONE; in tqmx86_gpio_probe() [all …]
|
D | gpio-visconti.c | 163 struct gpio_irq_chip *girq; in visconti_gpio_probe() local 204 girq = &priv->gpio_chip.irq; in visconti_gpio_probe() 205 gpio_irq_chip_set_chip(girq, &visconti_gpio_irq_chip); in visconti_gpio_probe() 206 girq->fwnode = dev_fwnode(dev); in visconti_gpio_probe() 207 girq->parent_domain = parent; in visconti_gpio_probe() 208 girq->child_to_parent_hwirq = visconti_gpio_child_to_parent_hwirq; in visconti_gpio_probe() 209 girq->populate_parent_alloc_arg = visconti_gpio_populate_parent_fwspec; in visconti_gpio_probe() 210 girq->default_type = IRQ_TYPE_NONE; in visconti_gpio_probe() 211 girq->handler = handle_level_irq; in visconti_gpio_probe()
|
D | gpio-realtek-otto.c | 362 struct gpio_irq_chip *girq; in realtek_gpio_probe() local 416 girq = &ctrl->gc.irq; in realtek_gpio_probe() 417 gpio_irq_chip_set_chip(girq, &realtek_gpio_irq_chip); in realtek_gpio_probe() 418 girq->default_type = IRQ_TYPE_NONE; in realtek_gpio_probe() 419 girq->handler = handle_bad_irq; in realtek_gpio_probe() 420 girq->parent_handler = realtek_gpio_irq_handler; in realtek_gpio_probe() 421 girq->num_parents = 1; in realtek_gpio_probe() 422 girq->parents = devm_kcalloc(dev, girq->num_parents, in realtek_gpio_probe() 423 sizeof(*girq->parents), GFP_KERNEL); in realtek_gpio_probe() 424 if (!girq->parents) in realtek_gpio_probe() [all …]
|
D | gpio-xlp.c | 244 struct gpio_irq_chip *girq; in xlp_gpio_probe() local 284 girq = &gc->irq; in xlp_gpio_probe() 285 gpio_irq_chip_set_chip(girq, &xlp_gpio_irq_chip); in xlp_gpio_probe() 286 girq->parent_handler = xlp_gpio_generic_handler; in xlp_gpio_probe() 287 girq->num_parents = 1; in xlp_gpio_probe() 288 girq->parents = devm_kcalloc(&pdev->dev, 1, in xlp_gpio_probe() 289 sizeof(*girq->parents), in xlp_gpio_probe() 291 if (!girq->parents) in xlp_gpio_probe() 293 girq->parents[0] = irq; in xlp_gpio_probe() 294 girq->first = 0; in xlp_gpio_probe() [all …]
|
D | gpio-cadence.c | 219 struct gpio_irq_chip *girq; in cdns_gpio_probe() local 221 girq = &cgpio->gc.irq; in cdns_gpio_probe() 222 gpio_irq_chip_set_chip(girq, &cdns_gpio_irqchip); in cdns_gpio_probe() 223 girq->parent_handler = cdns_gpio_irq_handler; in cdns_gpio_probe() 224 girq->num_parents = 1; in cdns_gpio_probe() 225 girq->parents = devm_kcalloc(&pdev->dev, 1, in cdns_gpio_probe() 226 sizeof(*girq->parents), in cdns_gpio_probe() 228 if (!girq->parents) { in cdns_gpio_probe() 232 girq->parents[0] = irq; in cdns_gpio_probe() 233 girq->default_type = IRQ_TYPE_NONE; in cdns_gpio_probe() [all …]
|
D | gpio-ath79.c | 229 struct gpio_irq_chip *girq; in ath79_gpio_probe() local 270 girq = &ctrl->gc.irq; in ath79_gpio_probe() 271 gpio_irq_chip_set_chip(girq, &ath79_gpio_irqchip); in ath79_gpio_probe() 272 girq->parent_handler = ath79_gpio_irq_handler; in ath79_gpio_probe() 273 girq->num_parents = 1; in ath79_gpio_probe() 274 girq->parents = devm_kcalloc(dev, 1, sizeof(*girq->parents), in ath79_gpio_probe() 276 if (!girq->parents) in ath79_gpio_probe() 278 girq->parents[0] = platform_get_irq(pdev, 0); in ath79_gpio_probe() 279 girq->default_type = IRQ_TYPE_NONE; in ath79_gpio_probe() 280 girq->handler = handle_simple_irq; in ath79_gpio_probe()
|
D | gpio-altera.c | 252 struct gpio_irq_chip *girq; in altera_gpio_probe() local 292 girq = &altera_gc->mmchip.gc.irq; in altera_gpio_probe() 293 gpio_irq_chip_set_chip(girq, &altera_gpio_irq_chip); in altera_gpio_probe() 296 girq->parent_handler = altera_gpio_irq_leveL_high_handler; in altera_gpio_probe() 298 girq->parent_handler = altera_gpio_irq_edge_handler; in altera_gpio_probe() 299 girq->num_parents = 1; in altera_gpio_probe() 300 girq->parents = devm_kcalloc(&pdev->dev, 1, sizeof(*girq->parents), in altera_gpio_probe() 302 if (!girq->parents) in altera_gpio_probe() 304 girq->default_type = IRQ_TYPE_NONE; in altera_gpio_probe() 305 girq->handler = handle_bad_irq; in altera_gpio_probe() [all …]
|
D | gpio-ftgpio010.c | 238 struct gpio_irq_chip *girq; in ftgpio_gpio_probe() local 290 girq = &g->gc.irq; in ftgpio_gpio_probe() 291 gpio_irq_chip_set_chip(girq, &ftgpio_irq_chip); in ftgpio_gpio_probe() 292 girq->parent_handler = ftgpio_gpio_irq_handler; in ftgpio_gpio_probe() 293 girq->num_parents = 1; in ftgpio_gpio_probe() 294 girq->parents = devm_kcalloc(dev, 1, sizeof(*girq->parents), in ftgpio_gpio_probe() 296 if (!girq->parents) { in ftgpio_gpio_probe() 300 girq->default_type = IRQ_TYPE_NONE; in ftgpio_gpio_probe() 301 girq->handler = handle_bad_irq; in ftgpio_gpio_probe() 302 girq->parents[0] = irq; in ftgpio_gpio_probe()
|
D | gpio-hlwd.c | 276 struct gpio_irq_chip *girq; in hlwd_gpio_probe() local 285 girq = &hlwd->gpioc.irq; in hlwd_gpio_probe() 286 gpio_irq_chip_set_chip(girq, &hlwd_gpio_irq_chip); in hlwd_gpio_probe() 287 girq->parent_handler = hlwd_gpio_irqhandler; in hlwd_gpio_probe() 288 girq->num_parents = 1; in hlwd_gpio_probe() 289 girq->parents = devm_kcalloc(&pdev->dev, 1, in hlwd_gpio_probe() 290 sizeof(*girq->parents), in hlwd_gpio_probe() 292 if (!girq->parents) in hlwd_gpio_probe() 294 girq->parents[0] = hlwd->irq; in hlwd_gpio_probe() 295 girq->default_type = IRQ_TYPE_NONE; in hlwd_gpio_probe() [all …]
|
D | gpio-vf610.c | 291 struct gpio_irq_chip *girq; in vf610_gpio_probe() local 392 girq = &gc->irq; in vf610_gpio_probe() 393 gpio_irq_chip_set_chip(girq, &vf610_irqchip); in vf610_gpio_probe() 394 girq->parent_handler = vf610_gpio_irq_handler; in vf610_gpio_probe() 395 girq->num_parents = 1; in vf610_gpio_probe() 396 girq->parents = devm_kcalloc(&pdev->dev, 1, in vf610_gpio_probe() 397 sizeof(*girq->parents), in vf610_gpio_probe() 399 if (!girq->parents) in vf610_gpio_probe() 401 girq->parents[0] = port->irq; in vf610_gpio_probe() 402 girq->default_type = IRQ_TYPE_NONE; in vf610_gpio_probe() [all …]
|
D | gpio-max77620.c | 294 struct gpio_irq_chip *girq; in max77620_gpio_probe() local 323 girq = &mgpio->gpio_chip.irq; in max77620_gpio_probe() 324 gpio_irq_chip_set_chip(girq, &max77620_gpio_irqchip); in max77620_gpio_probe() 326 girq->parent_handler = NULL; in max77620_gpio_probe() 327 girq->num_parents = 0; in max77620_gpio_probe() 328 girq->parents = NULL; in max77620_gpio_probe() 329 girq->default_type = IRQ_TYPE_NONE; in max77620_gpio_probe() 330 girq->handler = handle_edge_irq; in max77620_gpio_probe() 331 girq->init_hw = max77620_gpio_irq_init_hw; in max77620_gpio_probe() 332 girq->threaded = true; in max77620_gpio_probe()
|
D | gpio-ixp4xx.c | 214 struct gpio_irq_chip *girq; in ixp4xx_gpio_probe() local 321 girq = &g->gc.irq; in ixp4xx_gpio_probe() 322 gpio_irq_chip_set_chip(girq, &ixp4xx_gpio_irqchip); in ixp4xx_gpio_probe() 323 girq->fwnode = dev_fwnode(dev); in ixp4xx_gpio_probe() 324 girq->parent_domain = parent; in ixp4xx_gpio_probe() 325 girq->child_to_parent_hwirq = ixp4xx_gpio_child_to_parent_hwirq; in ixp4xx_gpio_probe() 326 girq->handler = handle_bad_irq; in ixp4xx_gpio_probe() 327 girq->default_type = IRQ_TYPE_NONE; in ixp4xx_gpio_probe()
|
D | gpio-pcf857x.c | 373 struct gpio_irq_chip *girq; in pcf857x_probe() local 382 girq = &gpio->chip.irq; in pcf857x_probe() 383 gpio_irq_chip_set_chip(girq, &pcf857x_irq_chip); in pcf857x_probe() 385 girq->parent_handler = NULL; in pcf857x_probe() 386 girq->num_parents = 0; in pcf857x_probe() 387 girq->parents = NULL; in pcf857x_probe() 388 girq->default_type = IRQ_TYPE_NONE; in pcf857x_probe() 389 girq->handler = handle_level_irq; in pcf857x_probe() 390 girq->threaded = true; in pcf857x_probe()
|
D | gpio-tangier.c | 417 struct gpio_irq_chip *girq; in devm_tng_gpio_probe() local 441 girq = &gpio->chip.irq; in devm_tng_gpio_probe() 442 gpio_irq_chip_set_chip(girq, &tng_irqchip); in devm_tng_gpio_probe() 443 girq->init_hw = tng_irq_init_hw; in devm_tng_gpio_probe() 444 girq->parent_handler = tng_irq_handler; in devm_tng_gpio_probe() 445 girq->num_parents = 1; in devm_tng_gpio_probe() 446 girq->parents = devm_kcalloc(dev, girq->num_parents, in devm_tng_gpio_probe() 447 sizeof(*girq->parents), GFP_KERNEL); in devm_tng_gpio_probe() 448 if (!girq->parents) in devm_tng_gpio_probe() 451 girq->parents[0] = gpio->irq; in devm_tng_gpio_probe() [all …]
|
D | gpio-mlxbf3.c | 191 struct gpio_irq_chip *girq; in mlxbf3_gpio_probe() local 232 girq = &gs->gc.irq; in mlxbf3_gpio_probe() 233 gpio_irq_chip_set_chip(girq, &gpio_mlxbf3_irqchip); in mlxbf3_gpio_probe() 234 girq->default_type = IRQ_TYPE_NONE; in mlxbf3_gpio_probe() 236 girq->num_parents = 0; in mlxbf3_gpio_probe() 237 girq->parents = NULL; in mlxbf3_gpio_probe() 238 girq->parent_handler = NULL; in mlxbf3_gpio_probe() 239 girq->handler = handle_bad_irq; in mlxbf3_gpio_probe()
|
D | gpio-sifive.c | 185 struct gpio_irq_chip *girq; in sifive_gpio_probe() local 245 girq = &chip->gc.irq; in sifive_gpio_probe() 246 gpio_irq_chip_set_chip(girq, &sifive_gpio_irqchip); in sifive_gpio_probe() 247 girq->fwnode = dev_fwnode(dev); in sifive_gpio_probe() 248 girq->parent_domain = parent; in sifive_gpio_probe() 249 girq->child_to_parent_hwirq = sifive_gpio_child_to_parent_hwirq; in sifive_gpio_probe() 250 girq->handler = handle_bad_irq; in sifive_gpio_probe() 251 girq->default_type = IRQ_TYPE_NONE; in sifive_gpio_probe()
|
D | gpio-crystalcove.c | 337 struct gpio_irq_chip *girq; in crystalcove_gpio_probe() local 359 girq = &cg->chip.irq; in crystalcove_gpio_probe() 360 gpio_irq_chip_set_chip(girq, &crystalcove_irqchip); in crystalcove_gpio_probe() 362 girq->parent_handler = NULL; in crystalcove_gpio_probe() 363 girq->num_parents = 0; in crystalcove_gpio_probe() 364 girq->parents = NULL; in crystalcove_gpio_probe() 365 girq->default_type = IRQ_TYPE_NONE; in crystalcove_gpio_probe() 366 girq->handler = handle_simple_irq; in crystalcove_gpio_probe() 367 girq->threaded = true; in crystalcove_gpio_probe()
|
D | gpio-graniterapids.c | 290 struct gpio_irq_chip *girq; in gnr_gpio_probe() local 325 girq = &priv->gc.irq; in gnr_gpio_probe() 326 gpio_irq_chip_set_chip(girq, &gnr_gpio_irq_chip); in gnr_gpio_probe() 327 girq->chip->name = dev_name(dev); in gnr_gpio_probe() 328 girq->parent_handler = NULL; in gnr_gpio_probe() 329 girq->num_parents = 0; in gnr_gpio_probe() 330 girq->parents = NULL; in gnr_gpio_probe() 331 girq->default_type = IRQ_TYPE_NONE; in gnr_gpio_probe() 332 girq->handler = handle_bad_irq; in gnr_gpio_probe()
|
D | gpio-pl061.c | 312 struct gpio_irq_chip *girq; in pl061_probe() local 346 girq = &pl061->gc.irq; in pl061_probe() 347 gpio_irq_chip_set_chip(girq, &pl061_irq_chip); in pl061_probe() 348 girq->parent_handler = pl061_irq_handler; in pl061_probe() 349 girq->num_parents = 1; in pl061_probe() 350 girq->parents = devm_kcalloc(dev, 1, sizeof(*girq->parents), in pl061_probe() 352 if (!girq->parents) in pl061_probe() 354 girq->parents[0] = irq; in pl061_probe() 355 girq->default_type = IRQ_TYPE_NONE; in pl061_probe() 356 girq->handler = handle_bad_irq; in pl061_probe()
|
/linux-6.12.1/drivers/platform/x86/intel/ |
D | int0002_vgpio.c | 162 struct gpio_irq_chip *girq; in int0002_probe() local 205 girq = &chip->irq; in int0002_probe() 206 girq->chip = &int0002_irqchip; in int0002_probe() 208 girq->parent_handler = NULL; in int0002_probe() 209 girq->num_parents = 0; in int0002_probe() 210 girq->parents = NULL; in int0002_probe() 211 girq->default_type = IRQ_TYPE_NONE; in int0002_probe() 212 girq->handler = handle_edge_irq; in int0002_probe()
|
/linux-6.12.1/drivers/pinctrl/ |
D | pinctrl-apple-gpio.c | 368 struct gpio_irq_chip *girq = &pctl->gpio_chip.irq; in apple_gpio_register() local 384 if (girq->num_parents) { in apple_gpio_register() 387 gpio_irq_chip_set_chip(girq, &apple_gpio_irqchip); in apple_gpio_register() 388 girq->parent_handler = apple_gpio_irq_handler; in apple_gpio_register() 390 girq->parents = kmalloc_array(girq->num_parents, in apple_gpio_register() 391 sizeof(*girq->parents), in apple_gpio_register() 393 irq_data = kmalloc_array(girq->num_parents, sizeof(*irq_data), in apple_gpio_register() 395 if (!girq->parents || !irq_data) { in apple_gpio_register() 400 for (i = 0; i < girq->num_parents; i++) { in apple_gpio_register() 405 girq->parents[i] = ret; in apple_gpio_register() [all …]
|
/linux-6.12.1/drivers/bcma/ |
D | driver_gpio.c | 131 struct gpio_irq_chip *girq = &chip->irq; in bcma_gpio_irq_init() local 146 gpio_irq_chip_set_chip(girq, &bcma_gpio_irq_chip); in bcma_gpio_irq_init() 148 girq->parent_handler = NULL; in bcma_gpio_irq_init() 149 girq->num_parents = 0; in bcma_gpio_irq_init() 150 girq->parents = NULL; in bcma_gpio_irq_init() 151 girq->default_type = IRQ_TYPE_NONE; in bcma_gpio_irq_init() 152 girq->handler = handle_simple_irq; in bcma_gpio_irq_init()
|