Lines Matching refs:fwnode

52 bool fwnode_device_is_available(const struct fwnode_handle *fwnode);
53 bool fwnode_property_present(const struct fwnode_handle *fwnode,
55 int fwnode_property_read_u8_array(const struct fwnode_handle *fwnode,
58 int fwnode_property_read_u16_array(const struct fwnode_handle *fwnode,
61 int fwnode_property_read_u32_array(const struct fwnode_handle *fwnode,
64 int fwnode_property_read_u64_array(const struct fwnode_handle *fwnode,
67 int fwnode_property_read_string_array(const struct fwnode_handle *fwnode,
70 int fwnode_property_read_string(const struct fwnode_handle *fwnode,
72 int fwnode_property_match_string(const struct fwnode_handle *fwnode,
74 int fwnode_property_get_reference_args(const struct fwnode_handle *fwnode,
79 struct fwnode_handle *fwnode_find_reference(const struct fwnode_handle *fwnode,
83 struct fwnode_handle *fwnode_get_parent(const struct fwnode_handle *fwnode);
85 struct fwnode_handle *fwnode);
87 const struct fwnode_handle *fwnode, struct fwnode_handle *child);
89 const struct fwnode_handle *fwnode, struct fwnode_handle *child);
91 #define fwnode_for_each_child_node(fwnode, child) \ argument
92 for (child = fwnode_get_next_child_node(fwnode, NULL); child; \
93 child = fwnode_get_next_child_node(fwnode, child))
95 #define fwnode_for_each_available_child_node(fwnode, child) \ argument
96 for (child = fwnode_get_next_available_child_node(fwnode, NULL); child;\
97 child = fwnode_get_next_available_child_node(fwnode, child))
107 const struct fwnode_handle *fwnode, const char *childname);
111 struct fwnode_handle *fwnode_handle_get(struct fwnode_handle *fwnode);
112 void fwnode_handle_put(struct fwnode_handle *fwnode);
114 int fwnode_irq_get(struct fwnode_handle *fwnode, unsigned int index);
168 static inline bool fwnode_property_read_bool(const struct fwnode_handle *fwnode, in fwnode_property_read_bool() argument
171 return fwnode_property_present(fwnode, propname); in fwnode_property_read_bool()
174 static inline int fwnode_property_read_u8(const struct fwnode_handle *fwnode, in fwnode_property_read_u8() argument
177 return fwnode_property_read_u8_array(fwnode, propname, val, 1); in fwnode_property_read_u8()
180 static inline int fwnode_property_read_u16(const struct fwnode_handle *fwnode, in fwnode_property_read_u16() argument
183 return fwnode_property_read_u16_array(fwnode, propname, val, 1); in fwnode_property_read_u16()
186 static inline int fwnode_property_read_u32(const struct fwnode_handle *fwnode, in fwnode_property_read_u32() argument
189 return fwnode_property_read_u32_array(fwnode, propname, val, 1); in fwnode_property_read_u32()
192 static inline int fwnode_property_read_u64(const struct fwnode_handle *fwnode, in fwnode_property_read_u64() argument
195 return fwnode_property_read_u64_array(fwnode, propname, val, 1); in fwnode_property_read_u64()
198 static inline int fwnode_property_count_u8(const struct fwnode_handle *fwnode, in fwnode_property_count_u8() argument
201 return fwnode_property_read_u8_array(fwnode, propname, NULL, 0); in fwnode_property_count_u8()
204 static inline int fwnode_property_count_u16(const struct fwnode_handle *fwnode, in fwnode_property_count_u16() argument
207 return fwnode_property_read_u16_array(fwnode, propname, NULL, 0); in fwnode_property_count_u16()
210 static inline int fwnode_property_count_u32(const struct fwnode_handle *fwnode, in fwnode_property_count_u32() argument
213 return fwnode_property_read_u32_array(fwnode, propname, NULL, 0); in fwnode_property_count_u32()
216 static inline int fwnode_property_count_u64(const struct fwnode_handle *fwnode, in fwnode_property_count_u64() argument
219 return fwnode_property_read_u64_array(fwnode, propname, NULL, 0); in fwnode_property_count_u64()
336 int fwnode_get_phy_mode(struct fwnode_handle *fwnode);
337 void *fwnode_get_mac_address(struct fwnode_handle *fwnode,
340 const struct fwnode_handle *fwnode, struct fwnode_handle *prev);
342 fwnode_graph_get_port_parent(const struct fwnode_handle *fwnode);
344 const struct fwnode_handle *fwnode);
346 const struct fwnode_handle *fwnode);
348 const struct fwnode_handle *fwnode);
350 fwnode_graph_get_remote_node(const struct fwnode_handle *fwnode, u32 port,
367 fwnode_graph_get_endpoint_by_id(const struct fwnode_handle *fwnode,
370 #define fwnode_graph_for_each_endpoint(fwnode, child) \ argument
372 (child = fwnode_graph_get_next_endpoint(fwnode, child)); )
374 int fwnode_graph_parse_endpoint(const struct fwnode_handle *fwnode,
420 bool is_software_node(const struct fwnode_handle *fwnode);
421 const struct software_node *to_software_node(struct fwnode_handle *fwnode);
438 void fwnode_remove_software_node(struct fwnode_handle *fwnode);