Lines Matching refs:desc
77 extern int __irq_set_trigger(struct irq_desc *desc, unsigned long flags);
78 extern void __disable_irq(struct irq_desc *desc);
79 extern void __enable_irq(struct irq_desc *desc);
87 extern int irq_activate(struct irq_desc *desc);
88 extern int irq_activate_and_startup(struct irq_desc *desc, bool resend);
89 extern int irq_startup(struct irq_desc *desc, bool resend, bool force);
91 extern void irq_shutdown(struct irq_desc *desc);
92 extern void irq_shutdown_and_deactivate(struct irq_desc *desc);
93 extern void irq_enable(struct irq_desc *desc);
94 extern void irq_disable(struct irq_desc *desc);
95 extern void irq_percpu_enable(struct irq_desc *desc, unsigned int cpu);
96 extern void irq_percpu_disable(struct irq_desc *desc, unsigned int cpu);
97 extern void mask_irq(struct irq_desc *desc);
98 extern void unmask_irq(struct irq_desc *desc);
99 extern void unmask_threaded_irq(struct irq_desc *desc);
111 irqreturn_t __handle_irq_event_percpu(struct irq_desc *desc);
112 irqreturn_t handle_irq_event_percpu(struct irq_desc *desc);
113 irqreturn_t handle_irq_event(struct irq_desc *desc);
116 int check_irq_resend(struct irq_desc *desc, bool inject);
117 void clear_irq_resend(struct irq_desc *desc);
118 void irq_resend_init(struct irq_desc *desc);
119 bool irq_wait_for_poll(struct irq_desc *desc);
120 void __irq_wake_thread(struct irq_desc *desc, struct irqaction *action);
122 void wake_threads_waitq(struct irq_desc *desc);
125 extern void register_irq_proc(unsigned int irq, struct irq_desc *desc);
126 extern void unregister_irq_proc(unsigned int irq, struct irq_desc *desc);
130 static inline void register_irq_proc(unsigned int irq, struct irq_desc *desc) { } in register_irq_proc() argument
131 static inline void unregister_irq_proc(unsigned int irq, struct irq_desc *desc) { } in unregister_irq_proc() argument
140 extern void irq_set_thread_affinity(struct irq_desc *desc);
146 extern int irq_setup_affinity(struct irq_desc *desc);
148 static inline int irq_setup_affinity(struct irq_desc *desc) { return 0; } in irq_setup_affinity() argument
152 static inline void chip_bus_lock(struct irq_desc *desc) in chip_bus_lock() argument
154 if (unlikely(desc->irq_data.chip->irq_bus_lock)) in chip_bus_lock()
155 desc->irq_data.chip->irq_bus_lock(&desc->irq_data); in chip_bus_lock()
158 static inline void chip_bus_sync_unlock(struct irq_desc *desc) in chip_bus_sync_unlock() argument
160 if (unlikely(desc->irq_data.chip->irq_bus_sync_unlock)) in chip_bus_sync_unlock()
161 desc->irq_data.chip->irq_bus_sync_unlock(&desc->irq_data); in chip_bus_sync_unlock()
170 #define for_each_action_of_desc(desc, act) \ argument
171 for (act = desc->action; act; act = act->next)
176 void __irq_put_desc_unlock(struct irq_desc *desc, unsigned long flags, bool bus);
185 irq_put_desc_busunlock(struct irq_desc *desc, unsigned long flags) in irq_put_desc_busunlock() argument
187 __irq_put_desc_unlock(desc, flags, true); in irq_put_desc_busunlock()
197 irq_put_desc_unlock(struct irq_desc *desc, unsigned long flags) in irq_put_desc_unlock() argument
199 __irq_put_desc_unlock(desc, flags, false); in irq_put_desc_unlock()
247 static inline void irq_state_set_disabled(struct irq_desc *desc) in irq_state_set_disabled() argument
249 irqd_set(&desc->irq_data, IRQD_IRQ_DISABLED); in irq_state_set_disabled()
252 static inline void irq_state_set_masked(struct irq_desc *desc) in irq_state_set_masked() argument
254 irqd_set(&desc->irq_data, IRQD_IRQ_MASKED); in irq_state_set_masked()
259 static inline void __kstat_incr_irqs_this_cpu(struct irq_desc *desc) in __kstat_incr_irqs_this_cpu() argument
261 __this_cpu_inc(*desc->kstat_irqs); in __kstat_incr_irqs_this_cpu()
265 static inline void kstat_incr_irqs_this_cpu(struct irq_desc *desc) in kstat_incr_irqs_this_cpu() argument
267 __kstat_incr_irqs_this_cpu(desc); in kstat_incr_irqs_this_cpu()
268 desc->tot_count++; in kstat_incr_irqs_this_cpu()
271 static inline int irq_desc_get_node(struct irq_desc *desc) in irq_desc_get_node() argument
273 return irq_common_data_get_node(&desc->irq_common_data); in irq_desc_get_node()
276 static inline int irq_desc_is_chained(struct irq_desc *desc) in irq_desc_is_chained() argument
278 return (desc->action && desc->action == &chained_action); in irq_desc_is_chained()
282 bool irq_pm_check_wakeup(struct irq_desc *desc);
283 void irq_pm_install_action(struct irq_desc *desc, struct irqaction *action);
284 void irq_pm_remove_action(struct irq_desc *desc, struct irqaction *action);
286 static inline bool irq_pm_check_wakeup(struct irq_desc *desc) { return false; } in irq_pm_check_wakeup() argument
288 irq_pm_install_action(struct irq_desc *desc, struct irqaction *action) { } in irq_pm_install_action() argument
290 irq_pm_remove_action(struct irq_desc *desc, struct irqaction *action) { } in irq_pm_remove_action() argument
314 static inline void irq_remove_timings(struct irq_desc *desc) in irq_remove_timings() argument
316 desc->istate &= ~IRQS_TIMINGS; in irq_remove_timings()
318 irq_timings_free(irq_desc_get_irq(desc)); in irq_remove_timings()
321 static inline void irq_setup_timings(struct irq_desc *desc, struct irqaction *act) in irq_setup_timings() argument
323 int irq = irq_desc_get_irq(desc); in irq_setup_timings()
344 desc->istate |= IRQS_TIMINGS; in irq_setup_timings()
387 static __always_inline void record_irq_time(struct irq_desc *desc) in record_irq_time() argument
392 if (desc->istate & IRQS_TIMINGS) in record_irq_time()
393 irq_timings_push(local_clock(), irq_desc_get_irq(desc)); in record_irq_time()
396 static inline void irq_remove_timings(struct irq_desc *desc) {} in irq_remove_timings() argument
397 static inline void irq_setup_timings(struct irq_desc *desc, in irq_setup_timings() argument
399 static inline void record_irq_time(struct irq_desc *desc) {} in record_irq_time() argument
424 irq_copy_pending(struct irq_desc *desc, const struct cpumask *mask) in irq_copy_pending() argument
426 cpumask_copy(desc->pending_mask, mask); in irq_copy_pending()
429 irq_get_pending(struct cpumask *mask, struct irq_desc *desc) in irq_get_pending() argument
431 cpumask_copy(mask, desc->pending_mask); in irq_get_pending()
433 static inline struct cpumask *irq_desc_get_pending_mask(struct irq_desc *desc) in irq_desc_get_pending_mask() argument
435 return desc->pending_mask; in irq_desc_get_pending_mask()
441 bool irq_fixup_move_pending(struct irq_desc *desc, bool force_clear);
452 irq_copy_pending(struct irq_desc *desc, const struct cpumask *mask) in irq_copy_pending() argument
456 irq_get_pending(struct cpumask *mask, struct irq_desc *desc) in irq_get_pending() argument
459 static inline struct cpumask *irq_desc_get_pending_mask(struct irq_desc *desc) in irq_desc_get_pending_mask() argument
463 static inline bool irq_fixup_move_pending(struct irq_desc *desc, bool fclear) in irq_fixup_move_pending() argument
497 void irq_add_debugfs_entry(unsigned int irq, struct irq_desc *desc);
498 static inline void irq_remove_debugfs_entry(struct irq_desc *desc) in irq_remove_debugfs_entry() argument
500 debugfs_remove(desc->debugfs_file); in irq_remove_debugfs_entry()
501 kfree(desc->dev_name); in irq_remove_debugfs_entry()