Lines Matching refs:fwnode
842 static struct fwnode_handle *of_fwnode_get(struct fwnode_handle *fwnode) in of_fwnode_get() argument
844 return of_fwnode_handle(of_node_get(to_of_node(fwnode))); in of_fwnode_get()
847 static void of_fwnode_put(struct fwnode_handle *fwnode) in of_fwnode_put() argument
849 of_node_put(to_of_node(fwnode)); in of_fwnode_put()
852 static bool of_fwnode_device_is_available(const struct fwnode_handle *fwnode) in of_fwnode_device_is_available() argument
854 return of_device_is_available(to_of_node(fwnode)); in of_fwnode_device_is_available()
857 static bool of_fwnode_property_present(const struct fwnode_handle *fwnode, in of_fwnode_property_present() argument
860 return of_property_read_bool(to_of_node(fwnode), propname); in of_fwnode_property_present()
863 static int of_fwnode_property_read_int_array(const struct fwnode_handle *fwnode, in of_fwnode_property_read_int_array() argument
868 const struct device_node *node = to_of_node(fwnode); in of_fwnode_property_read_int_array()
889 of_fwnode_property_read_string_array(const struct fwnode_handle *fwnode, in of_fwnode_property_read_string_array() argument
893 const struct device_node *node = to_of_node(fwnode); in of_fwnode_property_read_string_array()
900 static const char *of_fwnode_get_name(const struct fwnode_handle *fwnode) in of_fwnode_get_name() argument
902 return kbasename(to_of_node(fwnode)->full_name); in of_fwnode_get_name()
905 static const char *of_fwnode_get_name_prefix(const struct fwnode_handle *fwnode) in of_fwnode_get_name_prefix() argument
908 if (!to_of_node(fwnode)->parent) in of_fwnode_get_name_prefix()
915 of_fwnode_get_parent(const struct fwnode_handle *fwnode) in of_fwnode_get_parent() argument
917 return of_fwnode_handle(of_get_parent(to_of_node(fwnode))); in of_fwnode_get_parent()
921 of_fwnode_get_next_child_node(const struct fwnode_handle *fwnode, in of_fwnode_get_next_child_node() argument
924 return of_fwnode_handle(of_get_next_available_child(to_of_node(fwnode), in of_fwnode_get_next_child_node()
929 of_fwnode_get_named_child_node(const struct fwnode_handle *fwnode, in of_fwnode_get_named_child_node() argument
932 const struct device_node *node = to_of_node(fwnode); in of_fwnode_get_named_child_node()
943 of_fwnode_get_reference_args(const struct fwnode_handle *fwnode, in of_fwnode_get_reference_args() argument
953 ret = of_parse_phandle_with_args(to_of_node(fwnode), prop, in of_fwnode_get_reference_args()
956 ret = of_parse_phandle_with_fixed_args(to_of_node(fwnode), prop, in of_fwnode_get_reference_args()
966 args->fwnode = of_fwnode_handle(of_args.np); in of_fwnode_get_reference_args()
975 of_fwnode_graph_get_next_endpoint(const struct fwnode_handle *fwnode, in of_fwnode_graph_get_next_endpoint() argument
978 return of_fwnode_handle(of_graph_get_next_endpoint(to_of_node(fwnode), in of_fwnode_graph_get_next_endpoint()
983 of_fwnode_graph_get_remote_endpoint(const struct fwnode_handle *fwnode) in of_fwnode_graph_get_remote_endpoint() argument
986 of_graph_get_remote_endpoint(to_of_node(fwnode))); in of_fwnode_graph_get_remote_endpoint()
990 of_fwnode_graph_get_port_parent(struct fwnode_handle *fwnode) in of_fwnode_graph_get_port_parent() argument
995 np = of_get_parent(to_of_node(fwnode)); in of_fwnode_graph_get_port_parent()
1006 static int of_fwnode_graph_parse_endpoint(const struct fwnode_handle *fwnode, in of_fwnode_graph_parse_endpoint() argument
1009 const struct device_node *node = to_of_node(fwnode); in of_fwnode_graph_parse_endpoint()
1012 endpoint->local_fwnode = fwnode; in of_fwnode_graph_parse_endpoint()
1023 of_fwnode_device_get_match_data(const struct fwnode_handle *fwnode, in of_fwnode_device_get_match_data() argument
1107 sup_dev = get_dev_from_fwnode(&sup_np->fwnode); in of_link_to_phandle()
1110 sup_np->fwnode.flags & FWNODE_FLAG_NOT_DEVICE)) { in of_link_to_phandle()
1402 static int of_fwnode_add_links(struct fwnode_handle *fwnode) in of_fwnode_add_links() argument
1405 struct device_node *con_np = to_of_node(fwnode); in of_fwnode_add_links()