irqd 42 arch/mips/loongson64/loongson-3/irq.c struct irq_data *irqd; irqd 58 arch/mips/loongson64/loongson-3/irq.c irqd = irq_get_irq_data(ht_irq[i]); irqd 59 arch/mips/loongson64/loongson-3/irq.c cpumask_and(&affinity, irqd->common->affinity, cpu_active_mask); irqd 336 arch/mips/pci/pci-xtalk-bridge.c struct irq_data *irqd = irq_domain_get_irq_data(domain, virq); irqd 341 arch/mips/pci/pci-xtalk-bridge.c kfree(irqd->chip_data); irqd 346 arch/mips/pci/pci-xtalk-bridge.c struct irq_data *irqd, bool reserve) irqd 348 arch/mips/pci/pci-xtalk-bridge.c struct bridge_irq_chip_data *data = irqd->chip_data; irqd 350 arch/mips/pci/pci-xtalk-bridge.c int bit = irqd->parent_data->hwirq; irqd 351 arch/mips/pci/pci-xtalk-bridge.c int pin = irqd->hwirq; irqd 383 arch/mips/pci/pci-xtalk-bridge.c struct irq_data *irqd) irqd 385 arch/mips/pci/pci-xtalk-bridge.c struct bridge_irq_chip_data *data = irqd->chip_data; irqd 387 arch/mips/pci/pci-xtalk-bridge.c bridge_clr(data->bc, b_int_enable, (1 << irqd->hwirq)); irqd 160 arch/mips/sgi-ip27/ip27-irq.c struct irq_data *irqd; irqd 165 arch/mips/sgi-ip27/ip27-irq.c irqd = irq_domain_get_irq_data(domain, virq); irqd 166 arch/mips/sgi-ip27/ip27-irq.c if (irqd && irqd->chip_data) irqd 167 arch/mips/sgi-ip27/ip27-irq.c kfree(irqd->chip_data); irqd 65 arch/powerpc/sysdev/fsl_msi.c static void fsl_msi_print_chip(struct irq_data *irqd, struct seq_file *p) irqd 67 arch/powerpc/sysdev/fsl_msi.c struct fsl_msi *msi_data = irqd->domain->host_data; irqd 68 arch/powerpc/sysdev/fsl_msi.c irq_hw_number_t hwirq = irqd_to_hwirq(irqd); irqd 1865 arch/x86/kernel/apic/io_apic.c static void ioapic_configure_entry(struct irq_data *irqd) irqd 1867 arch/x86/kernel/apic/io_apic.c struct mp_chip_data *mpd = irqd->chip_data; irqd 1868 arch/x86/kernel/apic/io_apic.c struct irq_cfg *cfg = irqd_cfg(irqd); irqd 1876 arch/x86/kernel/apic/io_apic.c if (irqd->chip == &ioapic_chip) { irqd 1914 arch/x86/kernel/apic/io_apic.c static int ioapic_irq_get_chip_state(struct irq_data *irqd, irqd 1918 arch/x86/kernel/apic/io_apic.c struct mp_chip_data *mcd = irqd->chip_data; irqd 53 arch/x86/kernel/apic/msi.c static void irq_msi_update_msg(struct irq_data *irqd, struct irq_cfg *cfg) irqd 58 arch/x86/kernel/apic/msi.c irq_data_get_irq_chip(irqd)->irq_write_msi_msg(irqd, msg); irqd 62 arch/x86/kernel/apic/msi.c msi_set_affinity(struct irq_data *irqd, const struct cpumask *mask, bool force) irqd 64 arch/x86/kernel/apic/msi.c struct irq_cfg old_cfg, *cfg = irqd_cfg(irqd); irqd 65 arch/x86/kernel/apic/msi.c struct irq_data *parent = irqd->parent_data; irqd 70 arch/x86/kernel/apic/msi.c cpu = cpumask_first(irq_data_get_effective_affinity_mask(irqd)); irqd 91 arch/x86/kernel/apic/msi.c if (!irqd_msi_nomask_quirk(irqd) || irqd 95 arch/x86/kernel/apic/msi.c irq_msi_update_msg(irqd, cfg); irqd 104 arch/x86/kernel/apic/msi.c irq_msi_update_msg(irqd, cfg); irqd 140 arch/x86/kernel/apic/msi.c irq_msi_update_msg(irqd, &old_cfg); irqd 143 arch/x86/kernel/apic/msi.c irq_msi_update_msg(irqd, cfg); irqd 164 arch/x86/kernel/apic/msi.c irq_data_get_irq_chip(irqd)->irq_retrigger(irqd); irqd 78 arch/x86/kernel/apic/vector.c static struct apic_chip_data *apic_chip_data(struct irq_data *irqd) irqd 80 arch/x86/kernel/apic/vector.c if (!irqd) irqd 83 arch/x86/kernel/apic/vector.c while (irqd->parent_data) irqd 84 arch/x86/kernel/apic/vector.c irqd = irqd->parent_data; irqd 86 arch/x86/kernel/apic/vector.c return irqd->chip_data; irqd 89 arch/x86/kernel/apic/vector.c struct irq_cfg *irqd_cfg(struct irq_data *irqd) irqd 91 arch/x86/kernel/apic/vector.c struct apic_chip_data *apicd = apic_chip_data(irqd); irqd 117 arch/x86/kernel/apic/vector.c static void apic_update_irq_cfg(struct irq_data *irqd, unsigned int vector, irqd 120 arch/x86/kernel/apic/vector.c struct apic_chip_data *apicd = apic_chip_data(irqd); irqd 126 arch/x86/kernel/apic/vector.c irq_data_update_effective_affinity(irqd, cpumask_of(cpu)); irqd 127 arch/x86/kernel/apic/vector.c trace_vector_config(irqd->irq, vector, cpu, irqd 131 arch/x86/kernel/apic/vector.c static void apic_update_vector(struct irq_data *irqd, unsigned int newvec, irqd 134 arch/x86/kernel/apic/vector.c struct apic_chip_data *apicd = apic_chip_data(irqd); irqd 135 arch/x86/kernel/apic/vector.c struct irq_desc *desc = irq_data_to_desc(irqd); irqd 136 arch/x86/kernel/apic/vector.c bool managed = irqd_affinity_is_managed(irqd); irqd 140 arch/x86/kernel/apic/vector.c trace_vector_update(irqd->irq, newvec, newcpu, apicd->vector, irqd 176 arch/x86/kernel/apic/vector.c static void vector_assign_managed_shutdown(struct irq_data *irqd) irqd 180 arch/x86/kernel/apic/vector.c apic_update_irq_cfg(irqd, MANAGED_IRQ_SHUTDOWN_VECTOR, cpu); irqd 183 arch/x86/kernel/apic/vector.c static int reserve_managed_vector(struct irq_data *irqd) irqd 185 arch/x86/kernel/apic/vector.c const struct cpumask *affmsk = irq_data_get_affinity_mask(irqd); irqd 186 arch/x86/kernel/apic/vector.c struct apic_chip_data *apicd = apic_chip_data(irqd); irqd 194 arch/x86/kernel/apic/vector.c trace_vector_reserve_managed(irqd->irq, ret); irqd 198 arch/x86/kernel/apic/vector.c static void reserve_irq_vector_locked(struct irq_data *irqd) irqd 200 arch/x86/kernel/apic/vector.c struct apic_chip_data *apicd = apic_chip_data(irqd); irqd 205 arch/x86/kernel/apic/vector.c irqd_set_can_reserve(irqd); irqd 206 arch/x86/kernel/apic/vector.c trace_vector_reserve(irqd->irq, 0); irqd 207 arch/x86/kernel/apic/vector.c vector_assign_managed_shutdown(irqd); irqd 210 arch/x86/kernel/apic/vector.c static int reserve_irq_vector(struct irq_data *irqd) irqd 215 arch/x86/kernel/apic/vector.c reserve_irq_vector_locked(irqd); irqd 221 arch/x86/kernel/apic/vector.c assign_vector_locked(struct irq_data *irqd, const struct cpumask *dest) irqd 223 arch/x86/kernel/apic/vector.c struct apic_chip_data *apicd = apic_chip_data(irqd); irqd 248 arch/x86/kernel/apic/vector.c trace_vector_alloc(irqd->irq, vector, resvd, vector); irqd 251 arch/x86/kernel/apic/vector.c apic_update_vector(irqd, vector, cpu); irqd 252 arch/x86/kernel/apic/vector.c apic_update_irq_cfg(irqd, vector, cpu); irqd 257 arch/x86/kernel/apic/vector.c static int assign_irq_vector(struct irq_data *irqd, const struct cpumask *dest) irqd 264 arch/x86/kernel/apic/vector.c ret = assign_vector_locked(irqd, vector_searchmask); irqd 269 arch/x86/kernel/apic/vector.c static int assign_irq_vector_any_locked(struct irq_data *irqd) irqd 272 arch/x86/kernel/apic/vector.c const struct cpumask *affmsk = irq_data_get_affinity_mask(irqd); irqd 273 arch/x86/kernel/apic/vector.c int node = irq_data_get_node(irqd); irqd 279 arch/x86/kernel/apic/vector.c if (!assign_vector_locked(irqd, vector_searchmask)) irqd 282 arch/x86/kernel/apic/vector.c if (!assign_vector_locked(irqd, cpumask_of_node(node))) irqd 287 arch/x86/kernel/apic/vector.c if (!assign_vector_locked(irqd, vector_searchmask)) irqd 290 arch/x86/kernel/apic/vector.c return assign_vector_locked(irqd, cpu_online_mask); irqd 294 arch/x86/kernel/apic/vector.c assign_irq_vector_policy(struct irq_data *irqd, struct irq_alloc_info *info) irqd 296 arch/x86/kernel/apic/vector.c if (irqd_affinity_is_managed(irqd)) irqd 297 arch/x86/kernel/apic/vector.c return reserve_managed_vector(irqd); irqd 299 arch/x86/kernel/apic/vector.c return assign_irq_vector(irqd, info->mask); irqd 304 arch/x86/kernel/apic/vector.c return reserve_irq_vector(irqd); irqd 308 arch/x86/kernel/apic/vector.c assign_managed_vector(struct irq_data *irqd, const struct cpumask *dest) irqd 310 arch/x86/kernel/apic/vector.c const struct cpumask *affmsk = irq_data_get_affinity_mask(irqd); irqd 311 arch/x86/kernel/apic/vector.c struct apic_chip_data *apicd = apic_chip_data(irqd); irqd 321 arch/x86/kernel/apic/vector.c trace_vector_alloc_managed(irqd->irq, vector, vector); irqd 324 arch/x86/kernel/apic/vector.c apic_update_vector(irqd, vector, cpu); irqd 325 arch/x86/kernel/apic/vector.c apic_update_irq_cfg(irqd, vector, cpu); irqd 329 arch/x86/kernel/apic/vector.c static void clear_irq_vector(struct irq_data *irqd) irqd 331 arch/x86/kernel/apic/vector.c struct apic_chip_data *apicd = apic_chip_data(irqd); irqd 332 arch/x86/kernel/apic/vector.c bool managed = irqd_affinity_is_managed(irqd); irqd 340 arch/x86/kernel/apic/vector.c trace_vector_clear(irqd->irq, vector, apicd->cpu, apicd->prev_vector, irqd 359 arch/x86/kernel/apic/vector.c static void x86_vector_deactivate(struct irq_domain *dom, struct irq_data *irqd) irqd 361 arch/x86/kernel/apic/vector.c struct apic_chip_data *apicd = apic_chip_data(irqd); irqd 364 arch/x86/kernel/apic/vector.c trace_vector_deactivate(irqd->irq, apicd->is_managed, irqd 375 arch/x86/kernel/apic/vector.c clear_irq_vector(irqd); irqd 377 arch/x86/kernel/apic/vector.c reserve_irq_vector_locked(irqd); irqd 379 arch/x86/kernel/apic/vector.c vector_assign_managed_shutdown(irqd); irqd 383 arch/x86/kernel/apic/vector.c static int activate_reserved(struct irq_data *irqd) irqd 385 arch/x86/kernel/apic/vector.c struct apic_chip_data *apicd = apic_chip_data(irqd); irqd 388 arch/x86/kernel/apic/vector.c ret = assign_irq_vector_any_locked(irqd); irqd 398 arch/x86/kernel/apic/vector.c if (!irqd_can_reserve(irqd)) irqd 406 arch/x86/kernel/apic/vector.c if (!cpumask_subset(irq_data_get_effective_affinity_mask(irqd), irqd 407 arch/x86/kernel/apic/vector.c irq_data_get_affinity_mask(irqd))) { irqd 409 arch/x86/kernel/apic/vector.c irqd->irq); irqd 415 arch/x86/kernel/apic/vector.c static int activate_managed(struct irq_data *irqd) irqd 417 arch/x86/kernel/apic/vector.c const struct cpumask *dest = irq_data_get_affinity_mask(irqd); irqd 423 arch/x86/kernel/apic/vector.c pr_err("Managed startup for irq %u, but no CPU\n", irqd->irq); irqd 427 arch/x86/kernel/apic/vector.c ret = assign_managed_vector(irqd, vector_searchmask); irqd 434 arch/x86/kernel/apic/vector.c irqd->irq); irqd 439 arch/x86/kernel/apic/vector.c static int x86_vector_activate(struct irq_domain *dom, struct irq_data *irqd, irqd 442 arch/x86/kernel/apic/vector.c struct apic_chip_data *apicd = apic_chip_data(irqd); irqd 446 arch/x86/kernel/apic/vector.c trace_vector_activate(irqd->irq, apicd->is_managed, irqd 454 arch/x86/kernel/apic/vector.c if (reserve || irqd_is_managed_and_shutdown(irqd)) irqd 455 arch/x86/kernel/apic/vector.c vector_assign_managed_shutdown(irqd); irqd 457 arch/x86/kernel/apic/vector.c ret = activate_managed(irqd); irqd 459 arch/x86/kernel/apic/vector.c ret = activate_reserved(irqd); irqd 464 arch/x86/kernel/apic/vector.c static void vector_free_reserved_and_managed(struct irq_data *irqd) irqd 466 arch/x86/kernel/apic/vector.c const struct cpumask *dest = irq_data_get_affinity_mask(irqd); irqd 467 arch/x86/kernel/apic/vector.c struct apic_chip_data *apicd = apic_chip_data(irqd); irqd 469 arch/x86/kernel/apic/vector.c trace_vector_teardown(irqd->irq, apicd->is_managed, irqd 482 arch/x86/kernel/apic/vector.c struct irq_data *irqd; irqd 487 arch/x86/kernel/apic/vector.c irqd = irq_domain_get_irq_data(x86_vector_domain, virq + i); irqd 488 arch/x86/kernel/apic/vector.c if (irqd && irqd->chip_data) { irqd 490 arch/x86/kernel/apic/vector.c clear_irq_vector(irqd); irqd 491 arch/x86/kernel/apic/vector.c vector_free_reserved_and_managed(irqd); irqd 492 arch/x86/kernel/apic/vector.c apicd = irqd->chip_data; irqd 493 arch/x86/kernel/apic/vector.c irq_domain_reset_irq_data(irqd); irqd 500 arch/x86/kernel/apic/vector.c static bool vector_configure_legacy(unsigned int virq, struct irq_data *irqd, irqd 514 arch/x86/kernel/apic/vector.c if (irqd_is_activated(irqd)) { irqd 516 arch/x86/kernel/apic/vector.c apic_update_irq_cfg(irqd, apicd->vector, apicd->cpu); irqd 520 arch/x86/kernel/apic/vector.c irqd_set_can_reserve(irqd); irqd 521 arch/x86/kernel/apic/vector.c clear_irq_vector(irqd); irqd 533 arch/x86/kernel/apic/vector.c struct irq_data *irqd; irqd 544 arch/x86/kernel/apic/vector.c irqd = irq_domain_get_irq_data(domain, virq + i); irqd 545 arch/x86/kernel/apic/vector.c BUG_ON(!irqd); irqd 546 arch/x86/kernel/apic/vector.c node = irq_data_get_node(irqd); irqd 547 arch/x86/kernel/apic/vector.c WARN_ON_ONCE(irqd->chip_data); irqd 555 arch/x86/kernel/apic/vector.c irqd->chip = &lapic_controller; irqd 556 arch/x86/kernel/apic/vector.c irqd->chip_data = apicd; irqd 557 arch/x86/kernel/apic/vector.c irqd->hwirq = virq + i; irqd 558 arch/x86/kernel/apic/vector.c irqd_set_single_target(irqd); irqd 567 arch/x86/kernel/apic/vector.c if (!vector_configure_legacy(virq + i, irqd, apicd)) irqd 571 arch/x86/kernel/apic/vector.c err = assign_irq_vector_policy(irqd, info); irqd 574 arch/x86/kernel/apic/vector.c irqd->chip_data = NULL; irqd 589 arch/x86/kernel/apic/vector.c struct irq_data *irqd, int ind) irqd 595 arch/x86/kernel/apic/vector.c if (!irqd) { irqd 600 arch/x86/kernel/apic/vector.c irq = irqd->irq; irqd 607 arch/x86/kernel/apic/vector.c if (!irqd->chip_data) { irqd 613 arch/x86/kernel/apic/vector.c memcpy(&apicd, irqd->chip_data, sizeof(apicd)); irqd 769 arch/x86/kernel/apic/vector.c static int apic_set_affinity(struct irq_data *irqd, irqd 772 arch/x86/kernel/apic/vector.c struct apic_chip_data *apicd = apic_chip_data(irqd); irqd 783 arch/x86/kernel/apic/vector.c if (!irqd_is_activated(irqd) && irqd 789 arch/x86/kernel/apic/vector.c if (irqd_affinity_is_managed(irqd)) irqd 790 arch/x86/kernel/apic/vector.c err = assign_managed_vector(irqd, vector_searchmask); irqd 792 arch/x86/kernel/apic/vector.c err = assign_vector_locked(irqd, vector_searchmask); irqd 801 arch/x86/kernel/apic/vector.c static int apic_retrigger_irq(struct irq_data *irqd) irqd 803 arch/x86/kernel/apic/vector.c struct apic_chip_data *apicd = apic_chip_data(irqd); irqd 813 arch/x86/kernel/apic/vector.c void apic_ack_irq(struct irq_data *irqd) irqd 815 arch/x86/kernel/apic/vector.c irq_move_irq(irqd); irqd 819 arch/x86/kernel/apic/vector.c void apic_ack_edge(struct irq_data *irqd) irqd 821 arch/x86/kernel/apic/vector.c irq_complete_move(irqd_cfg(irqd)); irqd 822 arch/x86/kernel/apic/vector.c apic_ack_irq(irqd); irqd 938 arch/x86/kernel/apic/vector.c struct irq_data *irqd; irqd 950 arch/x86/kernel/apic/vector.c irqd = irq_domain_get_irq_data(x86_vector_domain, irqd 952 arch/x86/kernel/apic/vector.c if (!irqd) irqd 956 arch/x86/kernel/apic/vector.c apicd = apic_chip_data(irqd); irqd 1016 arch/x86/kernel/apic/vector.c irqd->irq, vector); irqd 119 drivers/base/platform.c struct irq_data *irqd; irqd 121 drivers/base/platform.c irqd = irq_get_irq_data(r->start); irqd 122 drivers/base/platform.c if (!irqd) irqd 124 drivers/base/platform.c irqd_set_trigger_type(irqd, r->flags & IORESOURCE_BITS); irqd 302 drivers/gpio/gpio-dln2.c static void dln2_irq_unmask(struct irq_data *irqd) irqd 304 drivers/gpio/gpio-dln2.c struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); irqd 306 drivers/gpio/gpio-dln2.c int pin = irqd_to_hwirq(irqd); irqd 311 drivers/gpio/gpio-dln2.c static void dln2_irq_mask(struct irq_data *irqd) irqd 313 drivers/gpio/gpio-dln2.c struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); irqd 315 drivers/gpio/gpio-dln2.c int pin = irqd_to_hwirq(irqd); irqd 320 drivers/gpio/gpio-dln2.c static int dln2_irq_set_type(struct irq_data *irqd, unsigned type) irqd 322 drivers/gpio/gpio-dln2.c struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); irqd 324 drivers/gpio/gpio-dln2.c int pin = irqd_to_hwirq(irqd); irqd 349 drivers/gpio/gpio-dln2.c static void dln2_irq_bus_lock(struct irq_data *irqd) irqd 351 drivers/gpio/gpio-dln2.c struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); irqd 357 drivers/gpio/gpio-dln2.c static void dln2_irq_bus_unlock(struct irq_data *irqd) irqd 359 drivers/gpio/gpio-dln2.c struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); irqd 361 drivers/gpio/gpio-dln2.c int pin = irqd_to_hwirq(irqd); irqd 56 drivers/gpio/gpio-thunderx.c struct irq_domain *irqd; irqd 446 drivers/gpio/gpio-thunderx.c return irq_find_mapping(txgpio->irqd, offset); irqd 546 drivers/gpio/gpio-thunderx.c txgpio->irqd = irq_domain_create_hierarchy(irq_get_irq_data(txgpio->msix_entries[0].vector)->domain, irqd 549 drivers/gpio/gpio-thunderx.c if (!txgpio->irqd) { irqd 556 drivers/gpio/gpio-thunderx.c err = irq_domain_push_irq(txgpio->irqd, irqd 596 drivers/gpio/gpio-thunderx.c irq_domain_pop_irq(txgpio->irqd, irqd 599 drivers/gpio/gpio-thunderx.c irq_domain_remove(txgpio->irqd); irqd 569 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c static void amdgpu_irq_mask(struct irq_data *irqd) irqd 574 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c static void amdgpu_irq_unmask(struct irq_data *irqd) irqd 100 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c static void dpu_mdss_irq_mask(struct irq_data *irqd) irqd 102 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c struct dpu_mdss *dpu_mdss = irq_data_get_irq_chip_data(irqd); irqd 106 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c clear_bit(irqd->hwirq, &dpu_mdss->irq_controller.enabled_mask); irqd 111 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c static void dpu_mdss_irq_unmask(struct irq_data *irqd) irqd 113 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c struct dpu_mdss *dpu_mdss = irq_data_get_irq_chip_data(irqd); irqd 117 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c set_bit(irqd->hwirq, &dpu_mdss->irq_controller.enabled_mask); irqd 72 drivers/gpu/drm/msm/disp/mdp5/mdp5_mdss.c static void mdss_hw_mask_irq(struct irq_data *irqd) irqd 74 drivers/gpu/drm/msm/disp/mdp5/mdp5_mdss.c struct mdp5_mdss *mdp5_mdss = irq_data_get_irq_chip_data(irqd); irqd 77 drivers/gpu/drm/msm/disp/mdp5/mdp5_mdss.c clear_bit(irqd->hwirq, &mdp5_mdss->irqcontroller.enabled_mask); irqd 81 drivers/gpu/drm/msm/disp/mdp5/mdp5_mdss.c static void mdss_hw_unmask_irq(struct irq_data *irqd) irqd 83 drivers/gpu/drm/msm/disp/mdp5/mdp5_mdss.c struct mdp5_mdss *mdp5_mdss = irq_data_get_irq_chip_data(irqd); irqd 86 drivers/gpu/drm/msm/disp/mdp5/mdp5_mdss.c set_bit(irqd->hwirq, &mdp5_mdss->irqcontroller.enabled_mask); irqd 702 drivers/i2c/i2c-core-base.c struct irq_data *irqd; irqd 712 drivers/i2c/i2c-core-base.c irqd = irq_get_irq_data(r->start); irqd 713 drivers/i2c/i2c-core-base.c if (!irqd) irqd 716 drivers/i2c/i2c-core-base.c irqd_set_trigger_type(irqd, r->flags & IORESOURCE_BITS); irqd 683 drivers/ide/ide-probe.c unsigned int irqd; irqd 696 drivers/ide/ide-probe.c irqd = hwif->irq; irqd 697 drivers/ide/ide-probe.c if (irqd) irqd 717 drivers/ide/ide-probe.c if (irqd) irqd 718 drivers/ide/ide-probe.c enable_irq(irqd); irqd 4365 drivers/iommu/amd_iommu.c static void amd_ir_update_irte(struct irq_data *irqd, struct amd_iommu *iommu, irqd 4512 drivers/iommu/amd_iommu.c static void amd_ir_update_irte(struct irq_data *irqd, struct amd_iommu *iommu, irqd 1152 drivers/iommu/intel_irq_remapping.c static void intel_ir_reconfigure_irte(struct irq_data *irqd, bool force) irqd 1154 drivers/iommu/intel_irq_remapping.c struct intel_ir_data *ir_data = irqd->chip_data; irqd 1156 drivers/iommu/intel_irq_remapping.c struct irq_cfg *cfg = irqd_cfg(irqd); irqd 56 drivers/irqchip/irq-eznps.c static void nps400_irq_mask(struct irq_data *irqd) irqd 59 drivers/irqchip/irq-eznps.c unsigned int irq = irqd_to_hwirq(irqd); irqd 66 drivers/irqchip/irq-eznps.c static void nps400_irq_unmask(struct irq_data *irqd) irqd 69 drivers/irqchip/irq-eznps.c unsigned int irq = irqd_to_hwirq(irqd); irqd 76 drivers/irqchip/irq-eznps.c static void nps400_irq_eoi_global(struct irq_data *irqd) irqd 78 drivers/irqchip/irq-eznps.c unsigned int __maybe_unused irq = irqd_to_hwirq(irqd); irqd 88 drivers/irqchip/irq-eznps.c static void nps400_irq_ack(struct irq_data *irqd) irqd 90 drivers/irqchip/irq-eznps.c unsigned int __maybe_unused irq = irqd_to_hwirq(irqd); irqd 39 drivers/irqchip/irq-keystone.c struct irq_domain *irqd; irqd 107 drivers/irqchip/irq-keystone.c virq = irq_find_mapping(kirq->irqd, src); irqd 177 drivers/irqchip/irq-keystone.c kirq->irqd = irq_domain_add_linear(np, KEYSTONE_N_IRQ, irqd 179 drivers/irqchip/irq-keystone.c if (!kirq->irqd) { irqd 191 drivers/irqchip/irq-keystone.c irq_domain_remove(kirq->irqd); irqd 211 drivers/irqchip/irq-keystone.c irq_dispose_mapping(irq_find_mapping(kirq->irqd, hwirq)); irqd 213 drivers/irqchip/irq-keystone.c irq_domain_remove(kirq->irqd); irqd 49 drivers/irqchip/irq-sun4i.c static void sun4i_irq_ack(struct irq_data *irqd) irqd 51 drivers/irqchip/irq-sun4i.c unsigned int irq = irqd_to_hwirq(irqd); irqd 59 drivers/irqchip/irq-sun4i.c static void sun4i_irq_mask(struct irq_data *irqd) irqd 61 drivers/irqchip/irq-sun4i.c unsigned int irq = irqd_to_hwirq(irqd); irqd 72 drivers/irqchip/irq-sun4i.c static void sun4i_irq_unmask(struct irq_data *irqd) irqd 74 drivers/irqchip/irq-sun4i.c unsigned int irq = irqd_to_hwirq(irqd); irqd 39 drivers/irqchip/irq-zevio.c static void zevio_irq_ack(struct irq_data *irqd) irqd 41 drivers/irqchip/irq-zevio.c struct irq_chip_generic *gc = irq_data_get_irq_chip_data(irqd); irqd 42 drivers/irqchip/irq-zevio.c struct irq_chip_regs *regs = &irq_data_get_chip_type(irqd)->regs; irqd 64 drivers/mfd/lp8788-irq.c struct lp8788_irq_data *irqd = irq_data_get_irq_chip_data(data); irqd 66 drivers/mfd/lp8788-irq.c irqd->enabled[data->hwirq] = 1; irqd 71 drivers/mfd/lp8788-irq.c struct lp8788_irq_data *irqd = irq_data_get_irq_chip_data(data); irqd 73 drivers/mfd/lp8788-irq.c irqd->enabled[data->hwirq] = 0; irqd 78 drivers/mfd/lp8788-irq.c struct lp8788_irq_data *irqd = irq_data_get_irq_chip_data(data); irqd 80 drivers/mfd/lp8788-irq.c mutex_lock(&irqd->irq_lock); irqd 85 drivers/mfd/lp8788-irq.c struct lp8788_irq_data *irqd = irq_data_get_irq_chip_data(data); irqd 91 drivers/mfd/lp8788-irq.c val = _irq_to_val(irq, irqd->enabled[irq]); irqd 93 drivers/mfd/lp8788-irq.c lp8788_update_bits(irqd->lp, addr, mask, val); irqd 95 drivers/mfd/lp8788-irq.c mutex_unlock(&irqd->irq_lock); irqd 108 drivers/mfd/lp8788-irq.c struct lp8788_irq_data *irqd = ptr; irqd 109 drivers/mfd/lp8788-irq.c struct lp8788 *lp = irqd->lp; irqd 123 drivers/mfd/lp8788-irq.c handle_nested_irq(irq_find_mapping(irqd->domain, i)); irqd 134 drivers/mfd/lp8788-irq.c struct lp8788_irq_data *irqd = d->host_data; irqd 137 drivers/mfd/lp8788-irq.c irq_set_chip_data(virq, irqd); irqd 151 drivers/mfd/lp8788-irq.c struct lp8788_irq_data *irqd; irqd 159 drivers/mfd/lp8788-irq.c irqd = devm_kzalloc(lp->dev, sizeof(*irqd), GFP_KERNEL); irqd 160 drivers/mfd/lp8788-irq.c if (!irqd) irqd 163 drivers/mfd/lp8788-irq.c irqd->lp = lp; irqd 164 drivers/mfd/lp8788-irq.c irqd->domain = irq_domain_add_linear(lp->dev->of_node, LP8788_INT_MAX, irqd 165 drivers/mfd/lp8788-irq.c &lp8788_domain_ops, irqd); irqd 166 drivers/mfd/lp8788-irq.c if (!irqd->domain) { irqd 171 drivers/mfd/lp8788-irq.c lp->irqdm = irqd->domain; irqd 172 drivers/mfd/lp8788-irq.c mutex_init(&irqd->irq_lock); irqd 176 drivers/mfd/lp8788-irq.c "lp8788-irq", irqd); irqd 1905 drivers/net/usb/lan78xx.c static void lan78xx_irq_mask(struct irq_data *irqd) irqd 1907 drivers/net/usb/lan78xx.c struct irq_domain_data *data = irq_data_get_irq_chip_data(irqd); irqd 1909 drivers/net/usb/lan78xx.c data->irqenable &= ~BIT(irqd_to_hwirq(irqd)); irqd 1912 drivers/net/usb/lan78xx.c static void lan78xx_irq_unmask(struct irq_data *irqd) irqd 1914 drivers/net/usb/lan78xx.c struct irq_domain_data *data = irq_data_get_irq_chip_data(irqd); irqd 1916 drivers/net/usb/lan78xx.c data->irqenable |= BIT(irqd_to_hwirq(irqd)); irqd 1919 drivers/net/usb/lan78xx.c static void lan78xx_irq_bus_lock(struct irq_data *irqd) irqd 1921 drivers/net/usb/lan78xx.c struct irq_domain_data *data = irq_data_get_irq_chip_data(irqd); irqd 1926 drivers/net/usb/lan78xx.c static void lan78xx_irq_bus_sync_unlock(struct irq_data *irqd) irqd 1928 drivers/net/usb/lan78xx.c struct irq_domain_data *data = irq_data_get_irq_chip_data(irqd); irqd 1445 drivers/pinctrl/pinctrl-ingenic.c static void ingenic_gpio_irq_mask(struct irq_data *irqd) irqd 1447 drivers/pinctrl/pinctrl-ingenic.c struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); irqd 1450 drivers/pinctrl/pinctrl-ingenic.c ingenic_gpio_set_bit(jzgc, GPIO_MSK, irqd->hwirq, true); irqd 1453 drivers/pinctrl/pinctrl-ingenic.c static void ingenic_gpio_irq_unmask(struct irq_data *irqd) irqd 1455 drivers/pinctrl/pinctrl-ingenic.c struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); irqd 1458 drivers/pinctrl/pinctrl-ingenic.c ingenic_gpio_set_bit(jzgc, GPIO_MSK, irqd->hwirq, false); irqd 1461 drivers/pinctrl/pinctrl-ingenic.c static void ingenic_gpio_irq_enable(struct irq_data *irqd) irqd 1463 drivers/pinctrl/pinctrl-ingenic.c struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); irqd 1465 drivers/pinctrl/pinctrl-ingenic.c int irq = irqd->hwirq; irqd 1472 drivers/pinctrl/pinctrl-ingenic.c ingenic_gpio_irq_unmask(irqd); irqd 1475 drivers/pinctrl/pinctrl-ingenic.c static void ingenic_gpio_irq_disable(struct irq_data *irqd) irqd 1477 drivers/pinctrl/pinctrl-ingenic.c struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); irqd 1479 drivers/pinctrl/pinctrl-ingenic.c int irq = irqd->hwirq; irqd 1481 drivers/pinctrl/pinctrl-ingenic.c ingenic_gpio_irq_mask(irqd); irqd 1489 drivers/pinctrl/pinctrl-ingenic.c static void ingenic_gpio_irq_ack(struct irq_data *irqd) irqd 1491 drivers/pinctrl/pinctrl-ingenic.c struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); irqd 1493 drivers/pinctrl/pinctrl-ingenic.c int irq = irqd->hwirq; irqd 1496 drivers/pinctrl/pinctrl-ingenic.c if (irqd_get_trigger_type(irqd) == IRQ_TYPE_EDGE_BOTH) { irqd 1514 drivers/pinctrl/pinctrl-ingenic.c static int ingenic_gpio_irq_set_type(struct irq_data *irqd, unsigned int type) irqd 1516 drivers/pinctrl/pinctrl-ingenic.c struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); irqd 1523 drivers/pinctrl/pinctrl-ingenic.c irq_set_handler_locked(irqd, handle_edge_irq); irqd 1527 drivers/pinctrl/pinctrl-ingenic.c irq_set_handler_locked(irqd, handle_level_irq); irqd 1530 drivers/pinctrl/pinctrl-ingenic.c irq_set_handler_locked(irqd, handle_bad_irq); irqd 1539 drivers/pinctrl/pinctrl-ingenic.c bool high = ingenic_gpio_get_value(jzgc, irqd->hwirq); irqd 1544 drivers/pinctrl/pinctrl-ingenic.c irq_set_type(jzgc, irqd->hwirq, type); irqd 1548 drivers/pinctrl/pinctrl-ingenic.c static int ingenic_gpio_irq_set_wake(struct irq_data *irqd, unsigned int on) irqd 1550 drivers/pinctrl/pinctrl-ingenic.c struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); irqd 50 drivers/pinctrl/samsung/pinctrl-exynos.c static void exynos_irq_mask(struct irq_data *irqd) irqd 52 drivers/pinctrl/samsung/pinctrl-exynos.c struct irq_chip *chip = irq_data_get_irq_chip(irqd); irqd 54 drivers/pinctrl/samsung/pinctrl-exynos.c struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); irqd 62 drivers/pinctrl/samsung/pinctrl-exynos.c mask |= 1 << irqd->hwirq; irqd 68 drivers/pinctrl/samsung/pinctrl-exynos.c static void exynos_irq_ack(struct irq_data *irqd) irqd 70 drivers/pinctrl/samsung/pinctrl-exynos.c struct irq_chip *chip = irq_data_get_irq_chip(irqd); irqd 72 drivers/pinctrl/samsung/pinctrl-exynos.c struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); irqd 75 drivers/pinctrl/samsung/pinctrl-exynos.c writel(1 << irqd->hwirq, bank->eint_base + reg_pend); irqd 78 drivers/pinctrl/samsung/pinctrl-exynos.c static void exynos_irq_unmask(struct irq_data *irqd) irqd 80 drivers/pinctrl/samsung/pinctrl-exynos.c struct irq_chip *chip = irq_data_get_irq_chip(irqd); irqd 82 drivers/pinctrl/samsung/pinctrl-exynos.c struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); irqd 95 drivers/pinctrl/samsung/pinctrl-exynos.c if (irqd_get_trigger_type(irqd) & IRQ_TYPE_LEVEL_MASK) irqd 96 drivers/pinctrl/samsung/pinctrl-exynos.c exynos_irq_ack(irqd); irqd 101 drivers/pinctrl/samsung/pinctrl-exynos.c mask &= ~(1 << irqd->hwirq); irqd 107 drivers/pinctrl/samsung/pinctrl-exynos.c static int exynos_irq_set_type(struct irq_data *irqd, unsigned int type) irqd 109 drivers/pinctrl/samsung/pinctrl-exynos.c struct irq_chip *chip = irq_data_get_irq_chip(irqd); irqd 111 drivers/pinctrl/samsung/pinctrl-exynos.c struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); irqd 112 drivers/pinctrl/samsung/pinctrl-exynos.c unsigned int shift = EXYNOS_EINT_CON_LEN * irqd->hwirq; irqd 138 drivers/pinctrl/samsung/pinctrl-exynos.c irq_set_handler_locked(irqd, handle_edge_irq); irqd 140 drivers/pinctrl/samsung/pinctrl-exynos.c irq_set_handler_locked(irqd, handle_level_irq); irqd 150 drivers/pinctrl/samsung/pinctrl-exynos.c static int exynos_irq_request_resources(struct irq_data *irqd) irqd 152 drivers/pinctrl/samsung/pinctrl-exynos.c struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); irqd 158 drivers/pinctrl/samsung/pinctrl-exynos.c ret = gpiochip_lock_as_irq(&bank->gpio_chip, irqd->hwirq); irqd 162 drivers/pinctrl/samsung/pinctrl-exynos.c bank->name, irqd->hwirq); irqd 167 drivers/pinctrl/samsung/pinctrl-exynos.c shift = irqd->hwirq * bank_type->fld_width[PINCFG_TYPE_FUNC]; irqd 182 drivers/pinctrl/samsung/pinctrl-exynos.c static void exynos_irq_release_resources(struct irq_data *irqd) irqd 184 drivers/pinctrl/samsung/pinctrl-exynos.c struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); irqd 190 drivers/pinctrl/samsung/pinctrl-exynos.c shift = irqd->hwirq * bank_type->fld_width[PINCFG_TYPE_FUNC]; irqd 202 drivers/pinctrl/samsung/pinctrl-exynos.c gpiochip_unlock_as_irq(&bank->gpio_chip, irqd->hwirq); irqd 328 drivers/pinctrl/samsung/pinctrl-exynos.c static int exynos_wkup_irq_set_wake(struct irq_data *irqd, unsigned int on) irqd 330 drivers/pinctrl/samsung/pinctrl-exynos.c struct irq_chip *chip = irq_data_get_irq_chip(irqd); irqd 332 drivers/pinctrl/samsung/pinctrl-exynos.c struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); irqd 333 drivers/pinctrl/samsung/pinctrl-exynos.c unsigned long bit = 1UL << (2 * bank->eint_offset + irqd->hwirq); irqd 335 drivers/pinctrl/samsung/pinctrl-exynos.c pr_info("wake %s for irq %d\n", on ? "enabled" : "disabled", irqd->irq); irqd 303 drivers/pinctrl/samsung/pinctrl-s3c64xx.c static inline void s3c64xx_gpio_irq_set_mask(struct irq_data *irqd, bool mask) irqd 305 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); irqd 307 drivers/pinctrl/samsung/pinctrl-s3c64xx.c unsigned char index = EINT_OFFS(bank->eint_offset) + irqd->hwirq; irqd 319 drivers/pinctrl/samsung/pinctrl-s3c64xx.c static void s3c64xx_gpio_irq_unmask(struct irq_data *irqd) irqd 321 drivers/pinctrl/samsung/pinctrl-s3c64xx.c s3c64xx_gpio_irq_set_mask(irqd, false); irqd 324 drivers/pinctrl/samsung/pinctrl-s3c64xx.c static void s3c64xx_gpio_irq_mask(struct irq_data *irqd) irqd 326 drivers/pinctrl/samsung/pinctrl-s3c64xx.c s3c64xx_gpio_irq_set_mask(irqd, true); irqd 329 drivers/pinctrl/samsung/pinctrl-s3c64xx.c static void s3c64xx_gpio_irq_ack(struct irq_data *irqd) irqd 331 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); irqd 333 drivers/pinctrl/samsung/pinctrl-s3c64xx.c unsigned char index = EINT_OFFS(bank->eint_offset) + irqd->hwirq; irqd 339 drivers/pinctrl/samsung/pinctrl-s3c64xx.c static int s3c64xx_gpio_irq_set_type(struct irq_data *irqd, unsigned int type) irqd 341 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); irqd 354 drivers/pinctrl/samsung/pinctrl-s3c64xx.c s3c64xx_irq_set_handler(irqd, type); irqd 358 drivers/pinctrl/samsung/pinctrl-s3c64xx.c shift = EINT_OFFS(bank->eint_offset) + irqd->hwirq; irqd 366 drivers/pinctrl/samsung/pinctrl-s3c64xx.c s3c64xx_irq_set_function(d, bank, irqd->hwirq); irqd 510 drivers/pinctrl/samsung/pinctrl-s3c64xx.c static inline void s3c64xx_eint0_irq_set_mask(struct irq_data *irqd, bool mask) irqd 513 drivers/pinctrl/samsung/pinctrl-s3c64xx.c irq_data_get_irq_chip_data(irqd); irqd 519 drivers/pinctrl/samsung/pinctrl-s3c64xx.c val |= 1 << ddata->eints[irqd->hwirq]; irqd 521 drivers/pinctrl/samsung/pinctrl-s3c64xx.c val &= ~(1 << ddata->eints[irqd->hwirq]); irqd 525 drivers/pinctrl/samsung/pinctrl-s3c64xx.c static void s3c64xx_eint0_irq_unmask(struct irq_data *irqd) irqd 527 drivers/pinctrl/samsung/pinctrl-s3c64xx.c s3c64xx_eint0_irq_set_mask(irqd, false); irqd 530 drivers/pinctrl/samsung/pinctrl-s3c64xx.c static void s3c64xx_eint0_irq_mask(struct irq_data *irqd) irqd 532 drivers/pinctrl/samsung/pinctrl-s3c64xx.c s3c64xx_eint0_irq_set_mask(irqd, true); irqd 535 drivers/pinctrl/samsung/pinctrl-s3c64xx.c static void s3c64xx_eint0_irq_ack(struct irq_data *irqd) irqd 538 drivers/pinctrl/samsung/pinctrl-s3c64xx.c irq_data_get_irq_chip_data(irqd); irqd 541 drivers/pinctrl/samsung/pinctrl-s3c64xx.c writel(1 << ddata->eints[irqd->hwirq], irqd 545 drivers/pinctrl/samsung/pinctrl-s3c64xx.c static int s3c64xx_eint0_irq_set_type(struct irq_data *irqd, unsigned int type) irqd 548 drivers/pinctrl/samsung/pinctrl-s3c64xx.c irq_data_get_irq_chip_data(irqd); irqd 562 drivers/pinctrl/samsung/pinctrl-s3c64xx.c s3c64xx_irq_set_handler(irqd, type); irqd 566 drivers/pinctrl/samsung/pinctrl-s3c64xx.c shift = ddata->eints[irqd->hwirq]; irqd 578 drivers/pinctrl/samsung/pinctrl-s3c64xx.c s3c64xx_irq_set_function(d, bank, irqd->hwirq); irqd 242 drivers/soc/qcom/smp2p.c static void smp2p_mask_irq(struct irq_data *irqd) irqd 244 drivers/soc/qcom/smp2p.c struct smp2p_entry *entry = irq_data_get_irq_chip_data(irqd); irqd 245 drivers/soc/qcom/smp2p.c irq_hw_number_t irq = irqd_to_hwirq(irqd); irqd 250 drivers/soc/qcom/smp2p.c static void smp2p_unmask_irq(struct irq_data *irqd) irqd 252 drivers/soc/qcom/smp2p.c struct smp2p_entry *entry = irq_data_get_irq_chip_data(irqd); irqd 253 drivers/soc/qcom/smp2p.c irq_hw_number_t irq = irqd_to_hwirq(irqd); irqd 258 drivers/soc/qcom/smp2p.c static int smp2p_set_irq_type(struct irq_data *irqd, unsigned int type) irqd 260 drivers/soc/qcom/smp2p.c struct smp2p_entry *entry = irq_data_get_irq_chip_data(irqd); irqd 261 drivers/soc/qcom/smp2p.c irq_hw_number_t irq = irqd_to_hwirq(irqd); irqd 237 drivers/soc/qcom/smsm.c static void smsm_mask_irq(struct irq_data *irqd) irqd 239 drivers/soc/qcom/smsm.c struct smsm_entry *entry = irq_data_get_irq_chip_data(irqd); irqd 240 drivers/soc/qcom/smsm.c irq_hw_number_t irq = irqd_to_hwirq(irqd); irqd 262 drivers/soc/qcom/smsm.c static void smsm_unmask_irq(struct irq_data *irqd) irqd 264 drivers/soc/qcom/smsm.c struct smsm_entry *entry = irq_data_get_irq_chip_data(irqd); irqd 265 drivers/soc/qcom/smsm.c irq_hw_number_t irq = irqd_to_hwirq(irqd); irqd 283 drivers/soc/qcom/smsm.c static int smsm_set_irq_type(struct irq_data *irqd, unsigned int type) irqd 285 drivers/soc/qcom/smsm.c struct smsm_entry *entry = irq_data_get_irq_chip_data(irqd); irqd 286 drivers/soc/qcom/smsm.c irq_hw_number_t irq = irqd_to_hwirq(irqd); irqd 119 include/linux/irqdomain.h int (*activate)(struct irq_domain *d, struct irq_data *irqd, bool reserve); irqd 126 include/linux/irqdomain.h struct irq_data *irqd, int ind); irqd 1620 kernel/irq/irqdomain.c static int __irq_domain_activate_irq(struct irq_data *irqd, bool reserve) irqd 1624 kernel/irq/irqdomain.c if (irqd && irqd->domain) { irqd 1625 kernel/irq/irqdomain.c struct irq_domain *domain = irqd->domain; irqd 1627 kernel/irq/irqdomain.c if (irqd->parent_data) irqd 1628 kernel/irq/irqdomain.c ret = __irq_domain_activate_irq(irqd->parent_data, irqd 1631 kernel/irq/irqdomain.c ret = domain->ops->activate(domain, irqd, reserve); irqd 1633 kernel/irq/irqdomain.c if (ret && irqd->parent_data) irqd 1634 kernel/irq/irqdomain.c __irq_domain_deactivate_irq(irqd->parent_data); irqd 40 kernel/irq/manage.c struct irq_data *irqd = irq_desc_get_irq_data(desc); irqd 67 kernel/irq/manage.c __irq_get_irqchip_state(irqd, IRQCHIP_STATE_ACTIVE, irqd 480 kernel/irq/msi.c struct irq_data *irqd; irqd 485 kernel/irq/msi.c irqd = irq_domain_get_irq_data(domain, desc->irq); irqd 486 kernel/irq/msi.c if (irqd_is_activated(irqd)) irqd 487 kernel/irq/msi.c irq_domain_deactivate_irq(irqd);