/linux-3.4.99/kernel/irq/ |
D | chip.c | 39 desc->irq_data.chip = chip; in irq_set_chip() 86 desc->irq_data.handler_data = data; in irq_set_handler_data() 106 desc->irq_data.msi_desc = entry; in irq_set_msi_desc() 127 desc->irq_data.chip_data = data; in irq_set_chip_data() 133 struct irq_data *irq_get_irq_data(unsigned int irq) in irq_get_irq_data() 137 return desc ? &desc->irq_data : NULL; in irq_get_irq_data() 143 irqd_clear(&desc->irq_data, IRQD_IRQ_DISABLED); in irq_state_clr_disabled() 148 irqd_set(&desc->irq_data, IRQD_IRQ_DISABLED); in irq_state_set_disabled() 153 irqd_clear(&desc->irq_data, IRQD_IRQ_MASKED); in irq_state_clr_masked() 158 irqd_set(&desc->irq_data, IRQD_IRQ_MASKED); in irq_state_set_masked() [all …]
|
D | irqdomain.c | 116 struct irq_data *irq_data = irq_get_irq_data(irq); in irq_domain_add_legacy() local 118 if (WARN_ON(!irq_data || irq_data->domain)) { in irq_domain_add_legacy() 128 struct irq_data *irq_data = irq_get_irq_data(first_irq + i); in irq_domain_add_legacy() local 129 irq_data->hwirq = first_hwirq + i; in irq_domain_add_legacy() 130 irq_data->domain = domain; in irq_domain_add_legacy() 270 struct irq_data *irq_data = irq_get_irq_data(virq); in irq_setup_virq() local 272 irq_data->hwirq = hwirq; in irq_setup_virq() 273 irq_data->domain = domain; in irq_setup_virq() 276 irq_data->domain = NULL; in irq_setup_virq() 277 irq_data->hwirq = 0; in irq_setup_virq() [all …]
|
D | internals.h | 61 #define irq_data_to_desc(data) container_of(data, struct irq_desc, irq_data) 107 if (unlikely(desc->irq_data.chip->irq_bus_lock)) in chip_bus_lock() 108 desc->irq_data.chip->irq_bus_lock(&desc->irq_data); in chip_bus_lock() 113 if (unlikely(desc->irq_data.chip->irq_bus_sync_unlock)) in chip_bus_sync_unlock() 114 desc->irq_data.chip->irq_bus_sync_unlock(&desc->irq_data); in chip_bus_sync_unlock() 155 static inline void irqd_set_move_pending(struct irq_data *d) in irqd_set_move_pending() 160 static inline void irqd_clr_move_pending(struct irq_data *d) in irqd_clr_move_pending() 165 static inline void irqd_clear(struct irq_data *d, unsigned int mask) in irqd_clear() 170 static inline void irqd_set(struct irq_data *d, unsigned int mask) in irqd_set() 175 static inline bool irqd_has_set(struct irq_data *d, unsigned int mask) in irqd_has_set()
|
D | migration.c | 7 void irq_move_masked_irq(struct irq_data *idata) in irq_move_masked_irq() 12 if (likely(!irqd_is_setaffinity_pending(&desc->irq_data))) in irq_move_masked_irq() 18 if (!irqd_can_balance(&desc->irq_data)) { in irq_move_masked_irq() 23 irqd_clr_move_pending(&desc->irq_data); in irq_move_masked_irq() 47 int ret = chip->irq_set_affinity(&desc->irq_data, in irq_move_masked_irq() 51 cpumask_copy(desc->irq_data.affinity, desc->pending_mask); in irq_move_masked_irq() 60 void irq_move_irq(struct irq_data *idata) in irq_move_irq()
|
D | manage.c | 56 while (irqd_irq_inprogress(&desc->irq_data)) in synchronize_irq() 61 inprogress = irqd_irq_inprogress(&desc->irq_data); in synchronize_irq() 87 if (!desc || !irqd_can_balance(&desc->irq_data) || in irq_can_set_affinity() 88 !desc->irq_data.chip || !desc->irq_data.chip->irq_set_affinity) in irq_can_set_affinity() 115 static inline bool irq_can_move_pcntxt(struct irq_data *data) in irq_can_move_pcntxt() 119 static inline bool irq_move_pending(struct irq_data *data) in irq_move_pending() 134 static inline bool irq_can_move_pcntxt(struct irq_data *data) { return true; } in irq_can_move_pcntxt() 135 static inline bool irq_move_pending(struct irq_data *data) { return false; } in irq_move_pending() 142 int __irq_set_affinity_locked(struct irq_data *data, const struct cpumask *mask) in __irq_set_affinity_locked() 220 if (irq_move_pending(&desc->irq_data)) in irq_affinity_notify() [all …]
|
/linux-3.4.99/include/linux/ |
D | irq.h | 34 struct irq_data; 37 typedef void (*irq_preflow_handler_t)(struct irq_data *data); 143 struct irq_data { struct 189 static inline bool irqd_is_setaffinity_pending(struct irq_data *d) in irqd_is_setaffinity_pending() 194 static inline bool irqd_is_per_cpu(struct irq_data *d) in irqd_is_per_cpu() 199 static inline bool irqd_can_balance(struct irq_data *d) in irqd_can_balance() 204 static inline bool irqd_affinity_was_set(struct irq_data *d) in irqd_affinity_was_set() 209 static inline void irqd_mark_affinity_was_set(struct irq_data *d) in irqd_mark_affinity_was_set() 214 static inline u32 irqd_get_trigger_type(struct irq_data *d) in irqd_get_trigger_type() 222 static inline void irqd_set_trigger_type(struct irq_data *d, u32 type) in irqd_set_trigger_type() [all …]
|
D | irqdesc.h | 43 struct irq_data irq_data; member 84 static inline struct irq_data *irq_desc_get_irq_data(struct irq_desc *desc) in irq_desc_get_irq_data() 86 return &desc->irq_data; in irq_desc_get_irq_data() 91 return desc->irq_data.chip; in irq_desc_get_chip() 96 return desc->irq_data.chip_data; in irq_desc_get_chip_data() 101 return desc->irq_data.handler_data; in irq_desc_get_handler_data() 106 return desc->irq_data.msi_desc; in irq_desc_get_msi_desc()
|
/linux-3.4.99/arch/arm/mach-s3c24xx/ |
D | irq-s3c2443.c | 78 static void s3c2443_irq_wdtac97_mask(struct irq_data *data) in s3c2443_irq_wdtac97_mask() 83 static void s3c2443_irq_wdtac97_unmask(struct irq_data *data) in s3c2443_irq_wdtac97_unmask() 88 static void s3c2443_irq_wdtac97_ack(struct irq_data *data) in s3c2443_irq_wdtac97_ack() 109 static void s3c2443_irq_lcd_mask(struct irq_data *data) in s3c2443_irq_lcd_mask() 114 static void s3c2443_irq_lcd_unmask(struct irq_data *data) in s3c2443_irq_lcd_unmask() 119 static void s3c2443_irq_lcd_ack(struct irq_data *data) in s3c2443_irq_lcd_ack() 140 static void s3c2443_irq_dma_mask(struct irq_data *data) in s3c2443_irq_dma_mask() 145 static void s3c2443_irq_dma_unmask(struct irq_data *data) in s3c2443_irq_dma_unmask() 150 static void s3c2443_irq_dma_ack(struct irq_data *data) in s3c2443_irq_dma_ack() 171 static void s3c2443_irq_uart3_mask(struct irq_data *data) in s3c2443_irq_uart3_mask() [all …]
|
D | irq-s3c2416.c | 80 static void s3c2416_irq_wdtac97_mask(struct irq_data *data) in s3c2416_irq_wdtac97_mask() 85 static void s3c2416_irq_wdtac97_unmask(struct irq_data *data) in s3c2416_irq_wdtac97_unmask() 90 static void s3c2416_irq_wdtac97_ack(struct irq_data *data) in s3c2416_irq_wdtac97_ack() 111 static void s3c2416_irq_lcd_mask(struct irq_data *data) in s3c2416_irq_lcd_mask() 116 static void s3c2416_irq_lcd_unmask(struct irq_data *data) in s3c2416_irq_lcd_unmask() 121 static void s3c2416_irq_lcd_ack(struct irq_data *data) in s3c2416_irq_lcd_ack() 143 static void s3c2416_irq_dma_mask(struct irq_data *data) in s3c2416_irq_dma_mask() 148 static void s3c2416_irq_dma_unmask(struct irq_data *data) in s3c2416_irq_dma_unmask() 153 static void s3c2416_irq_dma_ack(struct irq_data *data) in s3c2416_irq_dma_ack() 174 static void s3c2416_irq_uart3_mask(struct irq_data *data) in s3c2416_irq_uart3_mask() [all …]
|
D | bast-irq.c | 78 bast_pc104_mask(struct irq_data *data) in bast_pc104_mask() 88 bast_pc104_maskack(struct irq_data *data) in bast_pc104_maskack() 93 desc->irq_data.chip->irq_ack(&desc->irq_data); in bast_pc104_maskack() 97 bast_pc104_unmask(struct irq_data *data) in bast_pc104_unmask() 126 desc->irq_data.chip->irq_ack(&desc->irq_data); in bast_irq_pc104_demux()
|
/linux-3.4.99/arch/sparc/kernel/ |
D | prom_irqtrans.c | 116 struct sabre_irq_data *irq_data = _arg2; in sabre_wsync_handler() local 117 unsigned long controller_regs = irq_data->controller_regs; in sabre_wsync_handler() 224 struct sabre_irq_data *irq_data = _data; in sabre_irq_build() local 225 unsigned long controller_regs = irq_data->controller_regs; in sabre_irq_build() 262 (void *) irq_data); in sabre_irq_build() 271 struct sabre_irq_data *irq_data; in sabre_irq_trans_init() local 277 irq_data = prom_early_alloc(sizeof(struct sabre_irq_data)); in sabre_irq_trans_init() 280 irq_data->controller_regs = regs[0].phys_addr; in sabre_irq_trans_init() 283 irq_data->pci_first_busno = busrange[0]; in sabre_irq_trans_init() 285 dp->irq_trans->data = irq_data; in sabre_irq_trans_init() [all …]
|
/linux-3.4.99/drivers/mfd/ |
D | max8925-core.c | 350 struct max8925_irq_data *irq_data; in max8925_irq() local 356 irq_data = &max8925_irqs[i]; in max8925_irq() 358 if (irq_data->tsc_irq) in max8925_irq() 360 if (irq_data->flags == FLAGS_RTC) in max8925_irq() 362 else if (irq_data->flags == FLAGS_ADC) in max8925_irq() 366 if (read_reg != irq_data->reg) { in max8925_irq() 367 read_reg = irq_data->reg; in max8925_irq() 368 value = max8925_reg_read(i2c, irq_data->reg); in max8925_irq() 370 if (value & irq_data->enable) in max8925_irq() 379 struct max8925_irq_data *irq_data; in max8925_tsc_irq() local [all …]
|
D | rc5t583-irq.c | 153 static void rc5t583_irq_lock(struct irq_data *irq_data) in rc5t583_irq_lock() argument 155 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_lock() 159 static void rc5t583_irq_unmask(struct irq_data *irq_data) in rc5t583_irq_unmask() argument 161 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_unmask() 162 unsigned int __irq = irq_data->irq - rc5t583->irq_base; in rc5t583_irq_unmask() 170 static void rc5t583_irq_mask(struct irq_data *irq_data) in rc5t583_irq_mask() argument 172 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_mask() 173 unsigned int __irq = irq_data->irq - rc5t583->irq_base; in rc5t583_irq_mask() 183 static int rc5t583_irq_set_type(struct irq_data *irq_data, unsigned int type) in rc5t583_irq_set_type() argument 185 struct rc5t583 *rc5t583 = irq_data_get_irq_chip_data(irq_data); in rc5t583_irq_set_type() [all …]
|
D | s5m-irq.c | 176 static void s5m8767_irq_lock(struct irq_data *data) in s5m8767_irq_lock() 183 static void s5m8767_irq_sync_unlock(struct irq_data *data) in s5m8767_irq_sync_unlock() 199 static void s5m8767_irq_unmask(struct irq_data *data) in s5m8767_irq_unmask() 202 struct s5m_irq_data *irq_data = irq_to_s5m8767_irq(s5m87xx, in s5m8767_irq_unmask() local 205 s5m87xx->irq_masks_cur[irq_data->reg - 1] &= ~irq_data->mask; in s5m8767_irq_unmask() 208 static void s5m8767_irq_mask(struct irq_data *data) in s5m8767_irq_mask() 211 struct s5m_irq_data *irq_data = irq_to_s5m8767_irq(s5m87xx, in s5m8767_irq_mask() local 214 s5m87xx->irq_masks_cur[irq_data->reg - 1] |= irq_data->mask; in s5m8767_irq_mask() 231 static void s5m8763_irq_lock(struct irq_data *data) in s5m8763_irq_lock() 238 static void s5m8763_irq_sync_unlock(struct irq_data *data) in s5m8763_irq_sync_unlock() [all …]
|
D | twl6040-irq.c | 70 static void twl6040_irq_lock(struct irq_data *data) in twl6040_irq_lock() 77 static void twl6040_irq_sync_unlock(struct irq_data *data) in twl6040_irq_sync_unlock() 91 static void twl6040_irq_enable(struct irq_data *data) in twl6040_irq_enable() 94 struct twl6040_irq_data *irq_data = irq_to_twl6040_irq(twl6040, in twl6040_irq_enable() local 97 twl6040->irq_masks_cur &= ~irq_data->mask; in twl6040_irq_enable() 100 static void twl6040_irq_disable(struct irq_data *data) in twl6040_irq_disable() 103 struct twl6040_irq_data *irq_data = irq_to_twl6040_irq(twl6040, in twl6040_irq_disable() local 106 twl6040->irq_masks_cur |= irq_data->mask; in twl6040_irq_disable()
|
/linux-3.4.99/arch/arm/mach-sa1100/ |
D | irq.c | 41 static int sa1100_gpio_type(struct irq_data *d, unsigned int type) in sa1100_gpio_type() 74 static void sa1100_low_gpio_ack(struct irq_data *d) in sa1100_low_gpio_ack() 79 static void sa1100_low_gpio_mask(struct irq_data *d) in sa1100_low_gpio_mask() 84 static void sa1100_low_gpio_unmask(struct irq_data *d) in sa1100_low_gpio_unmask() 89 static int sa1100_low_gpio_wake(struct irq_data *d, unsigned int on) in sa1100_low_gpio_wake() 143 static void sa1100_high_gpio_ack(struct irq_data *d) in sa1100_high_gpio_ack() 150 static void sa1100_high_gpio_mask(struct irq_data *d) in sa1100_high_gpio_mask() 160 static void sa1100_high_gpio_unmask(struct irq_data *d) in sa1100_high_gpio_unmask() 170 static int sa1100_high_gpio_wake(struct irq_data *d, unsigned int on) in sa1100_high_gpio_wake() 192 static void sa1100_mask_irq(struct irq_data *d) in sa1100_mask_irq() [all …]
|
/linux-3.4.99/arch/arm/mach-ixp23xx/ |
D | ixdp2351.c | 50 static void ixdp2351_inta_mask(struct irq_data *d) in ixdp2351_inta_mask() 55 static void ixdp2351_inta_unmask(struct irq_data *d) in ixdp2351_inta_unmask() 66 desc->irq_data.chip->irq_mask(&desc->irq_data); in ixdp2351_inta_handler() 76 desc->irq_data.chip->irq_unmask(&desc->irq_data); in ixdp2351_inta_handler() 85 static void ixdp2351_intb_mask(struct irq_data *d) in ixdp2351_intb_mask() 90 static void ixdp2351_intb_unmask(struct irq_data *d) in ixdp2351_intb_unmask() 101 desc->irq_data.chip->irq_ack(&desc->irq_data); in ixdp2351_intb_handler() 111 desc->irq_data.chip->irq_unmask(&desc->irq_data); in ixdp2351_intb_handler()
|
/linux-3.4.99/arch/arm/mach-rpc/ |
D | irq.c | 10 static void iomd_ack_irq_a(struct irq_data *d) in iomd_ack_irq_a() 20 static void iomd_mask_irq_a(struct irq_data *d) in iomd_mask_irq_a() 29 static void iomd_unmask_irq_a(struct irq_data *d) in iomd_unmask_irq_a() 44 static void iomd_mask_irq_b(struct irq_data *d) in iomd_mask_irq_b() 53 static void iomd_unmask_irq_b(struct irq_data *d) in iomd_unmask_irq_b() 68 static void iomd_mask_irq_dma(struct irq_data *d) in iomd_mask_irq_dma() 77 static void iomd_unmask_irq_dma(struct irq_data *d) in iomd_unmask_irq_dma() 92 static void iomd_mask_irq_fiq(struct irq_data *d) in iomd_mask_irq_fiq() 101 static void iomd_unmask_irq_fiq(struct irq_data *d) in iomd_unmask_irq_fiq()
|
/linux-3.4.99/arch/arm/plat-s3c24xx/ |
D | irq.c | 38 s3c_irq_mask(struct irq_data *data) in s3c_irq_mask() 49 s3c_irq_ack(struct irq_data *data) in s3c_irq_ack() 58 s3c_irq_maskack(struct irq_data *data) in s3c_irq_maskack() 72 s3c_irq_unmask(struct irq_data *data) in s3c_irq_unmask() 104 s3c_irqext_mask(struct irq_data *data) in s3c_irqext_mask() 115 s3c_irqext_ack(struct irq_data *data) in s3c_irqext_ack() 142 s3c_irqext_unmask(struct irq_data *data) in s3c_irqext_unmask() 153 s3c_irqext_type(struct irq_data *data, unsigned int type) in s3c_irqext_type() 257 s3c_irq_uart0_mask(struct irq_data *data) in s3c_irq_uart0_mask() 263 s3c_irq_uart0_unmask(struct irq_data *data) in s3c_irq_uart0_unmask() [all …]
|
/linux-3.4.99/arch/arm/mach-iop13xx/ |
D | irq.c | 126 iop13xx_irq_mask0 (struct irq_data *d) in iop13xx_irq_mask0() 132 iop13xx_irq_mask1 (struct irq_data *d) in iop13xx_irq_mask1() 138 iop13xx_irq_mask2 (struct irq_data *d) in iop13xx_irq_mask2() 144 iop13xx_irq_mask3 (struct irq_data *d) in iop13xx_irq_mask3() 150 iop13xx_irq_unmask0(struct irq_data *d) in iop13xx_irq_unmask0() 156 iop13xx_irq_unmask1(struct irq_data *d) in iop13xx_irq_unmask1() 162 iop13xx_irq_unmask2(struct irq_data *d) in iop13xx_irq_unmask2() 168 iop13xx_irq_unmask3(struct irq_data *d) in iop13xx_irq_unmask3()
|
/linux-3.4.99/arch/arm/plat-mxc/ |
D | 3ds_debugboard.c | 98 desc->irq_data.chip->irq_mask(&desc->irq_data); in mxc_expio_irq_handler() 110 desc->irq_data.chip->irq_ack(&desc->irq_data); in mxc_expio_irq_handler() 111 desc->irq_data.chip->irq_unmask(&desc->irq_data); in mxc_expio_irq_handler() 118 static void expio_mask_irq(struct irq_data *d) in expio_mask_irq() 128 static void expio_ack_irq(struct irq_data *d) in expio_ack_irq() 137 static void expio_unmask_irq(struct irq_data *d) in expio_unmask_irq()
|
/linux-3.4.99/arch/arm/include/asm/mach/ |
D | irq.h | 50 chip->irq_mask_ack(&desc->irq_data); in chained_irq_enter() 52 chip->irq_mask(&desc->irq_data); in chained_irq_enter() 54 chip->irq_ack(&desc->irq_data); in chained_irq_enter() 62 chip->irq_eoi(&desc->irq_data); in chained_irq_exit() 64 chip->irq_unmask(&desc->irq_data); in chained_irq_exit()
|
/linux-3.4.99/arch/mips/netlogic/common/ |
D | irq.c | 76 static void xlp_pic_enable(struct irq_data *d) in xlp_pic_enable() 89 static void xlp_pic_disable(struct irq_data *d) in xlp_pic_disable() 102 static void xlp_pic_mask_ack(struct irq_data *d) in xlp_pic_mask_ack() 109 static void xlp_pic_unmask(struct irq_data *d) in xlp_pic_unmask() 134 static void cpuintr_disable(struct irq_data *d) in cpuintr_disable() 143 static void cpuintr_enable(struct irq_data *d) in cpuintr_enable() 152 static void cpuintr_ack(struct irq_data *d) in cpuintr_ack() 159 static void cpuintr_nop(struct irq_data *d) in cpuintr_nop()
|
/linux-3.4.99/arch/arm/plat-s5p/ |
D | irq-eint.c | 31 static inline void s5p_irq_eint_mask(struct irq_data *data) in s5p_irq_eint_mask() 40 static void s5p_irq_eint_unmask(struct irq_data *data) in s5p_irq_eint_unmask() 49 static inline void s5p_irq_eint_ack(struct irq_data *data) in s5p_irq_eint_ack() 55 static void s5p_irq_eint_maskack(struct irq_data *data) in s5p_irq_eint_maskack() 62 static int s5p_irq_eint_set_type(struct irq_data *data, unsigned int type) in s5p_irq_eint_set_type() 163 static inline void s5p_irq_vic_eint_mask(struct irq_data *data) in s5p_irq_vic_eint_mask() 171 static void s5p_irq_vic_eint_unmask(struct irq_data *data) in s5p_irq_vic_eint_unmask() 179 static inline void s5p_irq_vic_eint_ack(struct irq_data *data) in s5p_irq_vic_eint_ack() 185 static void s5p_irq_vic_eint_maskack(struct irq_data *data) in s5p_irq_vic_eint_maskack()
|
/linux-3.4.99/arch/unicore32/kernel/ |
D | irq.c | 44 static int puv3_gpio_type(struct irq_data *d, unsigned int type) in puv3_gpio_type() 77 static void puv3_low_gpio_ack(struct irq_data *d) in puv3_low_gpio_ack() 82 static void puv3_low_gpio_mask(struct irq_data *d) in puv3_low_gpio_mask() 87 static void puv3_low_gpio_unmask(struct irq_data *d) in puv3_low_gpio_unmask() 92 static int puv3_low_gpio_wake(struct irq_data *d, unsigned int on) in puv3_low_gpio_wake() 144 static void puv3_high_gpio_ack(struct irq_data *d) in puv3_high_gpio_ack() 151 static void puv3_high_gpio_mask(struct irq_data *d) in puv3_high_gpio_mask() 161 static void puv3_high_gpio_unmask(struct irq_data *d) in puv3_high_gpio_unmask() 171 static int puv3_high_gpio_wake(struct irq_data *d, unsigned int on) in puv3_high_gpio_wake() 193 static void puv3_mask_irq(struct irq_data *d) in puv3_mask_irq() [all …]
|