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;
139 static inline struct device_node *to_of_node(struct fwnode_handle *fwnode) in to_of_node()
142 container_of(fwnode, struct device_node, fwnode) : NULL; in to_of_node()
150 static inline bool of_node_is_root(const struct device_node *node) in of_node_is_root()
155 static inline int of_node_check_flag(struct device_node *n, unsigned long flag) in of_node_check_flag()
160 static inline int of_node_test_and_set_flag(struct device_node *n, in of_node_test_and_set_flag()
166 static inline void of_node_set_flag(struct device_node *n, unsigned long flag) in of_node_set_flag()
171 static inline void of_node_clear_flag(struct device_node *n, unsigned long flag) in of_node_clear_flag()
191 extern struct device_node *__of_find_all_nodes(struct device_node *prev);
192 extern struct device_node *of_find_all_nodes(struct device_node *prev);
234 static inline const char *of_node_full_name(const struct device_node *np) in of_node_full_name()
242 extern struct device_node *of_find_node_by_name(struct device_node *from,
244 extern struct device_node *of_find_node_by_type(struct device_node *from,
246 extern struct device_node *of_find_compatible_node(struct device_node *from,
248 extern struct device_node *of_find_matching_node_and_match(
249 struct device_node *from,
253 extern struct device_node *of_find_node_opts_by_path(const char *path,
255 static inline struct device_node *of_find_node_by_path(const char *path) in of_find_node_by_path()
260 extern struct device_node *of_find_node_by_phandle(phandle handle);
261 extern struct device_node *of_get_parent(const struct device_node *node);
262 extern struct device_node *of_get_next_parent(struct device_node *node);
263 extern struct device_node *of_get_next_child(const struct device_node *node,
264 struct device_node *prev);
265 extern struct device_node *of_get_next_available_child(
266 const struct device_node *node, struct device_node *prev);
268 extern struct device_node *of_get_child_by_name(const struct device_node *node,
272 extern struct device_node *of_find_next_cache_node(const struct device_node *);
273 extern struct device_node *of_find_node_with_property(
274 struct device_node *from, const char *prop_name);
276 extern struct property *of_find_property(const struct device_node *np,
279 extern int of_property_count_elems_of_size(const struct device_node *np,
281 extern int of_property_read_u32_index(const struct device_node *np,
284 extern int of_property_read_u8_array(const struct device_node *np,
286 extern int of_property_read_u16_array(const struct device_node *np,
288 extern int of_property_read_u32_array(const struct device_node *np,
292 extern int of_property_read_u64(const struct device_node *np,
294 extern int of_property_read_u64_array(const struct device_node *np,
299 extern int of_property_read_string(struct device_node *np,
302 extern int of_property_match_string(struct device_node *np,
305 extern int of_property_read_string_helper(struct device_node *np,
308 extern int of_device_is_compatible(const struct device_node *device,
310 extern bool of_device_is_available(const struct device_node *device);
311 extern bool of_device_is_big_endian(const struct device_node *device);
312 extern const void *of_get_property(const struct device_node *node,
315 extern struct device_node *of_get_cpu_node(int cpu, unsigned int *thread);
319 extern int of_n_addr_cells(struct device_node *np);
320 extern int of_n_size_cells(struct device_node *np);
322 const struct of_device_id *matches, const struct device_node *node);
323 extern int of_modalias_node(struct device_node *node, char *modalias, int len);
325 extern struct device_node *of_parse_phandle(const struct device_node *np,
328 extern int of_parse_phandle_with_args(const struct device_node *np,
331 extern int of_parse_phandle_with_fixed_args(const struct device_node *np,
334 extern int of_count_phandle_with_args(const struct device_node *np,
338 extern int of_alias_get_id(struct device_node *np, const char *stem);
343 extern int of_add_property(struct device_node *np, struct property *prop);
344 extern int of_remove_property(struct device_node *np, struct property *prop);
345 extern int of_update_property(struct device_node *np, struct property *newprop);
354 extern int of_attach_node(struct device_node *);
355 extern int of_detach_node(struct device_node *);
378 bool of_console_check(struct device_node *dn, char *name, int index);
391 static inline struct device_node *to_of_node(struct fwnode_handle *fwnode) in to_of_node()
396 static inline const char* of_node_full_name(const struct device_node *np) in of_node_full_name()
401 static inline struct device_node *of_find_node_by_name(struct device_node *from, in of_find_node_by_name()
407 static inline struct device_node *of_find_node_by_type(struct device_node *from, in of_find_node_by_type()
413 static inline struct device_node *of_find_matching_node_and_match( in of_find_matching_node_and_match()
414 struct device_node *from, in of_find_matching_node_and_match()
421 static inline struct device_node *of_find_node_by_path(const char *path) in of_find_node_by_path()
426 static inline struct device_node *of_find_node_opts_by_path(const char *path, in of_find_node_opts_by_path()
432 static inline struct device_node *of_find_node_by_phandle(phandle handle) in of_find_node_by_phandle()
437 static inline struct device_node *of_get_parent(const struct device_node *node) in of_get_parent()
442 static inline struct device_node *of_get_next_child( in of_get_next_child()
443 const struct device_node *node, struct device_node *prev) in of_get_next_child()
448 static inline struct device_node *of_get_next_available_child( in of_get_next_available_child()
449 const struct device_node *node, struct device_node *prev) in of_get_next_available_child()
454 static inline struct device_node *of_find_node_with_property( in of_find_node_with_property()
455 struct device_node *from, const char *prop_name) in of_find_node_with_property()
465 static inline struct device_node *of_get_child_by_name( in of_get_child_by_name()
466 const struct device_node *node, in of_get_child_by_name()
472 static inline int of_device_is_compatible(const struct device_node *device, in of_device_is_compatible()
478 static inline bool of_device_is_available(const struct device_node *device) in of_device_is_available()
483 static inline bool of_device_is_big_endian(const struct device_node *device) in of_device_is_big_endian()
488 static inline struct property *of_find_property(const struct device_node *np, in of_find_property()
495 static inline struct device_node *of_find_compatible_node( in of_find_compatible_node()
496 struct device_node *from, in of_find_compatible_node()
503 static inline int of_property_count_elems_of_size(const struct device_node *np, in of_property_count_elems_of_size()
509 static inline int of_property_read_u32_index(const struct device_node *np, in of_property_read_u32_index()
515 static inline int of_property_read_u8_array(const struct device_node *np, in of_property_read_u8_array()
521 static inline int of_property_read_u16_array(const struct device_node *np, in of_property_read_u16_array()
527 static inline int of_property_read_u32_array(const struct device_node *np, in of_property_read_u32_array()
534 static inline int of_property_read_u64_array(const struct device_node *np, in of_property_read_u64_array()
541 static inline int of_property_read_string(struct device_node *np, in of_property_read_string()
548 static inline int of_property_read_string_helper(struct device_node *np, in of_property_read_string_helper()
555 static inline const void *of_get_property(const struct device_node *node, in of_get_property()
562 static inline struct device_node *of_get_cpu_node(int cpu, in of_get_cpu_node()
568 static inline int of_property_read_u64(const struct device_node *np, in of_property_read_u64()
574 static inline int of_property_match_string(struct device_node *np, in of_property_match_string()
581 static inline struct device_node *of_parse_phandle(const struct device_node *np, in of_parse_phandle()
588 static inline int of_parse_phandle_with_args(struct device_node *np, in of_parse_phandle_with_args()
597 static inline int of_parse_phandle_with_fixed_args(const struct device_node *np, in of_parse_phandle_with_fixed_args()
604 static inline int of_count_phandle_with_args(struct device_node *np, in of_count_phandle_with_args()
611 static inline int of_alias_get_id(struct device_node *np, const char *stem) in of_alias_get_id()
626 static inline bool of_console_check(const struct device_node *dn, const char *name, int index) in of_console_check()
643 static inline int of_node_check_flag(struct device_node *n, unsigned long flag) in of_node_check_flag()
648 static inline int of_node_test_and_set_flag(struct device_node *n, in of_node_test_and_set_flag()
654 static inline void of_node_set_flag(struct device_node *n, unsigned long flag) in of_node_set_flag()
658 static inline void of_node_clear_flag(struct device_node *n, unsigned long flag) in of_node_clear_flag()
680 extern int of_node_to_nid(struct device_node *np);
682 static inline int of_node_to_nid(struct device_node *device) in of_node_to_nid()
688 static inline struct device_node *of_find_matching_node( in of_find_matching_node()
689 struct device_node *from, in of_find_matching_node()
706 static inline int of_property_count_u8_elems(const struct device_node *np, in of_property_count_u8_elems()
723 static inline int of_property_count_u16_elems(const struct device_node *np, in of_property_count_u16_elems()
740 static inline int of_property_count_u32_elems(const struct device_node *np, in of_property_count_u32_elems()
757 static inline int of_property_count_u64_elems(const struct device_node *np, in of_property_count_u64_elems()
776 static inline int of_property_read_string_array(struct device_node *np, in of_property_read_string_array()
795 static inline int of_property_count_strings(struct device_node *np, in of_property_count_strings()
819 static inline int of_property_read_string_index(struct device_node *np, in of_property_read_string_index()
835 static inline bool of_property_read_bool(const struct device_node *np, in of_property_read_bool()
843 static inline int of_property_read_u8(const struct device_node *np, in of_property_read_u8()
850 static inline int of_property_read_u16(const struct device_node *np, in of_property_read_u16()
857 static inline int of_property_read_u32(const struct device_node *np, in of_property_read_u32()
864 static inline int of_property_read_s32(const struct device_node *np, in of_property_read_s32()
910 static inline int of_get_child_count(const struct device_node *np) in of_get_child_count()
912 struct device_node *child; in of_get_child_count()
921 static inline int of_get_available_child_count(const struct device_node *np) in of_get_available_child_count()
923 struct device_node *child; in of_get_available_child_count()
946 typedef int (*of_init_fn_2)(struct device_node *, struct device_node *);
947 typedef void (*of_init_fn_1)(struct device_node *);
971 struct device_node *np;
1008 unsigned long action, struct device_node *np,
1012 struct device_node *np) in of_changeset_attach_node()
1018 struct device_node *np) in of_changeset_detach_node()
1024 struct device_node *np, struct property *prop) in of_changeset_add_property()
1030 struct device_node *np, struct property *prop) in of_changeset_remove_property()
1036 struct device_node *np, struct property *prop) in of_changeset_update_property()
1062 extern int of_resolve_phandles(struct device_node *tree);
1070 static inline bool of_device_is_system_power_controller(const struct device_node *np) in of_device_is_system_power_controller()
1082 int of_overlay_create(struct device_node *tree);
1088 static inline int of_overlay_create(struct device_node *tree) in of_overlay_create()