• Home
  • Raw
  • Download

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()
259 struct irq_desc *desc = irq_to_desc((long) m->private); in irq_node_proc_show() local
261 seq_printf(m, "%d\n", irq_desc_get_node(desc)); in irq_node_proc_show()
268 struct irq_desc *desc = irq_to_desc((long) m->private); in irq_spurious_proc_show() local
271 desc->irq_count, desc->irqs_unhandled, in irq_spurious_proc_show()
272 jiffies_to_msecs(desc->last_unhandled)); in irq_spurious_proc_show()
280 struct irq_desc *desc = irq_to_desc(irq); in name_unique() local
285 raw_spin_lock_irqsave(&desc->lock, flags); in name_unique()
286 for_each_action_of_desc(desc, action) { in name_unique()
293 raw_spin_unlock_irqrestore(&desc->lock, flags); in name_unique()
300 struct irq_desc *desc = irq_to_desc(irq); in register_handler_proc() local
302 if (!desc->dir || action->dir || !action->name || in register_handler_proc()
309 action->dir = proc_mkdir(name, desc->dir); in register_handler_proc()
316 void register_irq_proc(unsigned int irq, struct irq_desc *desc) in register_irq_proc() argument
322 if (!root_irq_dir || (desc->irq_data.chip == &no_irq_chip)) in register_irq_proc()
332 if (desc->dir) in register_irq_proc()
338 desc->dir = proc_mkdir(name, root_irq_dir); in register_irq_proc()
339 if (!desc->dir) in register_irq_proc()
344 proc_create_data("smp_affinity", 0644, desc->dir, in register_irq_proc()
348 proc_create_single_data("affinity_hint", 0444, desc->dir, in register_irq_proc()
352 proc_create_data("smp_affinity_list", 0644, desc->dir, in register_irq_proc()
355 proc_create_single_data("node", 0444, desc->dir, irq_node_proc_show, in register_irq_proc()
358 proc_create_single_data("effective_affinity", 0444, desc->dir, in register_irq_proc()
360 proc_create_single_data("effective_affinity_list", 0444, desc->dir, in register_irq_proc()
364 proc_create_single_data("spurious", 0444, desc->dir, in register_irq_proc()
371 void unregister_irq_proc(unsigned int irq, struct irq_desc *desc) in unregister_irq_proc() argument
375 if (!root_irq_dir || !desc->dir) in unregister_irq_proc()
378 remove_proc_entry("smp_affinity", desc->dir); in unregister_irq_proc()
379 remove_proc_entry("affinity_hint", desc->dir); in unregister_irq_proc()
380 remove_proc_entry("smp_affinity_list", desc->dir); in unregister_irq_proc()
381 remove_proc_entry("node", desc->dir); in unregister_irq_proc()
383 remove_proc_entry("effective_affinity", desc->dir); in unregister_irq_proc()
384 remove_proc_entry("effective_affinity_list", desc->dir); in unregister_irq_proc()
387 remove_proc_entry("spurious", desc->dir); in unregister_irq_proc()
411 struct irq_desc *desc; in init_irq_proc() local
423 for_each_irq_desc(irq, desc) in init_irq_proc()
424 register_irq_proc(irq, desc); in init_irq_proc()
445 struct irq_desc *desc; in show_interrupts() local
465 desc = irq_to_desc(i); in show_interrupts()
466 if (!desc) in show_interrupts()
469 if (desc->kstat_irqs) in show_interrupts()
471 any_count |= *per_cpu_ptr(desc->kstat_irqs, j); in show_interrupts()
473 if ((!desc->action || irq_desc_is_chained(desc)) && !any_count) in show_interrupts()
478 seq_printf(p, "%10u ", desc->kstat_irqs ? in show_interrupts()
479 *per_cpu_ptr(desc->kstat_irqs, j) : 0); in show_interrupts()
481 raw_spin_lock_irqsave(&desc->lock, flags); in show_interrupts()
482 if (desc->irq_data.chip) { in show_interrupts()
483 if (desc->irq_data.chip->irq_print_chip) in show_interrupts()
484 desc->irq_data.chip->irq_print_chip(&desc->irq_data, p); in show_interrupts()
485 else if (desc->irq_data.chip->name) in show_interrupts()
486 seq_printf(p, " %8s", desc->irq_data.chip->name); in show_interrupts()
492 if (desc->irq_data.domain) in show_interrupts()
493 seq_printf(p, " %*d", prec, (int) desc->irq_data.hwirq); in show_interrupts()
497 seq_printf(p, " %-8s", irqd_is_level_type(&desc->irq_data) ? "Level" : "Edge"); in show_interrupts()
499 if (desc->name) in show_interrupts()
500 seq_printf(p, "-%-8s", desc->name); in show_interrupts()
502 action = desc->action; in show_interrupts()
510 raw_spin_unlock_irqrestore(&desc->lock, flags); in show_interrupts()