Lines Matching refs:device_node

49 struct device_node {  struct
58 struct device_node *parent; argument
59 struct device_node *child; argument
60 struct device_node *sibling; argument
73 struct device_node *np; argument
79 struct device_node *dn;
86 static inline void of_node_init(struct device_node *node) in of_node_init()
93 static inline int of_node_is_initialized(struct device_node *node) in of_node_is_initialized()
99 static inline int of_node_is_attached(struct device_node *node) in of_node_is_attached()
105 extern struct device_node *of_node_get(struct device_node *node);
106 extern void of_node_put(struct device_node *node);
109 static inline struct device_node *of_node_get(struct device_node *node) in of_node_get()
113 static inline void of_node_put(struct device_node *node) { } in of_node_put()
117 extern struct device_node *of_root;
118 extern struct device_node *of_chosen;
119 extern struct device_node *of_aliases;
120 extern struct device_node *of_stdout;
131 static inline struct device_node *of_node(struct fwnode_handle *fwnode) in of_node()
133 return fwnode ? container_of(fwnode, struct device_node, fwnode) : NULL; in of_node()
141 static inline bool of_node_is_root(const struct device_node *node) in of_node_is_root()
146 static inline int of_node_check_flag(struct device_node *n, unsigned long flag) in of_node_check_flag()
151 static inline int of_node_test_and_set_flag(struct device_node *n, in of_node_test_and_set_flag()
157 static inline void of_node_set_flag(struct device_node *n, unsigned long flag) in of_node_set_flag()
162 static inline void of_node_clear_flag(struct device_node *n, unsigned long flag) in of_node_clear_flag()
182 extern struct device_node *__of_find_all_nodes(struct device_node *prev);
183 extern struct device_node *of_find_all_nodes(struct device_node *prev);
233 static inline const char *of_node_full_name(const struct device_node *np) in of_node_full_name()
241 extern struct device_node *of_find_node_by_name(struct device_node *from,
243 extern struct device_node *of_find_node_by_type(struct device_node *from,
245 extern struct device_node *of_find_compatible_node(struct device_node *from,
247 extern struct device_node *of_find_matching_node_and_match(
248 struct device_node *from,
252 extern struct device_node *of_find_node_opts_by_path(const char *path,
254 static inline struct device_node *of_find_node_by_path(const char *path) in of_find_node_by_path()
259 extern struct device_node *of_find_node_by_phandle(phandle handle);
260 extern struct device_node *of_get_parent(const struct device_node *node);
261 extern struct device_node *of_get_next_parent(struct device_node *node);
262 extern struct device_node *of_get_next_child(const struct device_node *node,
263 struct device_node *prev);
264 extern struct device_node *of_get_next_available_child(
265 const struct device_node *node, struct device_node *prev);
267 extern struct device_node *of_get_child_by_name(const struct device_node *node,
271 extern struct device_node *of_find_next_cache_node(const struct device_node *);
272 extern struct device_node *of_find_node_with_property(
273 struct device_node *from, const char *prop_name);
275 extern struct property *of_find_property(const struct device_node *np,
278 extern int of_property_count_elems_of_size(const struct device_node *np,
280 extern int of_property_read_u32_index(const struct device_node *np,
283 extern int of_property_read_u8_array(const struct device_node *np,
285 extern int of_property_read_u16_array(const struct device_node *np,
287 extern int of_property_read_u32_array(const struct device_node *np,
291 extern int of_property_read_u64(const struct device_node *np,
293 extern int of_property_read_u64_array(const struct device_node *np,
298 extern int of_property_read_string(struct device_node *np,
301 extern int of_property_match_string(struct device_node *np,
304 extern int of_property_read_string_helper(struct device_node *np,
307 extern int of_device_is_compatible(const struct device_node *device,
309 extern bool of_device_is_available(const struct device_node *device);
310 extern bool of_device_is_big_endian(const struct device_node *device);
311 extern const void *of_get_property(const struct device_node *node,
314 extern struct device_node *of_get_cpu_node(int cpu, unsigned int *thread);
318 extern int of_n_addr_cells(struct device_node *np);
319 extern int of_n_size_cells(struct device_node *np);
321 const struct of_device_id *matches, const struct device_node *node);
322 extern int of_modalias_node(struct device_node *node, char *modalias, int len);
324 extern struct device_node *of_parse_phandle(const struct device_node *np,
327 extern int of_parse_phandle_with_args(const struct device_node *np,
330 extern int of_parse_phandle_with_fixed_args(const struct device_node *np,
333 extern int of_count_phandle_with_args(const struct device_node *np,
337 extern int of_alias_get_id(struct device_node *np, const char *stem);
342 extern int of_add_property(struct device_node *np, struct property *prop);
343 extern int of_remove_property(struct device_node *np, struct property *prop);
344 extern int of_update_property(struct device_node *np, struct property *newprop);
353 extern int of_attach_node(struct device_node *);
354 extern int of_detach_node(struct device_node *);
377 bool of_console_check(struct device_node *dn, char *name, int index);
390 static inline struct device_node *of_node(struct fwnode_handle *fwnode) in of_node()
395 static inline const char* of_node_full_name(const struct device_node *np) in of_node_full_name()
400 static inline struct device_node *of_find_node_by_name(struct device_node *from, in of_find_node_by_name()
406 static inline struct device_node *of_find_node_by_type(struct device_node *from, in of_find_node_by_type()
412 static inline struct device_node *of_find_matching_node_and_match( in of_find_matching_node_and_match()
413 struct device_node *from, in of_find_matching_node_and_match()
420 static inline struct device_node *of_find_node_by_path(const char *path) in of_find_node_by_path()
425 static inline struct device_node *of_find_node_opts_by_path(const char *path, in of_find_node_opts_by_path()
431 static inline struct device_node *of_get_parent(const struct device_node *node) in of_get_parent()
436 static inline struct device_node *of_get_next_child( in of_get_next_child()
437 const struct device_node *node, struct device_node *prev) in of_get_next_child()
442 static inline struct device_node *of_get_next_available_child( in of_get_next_available_child()
443 const struct device_node *node, struct device_node *prev) in of_get_next_available_child()
448 static inline struct device_node *of_find_node_with_property( in of_find_node_with_property()
449 struct device_node *from, const char *prop_name) in of_find_node_with_property()
459 static inline struct device_node *of_get_child_by_name( in of_get_child_by_name()
460 const struct device_node *node, in of_get_child_by_name()
466 static inline int of_device_is_compatible(const struct device_node *device, in of_device_is_compatible()
472 static inline bool of_device_is_available(const struct device_node *device) in of_device_is_available()
477 static inline bool of_device_is_big_endian(const struct device_node *device) in of_device_is_big_endian()
482 static inline struct property *of_find_property(const struct device_node *np, in of_find_property()
489 static inline struct device_node *of_find_compatible_node( in of_find_compatible_node()
490 struct device_node *from, in of_find_compatible_node()
497 static inline int of_property_count_elems_of_size(const struct device_node *np, in of_property_count_elems_of_size()
503 static inline int of_property_read_u32_index(const struct device_node *np, in of_property_read_u32_index()
509 static inline int of_property_read_u8_array(const struct device_node *np, in of_property_read_u8_array()
515 static inline int of_property_read_u16_array(const struct device_node *np, in of_property_read_u16_array()
521 static inline int of_property_read_u32_array(const struct device_node *np, in of_property_read_u32_array()
528 static inline int of_property_read_u64_array(const struct device_node *np, in of_property_read_u64_array()
535 static inline int of_property_read_string(struct device_node *np, in of_property_read_string()
542 static inline int of_property_read_string_helper(struct device_node *np, in of_property_read_string_helper()
549 static inline const void *of_get_property(const struct device_node *node, in of_get_property()
556 static inline struct device_node *of_get_cpu_node(int cpu, in of_get_cpu_node()
562 static inline int of_property_read_u64(const struct device_node *np, in of_property_read_u64()
568 static inline int of_property_match_string(struct device_node *np, in of_property_match_string()
575 static inline struct device_node *of_parse_phandle(const struct device_node *np, in of_parse_phandle()
582 static inline int of_parse_phandle_with_args(struct device_node *np, in of_parse_phandle_with_args()
591 static inline int of_parse_phandle_with_fixed_args(const struct device_node *np, in of_parse_phandle_with_fixed_args()
598 static inline int of_count_phandle_with_args(struct device_node *np, in of_count_phandle_with_args()
605 static inline int of_alias_get_id(struct device_node *np, const char *stem) in of_alias_get_id()
620 static inline bool of_console_check(const struct device_node *dn, const char *name, int index) in of_console_check()
637 static inline int of_node_check_flag(struct device_node *n, unsigned long flag) in of_node_check_flag()
642 static inline int of_node_test_and_set_flag(struct device_node *n, in of_node_test_and_set_flag()
648 static inline void of_node_set_flag(struct device_node *n, unsigned long flag) in of_node_set_flag()
652 static inline void of_node_clear_flag(struct device_node *n, unsigned long flag) in of_node_clear_flag()
674 extern int of_node_to_nid(struct device_node *np);
676 static inline int of_node_to_nid(struct device_node *device) in of_node_to_nid()
682 static inline struct device_node *of_find_matching_node( in of_find_matching_node()
683 struct device_node *from, in of_find_matching_node()
700 static inline int of_property_count_u8_elems(const struct device_node *np, in of_property_count_u8_elems()
717 static inline int of_property_count_u16_elems(const struct device_node *np, in of_property_count_u16_elems()
734 static inline int of_property_count_u32_elems(const struct device_node *np, in of_property_count_u32_elems()
751 static inline int of_property_count_u64_elems(const struct device_node *np, in of_property_count_u64_elems()
770 static inline int of_property_read_string_array(struct device_node *np, in of_property_read_string_array()
789 static inline int of_property_count_strings(struct device_node *np, in of_property_count_strings()
813 static inline int of_property_read_string_index(struct device_node *np, in of_property_read_string_index()
829 static inline bool of_property_read_bool(const struct device_node *np, in of_property_read_bool()
837 static inline int of_property_read_u8(const struct device_node *np, in of_property_read_u8()
844 static inline int of_property_read_u16(const struct device_node *np, in of_property_read_u16()
851 static inline int of_property_read_u32(const struct device_node *np, in of_property_read_u32()
858 static inline int of_property_read_s32(const struct device_node *np, in of_property_read_s32()
904 static inline int of_get_child_count(const struct device_node *np) in of_get_child_count()
906 struct device_node *child; in of_get_child_count()
915 static inline int of_get_available_child_count(const struct device_node *np) in of_get_available_child_count()
917 struct device_node *child; in of_get_available_child_count()
940 typedef int (*of_init_fn_2)(struct device_node *, struct device_node *);
941 typedef void (*of_init_fn_1)(struct device_node *);
965 struct device_node *np;
1002 unsigned long action, struct device_node *np,
1006 struct device_node *np) in of_changeset_attach_node()
1012 struct device_node *np) in of_changeset_detach_node()
1018 struct device_node *np, struct property *prop) in of_changeset_add_property()
1024 struct device_node *np, struct property *prop) in of_changeset_remove_property()
1030 struct device_node *np, struct property *prop) in of_changeset_update_property()
1056 extern int of_resolve_phandles(struct device_node *tree);
1064 static inline bool of_device_is_system_power_controller(const struct device_node *np) in of_device_is_system_power_controller()
1076 int of_overlay_create(struct device_node *tree);
1082 static inline int of_overlay_create(struct device_node *tree) in of_overlay_create()