Lines Matching refs:fwnode
816 static struct fwnode_handle *of_fwnode_get(struct fwnode_handle *fwnode) in of_fwnode_get() argument
818 return of_fwnode_handle(of_node_get(to_of_node(fwnode))); in of_fwnode_get()
821 static void of_fwnode_put(struct fwnode_handle *fwnode) in of_fwnode_put() argument
823 of_node_put(to_of_node(fwnode)); in of_fwnode_put()
826 static bool of_fwnode_device_is_available(const struct fwnode_handle *fwnode) in of_fwnode_device_is_available() argument
828 return of_device_is_available(to_of_node(fwnode)); in of_fwnode_device_is_available()
831 static bool of_fwnode_property_present(const struct fwnode_handle *fwnode, in of_fwnode_property_present() argument
834 return of_property_read_bool(to_of_node(fwnode), propname); in of_fwnode_property_present()
837 static int of_fwnode_property_read_int_array(const struct fwnode_handle *fwnode, in of_fwnode_property_read_int_array() argument
842 const struct device_node *node = to_of_node(fwnode); in of_fwnode_property_read_int_array()
863 of_fwnode_property_read_string_array(const struct fwnode_handle *fwnode, in of_fwnode_property_read_string_array() argument
867 const struct device_node *node = to_of_node(fwnode); in of_fwnode_property_read_string_array()
875 of_fwnode_get_parent(const struct fwnode_handle *fwnode) in of_fwnode_get_parent() argument
877 return of_fwnode_handle(of_get_parent(to_of_node(fwnode))); in of_fwnode_get_parent()
881 of_fwnode_get_next_child_node(const struct fwnode_handle *fwnode, in of_fwnode_get_next_child_node() argument
884 return of_fwnode_handle(of_get_next_available_child(to_of_node(fwnode), in of_fwnode_get_next_child_node()
889 of_fwnode_get_named_child_node(const struct fwnode_handle *fwnode, in of_fwnode_get_named_child_node() argument
892 const struct device_node *node = to_of_node(fwnode); in of_fwnode_get_named_child_node()
903 of_fwnode_get_reference_args(const struct fwnode_handle *fwnode, in of_fwnode_get_reference_args() argument
913 ret = of_parse_phandle_with_args(to_of_node(fwnode), prop, in of_fwnode_get_reference_args()
916 ret = of_parse_phandle_with_fixed_args(to_of_node(fwnode), prop, in of_fwnode_get_reference_args()
924 args->fwnode = of_fwnode_handle(of_args.np); in of_fwnode_get_reference_args()
933 of_fwnode_graph_get_next_endpoint(const struct fwnode_handle *fwnode, in of_fwnode_graph_get_next_endpoint() argument
936 return of_fwnode_handle(of_graph_get_next_endpoint(to_of_node(fwnode), in of_fwnode_graph_get_next_endpoint()
941 of_fwnode_graph_get_remote_endpoint(const struct fwnode_handle *fwnode) in of_fwnode_graph_get_remote_endpoint() argument
944 of_graph_get_remote_endpoint(to_of_node(fwnode))); in of_fwnode_graph_get_remote_endpoint()
948 of_fwnode_graph_get_port_parent(struct fwnode_handle *fwnode) in of_fwnode_graph_get_port_parent() argument
953 np = of_get_parent(to_of_node(fwnode)); in of_fwnode_graph_get_port_parent()
964 static int of_fwnode_graph_parse_endpoint(const struct fwnode_handle *fwnode, in of_fwnode_graph_parse_endpoint() argument
967 const struct device_node *node = to_of_node(fwnode); in of_fwnode_graph_parse_endpoint()
970 endpoint->local_fwnode = fwnode; in of_fwnode_graph_parse_endpoint()
981 of_fwnode_device_get_match_data(const struct fwnode_handle *fwnode, in of_fwnode_device_get_match_data() argument