Lines Matching full:irq_domain
26 static struct irq_domain *irq_default_domain;
28 static int irq_domain_alloc_irqs_locked(struct irq_domain *domain, int irq_base,
31 static void irq_domain_check_hierarchy(struct irq_domain *domain);
32 static void irq_domain_free_one_irq(struct irq_domain *domain, unsigned int virq);
42 static void debugfs_add_domain_dir(struct irq_domain *d);
43 static void debugfs_remove_domain_dir(struct irq_domain *d);
45 static inline void debugfs_add_domain_dir(struct irq_domain *d) { } in debugfs_add_domain_dir()
46 static inline void debugfs_remove_domain_dir(struct irq_domain *d) { } in debugfs_remove_domain_dir()
131 static int alloc_name(struct irq_domain *domain, char *base, enum irq_domain_bus_token bus_token) in alloc_name()
144 static int alloc_fwnode_name(struct irq_domain *domain, const struct fwnode_handle *fwnode, in alloc_fwnode_name()
168 static int alloc_unknown_name(struct irq_domain *domain, enum irq_domain_bus_token bus_token) in alloc_unknown_name()
184 static int irq_domain_set_name(struct irq_domain *domain, const struct irq_domain_info *info) in irq_domain_set_name()
225 static struct irq_domain *__irq_domain_create(const struct irq_domain_info *info) in __irq_domain_create()
227 struct irq_domain *domain; in __irq_domain_create()
277 static void __irq_domain_publish(struct irq_domain *domain) in __irq_domain_publish()
287 static void irq_domain_free(struct irq_domain *domain) in irq_domain_free()
308 static struct irq_domain *__irq_domain_instantiate(const struct irq_domain_info *info, in __irq_domain_instantiate()
311 struct irq_domain *domain; in __irq_domain_instantiate()
371 struct irq_domain *irq_domain_instantiate(const struct irq_domain_info *info) in irq_domain_instantiate()
385 void irq_domain_remove(struct irq_domain *domain) in irq_domain_remove()
413 void irq_domain_update_bus_token(struct irq_domain *domain, in irq_domain_update_bus_token()
446 * irq_domain_create_simple() - Register an irq_domain and optionally map a range of irqs
455 * Allocates an irq_domain, and optionally if first_irq is positive then also
463 struct irq_domain *irq_domain_create_simple(struct fwnode_handle *fwnode, in irq_domain_create_simple()
477 struct irq_domain *domain = __irq_domain_instantiate(&info, true, false); in irq_domain_create_simple()
484 * irq_domain_add_legacy() - Allocate and register a legacy revmap irq_domain.
498 struct irq_domain *irq_domain_add_legacy(struct device_node *of_node, in irq_domain_add_legacy()
510 struct irq_domain *irq_domain_create_legacy(struct fwnode_handle *fwnode, in irq_domain_create_legacy()
526 struct irq_domain *domain = __irq_domain_instantiate(&info, false, true); in irq_domain_create_legacy()
537 struct irq_domain *irq_find_matching_fwspec(struct irq_fwspec *fwspec, in irq_find_matching_fwspec()
540 struct irq_domain *h, *found = NULL; in irq_find_matching_fwspec()
584 void irq_set_default_host(struct irq_domain *domain) in irq_set_default_host()
601 struct irq_domain *irq_get_default_host(void) in irq_get_default_host()
607 static bool irq_domain_is_nomap(struct irq_domain *domain) in irq_domain_is_nomap()
613 static void irq_domain_clear_mapping(struct irq_domain *domain, in irq_domain_clear_mapping()
627 static void irq_domain_set_mapping(struct irq_domain *domain, in irq_domain_set_mapping()
646 static void irq_domain_disassociate(struct irq_domain *domain, unsigned int irq) in irq_domain_disassociate()
682 static int irq_domain_associate_locked(struct irq_domain *domain, unsigned int virq, in irq_domain_associate_locked()
724 int irq_domain_associate(struct irq_domain *domain, unsigned int virq, in irq_domain_associate()
737 void irq_domain_associate_many(struct irq_domain *domain, unsigned int irq_base, in irq_domain_associate_many()
763 unsigned int irq_create_direct_mapping(struct irq_domain *domain) in irq_create_direct_mapping()
795 static unsigned int irq_create_mapping_affinity_locked(struct irq_domain *domain, in irq_create_mapping_affinity_locked()
834 unsigned int irq_create_mapping_affinity(struct irq_domain *domain, in irq_create_mapping_affinity()
865 static int irq_domain_translate(struct irq_domain *d, in irq_domain_translate()
898 struct irq_domain *domain; in irq_create_fwspec_mapping()
1017 struct irq_domain *domain; in irq_dispose_mapping()
1044 struct irq_desc *__irq_resolve_mapping(struct irq_domain *domain, in __irq_resolve_mapping()
1099 int irq_domain_xlate_onecell(struct irq_domain *d, struct device_node *ctrlr, in irq_domain_xlate_onecell()
1124 int irq_domain_xlate_twocell(struct irq_domain *d, struct device_node *ctrlr, in irq_domain_xlate_twocell()
1152 int irq_domain_xlate_onetwocell(struct irq_domain *d, in irq_domain_xlate_onetwocell()
1181 int irq_domain_translate_onecell(struct irq_domain *d, in irq_domain_translate_onecell()
1206 int irq_domain_translate_twocell(struct irq_domain *d, in irq_domain_translate_twocell()
1270 struct irq_domain *irq_domain_create_hierarchy(struct irq_domain *parent, in irq_domain_create_hierarchy()
1286 struct irq_domain *d; in irq_domain_create_hierarchy()
1301 struct irq_domain *domain = data->domain; in irq_domain_insert_irq()
1320 struct irq_domain *domain = data->domain; in irq_domain_remove_irq()
1328 static struct irq_data *irq_domain_insert_irq_data(struct irq_domain *domain, in irq_domain_insert_irq_data()
1384 int irq_domain_disconnect_hierarchy(struct irq_domain *domain, in irq_domain_disconnect_hierarchy()
1447 static int irq_domain_alloc_irq_data(struct irq_domain *domain, in irq_domain_alloc_irq_data()
1451 struct irq_domain *parent; in irq_domain_alloc_irq_data()
1476 struct irq_data *irq_domain_get_irq_data(struct irq_domain *domain, in irq_domain_get_irq_data()
1498 int irq_domain_set_hwirq_and_chip(struct irq_domain *domain, unsigned int virq, in irq_domain_set_hwirq_and_chip()
1527 void irq_domain_set_info(struct irq_domain *domain, unsigned int virq, in irq_domain_set_info()
1544 void irq_domain_free_irqs_common(struct irq_domain *domain, unsigned int virq, in irq_domain_free_irqs_common()
1565 void irq_domain_free_irqs_top(struct irq_domain *domain, unsigned int virq, in irq_domain_free_irqs_top()
1577 static void irq_domain_free_irqs_hierarchy(struct irq_domain *domain, in irq_domain_free_irqs_hierarchy()
1592 int irq_domain_alloc_irqs_hierarchy(struct irq_domain *domain, in irq_domain_alloc_irqs_hierarchy()
1604 static int irq_domain_alloc_irqs_locked(struct irq_domain *domain, int irq_base, in irq_domain_alloc_irqs_locked()
1672 int __irq_domain_alloc_irqs(struct irq_domain *domain, int irq_base, in __irq_domain_alloc_irqs()
1725 int irq_domain_push_irq(struct irq_domain *domain, int virq, void *arg) in irq_domain_push_irq()
1806 int irq_domain_pop_irq(struct irq_domain *domain, int virq) in irq_domain_pop_irq()
1875 struct irq_domain *domain; in irq_domain_free_irqs()
1894 static void irq_domain_free_one_irq(struct irq_domain *domain, unsigned int virq) in irq_domain_free_one_irq()
1909 int irq_domain_alloc_irqs_parent(struct irq_domain *domain, in irq_domain_alloc_irqs_parent()
1927 void irq_domain_free_irqs_parent(struct irq_domain *domain, in irq_domain_free_irqs_parent()
1940 struct irq_domain *domain = irq_data->domain; in __irq_domain_deactivate_irq()
1954 struct irq_domain *domain = irqd->domain; in __irq_domain_activate_irq()
2005 static void irq_domain_check_hierarchy(struct irq_domain *domain) in irq_domain_check_hierarchy()
2017 struct irq_data *irq_domain_get_irq_data(struct irq_domain *domain, in irq_domain_get_irq_data()
2037 void irq_domain_set_info(struct irq_domain *domain, unsigned int virq, in irq_domain_set_info()
2047 static int irq_domain_alloc_irqs_locked(struct irq_domain *domain, int irq_base, in irq_domain_alloc_irqs_locked()
2054 static void irq_domain_check_hierarchy(struct irq_domain *domain) { } in irq_domain_check_hierarchy()
2055 static void irq_domain_free_one_irq(struct irq_domain *domain, unsigned int virq) { } in irq_domain_free_one_irq()
2077 static void irq_domain_debug_show_one(struct seq_file *m, struct irq_domain *d, int ind) in irq_domain_debug_show_one()
2096 struct irq_domain *d = m->private; in irq_domain_debug_show()
2109 static void debugfs_add_domain_dir(struct irq_domain *d) in debugfs_add_domain_dir()
2117 static void debugfs_remove_domain_dir(struct irq_domain *d) in debugfs_remove_domain_dir()
2124 struct irq_domain *d; in irq_domain_debugfs_init()