Lines Matching refs:fwnode

996 static struct fwnode_handle *of_fwnode_get(struct fwnode_handle *fwnode)  in of_fwnode_get()  argument
998 return of_fwnode_handle(of_node_get(to_of_node(fwnode))); in of_fwnode_get()
1001 static void of_fwnode_put(struct fwnode_handle *fwnode) in of_fwnode_put() argument
1003 of_node_put(to_of_node(fwnode)); in of_fwnode_put()
1006 static bool of_fwnode_device_is_available(const struct fwnode_handle *fwnode) in of_fwnode_device_is_available() argument
1008 return of_device_is_available(to_of_node(fwnode)); in of_fwnode_device_is_available()
1011 static bool of_fwnode_device_dma_supported(const struct fwnode_handle *fwnode) in of_fwnode_device_dma_supported() argument
1017 of_fwnode_device_get_dma_attr(const struct fwnode_handle *fwnode) in of_fwnode_device_get_dma_attr() argument
1019 if (of_dma_is_coherent(to_of_node(fwnode))) in of_fwnode_device_get_dma_attr()
1025 static bool of_fwnode_property_present(const struct fwnode_handle *fwnode, in of_fwnode_property_present() argument
1028 return of_property_present(to_of_node(fwnode), propname); in of_fwnode_property_present()
1031 static bool of_fwnode_property_read_bool(const struct fwnode_handle *fwnode, in of_fwnode_property_read_bool() argument
1034 return of_property_read_bool(to_of_node(fwnode), propname); in of_fwnode_property_read_bool()
1037 static int of_fwnode_property_read_int_array(const struct fwnode_handle *fwnode, in of_fwnode_property_read_int_array() argument
1042 const struct device_node *node = to_of_node(fwnode); in of_fwnode_property_read_int_array()
1063 of_fwnode_property_read_string_array(const struct fwnode_handle *fwnode, in of_fwnode_property_read_string_array() argument
1067 const struct device_node *node = to_of_node(fwnode); in of_fwnode_property_read_string_array()
1074 static const char *of_fwnode_get_name(const struct fwnode_handle *fwnode) in of_fwnode_get_name() argument
1076 return kbasename(to_of_node(fwnode)->full_name); in of_fwnode_get_name()
1079 static const char *of_fwnode_get_name_prefix(const struct fwnode_handle *fwnode) in of_fwnode_get_name_prefix() argument
1082 if (!to_of_node(fwnode)->parent) in of_fwnode_get_name_prefix()
1089 of_fwnode_get_parent(const struct fwnode_handle *fwnode) in of_fwnode_get_parent() argument
1091 return of_fwnode_handle(of_get_parent(to_of_node(fwnode))); in of_fwnode_get_parent()
1095 of_fwnode_get_next_child_node(const struct fwnode_handle *fwnode, in of_fwnode_get_next_child_node() argument
1098 return of_fwnode_handle(of_get_next_available_child(to_of_node(fwnode), in of_fwnode_get_next_child_node()
1103 of_fwnode_get_named_child_node(const struct fwnode_handle *fwnode, in of_fwnode_get_named_child_node() argument
1106 const struct device_node *node = to_of_node(fwnode); in of_fwnode_get_named_child_node()
1117 of_fwnode_get_reference_args(const struct fwnode_handle *fwnode, in of_fwnode_get_reference_args() argument
1127 ret = of_parse_phandle_with_args(to_of_node(fwnode), prop, in of_fwnode_get_reference_args()
1130 ret = of_parse_phandle_with_fixed_args(to_of_node(fwnode), prop, in of_fwnode_get_reference_args()
1140 args->fwnode = of_fwnode_handle(of_args.np); in of_fwnode_get_reference_args()
1149 of_fwnode_graph_get_next_endpoint(const struct fwnode_handle *fwnode, in of_fwnode_graph_get_next_endpoint() argument
1152 return of_fwnode_handle(of_graph_get_next_endpoint(to_of_node(fwnode), in of_fwnode_graph_get_next_endpoint()
1157 of_fwnode_graph_get_remote_endpoint(const struct fwnode_handle *fwnode) in of_fwnode_graph_get_remote_endpoint() argument
1160 of_graph_get_remote_endpoint(to_of_node(fwnode))); in of_fwnode_graph_get_remote_endpoint()
1164 of_fwnode_graph_get_port_parent(struct fwnode_handle *fwnode) in of_fwnode_graph_get_port_parent() argument
1169 np = of_get_parent(to_of_node(fwnode)); in of_fwnode_graph_get_port_parent()
1180 static int of_fwnode_graph_parse_endpoint(const struct fwnode_handle *fwnode, in of_fwnode_graph_parse_endpoint() argument
1183 const struct device_node *node = to_of_node(fwnode); in of_fwnode_graph_parse_endpoint()
1186 endpoint->local_fwnode = fwnode; in of_fwnode_graph_parse_endpoint()
1195 of_fwnode_device_get_match_data(const struct fwnode_handle *fwnode, in of_fwnode_device_get_match_data() argument
1588 static void __iomem *of_fwnode_iomap(struct fwnode_handle *fwnode, int index) in of_fwnode_iomap() argument
1591 return of_iomap(to_of_node(fwnode), index); in of_fwnode_iomap()
1597 static int of_fwnode_irq_get(const struct fwnode_handle *fwnode, in of_fwnode_irq_get() argument
1600 return of_irq_get(to_of_node(fwnode), index); in of_fwnode_irq_get()
1603 static int of_fwnode_add_links(struct fwnode_handle *fwnode) in of_fwnode_add_links() argument
1606 struct device_node *con_np = to_of_node(fwnode); in of_fwnode_add_links()