Lines Matching refs:fwnode

58 bool fwnode_property_present(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);
83 bool fwnode_device_is_compatible(const struct fwnode_handle *fwnode, const char *compat) in fwnode_device_is_compatible() argument
85 return fwnode_property_match_string(fwnode, "compatible", compat) >= 0; in fwnode_device_is_compatible()
100 int fwnode_property_get_reference_args(const struct fwnode_handle *fwnode,
105 struct fwnode_handle *fwnode_find_reference(const struct fwnode_handle *fwnode,
109 const char *fwnode_get_name(const struct fwnode_handle *fwnode);
110 const char *fwnode_get_name_prefix(const struct fwnode_handle *fwnode);
112 struct fwnode_handle *fwnode_get_parent(const struct fwnode_handle *fwnode);
113 struct fwnode_handle *fwnode_get_next_parent(struct fwnode_handle *fwnode);
115 #define fwnode_for_each_parent_node(fwnode, parent) \ argument
116 for (parent = fwnode_get_parent(fwnode); parent; \
119 struct device *fwnode_get_next_parent_dev(const struct fwnode_handle *fwnode);
125 const struct fwnode_handle *fwnode, struct fwnode_handle *child);
127 const struct fwnode_handle *fwnode, struct fwnode_handle *child);
129 #define fwnode_for_each_child_node(fwnode, child) \ argument
130 for (child = fwnode_get_next_child_node(fwnode, NULL); child; \
131 child = fwnode_get_next_child_node(fwnode, child))
133 #define fwnode_for_each_available_child_node(fwnode, child) \ argument
134 for (child = fwnode_get_next_available_child_node(fwnode, NULL); child;\
135 child = fwnode_get_next_available_child_node(fwnode, child))
144 struct fwnode_handle *fwnode_get_named_child_node(const struct fwnode_handle *fwnode,
149 struct fwnode_handle *fwnode_handle_get(struct fwnode_handle *fwnode);
150 void fwnode_handle_put(struct fwnode_handle *fwnode);
152 int fwnode_irq_get(const struct fwnode_handle *fwnode, unsigned int index);
153 int fwnode_irq_get_byname(const struct fwnode_handle *fwnode, const char *name);
213 static inline bool fwnode_property_read_bool(const struct fwnode_handle *fwnode, in fwnode_property_read_bool() argument
216 return fwnode_property_present(fwnode, propname); in fwnode_property_read_bool()
219 static inline int fwnode_property_read_u8(const struct fwnode_handle *fwnode, in fwnode_property_read_u8() argument
222 return fwnode_property_read_u8_array(fwnode, propname, val, 1); in fwnode_property_read_u8()
225 static inline int fwnode_property_read_u16(const struct fwnode_handle *fwnode, in fwnode_property_read_u16() argument
228 return fwnode_property_read_u16_array(fwnode, propname, val, 1); in fwnode_property_read_u16()
231 static inline int fwnode_property_read_u32(const struct fwnode_handle *fwnode, in fwnode_property_read_u32() argument
234 return fwnode_property_read_u32_array(fwnode, propname, val, 1); in fwnode_property_read_u32()
237 static inline int fwnode_property_read_u64(const struct fwnode_handle *fwnode, in fwnode_property_read_u64() argument
240 return fwnode_property_read_u64_array(fwnode, propname, val, 1); in fwnode_property_read_u64()
243 static inline int fwnode_property_count_u8(const struct fwnode_handle *fwnode, in fwnode_property_count_u8() argument
246 return fwnode_property_read_u8_array(fwnode, propname, NULL, 0); in fwnode_property_count_u8()
249 static inline int fwnode_property_count_u16(const struct fwnode_handle *fwnode, in fwnode_property_count_u16() argument
252 return fwnode_property_read_u16_array(fwnode, propname, NULL, 0); in fwnode_property_count_u16()
255 static inline int fwnode_property_count_u32(const struct fwnode_handle *fwnode, in fwnode_property_count_u32() argument
258 return fwnode_property_read_u32_array(fwnode, propname, NULL, 0); in fwnode_property_count_u32()
261 static inline int fwnode_property_count_u64(const struct fwnode_handle *fwnode, in fwnode_property_count_u64() argument
264 return fwnode_property_read_u64_array(fwnode, propname, NULL, 0); in fwnode_property_count_u64()
268 fwnode_property_string_array_count(const struct fwnode_handle *fwnode, in fwnode_property_string_array_count() argument
271 return fwnode_property_read_string_array(fwnode, propname, NULL, 0); in fwnode_property_string_array_count()
410 int fwnode_get_phy_mode(const struct fwnode_handle *fwnode);
412 void __iomem *fwnode_iomap(struct fwnode_handle *fwnode, int index);
415 const struct fwnode_handle *fwnode, struct fwnode_handle *prev);
417 fwnode_graph_get_port_parent(const struct fwnode_handle *fwnode);
419 const struct fwnode_handle *fwnode);
421 const struct fwnode_handle *fwnode);
423 const struct fwnode_handle *fwnode);
425 static inline bool fwnode_graph_is_endpoint(const struct fwnode_handle *fwnode) in fwnode_graph_is_endpoint() argument
427 return fwnode_property_present(fwnode, "remote-endpoint"); in fwnode_graph_is_endpoint()
445 fwnode_graph_get_endpoint_by_id(const struct fwnode_handle *fwnode,
447 unsigned int fwnode_graph_get_endpoint_count(const struct fwnode_handle *fwnode,
450 #define fwnode_graph_for_each_endpoint(fwnode, child) \ argument
451 for (child = fwnode_graph_get_next_endpoint(fwnode, NULL); child; \
452 child = fwnode_graph_get_next_endpoint(fwnode, child))
454 int fwnode_graph_parse_endpoint(const struct fwnode_handle *fwnode,
457 typedef void *(*devcon_match_fn_t)(const struct fwnode_handle *fwnode, const char *id,
460 void *fwnode_connection_find_match(const struct fwnode_handle *fwnode,
471 int fwnode_connection_find_matches(const struct fwnode_handle *fwnode,
491 bool is_software_node(const struct fwnode_handle *fwnode);
493 to_software_node(const struct fwnode_handle *fwnode);
509 void fwnode_remove_software_node(struct fwnode_handle *fwnode);