• Home
  • Raw
  • Download

Lines Matching refs:d

38 static void debugfs_add_domain_dir(struct irq_domain *d);
39 static void debugfs_remove_domain_dir(struct irq_domain *d);
41 static inline void debugfs_add_domain_dir(struct irq_domain *d) { } in debugfs_add_domain_dir() argument
42 static inline void debugfs_remove_domain_dir(struct irq_domain *d) { } in debugfs_remove_domain_dir() argument
730 static int irq_domain_translate(struct irq_domain *d, in irq_domain_translate() argument
735 if (d->ops->translate) in irq_domain_translate()
736 return d->ops->translate(d, fwspec, hwirq, type); in irq_domain_translate()
738 if (d->ops->xlate) in irq_domain_translate()
739 return d->ops->xlate(d, to_of_node(fwspec->fwnode), in irq_domain_translate()
927 int irq_domain_xlate_onecell(struct irq_domain *d, struct device_node *ctrlr, in irq_domain_xlate_onecell() argument
946 int irq_domain_xlate_twocell(struct irq_domain *d, struct device_node *ctrlr, in irq_domain_xlate_twocell() argument
953 return irq_domain_translate_twocell(d, &fwspec, out_hwirq, out_type); in irq_domain_xlate_twocell()
968 int irq_domain_xlate_onetwocell(struct irq_domain *d, in irq_domain_xlate_onetwocell() argument
997 int irq_domain_translate_twocell(struct irq_domain *d, in irq_domain_translate_twocell() argument
1376 static void irq_domain_fix_revmap(struct irq_data *d) in irq_domain_fix_revmap() argument
1380 if (d->hwirq < d->domain->revmap_size) in irq_domain_fix_revmap()
1384 mutex_lock(&d->domain->revmap_tree_mutex); in irq_domain_fix_revmap()
1385 slot = radix_tree_lookup_slot(&d->domain->revmap_tree, d->hwirq); in irq_domain_fix_revmap()
1387 radix_tree_replace_slot(&d->domain->revmap_tree, slot, d); in irq_domain_fix_revmap()
1388 mutex_unlock(&d->domain->revmap_tree_mutex); in irq_domain_fix_revmap()
1740 irq_domain_debug_show_one(struct seq_file *m, struct irq_domain *d, int ind) in irq_domain_debug_show_one() argument
1742 seq_printf(m, "%*sname: %s\n", ind, "", d->name); in irq_domain_debug_show_one()
1744 d->revmap_size + d->revmap_direct_max_irq); in irq_domain_debug_show_one()
1745 seq_printf(m, "%*smapped: %u\n", ind + 1, "", d->mapcount); in irq_domain_debug_show_one()
1746 seq_printf(m, "%*sflags: 0x%08x\n", ind +1 , "", d->flags); in irq_domain_debug_show_one()
1747 if (d->ops && d->ops->debug_show) in irq_domain_debug_show_one()
1748 d->ops->debug_show(m, d, NULL, ind + 1); in irq_domain_debug_show_one()
1750 if (!d->parent) in irq_domain_debug_show_one()
1752 seq_printf(m, "%*sparent: %s\n", ind + 1, "", d->parent->name); in irq_domain_debug_show_one()
1753 irq_domain_debug_show_one(m, d->parent, ind + 4); in irq_domain_debug_show_one()
1759 struct irq_domain *d = m->private; in irq_domain_debug_show() local
1762 if (!d) { in irq_domain_debug_show()
1765 d = irq_default_domain; in irq_domain_debug_show()
1767 irq_domain_debug_show_one(m, d, 0); in irq_domain_debug_show()
1772 static void debugfs_add_domain_dir(struct irq_domain *d) in debugfs_add_domain_dir() argument
1774 if (!d->name || !domain_dir || d->debugfs_file) in debugfs_add_domain_dir()
1776 d->debugfs_file = debugfs_create_file(d->name, 0444, domain_dir, d, in debugfs_add_domain_dir()
1780 static void debugfs_remove_domain_dir(struct irq_domain *d) in debugfs_remove_domain_dir() argument
1782 debugfs_remove(d->debugfs_file); in debugfs_remove_domain_dir()
1783 d->debugfs_file = NULL; in debugfs_remove_domain_dir()
1788 struct irq_domain *d; in irq_domain_debugfs_init() local
1795 list_for_each_entry(d, &irq_domain_list, link) in irq_domain_debugfs_init()
1796 debugfs_add_domain_dir(d); in irq_domain_debugfs_init()