Lines Matching refs:fwnode
56 bool fwnode_property_present(const struct fwnode_handle *fwnode,
58 bool fwnode_property_read_bool(const struct fwnode_handle *fwnode,
60 int fwnode_property_read_u8_array(const struct fwnode_handle *fwnode,
63 int fwnode_property_read_u16_array(const struct fwnode_handle *fwnode,
66 int fwnode_property_read_u32_array(const struct fwnode_handle *fwnode,
69 int fwnode_property_read_u64_array(const struct fwnode_handle *fwnode,
72 int fwnode_property_read_string_array(const struct fwnode_handle *fwnode,
75 int fwnode_property_read_string(const struct fwnode_handle *fwnode,
77 int fwnode_property_match_string(const struct fwnode_handle *fwnode,
80 bool fwnode_device_is_available(const struct fwnode_handle *fwnode);
82 static inline bool fwnode_device_is_big_endian(const struct fwnode_handle *fwnode) in fwnode_device_is_big_endian() argument
84 if (fwnode_property_present(fwnode, "big-endian")) in fwnode_device_is_big_endian()
87 fwnode_property_present(fwnode, "native-endian")) in fwnode_device_is_big_endian()
93 bool fwnode_device_is_compatible(const struct fwnode_handle *fwnode, const char *compat) in fwnode_device_is_compatible() argument
95 return fwnode_property_match_string(fwnode, "compatible", compat) >= 0; in fwnode_device_is_compatible()
126 int fwnode_property_match_property_string(const struct fwnode_handle *fwnode,
138 int fwnode_property_get_reference_args(const struct fwnode_handle *fwnode,
143 struct fwnode_handle *fwnode_find_reference(const struct fwnode_handle *fwnode,
147 const char *fwnode_get_name(const struct fwnode_handle *fwnode);
148 const char *fwnode_get_name_prefix(const struct fwnode_handle *fwnode);
149 bool fwnode_name_eq(const struct fwnode_handle *fwnode, const char *name);
151 struct fwnode_handle *fwnode_get_parent(const struct fwnode_handle *fwnode);
152 struct fwnode_handle *fwnode_get_next_parent(struct fwnode_handle *fwnode);
154 #define fwnode_for_each_parent_node(fwnode, parent) \ argument
155 for (parent = fwnode_get_parent(fwnode); parent; \
162 const struct fwnode_handle *fwnode, struct fwnode_handle *child);
164 const struct fwnode_handle *fwnode, struct fwnode_handle *child);
166 #define fwnode_for_each_child_node(fwnode, child) \ argument
167 for (child = fwnode_get_next_child_node(fwnode, NULL); child; \
168 child = fwnode_get_next_child_node(fwnode, child))
170 #define fwnode_for_each_available_child_node(fwnode, child) \ argument
171 for (child = fwnode_get_next_available_child_node(fwnode, NULL); child;\
172 child = fwnode_get_next_available_child_node(fwnode, child))
186 struct fwnode_handle *fwnode_get_named_child_node(const struct fwnode_handle *fwnode,
191 struct fwnode_handle *fwnode_handle_get(struct fwnode_handle *fwnode);
201 static inline void fwnode_handle_put(struct fwnode_handle *fwnode) in fwnode_handle_put() argument
203 fwnode_call_void_op(fwnode, put); in fwnode_handle_put()
208 int fwnode_irq_get(const struct fwnode_handle *fwnode, unsigned int index);
209 int fwnode_irq_get_byname(const struct fwnode_handle *fwnode, const char *name);
263 static inline int fwnode_property_read_u8(const struct fwnode_handle *fwnode, in fwnode_property_read_u8() argument
266 return fwnode_property_read_u8_array(fwnode, propname, val, 1); in fwnode_property_read_u8()
269 static inline int fwnode_property_read_u16(const struct fwnode_handle *fwnode, in fwnode_property_read_u16() argument
272 return fwnode_property_read_u16_array(fwnode, propname, val, 1); in fwnode_property_read_u16()
275 static inline int fwnode_property_read_u32(const struct fwnode_handle *fwnode, in fwnode_property_read_u32() argument
278 return fwnode_property_read_u32_array(fwnode, propname, val, 1); in fwnode_property_read_u32()
281 static inline int fwnode_property_read_u64(const struct fwnode_handle *fwnode, in fwnode_property_read_u64() argument
284 return fwnode_property_read_u64_array(fwnode, propname, val, 1); in fwnode_property_read_u64()
287 static inline int fwnode_property_count_u8(const struct fwnode_handle *fwnode, in fwnode_property_count_u8() argument
290 return fwnode_property_read_u8_array(fwnode, propname, NULL, 0); in fwnode_property_count_u8()
293 static inline int fwnode_property_count_u16(const struct fwnode_handle *fwnode, in fwnode_property_count_u16() argument
296 return fwnode_property_read_u16_array(fwnode, propname, NULL, 0); in fwnode_property_count_u16()
299 static inline int fwnode_property_count_u32(const struct fwnode_handle *fwnode, in fwnode_property_count_u32() argument
302 return fwnode_property_read_u32_array(fwnode, propname, NULL, 0); in fwnode_property_count_u32()
305 static inline int fwnode_property_count_u64(const struct fwnode_handle *fwnode, in fwnode_property_count_u64() argument
308 return fwnode_property_read_u64_array(fwnode, propname, NULL, 0); in fwnode_property_count_u64()
312 fwnode_property_string_array_count(const struct fwnode_handle *fwnode, in fwnode_property_string_array_count() argument
315 return fwnode_property_read_string_array(fwnode, propname, NULL, 0); in fwnode_property_string_array_count()
454 int fwnode_get_phy_mode(const struct fwnode_handle *fwnode);
456 void __iomem *fwnode_iomap(struct fwnode_handle *fwnode, int index);
459 const struct fwnode_handle *fwnode, struct fwnode_handle *prev);
461 fwnode_graph_get_port_parent(const struct fwnode_handle *fwnode);
463 const struct fwnode_handle *fwnode);
465 const struct fwnode_handle *fwnode);
467 const struct fwnode_handle *fwnode);
469 static inline bool fwnode_graph_is_endpoint(const struct fwnode_handle *fwnode) in fwnode_graph_is_endpoint() argument
471 return fwnode_property_present(fwnode, "remote-endpoint"); in fwnode_graph_is_endpoint()
489 fwnode_graph_get_endpoint_by_id(const struct fwnode_handle *fwnode,
491 unsigned int fwnode_graph_get_endpoint_count(const struct fwnode_handle *fwnode,
494 #define fwnode_graph_for_each_endpoint(fwnode, child) \ argument
495 for (child = fwnode_graph_get_next_endpoint(fwnode, NULL); child; \
496 child = fwnode_graph_get_next_endpoint(fwnode, child))
498 int fwnode_graph_parse_endpoint(const struct fwnode_handle *fwnode,
501 typedef void *(*devcon_match_fn_t)(const struct fwnode_handle *fwnode, const char *id,
504 void *fwnode_connection_find_match(const struct fwnode_handle *fwnode,
515 int fwnode_connection_find_matches(const struct fwnode_handle *fwnode,
542 bool is_software_node(const struct fwnode_handle *fwnode);
544 to_software_node(const struct fwnode_handle *fwnode);
560 void fwnode_remove_software_node(struct fwnode_handle *fwnode);