Lines Matching refs:desc

48 	struct irq_desc *desc = irq_to_desc((long)m->private);  in show_irq_affinity()  local
54 mask = desc->irq_common_data.affinity; in show_irq_affinity()
56 if (irqd_is_setaffinity_pending(&desc->irq_data)) in show_irq_affinity()
57 mask = desc->pending_mask; in show_irq_affinity()
63 mask = irq_data_get_effective_affinity_mask(&desc->irq_data); in show_irq_affinity()
85 struct irq_desc *desc = irq_to_desc((long)m->private); in irq_affinity_hint_proc_show() local
92 raw_spin_lock_irqsave(&desc->lock, flags); in irq_affinity_hint_proc_show()
93 if (desc->affinity_hint) in irq_affinity_hint_proc_show()
94 cpumask_copy(mask, desc->affinity_hint); in irq_affinity_hint_proc_show()
95 raw_spin_unlock_irqrestore(&desc->lock, flags); in irq_affinity_hint_proc_show()
281 struct irq_desc *desc = irq_to_desc((long) m->private); in irq_node_proc_show() local
283 seq_printf(m, "%d\n", irq_desc_get_node(desc)); in irq_node_proc_show()
290 struct irq_desc *desc = irq_to_desc((long) m->private); in irq_spurious_proc_show() local
293 desc->irq_count, desc->irqs_unhandled, in irq_spurious_proc_show()
294 jiffies_to_msecs(desc->last_unhandled)); in irq_spurious_proc_show()
302 struct irq_desc *desc = irq_to_desc(irq); in name_unique() local
307 raw_spin_lock_irqsave(&desc->lock, flags); in name_unique()
308 for_each_action_of_desc(desc, action) { in name_unique()
315 raw_spin_unlock_irqrestore(&desc->lock, flags); in name_unique()
322 struct irq_desc *desc = irq_to_desc(irq); in register_handler_proc() local
324 if (!desc->dir || action->dir || !action->name || in register_handler_proc()
331 action->dir = proc_mkdir(name, desc->dir); in register_handler_proc()
338 void register_irq_proc(unsigned int irq, struct irq_desc *desc) in register_irq_proc() argument
344 if (!root_irq_dir || (desc->irq_data.chip == &no_irq_chip)) in register_irq_proc()
354 if (desc->dir) in register_irq_proc()
360 desc->dir = proc_mkdir(name, root_irq_dir); in register_irq_proc()
361 if (!desc->dir) in register_irq_proc()
366 proc_create_data("smp_affinity", 0644, desc->dir, in register_irq_proc()
370 proc_create_single_data("affinity_hint", 0444, desc->dir, in register_irq_proc()
374 proc_create_data("smp_affinity_list", 0644, desc->dir, in register_irq_proc()
377 proc_create_single_data("node", 0444, desc->dir, irq_node_proc_show, in register_irq_proc()
380 proc_create_single_data("effective_affinity", 0444, desc->dir, in register_irq_proc()
382 proc_create_single_data("effective_affinity_list", 0444, desc->dir, in register_irq_proc()
386 proc_create_single_data("spurious", 0444, desc->dir, in register_irq_proc()
393 void unregister_irq_proc(unsigned int irq, struct irq_desc *desc) in unregister_irq_proc() argument
397 if (!root_irq_dir || !desc->dir) in unregister_irq_proc()
400 remove_proc_entry("smp_affinity", desc->dir); in unregister_irq_proc()
401 remove_proc_entry("affinity_hint", desc->dir); in unregister_irq_proc()
402 remove_proc_entry("smp_affinity_list", desc->dir); in unregister_irq_proc()
403 remove_proc_entry("node", desc->dir); in unregister_irq_proc()
405 remove_proc_entry("effective_affinity", desc->dir); in unregister_irq_proc()
406 remove_proc_entry("effective_affinity_list", desc->dir); in unregister_irq_proc()
409 remove_proc_entry("spurious", desc->dir); in unregister_irq_proc()
433 struct irq_desc *desc; in init_irq_proc() local
445 for_each_irq_desc(irq, desc) in init_irq_proc()
446 register_irq_proc(irq, desc); in init_irq_proc()
467 struct irq_desc *desc; in show_interrupts() local
487 desc = irq_to_desc(i); in show_interrupts()
488 if (!desc || irq_settings_is_hidden(desc)) in show_interrupts()
491 if (desc->kstat_irqs) { in show_interrupts()
493 any_count |= data_race(*per_cpu_ptr(desc->kstat_irqs, j)); in show_interrupts()
496 if ((!desc->action || irq_desc_is_chained(desc)) && !any_count) in show_interrupts()
501 seq_printf(p, "%10u ", desc->kstat_irqs ? in show_interrupts()
502 *per_cpu_ptr(desc->kstat_irqs, j) : 0); in show_interrupts()
504 raw_spin_lock_irqsave(&desc->lock, flags); in show_interrupts()
505 if (desc->irq_data.chip) { in show_interrupts()
506 if (desc->irq_data.chip->irq_print_chip) in show_interrupts()
507 desc->irq_data.chip->irq_print_chip(&desc->irq_data, p); in show_interrupts()
508 else if (desc->irq_data.chip->name) in show_interrupts()
509 seq_printf(p, " %8s", desc->irq_data.chip->name); in show_interrupts()
515 if (desc->irq_data.domain) in show_interrupts()
516 seq_printf(p, " %*lu", prec, desc->irq_data.hwirq); in show_interrupts()
520 seq_printf(p, " %-8s", irqd_is_level_type(&desc->irq_data) ? "Level" : "Edge"); in show_interrupts()
522 if (desc->name) in show_interrupts()
523 seq_printf(p, "-%-8s", desc->name); in show_interrupts()
525 action = desc->action; in show_interrupts()
533 raw_spin_unlock_irqrestore(&desc->lock, flags); in show_interrupts()