• Home
  • Raw
  • Download

Lines Matching refs:fwnode

34 	struct fwnode_handle	fwnode;  member
48 static const char *irqchip_fwnode_get_name(const struct fwnode_handle *fwnode) in irqchip_fwnode_get_name() argument
50 struct irqchip_fwid *fwid = container_of(fwnode, struct irqchip_fwid, fwnode); in irqchip_fwnode_get_name()
106 fwnode_init(&fwid->fwnode, &irqchip_fwnode_ops); in __irq_domain_alloc_fwnode()
107 return &fwid->fwnode; in __irq_domain_alloc_fwnode()
116 void irq_domain_free_fwnode(struct fwnode_handle *fwnode) in irq_domain_free_fwnode() argument
120 if (WARN_ON(!is_fwnode_irqchip(fwnode))) in irq_domain_free_fwnode()
123 fwid = container_of(fwnode, struct irqchip_fwid, fwnode); in irq_domain_free_fwnode()
129 static struct irq_domain *__irq_domain_create(struct fwnode_handle *fwnode, in __irq_domain_create() argument
147 GFP_KERNEL, of_node_to_nid(to_of_node(fwnode))); in __irq_domain_create()
151 if (is_fwnode_irqchip(fwnode)) { in __irq_domain_create()
152 fwid = container_of(fwnode, struct irqchip_fwid, fwnode); in __irq_domain_create()
157 domain->fwnode = fwnode; in __irq_domain_create()
166 domain->fwnode = fwnode; in __irq_domain_create()
170 } else if (is_of_node(fwnode) || is_acpi_device_node(fwnode) || in __irq_domain_create()
171 is_software_node(fwnode)) { in __irq_domain_create()
179 name = kasprintf(GFP_KERNEL, "%pfw", fwnode); in __irq_domain_create()
188 domain->fwnode = fwnode; in __irq_domain_create()
193 if (fwnode) in __irq_domain_create()
204 fwnode_handle_get(fwnode); in __irq_domain_create()
205 fwnode_dev_initialized(fwnode, true); in __irq_domain_create()
248 struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, unsigned int size, in __irq_domain_add() argument
255 domain = __irq_domain_create(fwnode, size, hwirq_max, direct_max, in __irq_domain_add()
291 fwnode_dev_initialized(domain->fwnode, false); in irq_domain_remove()
292 fwnode_handle_put(domain->fwnode); in irq_domain_remove()
349 struct irq_domain *irq_domain_create_simple(struct fwnode_handle *fwnode, in irq_domain_create_simple() argument
357 domain = __irq_domain_add(fwnode, size, size, 0, ops, host_data); in irq_domain_create_simple()
365 of_node_to_nid(to_of_node(fwnode))); in irq_domain_create_simple()
404 struct irq_domain *irq_domain_create_legacy(struct fwnode_handle *fwnode, in irq_domain_create_legacy() argument
413 domain = __irq_domain_add(fwnode, first_hwirq + size, first_hwirq + size, 0, ops, host_data); in irq_domain_create_legacy()
430 struct fwnode_handle *fwnode = fwspec->fwnode; in irq_find_matching_fwspec() local
447 rc = h->ops->match(h, to_of_node(fwnode), bus_token); in irq_find_matching_fwspec()
449 rc = ((fwnode != NULL) && (h->fwnode == fwnode) && in irq_find_matching_fwspec()
788 return d->ops->xlate(d, to_of_node(fwspec->fwnode), in irq_domain_translate()
802 fwspec->fwnode = of_node_to_fwnode(np); in of_phandle_args_to_fwspec()
818 if (fwspec->fwnode) { in irq_create_fwspec_mapping()
828 of_node_full_name(to_of_node(fwspec->fwnode))); in irq_create_fwspec_mapping()
874 hwirq, of_node_full_name(to_of_node(fwspec->fwnode))); in irq_create_fwspec_mapping()
1155 struct fwnode_handle *fwnode, in irq_domain_create_hierarchy() argument
1162 domain = __irq_domain_create(fwnode, size, size, 0, ops, host_data); in irq_domain_create_hierarchy()
1164 domain = __irq_domain_create(fwnode, 0, ~0, 0, ops, host_data); in irq_domain_create_hierarchy()