Lines Matching refs:fwnode

866 static struct fwnode_handle *of_fwnode_get(struct fwnode_handle *fwnode)
868 return of_fwnode_handle(of_node_get(to_of_node(fwnode)));
871 static void of_fwnode_put(struct fwnode_handle *fwnode)
873 of_node_put(to_of_node(fwnode));
876 static bool of_fwnode_device_is_available(const struct fwnode_handle *fwnode)
878 return of_device_is_available(to_of_node(fwnode));
881 static bool of_fwnode_device_dma_supported(const struct fwnode_handle *fwnode)
887 of_fwnode_device_get_dma_attr(const struct fwnode_handle *fwnode)
889 if (of_dma_is_coherent(to_of_node(fwnode)))
895 static bool of_fwnode_property_present(const struct fwnode_handle *fwnode,
898 return of_property_read_bool(to_of_node(fwnode), propname);
901 static int of_fwnode_property_read_int_array(const struct fwnode_handle *fwnode,
906 const struct device_node *node = to_of_node(fwnode);
927 of_fwnode_property_read_string_array(const struct fwnode_handle *fwnode,
931 const struct device_node *node = to_of_node(fwnode);
938 static const char *of_fwnode_get_name(const struct fwnode_handle *fwnode)
940 return kbasename(to_of_node(fwnode)->full_name);
943 static const char *of_fwnode_get_name_prefix(const struct fwnode_handle *fwnode)
946 if (!to_of_node(fwnode)->parent)
953 of_fwnode_get_parent(const struct fwnode_handle *fwnode)
955 return of_fwnode_handle(of_get_parent(to_of_node(fwnode)));
959 of_fwnode_get_next_child_node(const struct fwnode_handle *fwnode,
962 return of_fwnode_handle(of_get_next_available_child(to_of_node(fwnode),
967 of_fwnode_get_named_child_node(const struct fwnode_handle *fwnode,
970 const struct device_node *node = to_of_node(fwnode);
981 of_fwnode_get_reference_args(const struct fwnode_handle *fwnode,
991 ret = of_parse_phandle_with_args(to_of_node(fwnode), prop,
994 ret = of_parse_phandle_with_fixed_args(to_of_node(fwnode), prop,
1004 args->fwnode = of_fwnode_handle(of_args.np);
1013 of_fwnode_graph_get_next_endpoint(const struct fwnode_handle *fwnode,
1016 return of_fwnode_handle(of_graph_get_next_endpoint(to_of_node(fwnode),
1021 of_fwnode_graph_get_remote_endpoint(const struct fwnode_handle *fwnode)
1024 of_graph_get_remote_endpoint(to_of_node(fwnode)));
1028 of_fwnode_graph_get_port_parent(struct fwnode_handle *fwnode)
1033 np = of_get_parent(to_of_node(fwnode));
1044 static int of_fwnode_graph_parse_endpoint(const struct fwnode_handle *fwnode,
1047 const struct device_node *node = to_of_node(fwnode);
1050 endpoint->local_fwnode = fwnode;
1061 of_fwnode_device_get_match_data(const struct fwnode_handle *fwnode,
1362 * If @prop_name is one, this function attempts to create fwnode links from the
1366 * Any failed attempt to create a fwnode link will NOT result in an immediate
1402 static void __iomem *of_fwnode_iomap(struct fwnode_handle *fwnode, int index)
1405 return of_iomap(to_of_node(fwnode), index);
1411 static int of_fwnode_irq_get(const struct fwnode_handle *fwnode,
1414 return of_irq_get(to_of_node(fwnode), index);
1417 static int of_fwnode_add_links(struct fwnode_handle *fwnode)
1420 struct device_node *con_np = to_of_node(fwnode);