/kernel/linux/linux-5.10/include/linux/ |
D | irq.h | 175 struct irq_data { struct 183 struct irq_data *parent_data; argument 252 static inline bool irqd_is_setaffinity_pending(struct irq_data *d) in irqd_is_setaffinity_pending() 257 static inline bool irqd_is_per_cpu(struct irq_data *d) in irqd_is_per_cpu() 262 static inline bool irqd_can_balance(struct irq_data *d) in irqd_can_balance() 267 static inline bool irqd_affinity_was_set(struct irq_data *d) in irqd_affinity_was_set() 272 static inline void irqd_mark_affinity_was_set(struct irq_data *d) in irqd_mark_affinity_was_set() 277 static inline bool irqd_trigger_type_was_set(struct irq_data *d) in irqd_trigger_type_was_set() 282 static inline u32 irqd_get_trigger_type(struct irq_data *d) in irqd_get_trigger_type() 291 static inline void irqd_set_trigger_type(struct irq_data *d, u32 type) in irqd_set_trigger_type() [all …]
|
D | irqdesc.h | 57 struct irq_data irq_data; member 116 static inline struct irq_desc *irq_data_to_desc(struct irq_data *data) in irq_data_to_desc() 123 return desc->irq_data.irq; in irq_desc_get_irq() 126 static inline struct irq_data *irq_desc_get_irq_data(struct irq_desc *desc) in irq_desc_get_irq_data() 128 return &desc->irq_data; in irq_desc_get_irq_data() 133 return desc->irq_data.chip; in irq_desc_get_chip() 138 return desc->irq_data.chip_data; in irq_desc_get_chip_data() 200 static inline void irq_set_handler_locked(struct irq_data *data, in irq_set_handler_locked() 221 irq_set_chip_handler_name_locked(struct irq_data *data, struct irq_chip *chip, in irq_set_chip_handler_name_locked()
|
/kernel/linux/linux-5.10/kernel/irq/ |
D | chip.c | 52 desc->irq_data.chip = chip; in irq_set_chip() 152 desc->irq_data.chip_data = data; in irq_set_chip_data() 158 struct irq_data *irq_get_irq_data(unsigned int irq) in irq_get_irq_data() 162 return desc ? &desc->irq_data : NULL; in irq_get_irq_data() 168 irqd_clear(&desc->irq_data, IRQD_IRQ_DISABLED); in irq_state_clr_disabled() 173 irqd_clear(&desc->irq_data, IRQD_IRQ_MASKED); in irq_state_clr_masked() 178 irqd_clear(&desc->irq_data, IRQD_IRQ_STARTED); in irq_state_clr_started() 183 irqd_set(&desc->irq_data, IRQD_IRQ_STARTED); in irq_state_set_started() 196 struct irq_data *d = irq_desc_get_irq_data(desc); in __irq_startup_managed() 238 struct irq_data *d = irq_desc_get_irq_data(desc); in __irq_startup() [all …]
|
D | irqdomain.c | 477 struct irq_data *irq_data) in irq_domain_set_mapping() argument 480 domain->linear_revmap[hwirq] = irq_data->irq; in irq_domain_set_mapping() 483 radix_tree_insert(&domain->revmap_tree, hwirq, irq_data); in irq_domain_set_mapping() 490 struct irq_data *irq_data = irq_get_irq_data(irq); in irq_domain_disassociate() local 493 if (WARN(!irq_data || irq_data->domain != domain, in irq_domain_disassociate() 497 hwirq = irq_data->hwirq; in irq_domain_disassociate() 511 irq_data->domain = NULL; in irq_domain_disassociate() 512 irq_data->hwirq = 0; in irq_domain_disassociate() 522 struct irq_data *irq_data = irq_get_irq_data(virq); in irq_domain_associate() local 528 if (WARN(!irq_data, "error: virq%i is not allocated", virq)) in irq_domain_associate() [all …]
|
D | internals.h | 104 extern int __irq_get_irqchip_state(struct irq_data *data, 137 extern int irq_do_set_affinity(struct irq_data *data, 149 if (unlikely(desc->irq_data.chip->irq_bus_lock)) in chip_bus_lock() 150 desc->irq_data.chip->irq_bus_lock(&desc->irq_data); in chip_bus_lock() 155 if (unlikely(desc->irq_data.chip->irq_bus_sync_unlock)) in chip_bus_sync_unlock() 156 desc->irq_data.chip->irq_bus_sync_unlock(&desc->irq_data); in chip_bus_sync_unlock() 199 static inline unsigned int irqd_get(struct irq_data *d) in irqd_get() 207 static inline void irqd_set_move_pending(struct irq_data *d) in irqd_set_move_pending() 212 static inline void irqd_clr_move_pending(struct irq_data *d) in irqd_clr_move_pending() 217 static inline void irqd_set_managed_shutdown(struct irq_data *d) in irqd_set_managed_shutdown() [all …]
|
D | msi.c | 73 static inline void irq_chip_write_msi_msg(struct irq_data *data, in irq_chip_write_msi_msg() 101 int msi_domain_set_affinity(struct irq_data *irq_data, in msi_domain_set_affinity() argument 104 struct irq_data *parent = irq_data->parent_data; in msi_domain_set_affinity() 110 BUG_ON(irq_chip_compose_msi_msg(irq_data, msg)); in msi_domain_set_affinity() 111 msi_check_level(irq_data->domain, msg); in msi_domain_set_affinity() 112 irq_chip_write_msi_msg(irq_data, msg); in msi_domain_set_affinity() 119 struct irq_data *irq_data, bool early) in msi_domain_activate() argument 123 BUG_ON(irq_chip_compose_msi_msg(irq_data, msg)); in msi_domain_activate() 124 msi_check_level(irq_data->domain, msg); in msi_domain_activate() 125 irq_chip_write_msi_msg(irq_data, msg); in msi_domain_activate() [all …]
|
D | manage.c | 41 struct irq_data *irqd = irq_desc_get_irq_data(desc); in __synchronize_hardirq() 51 while (irqd_irq_inprogress(&desc->irq_data)) in __synchronize_hardirq() 56 inprogress = irqd_irq_inprogress(&desc->irq_data); in __synchronize_hardirq() 149 if (!desc || !irqd_can_balance(&desc->irq_data) || in __irq_can_set_affinity() 150 !desc->irq_data.chip || !desc->irq_data.chip->irq_set_affinity) in __irq_can_set_affinity() 177 !irqd_affinity_is_managed(&desc->irq_data); in irq_can_set_affinity_usr() 199 static void irq_validate_effective_affinity(struct irq_data *data) in irq_validate_effective_affinity() 210 static inline void irq_init_effective_affinity(struct irq_data *data, in irq_init_effective_affinity() 216 static inline void irq_validate_effective_affinity(struct irq_data *data) { } in irq_validate_effective_affinity() 217 static inline void irq_init_effective_affinity(struct irq_data *data, in irq_init_effective_affinity() [all …]
|
D | pm.c | 18 if (irqd_is_wakeup_armed(&desc->irq_data)) { in irq_pm_check_wakeup() 19 irqd_clear(&desc->irq_data, IRQD_WAKEUP_ARMED); in irq_pm_check_wakeup() 73 struct irq_data *irqd = &desc->irq_data; in suspend_device_irq() 154 struct irq_data *irqd = &desc->irq_data; in resume_irq() 218 !irqd_is_wakeup_set(&desc->irq_data)) in rearm_wake_irq() 222 irqd_set(&desc->irq_data, IRQD_WAKEUP_ARMED); in rearm_wake_irq()
|
/kernel/linux/linux-5.10/arch/x86/platform/uv/ |
D | uv_irq.c | 48 static void uv_noop(struct irq_data *data) { } in uv_noop() 51 uv_set_irq_affinity(struct irq_data *data, const struct cpumask *mask, in uv_set_irq_affinity() 54 struct irq_data *parent = data->parent_data; in uv_set_irq_affinity() 80 struct irq_data *irq_data = irq_domain_get_irq_data(domain, virq); in uv_domain_alloc() local 87 irq_data_get_node(irq_data)); in uv_domain_alloc() 112 struct irq_data *irq_data = irq_domain_get_irq_data(domain, virq); in uv_domain_free() local 115 kfree(irq_data->chip_data); in uv_domain_free() 126 struct irq_data *irq_data, bool reserve) in uv_domain_activate() argument 128 uv_program_mmr(irqd_cfg(irq_data), irq_data->chip_data); in uv_domain_activate() 137 struct irq_data *irq_data) in uv_domain_deactivate() argument [all …]
|
/kernel/linux/linux-5.10/drivers/iommu/ |
D | hyperv-iommu.c | 38 static int hyperv_ir_set_affinity(struct irq_data *data, in hyperv_ir_set_affinity() 41 struct irq_data *parent = data->parent_data; in hyperv_ir_set_affinity() 73 struct irq_data *irq_data; in hyperv_irq_remapping_alloc() local 84 irq_data = irq_domain_get_irq_data(domain, virq); in hyperv_irq_remapping_alloc() 85 if (!irq_data) { in hyperv_irq_remapping_alloc() 90 irq_data->chip = &hyperv_ir_chip; in hyperv_irq_remapping_alloc() 104 irq_data->chip_data = info->ioapic.entry; in hyperv_irq_remapping_alloc() 110 desc = irq_data_to_desc(irq_data); in hyperv_irq_remapping_alloc() 123 struct irq_data *irq_data, bool reserve) in hyperv_irq_remapping_activate() argument 125 struct irq_cfg *cfg = irqd_cfg(irq_data); in hyperv_irq_remapping_activate() [all …]
|
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
D | prom_irqtrans.c | 117 struct sabre_irq_data *irq_data = _arg2; in sabre_wsync_handler() local 118 unsigned long controller_regs = irq_data->controller_regs; in sabre_wsync_handler() 225 struct sabre_irq_data *irq_data = _data; in sabre_irq_build() local 226 unsigned long controller_regs = irq_data->controller_regs; in sabre_irq_build() 263 (void *) irq_data); in sabre_irq_build() 272 struct sabre_irq_data *irq_data; in sabre_irq_trans_init() local 278 irq_data = prom_early_alloc(sizeof(struct sabre_irq_data)); in sabre_irq_trans_init() 281 irq_data->controller_regs = regs[0].phys_addr; in sabre_irq_trans_init() 284 irq_data->pci_first_busno = busrange[0]; in sabre_irq_trans_init() 286 dp->irq_trans->data = irq_data; in sabre_irq_trans_init() [all …]
|
/kernel/linux/linux-5.10/drivers/mfd/ |
D | rc5t583-irq.c | 140 static void rc5t583_irq_lock(struct irq_data *irq_data) in rc5t583_irq_lock() argument 142 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_lock() 146 static void rc5t583_irq_unmask(struct irq_data *irq_data) in rc5t583_irq_unmask() argument 148 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_unmask() 149 unsigned int __irq = irq_data->irq - rc5t583->irq_base; in rc5t583_irq_unmask() 157 static void rc5t583_irq_mask(struct irq_data *irq_data) in rc5t583_irq_mask() argument 159 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_mask() 160 unsigned int __irq = irq_data->irq - rc5t583->irq_base; in rc5t583_irq_mask() 170 static int rc5t583_irq_set_type(struct irq_data *irq_data, unsigned int type) in rc5t583_irq_set_type() argument 172 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_set_type() [all …]
|
D | max8925-core.c | 481 struct max8925_irq_data *irq_data; in max8925_irq() local 487 irq_data = &max8925_irqs[i]; in max8925_irq() 489 if (irq_data->tsc_irq) in max8925_irq() 491 if (irq_data->flags == FLAGS_RTC) in max8925_irq() 493 else if (irq_data->flags == FLAGS_ADC) in max8925_irq() 497 if (read_reg != irq_data->reg) { in max8925_irq() 498 read_reg = irq_data->reg; in max8925_irq() 499 value = max8925_reg_read(i2c, irq_data->reg); in max8925_irq() 501 if (value & irq_data->enable) in max8925_irq() 510 struct max8925_irq_data *irq_data; in max8925_tsc_irq() local [all …]
|
D | max8998-irq.c | 95 irq_to_max8998_irq(struct max8998_dev *max8998, struct irq_data *data) in irq_to_max8998_irq() 100 static void max8998_irq_lock(struct irq_data *data) in max8998_irq_lock() 107 static void max8998_irq_sync_unlock(struct irq_data *data) in max8998_irq_sync_unlock() 127 static void max8998_irq_unmask(struct irq_data *data) in max8998_irq_unmask() 130 struct max8998_irq_data *irq_data = irq_to_max8998_irq(max8998, data); in max8998_irq_unmask() local 132 max8998->irq_masks_cur[irq_data->reg - 1] &= ~irq_data->mask; in max8998_irq_unmask() 135 static void max8998_irq_mask(struct irq_data *data) in max8998_irq_mask() 138 struct max8998_irq_data *irq_data = irq_to_max8998_irq(max8998, data); in max8998_irq_mask() local 140 max8998->irq_masks_cur[irq_data->reg - 1] |= irq_data->mask; in max8998_irq_mask()
|
/kernel/linux/linux-5.10/arch/arm/mach-s3c/ |
D | bast-irq.c | 53 bast_pc104_mask(struct irq_data *data) in bast_pc104_mask() 63 bast_pc104_maskack(struct irq_data *data) in bast_pc104_maskack() 68 desc->irq_data.chip->irq_ack(&desc->irq_data); in bast_pc104_maskack() 72 bast_pc104_unmask(struct irq_data *data) in bast_pc104_unmask() 97 desc->irq_data.chip->irq_ack(&desc->irq_data); in bast_irq_pc104_demux()
|
D | irq-s3c24xx.c | 78 static void s3c_irq_mask(struct irq_data *data) in s3c_irq_mask() 80 struct s3c_irq_data *irq_data = irq_data_get_irq_chip_data(data); in s3c_irq_mask() local 81 struct s3c_irq_intc *intc = irq_data->intc; in s3c_irq_mask() 88 mask |= (1UL << irq_data->offset); in s3c_irq_mask() 92 parent_data = &parent_intc->irqs[irq_data->parent_irq]; in s3c_irq_mask() 100 irq_data->parent_irq); in s3c_irq_mask() 106 static void s3c_irq_unmask(struct irq_data *data) in s3c_irq_unmask() 108 struct s3c_irq_data *irq_data = irq_data_get_irq_chip_data(data); in s3c_irq_unmask() local 109 struct s3c_irq_intc *intc = irq_data->intc; in s3c_irq_unmask() 115 mask &= ~(1UL << irq_data->offset); in s3c_irq_unmask() [all …]
|
/kernel/linux/linux-5.10/drivers/irqchip/ |
D | irq-ativic32.c | 15 static void ativic32_ack_irq(struct irq_data *data) in ativic32_ack_irq() 20 static void ativic32_mask_irq(struct irq_data *data) in ativic32_mask_irq() 26 static void ativic32_unmask_irq(struct irq_data *data) in ativic32_unmask_irq() 32 static int nointc_set_wake(struct irq_data *data, unsigned int on) in nointc_set_wake() 77 struct irq_data *irq_data; in ativic32_irq_domain_map() local 79 irq_data = irq_get_irq_data(virq); in ativic32_irq_domain_map() 80 if (!irq_data) in ativic32_irq_domain_map() 91 irqd_set_trigger_type(irq_data, type); in ativic32_irq_domain_map()
|
D | irq-partition-percpu.c | 31 static void partition_irq_mask(struct irq_data *d) in partition_irq_mask() 35 struct irq_data *data = irq_desc_get_irq_data(part->chained_desc); in partition_irq_mask() 42 static void partition_irq_unmask(struct irq_data *d) in partition_irq_unmask() 46 struct irq_data *data = irq_desc_get_irq_data(part->chained_desc); in partition_irq_unmask() 53 static int partition_irq_set_irqchip_state(struct irq_data *d, in partition_irq_set_irqchip_state() 59 struct irq_data *data = irq_desc_get_irq_data(part->chained_desc); in partition_irq_set_irqchip_state() 68 static int partition_irq_get_irqchip_state(struct irq_data *d, in partition_irq_get_irqchip_state() 74 struct irq_data *data = irq_desc_get_irq_data(part->chained_desc); in partition_irq_get_irqchip_state() 83 static int partition_irq_set_type(struct irq_data *d, unsigned int type) in partition_irq_set_type() 87 struct irq_data *data = irq_desc_get_irq_data(part->chained_desc); in partition_irq_set_type() [all …]
|
D | irq-xtensa-pic.c | 44 static void xtensa_irq_mask(struct irq_data *d) in xtensa_irq_mask() 50 static void xtensa_irq_unmask(struct irq_data *d) in xtensa_irq_unmask() 56 static void xtensa_irq_enable(struct irq_data *d) in xtensa_irq_enable() 61 static void xtensa_irq_disable(struct irq_data *d) in xtensa_irq_disable() 66 static void xtensa_irq_ack(struct irq_data *d) in xtensa_irq_ack() 71 static int xtensa_irq_retrigger(struct irq_data *d) in xtensa_irq_retrigger()
|
/kernel/linux/linux-5.10/drivers/staging/board/ |
D | board.c | 76 struct of_phandle_args irq_data; in gic_fixup_resource() local 83 irq_data.np = irqc_node; in gic_fixup_resource() 84 irq_data.args_count = 3; in gic_fixup_resource() 85 irq_data.args[0] = 0; in gic_fixup_resource() 86 irq_data.args[1] = hwirq - irqc_base; in gic_fixup_resource() 91 irq_data.args[2] = IRQ_TYPE_EDGE_FALLING; in gic_fixup_resource() 94 irq_data.args[2] = IRQ_TYPE_EDGE_RISING; in gic_fixup_resource() 97 irq_data.args[2] = IRQ_TYPE_LEVEL_LOW; in gic_fixup_resource() 101 irq_data.args[2] = IRQ_TYPE_LEVEL_HIGH; in gic_fixup_resource() 105 virq = irq_create_of_mapping(&irq_data); in gic_fixup_resource()
|
/kernel/linux/linux-5.10/include/linux/irqchip/ |
D | chained_irq.h | 24 chip->irq_mask_ack(&desc->irq_data); in chained_irq_enter() 26 chip->irq_mask(&desc->irq_data); in chained_irq_enter() 28 chip->irq_ack(&desc->irq_data); in chained_irq_enter() 36 chip->irq_eoi(&desc->irq_data); in chained_irq_exit() 38 chip->irq_unmask(&desc->irq_data); in chained_irq_exit()
|
/kernel/linux/linux-5.10/arch/m68k/atari/ |
D | ataints.c | 86 static unsigned int atari_irq_startup(struct irq_data *data) in atari_irq_startup() 96 static void atari_irq_shutdown(struct irq_data *data) in atari_irq_shutdown() 108 static void atari_irq_enable(struct irq_data *data) in atari_irq_enable() 113 static void atari_irq_disable(struct irq_data *data) in atari_irq_disable() 161 static void atari_mfptimer_enable(struct irq_data *data) in atari_mfptimer_enable() 168 static void atari_mfptimer_disable(struct irq_data *data) in atari_mfptimer_disable() 194 static unsigned int atari_ethernat_startup(struct irq_data *data) in atari_ethernat_startup() 216 static void atari_ethernat_enable(struct irq_data *data) in atari_ethernat_enable() 227 static void atari_ethernat_disable(struct irq_data *data) in atari_ethernat_disable() 238 static void atari_ethernat_shutdown(struct irq_data *data) in atari_ethernat_shutdown()
|
/kernel/linux/linux-5.10/arch/m68k/mac/ |
D | macints.c | 134 static unsigned int mac_irq_startup(struct irq_data *); 135 static void mac_irq_shutdown(struct irq_data *); 176 void mac_irq_enable(struct irq_data *data) in mac_irq_enable() 206 void mac_irq_disable(struct irq_data *data) in mac_irq_disable() 236 static unsigned int mac_irq_startup(struct irq_data *data) in mac_irq_startup() 248 static void mac_irq_shutdown(struct irq_data *data) in mac_irq_shutdown()
|
/kernel/linux/linux-5.10/arch/x86/kernel/apic/ |
D | io_apic.c | 456 static void mask_ioapic_irq(struct irq_data *irq_data) in mask_ioapic_irq() argument 458 struct mp_chip_data *data = irq_data->chip_data; in mask_ioapic_irq() 471 static void unmask_ioapic_irq(struct irq_data *irq_data) in unmask_ioapic_irq() argument 473 struct mp_chip_data *data = irq_data->chip_data; in unmask_ioapic_irq() 993 struct irq_data *irq_data = irq_get_irq_data(irq); in alloc_isa_irq_from_domain() local 1001 if (irq_data && irq_data->parent_data) { in alloc_isa_irq_from_domain() 1004 if (__add_pin_to_irq_node(irq_data->chip_data, node, ioapic, in alloc_isa_irq_from_domain() 1012 irq_data = irq_domain_get_irq_data(domain, irq); in alloc_isa_irq_from_domain() 1013 data = irq_data->chip_data; in alloc_isa_irq_from_domain() 1125 struct irq_data *irq_data = irq_get_irq_data(irq); in mp_unmap_irq() local [all …]
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
D | irqdomain.h | 25 struct irq_data; 47 struct irq_data *irq_data, bool reserve); 49 struct irq_data *irq_data);
|