• Home
  • Raw
  • Download

Lines Matching refs:desc

74 extern int __irq_set_trigger(struct irq_desc *desc, unsigned long flags);
75 extern void __disable_irq(struct irq_desc *desc);
76 extern void __enable_irq(struct irq_desc *desc);
84 extern int irq_activate(struct irq_desc *desc);
85 extern int irq_activate_and_startup(struct irq_desc *desc, bool resend);
86 extern int irq_startup(struct irq_desc *desc, bool resend, bool force);
88 extern void irq_shutdown(struct irq_desc *desc);
89 extern void irq_shutdown_and_deactivate(struct irq_desc *desc);
90 extern void irq_enable(struct irq_desc *desc);
91 extern void irq_disable(struct irq_desc *desc);
92 extern void irq_percpu_enable(struct irq_desc *desc, unsigned int cpu);
93 extern void irq_percpu_disable(struct irq_desc *desc, unsigned int cpu);
94 extern void mask_irq(struct irq_desc *desc);
95 extern void unmask_irq(struct irq_desc *desc);
96 extern void unmask_threaded_irq(struct irq_desc *desc);
108 extern void init_kstat_irqs(struct irq_desc *desc, int node, int nr);
110 irqreturn_t __handle_irq_event_percpu(struct irq_desc *desc, unsigned int *flags);
111 irqreturn_t handle_irq_event_percpu(struct irq_desc *desc);
112 irqreturn_t handle_irq_event(struct irq_desc *desc);
115 int check_irq_resend(struct irq_desc *desc, bool inject);
116 bool irq_wait_for_poll(struct irq_desc *desc);
117 void __irq_wake_thread(struct irq_desc *desc, struct irqaction *action);
120 extern void register_irq_proc(unsigned int irq, struct irq_desc *desc);
121 extern void unregister_irq_proc(unsigned int irq, struct irq_desc *desc);
125 static inline void register_irq_proc(unsigned int irq, struct irq_desc *desc) { } in register_irq_proc() argument
126 static inline void unregister_irq_proc(unsigned int irq, struct irq_desc *desc) { } in unregister_irq_proc() argument
135 extern void irq_set_thread_affinity(struct irq_desc *desc);
141 extern int irq_setup_affinity(struct irq_desc *desc);
143 static inline int irq_setup_affinity(struct irq_desc *desc) { return 0; } in irq_setup_affinity() argument
147 static inline void chip_bus_lock(struct irq_desc *desc) in chip_bus_lock() argument
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()
153 static inline void chip_bus_sync_unlock(struct irq_desc *desc) in chip_bus_sync_unlock() argument
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()
165 #define for_each_action_of_desc(desc, act) \ argument
166 for (act = desc->action; act; act = act->next)
171 void __irq_put_desc_unlock(struct irq_desc *desc, unsigned long flags, bool bus);
180 irq_put_desc_busunlock(struct irq_desc *desc, unsigned long flags) in irq_put_desc_busunlock() argument
182 __irq_put_desc_unlock(desc, flags, true); in irq_put_desc_busunlock()
192 irq_put_desc_unlock(struct irq_desc *desc, unsigned long flags) in irq_put_desc_unlock() argument
194 __irq_put_desc_unlock(desc, flags, false); in irq_put_desc_unlock()
242 static inline void irq_state_set_disabled(struct irq_desc *desc) in irq_state_set_disabled() argument
244 irqd_set(&desc->irq_data, IRQD_IRQ_DISABLED); in irq_state_set_disabled()
247 static inline void irq_state_set_masked(struct irq_desc *desc) in irq_state_set_masked() argument
249 irqd_set(&desc->irq_data, IRQD_IRQ_MASKED); in irq_state_set_masked()
254 static inline void __kstat_incr_irqs_this_cpu(struct irq_desc *desc) in __kstat_incr_irqs_this_cpu() argument
256 __this_cpu_inc(*desc->kstat_irqs); in __kstat_incr_irqs_this_cpu()
260 static inline void kstat_incr_irqs_this_cpu(struct irq_desc *desc) in kstat_incr_irqs_this_cpu() argument
262 __kstat_incr_irqs_this_cpu(desc); in kstat_incr_irqs_this_cpu()
263 desc->tot_count++; in kstat_incr_irqs_this_cpu()
266 static inline int irq_desc_get_node(struct irq_desc *desc) in irq_desc_get_node() argument
268 return irq_common_data_get_node(&desc->irq_common_data); in irq_desc_get_node()
271 static inline int irq_desc_is_chained(struct irq_desc *desc) in irq_desc_is_chained() argument
273 return (desc->action && desc->action == &chained_action); in irq_desc_is_chained()
277 bool irq_pm_check_wakeup(struct irq_desc *desc);
278 void irq_pm_install_action(struct irq_desc *desc, struct irqaction *action);
279 void irq_pm_remove_action(struct irq_desc *desc, struct irqaction *action);
281 static inline bool irq_pm_check_wakeup(struct irq_desc *desc) { return false; } in irq_pm_check_wakeup() argument
283 irq_pm_install_action(struct irq_desc *desc, struct irqaction *action) { } in irq_pm_install_action() argument
285 irq_pm_remove_action(struct irq_desc *desc, struct irqaction *action) { } in irq_pm_remove_action() argument
309 static inline void irq_remove_timings(struct irq_desc *desc) in irq_remove_timings() argument
311 desc->istate &= ~IRQS_TIMINGS; in irq_remove_timings()
313 irq_timings_free(irq_desc_get_irq(desc)); in irq_remove_timings()
316 static inline void irq_setup_timings(struct irq_desc *desc, struct irqaction *act) in irq_setup_timings() argument
318 int irq = irq_desc_get_irq(desc); in irq_setup_timings()
339 desc->istate |= IRQS_TIMINGS; in irq_setup_timings()
382 static __always_inline void record_irq_time(struct irq_desc *desc) in record_irq_time() argument
387 if (desc->istate & IRQS_TIMINGS) in record_irq_time()
388 irq_timings_push(local_clock(), irq_desc_get_irq(desc)); in record_irq_time()
391 static inline void irq_remove_timings(struct irq_desc *desc) {} in irq_remove_timings() argument
392 static inline void irq_setup_timings(struct irq_desc *desc, in irq_setup_timings() argument
394 static inline void record_irq_time(struct irq_desc *desc) {} in record_irq_time() argument
419 irq_copy_pending(struct irq_desc *desc, const struct cpumask *mask) in irq_copy_pending() argument
421 cpumask_copy(desc->pending_mask, mask); in irq_copy_pending()
424 irq_get_pending(struct cpumask *mask, struct irq_desc *desc) in irq_get_pending() argument
426 cpumask_copy(mask, desc->pending_mask); in irq_get_pending()
428 static inline struct cpumask *irq_desc_get_pending_mask(struct irq_desc *desc) in irq_desc_get_pending_mask() argument
430 return desc->pending_mask; in irq_desc_get_pending_mask()
436 bool irq_fixup_move_pending(struct irq_desc *desc, bool force_clear);
447 irq_copy_pending(struct irq_desc *desc, const struct cpumask *mask) in irq_copy_pending() argument
451 irq_get_pending(struct cpumask *mask, struct irq_desc *desc) in irq_get_pending() argument
454 static inline struct cpumask *irq_desc_get_pending_mask(struct irq_desc *desc) in irq_desc_get_pending_mask() argument
458 static inline bool irq_fixup_move_pending(struct irq_desc *desc, bool fclear) in irq_fixup_move_pending() argument
492 void irq_add_debugfs_entry(unsigned int irq, struct irq_desc *desc);
493 static inline void irq_remove_debugfs_entry(struct irq_desc *desc) in irq_remove_debugfs_entry() argument
495 debugfs_remove(desc->debugfs_file); in irq_remove_debugfs_entry()
496 kfree(desc->dev_name); in irq_remove_debugfs_entry()