Lines Matching refs:d
41 static void debugfs_add_domain_dir(struct irq_domain *d);
42 static void debugfs_remove_domain_dir(struct irq_domain *d);
44 static inline void debugfs_add_domain_dir(struct irq_domain *d) { } in debugfs_add_domain_dir() argument
45 static inline void debugfs_remove_domain_dir(struct irq_domain *d) { } in debugfs_remove_domain_dir() argument
779 static int irq_domain_translate(struct irq_domain *d, in irq_domain_translate() argument
784 if (d->ops->translate) in irq_domain_translate()
785 return d->ops->translate(d, fwspec, hwirq, type); in irq_domain_translate()
787 if (d->ops->xlate) in irq_domain_translate()
788 return d->ops->xlate(d, to_of_node(fwspec->fwnode), in irq_domain_translate()
1001 int irq_domain_xlate_onecell(struct irq_domain *d, struct device_node *ctrlr, in irq_domain_xlate_onecell() argument
1020 int irq_domain_xlate_twocell(struct irq_domain *d, struct device_node *ctrlr, in irq_domain_xlate_twocell() argument
1027 return irq_domain_translate_twocell(d, &fwspec, out_hwirq, out_type); in irq_domain_xlate_twocell()
1042 int irq_domain_xlate_onetwocell(struct irq_domain *d, in irq_domain_xlate_onetwocell() argument
1067 int irq_domain_translate_onecell(struct irq_domain *d, in irq_domain_translate_onecell() argument
1088 int irq_domain_translate_twocell(struct irq_domain *d, in irq_domain_translate_twocell() argument
1579 static void irq_domain_fix_revmap(struct irq_data *d) in irq_domain_fix_revmap() argument
1583 if (irq_domain_is_nomap(d->domain)) in irq_domain_fix_revmap()
1587 mutex_lock(&d->domain->revmap_mutex); in irq_domain_fix_revmap()
1588 if (d->hwirq < d->domain->revmap_size) { in irq_domain_fix_revmap()
1590 rcu_assign_pointer(d->domain->revmap[d->hwirq], d); in irq_domain_fix_revmap()
1592 slot = radix_tree_lookup_slot(&d->domain->revmap_tree, d->hwirq); in irq_domain_fix_revmap()
1594 radix_tree_replace_slot(&d->domain->revmap_tree, slot, d); in irq_domain_fix_revmap()
1596 mutex_unlock(&d->domain->revmap_mutex); in irq_domain_fix_revmap()
1952 irq_domain_debug_show_one(struct seq_file *m, struct irq_domain *d, int ind) in irq_domain_debug_show_one() argument
1954 seq_printf(m, "%*sname: %s\n", ind, "", d->name); in irq_domain_debug_show_one()
1955 seq_printf(m, "%*ssize: %u\n", ind + 1, "", d->revmap_size); in irq_domain_debug_show_one()
1956 seq_printf(m, "%*smapped: %u\n", ind + 1, "", d->mapcount); in irq_domain_debug_show_one()
1957 seq_printf(m, "%*sflags: 0x%08x\n", ind +1 , "", d->flags); in irq_domain_debug_show_one()
1958 if (d->ops && d->ops->debug_show) in irq_domain_debug_show_one()
1959 d->ops->debug_show(m, d, NULL, ind + 1); in irq_domain_debug_show_one()
1961 if (!d->parent) in irq_domain_debug_show_one()
1963 seq_printf(m, "%*sparent: %s\n", ind + 1, "", d->parent->name); in irq_domain_debug_show_one()
1964 irq_domain_debug_show_one(m, d->parent, ind + 4); in irq_domain_debug_show_one()
1970 struct irq_domain *d = m->private; in irq_domain_debug_show() local
1973 if (!d) { in irq_domain_debug_show()
1976 d = irq_default_domain; in irq_domain_debug_show()
1978 irq_domain_debug_show_one(m, d, 0); in irq_domain_debug_show()
1983 static void debugfs_add_domain_dir(struct irq_domain *d) in debugfs_add_domain_dir() argument
1985 if (!d->name || !domain_dir) in debugfs_add_domain_dir()
1987 debugfs_create_file(d->name, 0444, domain_dir, d, in debugfs_add_domain_dir()
1991 static void debugfs_remove_domain_dir(struct irq_domain *d) in debugfs_remove_domain_dir() argument
1993 debugfs_lookup_and_remove(d->name, domain_dir); in debugfs_remove_domain_dir()
1998 struct irq_domain *d; in irq_domain_debugfs_init() local
2005 list_for_each_entry(d, &irq_domain_list, link) in irq_domain_debugfs_init()
2006 debugfs_add_domain_dir(d); in irq_domain_debugfs_init()