Lines Matching refs:desc
30 static void irq_debug_show_masks(struct seq_file *m, struct irq_desc *desc) in irq_debug_show_masks() argument
32 struct irq_data *data = irq_desc_get_irq_data(desc); in irq_debug_show_masks()
42 msk = desc->pending_mask; in irq_debug_show_masks()
47 static void irq_debug_show_masks(struct seq_file *m, struct irq_desc *desc) { } in irq_debug_show_masks() argument
166 struct irq_desc *desc = m->private; in irq_debug_show() local
169 raw_spin_lock_irq(&desc->lock); in irq_debug_show()
170 data = irq_desc_get_irq_data(desc); in irq_debug_show()
171 seq_printf(m, "handler: %ps\n", desc->handle_irq); in irq_debug_show()
172 seq_printf(m, "device: %s\n", desc->dev_name); in irq_debug_show()
173 seq_printf(m, "status: 0x%08x\n", desc->status_use_accessors); in irq_debug_show()
174 irq_debug_show_bits(m, 0, desc->status_use_accessors, irqdesc_states, in irq_debug_show()
176 seq_printf(m, "istate: 0x%08x\n", desc->istate); in irq_debug_show()
177 irq_debug_show_bits(m, 0, desc->istate, irqdesc_istates, in irq_debug_show()
179 seq_printf(m, "ddepth: %u\n", desc->depth); in irq_debug_show()
180 seq_printf(m, "wdepth: %u\n", desc->wake_depth); in irq_debug_show()
185 irq_debug_show_masks(m, desc); in irq_debug_show()
187 raw_spin_unlock_irq(&desc->lock); in irq_debug_show()
199 struct irq_desc *desc = file_inode(file)->i_private; in irq_debug_write() local
208 int err = irq_inject_interrupt(irq_desc_get_irq(desc)); in irq_debug_write()
226 struct irq_desc *desc = irq_to_desc(irq); in irq_debugfs_copy_devname() local
230 desc->dev_name = kstrdup(name, GFP_KERNEL); in irq_debugfs_copy_devname()
233 void irq_add_debugfs_entry(unsigned int irq, struct irq_desc *desc) in irq_add_debugfs_entry() argument
237 if (!irq_dir || !desc || desc->debugfs_file) in irq_add_debugfs_entry()
241 desc->debugfs_file = debugfs_create_file(name, 0644, irq_dir, desc, in irq_add_debugfs_entry()