Home
last modified time | relevance | path

Searched refs:fwnode (Results 1 – 25 of 443) sorted by relevance

12345678910>>...18

/linux/drivers/base/
H A Dproperty.c24 of_fwnode_handle(dev->of_node) : dev->fwnode; in __dev_fwnode()
31 of_fwnode_handle(dev->of_node) : dev->fwnode; in __dev_fwnode_const()
54 * @fwnode: Firmware node whose property to check
63 bool fwnode_property_present(const struct fwnode_handle *fwnode, in fwnode_property_present() argument
68 if (IS_ERR_OR_NULL(fwnode)) in fwnode_property_present()
71 ret = fwnode_call_bool_op(fwnode, property_present, propname); in fwnode_property_present()
75 return fwnode_call_bool_op(fwnode->secondary, property_present, propname); in fwnode_property_present()
96 * @fwnode: Firmware node whose property to check
103 bool fwnode_property_read_bool(const struct fwnode_handle *fwnode, in fwnode_property_read_bool() argument
108 if (IS_ERR_OR_NULL(fwnode)) in fwnode_property_read_bool()
303 fwnode_property_read_int_array(const struct fwnode_handle * fwnode,const char * propname,unsigned int elem_size,void * val,size_t nval) fwnode_property_read_int_array() argument
343 fwnode_property_read_u8_array(const struct fwnode_handle * fwnode,const char * propname,u8 * val,size_t nval) fwnode_property_read_u8_array() argument
372 fwnode_property_read_u16_array(const struct fwnode_handle * fwnode,const char * propname,u16 * val,size_t nval) fwnode_property_read_u16_array() argument
401 fwnode_property_read_u32_array(const struct fwnode_handle * fwnode,const char * propname,u32 * val,size_t nval) fwnode_property_read_u32_array() argument
430 fwnode_property_read_u64_array(const struct fwnode_handle * fwnode,const char * propname,u64 * val,size_t nval) fwnode_property_read_u64_array() argument
459 fwnode_property_read_string_array(const struct fwnode_handle * fwnode,const char * propname,const char ** val,size_t nval) fwnode_property_read_string_array() argument
493 fwnode_property_read_string(const struct fwnode_handle * fwnode,const char * propname,const char ** val) fwnode_property_read_string() argument
517 fwnode_property_match_string(const struct fwnode_handle * fwnode,const char * propname,const char * string) fwnode_property_match_string() argument
562 fwnode_property_match_property_string(const struct fwnode_handle * fwnode,const char * propname,const char * const * array,size_t n) fwnode_property_match_property_string() argument
605 fwnode_property_get_reference_args(const struct fwnode_handle * fwnode,const char * prop,const char * nargs_prop,unsigned int nargs,unsigned int index,struct fwnode_reference_args * args) fwnode_property_get_reference_args() argument
642 fwnode_find_reference(const struct fwnode_handle * fwnode,const char * name,unsigned int index) fwnode_find_reference() argument
661 fwnode_get_name(const struct fwnode_handle * fwnode) fwnode_get_name() argument
674 fwnode_get_name_prefix(const struct fwnode_handle * fwnode) fwnode_get_name_prefix() argument
692 fwnode_name_eq(const struct fwnode_handle * fwnode,const char * name) fwnode_name_eq() argument
717 fwnode_get_parent(const struct fwnode_handle * fwnode) fwnode_get_parent() argument
738 fwnode_get_next_parent(struct fwnode_handle * fwnode) fwnode_get_next_parent() argument
754 fwnode_count_parents(const struct fwnode_handle * fwnode) fwnode_count_parents() argument
778 fwnode_get_nth_parent(struct fwnode_handle * fwnode,unsigned int depth) fwnode_get_nth_parent() argument
804 fwnode_get_next_child_node(const struct fwnode_handle * fwnode,struct fwnode_handle * child) fwnode_get_next_child_node() argument
845 fwnode_get_next_available_child_node(const struct fwnode_handle * fwnode,struct fwnode_handle * child) fwnode_get_next_available_child_node() argument
888 fwnode_get_named_child_node(const struct fwnode_handle * fwnode,const char * childname) fwnode_get_named_child_node() argument
919 fwnode_handle_get(struct fwnode_handle * fwnode) fwnode_handle_get() argument
937 fwnode_device_is_available(const struct fwnode_handle * fwnode) fwnode_device_is_available() argument
955 fwnode_get_child_node_count(const struct fwnode_handle * fwnode) fwnode_get_child_node_count() argument
981 fwnode_get_named_child_node_count(const struct fwnode_handle * fwnode,const char * name) fwnode_get_named_child_node_count() argument
1017 fwnode_get_phy_mode(const struct fwnode_handle * fwnode) fwnode_get_phy_mode() argument
1058 fwnode_iomap(struct fwnode_handle * fwnode,int index) fwnode_iomap() argument
1071 fwnode_irq_get(const struct fwnode_handle * fwnode,unsigned int index) fwnode_irq_get() argument
1097 fwnode_irq_get_byname(const struct fwnode_handle * fwnode,const char * name) fwnode_irq_get_byname() argument
1125 fwnode_graph_get_next_endpoint(const struct fwnode_handle * fwnode,struct fwnode_handle * prev) fwnode_graph_get_next_endpoint() argument
1187 fwnode_graph_get_remote_port_parent(const struct fwnode_handle * fwnode) fwnode_graph_get_remote_port_parent() argument
1210 fwnode_graph_get_remote_port(const struct fwnode_handle * fwnode) fwnode_graph_get_remote_port() argument
1226 fwnode_graph_get_remote_endpoint(const struct fwnode_handle * fwnode) fwnode_graph_get_remote_endpoint() argument
1265 fwnode_graph_get_endpoint_by_id(const struct fwnode_handle * fwnode,u32 port,u32 endpoint,unsigned long flags) fwnode_graph_get_endpoint_by_id() argument
1322 fwnode_graph_get_endpoint_count(const struct fwnode_handle * fwnode,unsigned long flags) fwnode_graph_get_endpoint_count() argument
1347 fwnode_graph_parse_endpoint(const struct fwnode_handle * fwnode,struct fwnode_endpoint * endpoint) fwnode_graph_parse_endpoint() argument
1362 fwnode_graph_devcon_matches(const struct fwnode_handle * fwnode,const char * con_id,void * data,devcon_match_fn_t match,void ** matches,unsigned int matches_len) fwnode_graph_devcon_matches() argument
1396 fwnode_devcon_matches(const struct fwnode_handle * fwnode,const char * con_id,void * data,devcon_match_fn_t match,void ** matches,unsigned int matches_len) fwnode_devcon_matches() argument
1438 fwnode_connection_find_match(const struct fwnode_handle * fwnode,const char * con_id,void * data,devcon_match_fn_t match) fwnode_connection_find_match() argument
1476 fwnode_connection_find_matches(const struct fwnode_handle * fwnode,const char * con_id,void * data,devcon_match_fn_t match,void ** matches,unsigned int matches_len) fwnode_connection_find_matches() argument
[all...]
/linux/drivers/acpi/
H A Dproperty.c97 fwnode_init(&dn->fwnode, &acpi_data_fwnode_ops); in acpi_nondev_subnode_extract()
123 if (acpi_enumerate_nondev_subnodes(scope, desc, &dn->data, &dn->fwnode)) in acpi_nondev_subnode_extract()
756 acpi_device_data_of_node(const struct fwnode_handle *fwnode) in acpi_device_data_of_node() argument
758 if (is_acpi_device_node(fwnode)) { in acpi_device_data_of_node()
759 const struct acpi_device *adev = to_acpi_device_node(fwnode); in acpi_device_data_of_node()
762 if (is_acpi_data_node(fwnode)) { in acpi_device_data_of_node()
763 const struct acpi_data_node *dn = to_acpi_data_node(fwnode); in acpi_device_data_of_node()
775 int acpi_node_prop_get(const struct fwnode_handle *fwnode, in acpi_node_prop_get() argument
778 return acpi_data_get_property(acpi_device_data_of_node(fwnode), in acpi_node_prop_get()
827 acpi_fwnode_get_named_child_node(const struct fwnode_handle *fwnode, in acpi_fwnode_get_named_child_node() argument
[all …]
H A Dirq.c63 fwspec.fwnode = acpi_get_gsi_domain_id(gsi); in acpi_register_gsi()
64 if (WARN_ON(!fwspec.fwnode)) { in acpi_register_gsi()
132 result = &device->fwnode; in acpi_get_irq_source_fwhandle()
164 static inline void acpi_irq_parse_one_match(struct fwnode_handle *fwnode, in acpi_irq_parse_one_match() argument
170 if (!fwnode) in acpi_irq_parse_one_match()
174 ctx->fwspec->fwnode = fwnode; in acpi_irq_parse_one_match()
204 struct fwnode_handle *fwnode; in acpi_irq_parse_one_cb() local
213 fwnode = acpi_get_gsi_domain_id(irq->interrupts[ctx->index]); in acpi_irq_parse_one_cb()
214 acpi_irq_parse_one_match(fwnode, irq->interrupts[ctx->index], in acpi_irq_parse_one_cb()
226 fwnode = acpi_get_irq_source_fwhandle(&eirq->resource_source, in acpi_irq_parse_one_cb()
[all …]
H A Dviot.c31 struct fwnode_handle *fwnode; member
81 struct fwnode_handle *fwnode; in viot_get_pci_iommu_fwnode() local
90 fwnode = dev_fwnode(&pdev->dev); in viot_get_pci_iommu_fwnode()
91 if (!fwnode) { in viot_get_pci_iommu_fwnode()
96 fwnode = acpi_alloc_fwnode_static(); in viot_get_pci_iommu_fwnode()
97 if (!fwnode) { in viot_get_pci_iommu_fwnode()
101 set_primary_fwnode(&pdev->dev, fwnode); in viot_get_pci_iommu_fwnode()
103 viommu->fwnode = dev_fwnode(&pdev->dev); in viot_get_pci_iommu_fwnode()
123 viommu->fwnode = &adev->fwnode; in viot_get_mmio_iommu_fwnode()
314 if (device_match_fwnode(dev, viommu->fwnode)) in viot_dev_iommu_init()
[all …]
/linux/drivers/platform/x86/intel/
H A Dchtwc_int33fe.c163 struct fwnode_handle *fwnode; in cht_int33fe_setup_dp() local
166 fwnode = software_node_fwnode(&displayport_node); in cht_int33fe_setup_dp()
167 if (!fwnode) in cht_int33fe_setup_dp()
183 fwnode->secondary = ERR_PTR(-ENODEV); in cht_int33fe_setup_dp()
184 data->dp->secondary = fwnode; in cht_int33fe_setup_dp()
202 struct fwnode_handle *fwnode = data; in cht_int33fe_put_swnode() local
204 fwnode_handle_put(fwnode); in cht_int33fe_put_swnode()
265 struct fwnode_handle *fwnode; in cht_int33fe_register_max17047() local
268 fwnode = software_node_fwnode(&max17047_node); in cht_int33fe_register_max17047()
269 if (!fwnode) in cht_int33fe_register_max17047()
318 struct fwnode_handle *fwnode; cht_int33fe_typec_probe() local
[all...]
/linux/drivers/gpio/
H A Dgpiolib-shared.c11 #include <linux/fwnode.h>
34 struct fwnode_handle *fwnode; member
51 struct fwnode_handle *fwnode; member
74 if (entry->fwnode == controller_node && entry->offset == offset) in gpio_shared_find_entry()
81 static struct gpio_shared_ref *gpio_shared_make_ref(struct fwnode_handle *fwnode, in gpio_shared_make_ref() argument
103 ref->fwnode = fwnode; in gpio_shared_make_ref()
130 entry->offset, fwnode_get_name(entry->fwnode)); in gpio_shared_setup_reset_proxy()
163 struct fwnode_handle *fwnode; in gpio_shared_of_traverse() local
225 fwnode in gpio_shared_of_traverse()
449 gpio_shared_add_proxy_lookup(struct device * consumer,struct fwnode_handle * fwnode,const char * con_id,unsigned long lflags) gpio_shared_add_proxy_lookup() argument
[all...]
H A Dgpiolib.c14 #include <linux/fwnode.h>
64 struct fwnode_handle *fwnode = dev_fwnode(dev); in gpio_bus_match()
67 * Only match if the fwnode doesn't already have a proper struct device in gpio_bus_match()
70 if (fwnode && fwnode->dev != dev) in gpio_bus_match()
950 struct fwnode_handle *fwnode = dev_fwnode(&gdev->dev); in gpiochip_setup_dev()
954 * If fwnode doesn't belong to another device, it's safe to clear its in gpiochip_setup_dev()
957 if (fwnode && !fwnode->dev) in gpiochip_setup_dev()
958 fwnode_dev_initialized(fwnode, fals in gpiochip_setup_dev()
63 struct fwnode_handle *fwnode = dev_fwnode(dev); gpio_bus_match() local
932 struct fwnode_handle *fwnode = dev_fwnode(&gdev->dev); gpiochip_setup_dev() local
960 gpiochip_add_hog(struct gpio_chip * gc,struct fwnode_handle * fwnode) gpiochip_add_hog() argument
1146 struct fwnode_handle *fwnode = gpiochip_choose_fwnode(gc); gpiochip_get_ngpios() local
1526 gpio_chip_match_by_fwnode(struct gpio_chip * gc,const void * fwnode) gpio_chip_match_by_fwnode() argument
1549 gpio_device_find_by_fwnode(const struct fwnode_handle * fwnode) gpio_device_find_by_fwnode() argument
2026 struct fwnode_handle *fwnode = fwspec->fwnode; gpiochip_irq_select() local
2047 struct fwnode_handle *fwnode = dev_fwnode(&gc->gpiodev->dev); gpiochip_simple_create_domain() local
2229 struct fwnode_handle *fwnode = dev_fwnode(&gc->gpiodev->dev); gpiochip_add_irqchip() local
4746 gpiod_find_by_fwnode(struct fwnode_handle * fwnode,struct device * consumer,const char * con_id,unsigned int idx,enum gpiod_flags * flags,unsigned long * lookupflags) gpiod_find_by_fwnode() argument
4770 gpiod_fwnode_lookup(struct fwnode_handle * fwnode,struct device * consumer,const char * con_id,unsigned int idx,enum gpiod_flags * flags,unsigned long * lookupflags) gpiod_fwnode_lookup() argument
4788 gpiod_find_and_request(struct device * consumer,struct fwnode_handle * fwnode,const char * con_id,unsigned int idx,enum gpiod_flags flags,const char * label,bool platform_lookup_allowed) gpiod_find_and_request() argument
4902 fwnode_gpiod_get_index(struct fwnode_handle * fwnode,const char * con_id,int index,enum gpiod_flags flags,const char * label) fwnode_gpiod_get_index() argument
4923 const struct fwnode_handle *fwnode = dev ? dev_fwnode(dev) : NULL; gpiod_count() local
5076 struct fwnode_handle *fwnode = dev ? dev_fwnode(dev) : NULL; gpiod_get_index() local
[all...]
/linux/samples/rust/
H A Drust_driver_platform.rs118 if dev.fwnode().is_some_and(|node| node.is_of_node()) { in probe()
128 let fwnode = dev.fwnode().ok_or(ENOENT)?; in properties_parse()
130 if let Ok(idx) = fwnode.property_match_string(c"compatible", c"test,rust-device") { in properties_parse()
135 let prop = fwnode.property_read::<CString>(name).required_by(dev)?; in properties_parse()
139 let prop = fwnode.property_read_bool(c"test,bool-prop"); in properties_parse()
142 if fwnode.property_present(c"test,u32-prop") { in properties_parse()
147 let prop = fwnode.property_read::<u32>(name).or(0x12); in properties_parse()
153 let _ = fwnode.property_read::<u32>(name).required_by(dev); in properties_parse()
156 let prop: u32 = fwnode in properties_parse()
125 let fwnode = dev.fwnode().ok_or(ENOENT)?; properties_parse() localVariable
[all...]
/linux/drivers/irqchip/
H A Dirq-sifive-plic.c71 struct fwnode_handle *fwnode; member
398 handler->priv->fwnode, hwirq); in plic_handle_irq()
490 handler->priv->fwnode, hwirq); in plic_handle_irq_cp100()
520 handler->priv->fwnode, cpu); in plic_starting_cpu()
547 static int plic_parse_nr_irqs_and_contexts(struct fwnode_handle *fwnode, in plic_parse_nr_irqs_and_contexts() argument
553 if (!is_of_node(fwnode)) { in plic_parse_nr_irqs_and_contexts()
554 rc = riscv_acpi_get_gsi_info(fwnode, gsi_base, id, nr_irqs, NULL); in plic_parse_nr_irqs_and_contexts()
556 pr_err("%pfwP: failed to find GSI mapping\n", fwnode); in plic_parse_nr_irqs_and_contexts()
562 pr_err("%pfwP: no PLIC context available\n", fwnode); in plic_parse_nr_irqs_and_contexts()
569 rc = of_property_read_u32(to_of_node(fwnode), "risc in plic_parse_nr_irqs_and_contexts()
587 plic_parse_context_parent(struct fwnode_handle * fwnode,u32 context,u32 * parent_hwirq,int * parent_cpu,u32 id) plic_parse_context_parent() argument
617 plic_probe(struct fwnode_handle * fwnode) plic_probe() argument
[all...]
H A Dirq-riscv-imsic-platform.c316 if (!imsic || !imsic->global.fwnode) { in imsic_irqdomain_init()
322 pr_err("%pfwP: irq domain already created\n", imsic->global.fwnode); in imsic_irqdomain_init()
327 info.fwnode = imsic->global.fwnode, in imsic_irqdomain_init()
330 pr_err("%pfwP: failed to create IMSIC base domain\n", imsic->global.fwnode); in imsic_irqdomain_init()
336 imsic->global.fwnode, global->hart_index_bits, global->guest_index_bits); in imsic_irqdomain_init()
338 imsic->global.fwnode, global->group_index_bits, global->group_index_shift); in imsic_irqdomain_init()
340 imsic->global.fwnode, global->nr_ids, &global->base_addr); in imsic_irqdomain_init()
342 imsic->global.fwnode, num_possible_cpus() * (global->nr_ids - 1)); in imsic_irqdomain_init()
347 static int imsic_platform_probe_common(struct fwnode_handle *fwnode) in imsic_platform_probe_common() argument
371 imsic_platform_acpi_probe(struct fwnode_handle * fwnode) imsic_platform_acpi_probe() argument
[all...]
H A Dirq-gic-v2m.c67 struct fwnode_handle *fwnode; member
117 if (is_of_node(domain->parent->fwnode)) { in gicv2m_irq_gic_domain_alloc()
118 fwspec.fwnode = domain->parent->fwnode; in gicv2m_irq_gic_domain_alloc()
123 } else if (is_fwnode_irqchip(domain->parent->fwnode)) { in gicv2m_irq_gic_domain_alloc()
124 fwspec.fwnode = domain->parent->fwnode; in gicv2m_irq_gic_domain_alloc()
241 of_node_put(to_of_node(v2m->fwnode)); in gicv2m_teardown()
242 if (is_fwnode_irqchip(v2m->fwnode)) in gicv2m_teardown()
243 irq_domain_free_fwnode(v2m->fwnode); in gicv2m_teardown()
280 info.fwnode = v2m->fwnode; in gicv2m_allocate_domains()
289 static int __init gicv2m_init_one(struct fwnode_handle *fwnode, in gicv2m_init_one() argument
[all …]
H A Dirq-riscv-imsic-early.c78 pr_info("%pfwP: providing IPIs using interrupt %d\n", imsic->global.fwnode, IMSIC_IPI_ID); in imsic_ipi_domain_init()
185 static int __init imsic_early_probe(struct fwnode_handle *fwnode) in imsic_early_probe() argument
193 pr_err("%pfwP: Failed to find INTC domain\n", fwnode); in imsic_early_probe()
198 pr_err("%pfwP: Failed to create INTC mapping\n", fwnode); in imsic_early_probe()
205 pr_err("%pfwP: Failed to initialize IPI domain\n", fwnode); in imsic_early_probe()
227 struct fwnode_handle *fwnode = &node->fwnode; in imsic_early_dt_init() local
231 rc = imsic_setup_state(fwnode, NULL); in imsic_early_dt_init()
233 pr_err("%pfwP: failed to setup state (error %d)\n", fwnode, rc); in imsic_early_dt_init()
238 rc = imsic_early_probe(fwnode); in imsic_early_dt_init()
[all...]
H A Dirq-gic-v4.c131 vpe->fwnode = irq_domain_alloc_named_id_fwnode(name, idx); in its_alloc_vcpu_sgis()
132 if (!vpe->fwnode) in its_alloc_vcpu_sgis()
138 vpe->sgi_domain = irq_domain_create_linear(vpe->fwnode, 16, in its_alloc_vcpu_sgis()
154 if (vpe->fwnode) { in its_alloc_vcpu_sgis()
155 irq_domain_free_fwnode(vpe->fwnode); in its_alloc_vcpu_sgis()
156 vpe->fwnode = NULL; in its_alloc_vcpu_sgis()
170 vm->fwnode = irq_domain_alloc_named_id_fwnode("GICv4-vpe", in its_alloc_vcpu_irqs()
172 if (!vm->fwnode) in its_alloc_vcpu_irqs()
176 vm->fwnode, vpe_domain_ops, in its_alloc_vcpu_irqs()
212 if (vm->fwnode) { in its_free_sgi_irqs()
[all...]
/linux/include/linux/
H A Dirqdomain.h42 struct fwnode_handle *fwnode; member
179 struct fwnode_handle *fwnode; member
249 return to_of_node(d->fwnode); in irq_domain_get_of_node()
306 void irq_domain_free_fwnode(struct fwnode_handle *fwnode);
337 struct fwnode_handle *fwnode; member
364 struct irq_domain *irq_domain_create_simple(struct fwnode_handle *fwnode, unsigned int size,
367 struct irq_domain *irq_domain_create_legacy(struct fwnode_handle *fwnode, unsigned int size,
379 static inline bool is_fwnode_irqchip(const struct fwnode_handle *fwnode) in is_fwnode_irqchip() argument
381 return fwnode && fwnode->ops == &irqchip_fwnode_ops; in is_fwnode_irqchip()
386 static inline struct irq_domain *irq_find_matching_fwnode(struct fwnode_handle *fwnode, in irq_find_matching_fwnode() argument
[all …]
/linux/drivers/of/
H A Dproperty.c1045 static struct fwnode_handle *of_fwnode_get(struct fwnode_handle *fwnode) in of_fwnode_get() argument
1047 return of_fwnode_handle(of_node_get(to_of_node(fwnode))); in of_fwnode_get()
1050 static void of_fwnode_put(struct fwnode_handle *fwnode) in of_fwnode_put() argument
1052 of_node_put(to_of_node(fwnode)); in of_fwnode_put()
1055 static bool of_fwnode_device_is_available(const struct fwnode_handle *fwnode) in of_fwnode_device_is_available() argument
1057 return of_device_is_available(to_of_node(fwnode)); in of_fwnode_device_is_available()
1060 static bool of_fwnode_device_dma_supported(const struct fwnode_handle *fwnode) in of_fwnode_device_dma_supported() argument
1066 of_fwnode_device_get_dma_attr(const struct fwnode_handle *fwnode) in of_fwnode_device_get_dma_attr() argument
1068 if (of_dma_is_coherent(to_of_node(fwnode))) in of_fwnode_device_get_dma_attr()
1074 static bool of_fwnode_property_present(const struct fwnode_handle *fwnode, in of_fwnode_property_present() argument
1080 of_fwnode_property_read_bool(const struct fwnode_handle * fwnode,const char * propname) of_fwnode_property_read_bool() argument
1086 of_fwnode_property_read_int_array(const struct fwnode_handle * fwnode,const char * propname,unsigned int elem_size,void * val,size_t nval) of_fwnode_property_read_int_array() argument
1112 of_fwnode_property_read_string_array(const struct fwnode_handle * fwnode,const char * propname,const char ** val,size_t nval) of_fwnode_property_read_string_array() argument
1123 of_fwnode_get_name(const struct fwnode_handle * fwnode) of_fwnode_get_name() argument
1128 of_fwnode_get_name_prefix(const struct fwnode_handle * fwnode) of_fwnode_get_name_prefix() argument
1138 of_fwnode_get_parent(const struct fwnode_handle * fwnode) of_fwnode_get_parent() argument
1144 of_fwnode_get_next_child_node(const struct fwnode_handle * fwnode,struct fwnode_handle * child) of_fwnode_get_next_child_node() argument
1152 of_fwnode_get_named_child_node(const struct fwnode_handle * fwnode,const char * childname) of_fwnode_get_named_child_node() argument
1166 of_fwnode_get_reference_args(const struct fwnode_handle * fwnode,const char * prop,const char * nargs_prop,unsigned int nargs,unsigned int index,struct fwnode_reference_args * args) of_fwnode_get_reference_args() argument
1206 of_fwnode_graph_get_next_endpoint(const struct fwnode_handle * fwnode,struct fwnode_handle * prev) of_fwnode_graph_get_next_endpoint() argument
1214 of_fwnode_graph_get_remote_endpoint(const struct fwnode_handle * fwnode) of_fwnode_graph_get_remote_endpoint() argument
1221 of_fwnode_graph_get_port_parent(struct fwnode_handle * fwnode) of_fwnode_graph_get_port_parent() argument
1237 of_fwnode_graph_parse_endpoint(const struct fwnode_handle * fwnode,struct fwnode_endpoint * endpoint) of_fwnode_graph_parse_endpoint() argument
1252 of_fwnode_device_get_match_data(const struct fwnode_handle * fwnode,const struct device * dev) of_fwnode_device_get_match_data() argument
1631 of_fwnode_iomap(struct fwnode_handle * fwnode,int index) of_fwnode_iomap() argument
1640 of_fwnode_irq_get(const struct fwnode_handle * fwnode,unsigned int index) of_fwnode_irq_get() argument
1670 of_fwnode_add_links(struct fwnode_handle * fwnode) of_fwnode_add_links() argument
[all...]
/linux/drivers/reset/
H A Dcore.c15 #include <linux/fwnode.h>
101 if (rcdev->fwnode) in rcdev_name()
102 return fwnode_get_name(rcdev->fwnode); in rcdev_name()
132 if ((rcdev->of_node && rcdev->fwnode) || (rcdev->of_xlate && rcdev->fwnode_xlate)) in reset_controller_register()
135 if (rcdev->of_node && !rcdev->fwnode) in reset_controller_register()
136 rcdev->fwnode = of_fwnode_handle(rcdev->of_node); in reset_controller_register()
138 if (!rcdev->fwnode) { in reset_controller_register()
139 rcdev->fwnode = dev_fwnode(rcdev->dev); in reset_controller_register()
140 if (!rcdev->fwnode) in reset_controller_register()
1004 static void reset_gpio_add_devlink(struct fwnode_handle *fwnode, in fwnode_reference_args_equal()
969 reset_gpio_add_devlink(struct fwnode_handle * fwnode,struct reset_gpio_lookup * rgpio_dev) reset_gpio_add_devlink() argument
1012 __reset_add_reset_gpio_device(struct fwnode_handle * fwnode,const struct fwnode_reference_args * args) __reset_add_reset_gpio_device() argument
1139 __fwnode_reset_control_get(struct fwnode_handle * fwnode,const char * id,int index,enum reset_control_flags flags) __fwnode_reset_control_get() argument
1240 struct fwnode_handle *fwnode = dev_fwnode(dev); __reset_control_get() local
1479 fwnode_reset_control_get_count(struct fwnode_handle * fwnode) fwnode_reset_control_get_count() argument
1517 fwnode_reset_control_array_get(struct fwnode_handle * fwnode,enum reset_control_flags flags) fwnode_reset_control_array_get() argument
1599 struct fwnode_handle *fwnode = dev_fwnode(dev); reset_control_get_count() local
[all...]
/linux/drivers/usb/typec/
H A Dmux.c27 static int switch_fwnode_match(struct device *dev, const void *fwnode) in switch_fwnode_match() argument
32 return device_match_fwnode(dev, fwnode); in switch_fwnode_match()
35 static void *typec_switch_match(const struct fwnode_handle *fwnode, in typec_switch_match() argument
44 * device type or the device class of the remote port parent that @fwnode in typec_switch_match()
45 * represents, so in order to identify the type or the class of @fwnode in typec_switch_match()
50 if (id && !fwnode_property_present(fwnode, id)) in typec_switch_match()
54 * At this point we are sure that @fwnode is a typec switch in all in typec_switch_match()
58 dev = class_find_device(&typec_mux_class, NULL, fwnode, in typec_switch_match()
75 * @fwnode: The caller device node
82 struct typec_switch *fwnode_typec_switch_get(struct fwnode_handle *fwnode) in fwnode_typec_switch_get() argument
269 mux_fwnode_match(struct device * dev,const void * fwnode) mux_fwnode_match() argument
277 typec_mux_match(const struct fwnode_handle * fwnode,const char * id,void * data) typec_mux_match() argument
320 fwnode_typec_mux_get(struct fwnode_handle * fwnode) fwnode_typec_mux_get() argument
[all...]
H A Dretimer.c20 static int retimer_fwnode_match(struct device *dev, const void *fwnode) in retimer_fwnode_match() argument
22 return is_typec_retimer(dev) && device_match_fwnode(dev, fwnode); in retimer_fwnode_match()
25 static void *typec_retimer_match(const struct fwnode_handle *fwnode, const char *id, void *data) in typec_retimer_match() argument
29 if (id && !fwnode_property_present(fwnode, id)) in typec_retimer_match()
32 dev = class_find_device(&retimer_class, NULL, fwnode, in typec_retimer_match()
47 struct typec_retimer *fwnode_typec_retimer_get(struct fwnode_handle *fwnode) in fwnode_typec_retimer_get() argument
51 retimer = fwnode_connection_find_match(fwnode, "retimer-switch", NULL, typec_retimer_match); in fwnode_typec_retimer_get()
121 retimer->dev.fwnode = desc->fwnode; in typec_retimer_register()
H A Dport-mapper.c40 static int usb4_port_compare(struct device *dev, void *fwnode) in usb4_port_compare() argument
42 return usb4_usb3_port_match(dev, fwnode); in usb4_port_compare()
45 static bool typec_has_usb4_host_interface(const struct fwnode_handle *fwnode) in typec_has_usb4_host_interface() argument
51 fwnode_find_reference(fwnode, "usb4-host-interface", 0); in typec_has_usb4_host_interface()
62 static int typec_port_compare(struct device *dev, void *fwnode) in typec_port_compare() argument
64 return device_match_fwnode(dev, fwnode); in typec_port_compare()
/linux/drivers/usb/roles/
H A Dclass.c126 static void *usb_role_switch_match(const struct fwnode_handle *fwnode, const char *id, in usb_role_switch_match() argument
131 if (id && !fwnode_property_present(fwnode, id)) in usb_role_switch_match()
134 dev = class_find_device_by_fwnode(&role_class, fwnode); in usb_role_switch_match()
140 usb_role_switch_is_parent(struct fwnode_handle *fwnode) in usb_role_switch_is_parent() argument
145 if (!fwnode_device_is_compatible(fwnode, "usb-b-connector")) in usb_role_switch_is_parent()
148 parent = fwnode_get_parent(fwnode); in usb_role_switch_is_parent()
190 struct usb_role_switch *fwnode_usb_role_switch_get(struct fwnode_handle *fwnode) in fwnode_usb_role_switch_get() argument
194 sw = usb_role_switch_is_parent(fwnode); in fwnode_usb_role_switch_get()
196 sw = fwnode_connection_find_match(fwnode, "usb-role-switch", in fwnode_usb_role_switch_get()
228 usb_role_switch_find_by_fwnode(const struct fwnode_handle *fwnode) in usb_role_switch_find_by_fwnode() argument
[all …]
/linux/drivers/i2c/busses/
H A Di2c-gpio.c394 struct fwnode_handle *fwnode = dev_fwnode(dev); in i2c_gpio_create_scl() local
405 if (fwnode) { in i2c_gpio_create_scl()
406 ret = fwnode_property_get_reference_args(fwnode, "scl-gpios", in i2c_gpio_create_scl()
410 ret = fwnode_property_get_reference_args(fwnode, "gpios", in i2c_gpio_create_scl()
417 fwnode_handle_put(args.fwnode); in i2c_gpio_create_scl()
424 fwnode_handle_put(args.fwnode); in i2c_gpio_create_scl()
429 scl->args.fwnode = args.fwnode; in i2c_gpio_create_scl()
443 if (scl->args.fwnode) in i2c_gpio_free_scl()
444 fwnode_handle_put(scl->args.fwnode); in i2c_gpio_free_scl()
527 struct fwnode_handle *fwnode = dev_fwnode(dev); i2c_gpio_probe() local
[all...]
/linux/drivers/leds/rgb/
H A Dleds-pwm-multicolor.c74 struct fwnode_handle *fwnode; in iterate_subleds() local
80 fwnode_for_each_child_node(mcnode, fwnode) { in iterate_subleds()
82 pwmled->pwm = devm_fwnode_pwm_get(dev, fwnode, NULL); in iterate_subleds()
88 pwmled->active_low = fwnode_property_read_bool(fwnode, "active-low"); in iterate_subleds()
90 ret = fwnode_property_read_u32(fwnode, "color", &color); in iterate_subleds()
97 fwnode_property_read_u32(fwnode, "default-intensity", in iterate_subleds()
105 fwnode_handle_put(fwnode); in iterate_subleds()
155 init_data.fwnode = mcnode; in led_pwm_mc_probe()
/linux/drivers/power/supply/
H A Dpower_supply_core.c229 np = fwnode_find_reference(psy->dev.fwnode, "power-supplies", i++); in power_supply_populate_supplied_from()
233 if (np == epsy->dev.fwnode) { in __power_supply_find_supply_from_node()
261 struct fwnode_handle *fwnode = data;
264 if (epsy->dev.fwnode == fwnode) in power_supply_check_supplies()
298 for (cnt = 0; psy->dev.fwnode; cnt++) { in power_supply_check_supplies()
299 np = fwnode_find_reference(psy->dev.fwnode, "power-supplies", cnt); in power_supply_check_supplies()
652 * @fwnode: Pointer to fwnode holding phandle property
662 struct power_supply *power_supply_get_by_reference(struct fwnode_handle *fwnode,
234 struct fwnode_handle *fwnode = data; __power_supply_find_supply_from_node() local
664 power_supply_get_by_reference(struct fwnode_handle * fwnode,const char * property) power_supply_get_by_reference() argument
733 struct fwnode_handle *srcnode, *fwnode; power_supply_get_battery_info() local
[all...]
/linux/drivers/net/pcs/
H A Dpcs-mtk-lynxi.c86 struct fwnode_handle *fwnode; member
130 struct fwnode_handle *fwnode = mpcs->fwnode, *pcs_fwnode; in mtk_pcs_config_polarity() local
135 if (!fwnode) in mtk_pcs_config_polarity()
138 if (fwnode_property_read_bool(fwnode, "mediatek,pnswap")) in mtk_pcs_config_polarity()
141 pcs_fwnode = fwnode_get_named_child_node(fwnode, "pcs"); in mtk_pcs_config_polarity()
314 struct fwnode_handle *fwnode, in mtk_pcs_lynxi_create() argument
352 mpcs->fwnode = fwnode_handle_get(fwnode); in mtk_pcs_lynxi_create()
370 fwnode_handle_put(mpcs->fwnode); in mtk_pcs_lynxi_destroy()
/linux/drivers/dpll/zl3073x/
H A Dprop.c7 #include <linux/fwnode.h>
141 * zl3073x_prop_pin_fwnode_get - get fwnode for given pin in zl3073x_prop_pin_fwnode_get()
184 props->fwnode = pin_node;
260 fwnode_property_read_string(props->fwnode, "label", in zl3073x_pin_props_get()
266 if (!fwnode_property_read_string(props->fwnode, "connection-type", in zl3073x_pin_props_get()
285 props->esync_control = fwnode_property_read_bool(props->fwnode, in zl3073x_pin_props_get()
289 num_freqs = fwnode_property_count_u64(props->fwnode, in zl3073x_pin_props_get()
307 fwnode_property_read_u64_array(props->fwnode, in zl3073x_pin_props_get()
363 fwnode_handle_put(props->fwnode); in zl3073x_prop_dpll_type_get()
381 if (props->fwnode) in zl3073x_prop_dpll_type_get()
[all...]

12345678910>>...18