Lines Matching refs:device_node
51 struct device_node { struct
59 struct device_node *parent; argument
60 struct device_node *child; argument
61 struct device_node *sibling; argument
75 struct device_node *np; argument
84 const struct device_node *parent;
94 struct device_node *node;
98 struct device_node *dn;
106 static inline void of_node_init(struct device_node *node) in of_node_init()
121 extern struct device_node *of_node_get(struct device_node *node);
122 extern void of_node_put(struct device_node *node);
125 static inline struct device_node *of_node_get(struct device_node *node) in of_node_get()
129 static inline void of_node_put(struct device_node *node) { } in of_node_put()
133 extern struct device_node *of_root;
134 extern struct device_node *of_chosen;
135 extern struct device_node *of_aliases;
136 extern struct device_node *of_stdout;
166 struct device_node, fwnode) : \
183 static inline bool of_node_is_root(const struct device_node *node) in of_node_is_root()
188 static inline int of_node_check_flag(struct device_node *n, unsigned long flag) in of_node_check_flag()
193 static inline int of_node_test_and_set_flag(struct device_node *n, in of_node_test_and_set_flag()
199 static inline void of_node_set_flag(struct device_node *n, unsigned long flag) in of_node_set_flag()
204 static inline void of_node_clear_flag(struct device_node *n, unsigned long flag) in of_node_clear_flag()
226 extern struct device_node *__of_find_all_nodes(struct device_node *prev);
227 extern struct device_node *of_find_all_nodes(struct device_node *prev);
256 extern bool of_node_name_eq(const struct device_node *np, const char *name);
257 extern bool of_node_name_prefix(const struct device_node *np, const char *prefix);
259 static inline const char *of_node_full_name(const struct device_node *np) in of_node_full_name()
267 extern struct device_node *of_find_node_by_name(struct device_node *from,
269 extern struct device_node *of_find_node_by_type(struct device_node *from,
271 extern struct device_node *of_find_compatible_node(struct device_node *from,
273 extern struct device_node *of_find_matching_node_and_match(
274 struct device_node *from,
278 extern struct device_node *of_find_node_opts_by_path(const char *path,
280 static inline struct device_node *of_find_node_by_path(const char *path) in of_find_node_by_path()
285 extern struct device_node *of_find_node_by_phandle(phandle handle);
286 extern struct device_node *of_get_parent(const struct device_node *node);
287 extern struct device_node *of_get_next_parent(struct device_node *node);
288 extern struct device_node *of_get_next_child(const struct device_node *node,
289 struct device_node *prev);
290 extern struct device_node *of_get_next_available_child(
291 const struct device_node *node, struct device_node *prev);
293 extern struct device_node *of_get_compatible_child(const struct device_node *parent,
295 extern struct device_node *of_get_child_by_name(const struct device_node *node,
299 extern struct device_node *of_find_next_cache_node(const struct device_node *);
301 extern struct device_node *of_find_node_with_property(
302 struct device_node *from, const char *prop_name);
304 extern struct property *of_find_property(const struct device_node *np,
307 extern int of_property_count_elems_of_size(const struct device_node *np,
309 extern int of_property_read_u32_index(const struct device_node *np,
312 extern int of_property_read_u64_index(const struct device_node *np,
315 extern int of_property_read_variable_u8_array(const struct device_node *np,
318 extern int of_property_read_variable_u16_array(const struct device_node *np,
321 extern int of_property_read_variable_u32_array(const struct device_node *np,
326 extern int of_property_read_u64(const struct device_node *np,
328 extern int of_property_read_variable_u64_array(const struct device_node *np,
334 extern int of_property_read_string(const struct device_node *np,
337 extern int of_property_match_string(const struct device_node *np,
340 extern int of_property_read_string_helper(const struct device_node *np,
343 extern int of_device_is_compatible(const struct device_node *device,
345 extern int of_device_compatible_match(struct device_node *device,
347 extern bool of_device_is_available(const struct device_node *device);
348 extern bool of_device_is_big_endian(const struct device_node *device);
349 extern const void *of_get_property(const struct device_node *node,
352 extern struct device_node *of_get_cpu_node(int cpu, unsigned int *thread);
353 extern struct device_node *of_get_next_cpu_node(struct device_node *prev);
358 extern int of_n_addr_cells(struct device_node *np);
359 extern int of_n_size_cells(struct device_node *np);
361 const struct of_device_id *matches, const struct device_node *node);
362 extern int of_modalias_node(struct device_node *node, char *modalias, int len);
364 extern struct device_node *of_parse_phandle(const struct device_node *np,
367 extern int of_parse_phandle_with_args(const struct device_node *np,
370 extern int of_parse_phandle_with_args_map(const struct device_node *np,
373 extern int of_parse_phandle_with_fixed_args(const struct device_node *np,
376 extern int of_count_phandle_with_args(const struct device_node *np,
381 const struct device_node *np,
392 extern int of_alias_get_id(struct device_node *np, const char *stem);
400 extern int of_add_property(struct device_node *np, struct property *prop);
401 extern int of_remove_property(struct device_node *np, struct property *prop);
402 extern int of_update_property(struct device_node *np, struct property *newprop);
411 extern int of_attach_node(struct device_node *);
412 extern int of_detach_node(struct device_node *);
434 static inline int of_property_read_u8_array(const struct device_node *np, in of_property_read_u8_array()
464 static inline int of_property_read_u16_array(const struct device_node *np, in of_property_read_u16_array()
492 static inline int of_property_read_u32_array(const struct device_node *np, in of_property_read_u32_array()
520 static inline int of_property_read_u64_array(const struct device_node *np, in of_property_read_u64_array()
551 bool of_console_check(struct device_node *dn, char *name, int index);
553 extern int of_cpu_node_to_id(struct device_node *np);
555 int of_map_rid(struct device_node *np, u32 rid,
557 struct device_node **target, u32 *id_out);
570 static inline struct device_node *to_of_node(const struct fwnode_handle *fwnode) in to_of_node()
575 static inline bool of_node_name_eq(const struct device_node *np, const char *name) in of_node_name_eq()
580 static inline bool of_node_name_prefix(const struct device_node *np, const char *prefix) in of_node_name_prefix()
585 static inline const char* of_node_full_name(const struct device_node *np) in of_node_full_name()
590 static inline struct device_node *of_find_node_by_name(struct device_node *from, in of_find_node_by_name()
596 static inline struct device_node *of_find_node_by_type(struct device_node *from, in of_find_node_by_type()
602 static inline struct device_node *of_find_matching_node_and_match( in of_find_matching_node_and_match()
603 struct device_node *from, in of_find_matching_node_and_match()
610 static inline struct device_node *of_find_node_by_path(const char *path) in of_find_node_by_path()
615 static inline struct device_node *of_find_node_opts_by_path(const char *path, in of_find_node_opts_by_path()
621 static inline struct device_node *of_find_node_by_phandle(phandle handle) in of_find_node_by_phandle()
626 static inline struct device_node *of_get_parent(const struct device_node *node) in of_get_parent()
631 static inline struct device_node *of_get_next_child( in of_get_next_child()
632 const struct device_node *node, struct device_node *prev) in of_get_next_child()
637 static inline struct device_node *of_get_next_available_child( in of_get_next_available_child()
638 const struct device_node *node, struct device_node *prev) in of_get_next_available_child()
643 static inline struct device_node *of_find_node_with_property( in of_find_node_with_property()
644 struct device_node *from, const char *prop_name) in of_find_node_with_property()
656 static inline struct device_node *of_get_compatible_child(const struct device_node *parent, in of_get_compatible_child()
662 static inline struct device_node *of_get_child_by_name( in of_get_child_by_name()
663 const struct device_node *node, in of_get_child_by_name()
669 static inline int of_device_is_compatible(const struct device_node *device, in of_device_is_compatible()
675 static inline int of_device_compatible_match(struct device_node *device, in of_device_compatible_match()
681 static inline bool of_device_is_available(const struct device_node *device) in of_device_is_available()
686 static inline bool of_device_is_big_endian(const struct device_node *device) in of_device_is_big_endian()
691 static inline struct property *of_find_property(const struct device_node *np, in of_find_property()
698 static inline struct device_node *of_find_compatible_node( in of_find_compatible_node()
699 struct device_node *from, in of_find_compatible_node()
706 static inline int of_property_count_elems_of_size(const struct device_node *np, in of_property_count_elems_of_size()
712 static inline int of_property_read_u8_array(const struct device_node *np, in of_property_read_u8_array()
718 static inline int of_property_read_u16_array(const struct device_node *np, in of_property_read_u16_array()
724 static inline int of_property_read_u32_array(const struct device_node *np, in of_property_read_u32_array()
731 static inline int of_property_read_u64_array(const struct device_node *np, in of_property_read_u64_array()
738 static inline int of_property_read_u32_index(const struct device_node *np, in of_property_read_u32_index()
744 static inline int of_property_read_u64_index(const struct device_node *np, in of_property_read_u64_index()
750 static inline const void *of_get_property(const struct device_node *node, in of_get_property()
757 static inline struct device_node *of_get_cpu_node(int cpu, in of_get_cpu_node()
763 static inline struct device_node *of_get_next_cpu_node(struct device_node *prev) in of_get_next_cpu_node()
768 static inline int of_n_addr_cells(struct device_node *np) in of_n_addr_cells()
773 static inline int of_n_size_cells(struct device_node *np) in of_n_size_cells()
778 static inline int of_property_read_variable_u8_array(const struct device_node *np, in of_property_read_variable_u8_array()
785 static inline int of_property_read_variable_u16_array(const struct device_node *np, in of_property_read_variable_u16_array()
792 static inline int of_property_read_variable_u32_array(const struct device_node *np, in of_property_read_variable_u32_array()
801 static inline int of_property_read_u64(const struct device_node *np, in of_property_read_u64()
807 static inline int of_property_read_variable_u64_array(const struct device_node *np, in of_property_read_variable_u64_array()
816 static inline int of_property_read_string(const struct device_node *np, in of_property_read_string()
823 static inline int of_property_match_string(const struct device_node *np, in of_property_match_string()
830 static inline int of_property_read_string_helper(const struct device_node *np, in of_property_read_string_helper()
837 static inline struct device_node *of_parse_phandle(const struct device_node *np, in of_parse_phandle()
844 static inline int of_parse_phandle_with_args(const struct device_node *np, in of_parse_phandle_with_args()
853 static inline int of_parse_phandle_with_args_map(const struct device_node *np, in of_parse_phandle_with_args_map()
862 static inline int of_parse_phandle_with_fixed_args(const struct device_node *np, in of_parse_phandle_with_fixed_args()
869 static inline int of_count_phandle_with_args(struct device_node *np, in of_count_phandle_with_args()
877 const struct device_node *np, in of_phandle_iterator_init()
897 static inline int of_alias_get_id(struct device_node *np, const char *stem) in of_alias_get_id()
919 static inline bool of_console_check(const struct device_node *dn, const char *name, int index) in of_console_check()
936 static inline int of_node_check_flag(struct device_node *n, unsigned long flag) in of_node_check_flag()
941 static inline int of_node_test_and_set_flag(struct device_node *n, in of_node_test_and_set_flag()
947 static inline void of_node_set_flag(struct device_node *n, unsigned long flag) in of_node_set_flag()
951 static inline void of_node_clear_flag(struct device_node *n, unsigned long flag) in of_node_clear_flag()
968 static inline int of_cpu_node_to_id(struct device_node *np) in of_cpu_node_to_id()
973 static inline int of_map_rid(struct device_node *np, u32 rid, in of_map_rid()
975 struct device_node **target, u32 *id_out) in of_map_rid()
998 extern int of_node_to_nid(struct device_node *np);
1000 static inline int of_node_to_nid(struct device_node *device) in of_node_to_nid()
1015 static inline struct device_node *of_find_matching_node( in of_find_matching_node()
1016 struct device_node *from, in of_find_matching_node()
1022 static inline const char *of_node_get_device_type(const struct device_node *np) in of_node_get_device_type()
1027 static inline bool of_node_is_type(const struct device_node *np, const char *type) in of_node_is_type()
1045 static inline int of_property_count_u8_elems(const struct device_node *np, in of_property_count_u8_elems()
1062 static inline int of_property_count_u16_elems(const struct device_node *np, in of_property_count_u16_elems()
1079 static inline int of_property_count_u32_elems(const struct device_node *np, in of_property_count_u32_elems()
1096 static inline int of_property_count_u64_elems(const struct device_node *np, in of_property_count_u64_elems()
1115 static inline int of_property_read_string_array(const struct device_node *np, in of_property_read_string_array()
1134 static inline int of_property_count_strings(const struct device_node *np, in of_property_count_strings()
1158 static inline int of_property_read_string_index(const struct device_node *np, in of_property_read_string_index()
1174 static inline bool of_property_read_bool(const struct device_node *np, in of_property_read_bool()
1182 static inline int of_property_read_u8(const struct device_node *np, in of_property_read_u8()
1189 static inline int of_property_read_u16(const struct device_node *np, in of_property_read_u16()
1196 static inline int of_property_read_u32(const struct device_node *np, in of_property_read_u32()
1203 static inline int of_property_read_s32(const struct device_node *np, in of_property_read_s32()
1259 static inline int of_get_child_count(const struct device_node *np) in of_get_child_count()
1261 struct device_node *child; in of_get_child_count()
1270 static inline int of_get_available_child_count(const struct device_node *np) in of_get_available_child_count()
1272 struct device_node *child; in of_get_available_child_count()
1295 typedef int (*of_init_fn_2)(struct device_node *, struct device_node *);
1296 typedef int (*of_init_fn_1_ret)(struct device_node *);
1297 typedef void (*of_init_fn_1)(struct device_node *);
1323 struct device_node *np;
1360 unsigned long action, struct device_node *np,
1364 struct device_node *np) in of_changeset_attach_node()
1370 struct device_node *np) in of_changeset_detach_node()
1376 struct device_node *np, struct property *prop) in of_changeset_add_property()
1382 struct device_node *np, struct property *prop) in of_changeset_remove_property()
1388 struct device_node *np, struct property *prop) in of_changeset_update_property()
1419 static inline bool of_device_is_system_power_controller(const struct device_node *np) in of_device_is_system_power_controller()
1436 struct device_node *overlay;
1437 struct device_node *target;