Lines Matching refs:irq_data
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()
223 cpumask_copy(cpumask, desc->irq_data.affinity); in irq_affinity_notify()
285 int ret, node = desc->irq_data.node; in setup_affinity()
295 if (irqd_has_set(&desc->irq_data, IRQD_AFFINITY_SET)) { in setup_affinity()
296 if (cpumask_intersects(desc->irq_data.affinity, in setup_affinity()
298 set = desc->irq_data.affinity; in setup_affinity()
300 irqd_clear(&desc->irq_data, IRQD_AFFINITY_SET); in setup_affinity()
311 ret = chip->irq_set_affinity(&desc->irq_data, mask, false); in setup_affinity()
314 cpumask_copy(desc->irq_data.affinity, mask); in setup_affinity()
462 if (WARN(!desc->irq_data.chip, in enable_irq()
480 if (desc->irq_data.chip->irq_set_wake) in set_irq_wake_real()
481 ret = desc->irq_data.chip->irq_set_wake(&desc->irq_data, on); in set_irq_wake_real()
516 irqd_set(&desc->irq_data, IRQD_WAKEUP_STATE); in irq_set_irq_wake()
526 irqd_clear(&desc->irq_data, IRQD_WAKEUP_STATE); in irq_set_irq_wake()
560 struct irq_chip *chip = desc->irq_data.chip; in __irq_set_trigger()
576 if (!irqd_irq_masked(&desc->irq_data)) in __irq_set_trigger()
578 if (!irqd_irq_disabled(&desc->irq_data)) in __irq_set_trigger()
583 ret = chip->irq_set_type(&desc->irq_data, flags); in __irq_set_trigger()
587 irqd_clear(&desc->irq_data, IRQD_TRIGGER_MASK); in __irq_set_trigger()
588 irqd_set(&desc->irq_data, flags); in __irq_set_trigger()
591 flags = irqd_get_trigger_type(&desc->irq_data); in __irq_set_trigger()
593 irqd_clear(&desc->irq_data, IRQD_LEVEL); in __irq_set_trigger()
597 irqd_set(&desc->irq_data, IRQD_LEVEL); in __irq_set_trigger()
677 if (unlikely(irqd_irq_inprogress(&desc->irq_data))) { in irq_finalize_oneshot()
694 if (!desc->threads_oneshot && !irqd_irq_disabled(&desc->irq_data) && in irq_finalize_oneshot()
695 irqd_irq_masked(&desc->irq_data)) in irq_finalize_oneshot()
730 if (desc->irq_data.affinity) in irq_thread_check_affinity()
731 cpumask_copy(mask, desc->irq_data.affinity); in irq_thread_check_affinity()
897 if (desc->irq_data.chip == &no_irq_chip) in __setup_irq()
1052 irqd_clear(&desc->irq_data, IRQD_IRQ_INPROGRESS); in __setup_irq()
1055 irqd_set(&desc->irq_data, IRQD_PER_CPU); in __setup_irq()
1071 irqd_set(&desc->irq_data, IRQD_NO_BALANCING); in __setup_irq()
1211 if (desc->irq_data.chip->release) in __free_irq()
1212 desc->irq_data.chip->release(irq, dev_id); in __free_irq()