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);
354 extern struct device_node *of_get_cpu_state_node(struct device_node *cpu_node,
360 extern int of_n_addr_cells(struct device_node *np);
361 extern int of_n_size_cells(struct device_node *np);
363 const struct of_device_id *matches, const struct device_node *node);
364 extern int of_modalias_node(struct device_node *node, char *modalias, int len);
366 extern struct device_node *of_parse_phandle(const struct device_node *np,
369 extern int of_parse_phandle_with_args(const struct device_node *np,
372 extern int of_parse_phandle_with_args_map(const struct device_node *np,
375 extern int of_parse_phandle_with_fixed_args(const struct device_node *np,
378 extern int of_count_phandle_with_args(const struct device_node *np,
383 const struct device_node *np,
394 extern int of_alias_get_id(struct device_node *np, const char *stem);
402 extern int of_add_property(struct device_node *np, struct property *prop);
403 extern int of_remove_property(struct device_node *np, struct property *prop);
404 extern int of_update_property(struct device_node *np, struct property *newprop);
413 extern int of_attach_node(struct device_node *);
414 extern int of_detach_node(struct device_node *);
436 static inline int of_property_read_u8_array(const struct device_node *np, in of_property_read_u8_array()
466 static inline int of_property_read_u16_array(const struct device_node *np, in of_property_read_u16_array()
494 static inline int of_property_read_u32_array(const struct device_node *np, in of_property_read_u32_array()
522 static inline int of_property_read_u64_array(const struct device_node *np, in of_property_read_u64_array()
553 bool of_console_check(struct device_node *dn, char *name, int index);
555 extern int of_cpu_node_to_id(struct device_node *np);
557 int of_map_id(struct device_node *np, u32 id,
559 struct device_node **target, u32 *id_out);
572 static inline struct device_node *to_of_node(const struct fwnode_handle *fwnode) in to_of_node()
577 static inline bool of_node_name_eq(const struct device_node *np, const char *name) in of_node_name_eq()
582 static inline bool of_node_name_prefix(const struct device_node *np, const char *prefix) in of_node_name_prefix()
587 static inline const char* of_node_full_name(const struct device_node *np) in of_node_full_name()
592 static inline struct device_node *of_find_node_by_name(struct device_node *from, in of_find_node_by_name()
598 static inline struct device_node *of_find_node_by_type(struct device_node *from, in of_find_node_by_type()
604 static inline struct device_node *of_find_matching_node_and_match( in of_find_matching_node_and_match()
605 struct device_node *from, in of_find_matching_node_and_match()
612 static inline struct device_node *of_find_node_by_path(const char *path) in of_find_node_by_path()
617 static inline struct device_node *of_find_node_opts_by_path(const char *path, in of_find_node_opts_by_path()
623 static inline struct device_node *of_find_node_by_phandle(phandle handle) in of_find_node_by_phandle()
628 static inline struct device_node *of_get_parent(const struct device_node *node) in of_get_parent()
633 static inline struct device_node *of_get_next_parent(struct device_node *node) in of_get_next_parent()
638 static inline struct device_node *of_get_next_child( in of_get_next_child()
639 const struct device_node *node, struct device_node *prev) in of_get_next_child()
644 static inline struct device_node *of_get_next_available_child( in of_get_next_available_child()
645 const struct device_node *node, struct device_node *prev) in of_get_next_available_child()
650 static inline struct device_node *of_find_node_with_property( in of_find_node_with_property()
651 struct device_node *from, const char *prop_name) in of_find_node_with_property()
663 static inline struct device_node *of_get_compatible_child(const struct device_node *parent, in of_get_compatible_child()
669 static inline struct device_node *of_get_child_by_name( in of_get_child_by_name()
670 const struct device_node *node, in of_get_child_by_name()
676 static inline int of_device_is_compatible(const struct device_node *device, in of_device_is_compatible()
682 static inline int of_device_compatible_match(struct device_node *device, in of_device_compatible_match()
688 static inline bool of_device_is_available(const struct device_node *device) in of_device_is_available()
693 static inline bool of_device_is_big_endian(const struct device_node *device) in of_device_is_big_endian()
698 static inline struct property *of_find_property(const struct device_node *np, in of_find_property()
705 static inline struct device_node *of_find_compatible_node( in of_find_compatible_node()
706 struct device_node *from, in of_find_compatible_node()
713 static inline int of_property_count_elems_of_size(const struct device_node *np, in of_property_count_elems_of_size()
719 static inline int of_property_read_u8_array(const struct device_node *np, in of_property_read_u8_array()
725 static inline int of_property_read_u16_array(const struct device_node *np, in of_property_read_u16_array()
731 static inline int of_property_read_u32_array(const struct device_node *np, in of_property_read_u32_array()
738 static inline int of_property_read_u64_array(const struct device_node *np, in of_property_read_u64_array()
745 static inline int of_property_read_u32_index(const struct device_node *np, in of_property_read_u32_index()
751 static inline int of_property_read_u64_index(const struct device_node *np, in of_property_read_u64_index()
757 static inline const void *of_get_property(const struct device_node *node, in of_get_property()
764 static inline struct device_node *of_get_cpu_node(int cpu, in of_get_cpu_node()
770 static inline struct device_node *of_get_next_cpu_node(struct device_node *prev) in of_get_next_cpu_node()
775 static inline struct device_node *of_get_cpu_state_node(struct device_node *cpu_node, in of_get_cpu_state_node()
781 static inline int of_n_addr_cells(struct device_node *np) in of_n_addr_cells()
786 static inline int of_n_size_cells(struct device_node *np) in of_n_size_cells()
791 static inline int of_property_read_variable_u8_array(const struct device_node *np, in of_property_read_variable_u8_array()
798 static inline int of_property_read_variable_u16_array(const struct device_node *np, in of_property_read_variable_u16_array()
805 static inline int of_property_read_variable_u32_array(const struct device_node *np, in of_property_read_variable_u32_array()
814 static inline int of_property_read_u64(const struct device_node *np, in of_property_read_u64()
820 static inline int of_property_read_variable_u64_array(const struct device_node *np, in of_property_read_variable_u64_array()
829 static inline int of_property_read_string(const struct device_node *np, in of_property_read_string()
836 static inline int of_property_match_string(const struct device_node *np, in of_property_match_string()
843 static inline int of_property_read_string_helper(const struct device_node *np, in of_property_read_string_helper()
850 static inline struct device_node *of_parse_phandle(const struct device_node *np, in of_parse_phandle()
857 static inline int of_parse_phandle_with_args(const struct device_node *np, in of_parse_phandle_with_args()
866 static inline int of_parse_phandle_with_args_map(const struct device_node *np, in of_parse_phandle_with_args_map()
875 static inline int of_parse_phandle_with_fixed_args(const struct device_node *np, in of_parse_phandle_with_fixed_args()
882 static inline int of_count_phandle_with_args(struct device_node *np, in of_count_phandle_with_args()
890 const struct device_node *np, in of_phandle_iterator_init()
910 static inline int of_alias_get_id(struct device_node *np, const char *stem) in of_alias_get_id()
932 static inline int of_remove_property(struct device_node *np, struct property *prop) in of_remove_property()
937 static inline bool of_console_check(const struct device_node *dn, const char *name, int index) in of_console_check()
954 static inline int of_node_check_flag(struct device_node *n, unsigned long flag) in of_node_check_flag()
959 static inline int of_node_test_and_set_flag(struct device_node *n, in of_node_test_and_set_flag()
965 static inline void of_node_set_flag(struct device_node *n, unsigned long flag) in of_node_set_flag()
969 static inline void of_node_clear_flag(struct device_node *n, unsigned long flag) in of_node_clear_flag()
986 static inline int of_cpu_node_to_id(struct device_node *np) in of_cpu_node_to_id()
991 static inline int of_map_id(struct device_node *np, u32 id, in of_map_id()
993 struct device_node **target, u32 *id_out) in of_map_id()
1016 extern int of_node_to_nid(struct device_node *np);
1018 static inline int of_node_to_nid(struct device_node *device) in of_node_to_nid()
1033 static inline struct device_node *of_find_matching_node( in of_find_matching_node()
1034 struct device_node *from, in of_find_matching_node()
1040 static inline const char *of_node_get_device_type(const struct device_node *np) in of_node_get_device_type()
1045 static inline bool of_node_is_type(const struct device_node *np, const char *type) in of_node_is_type()
1063 static inline int of_property_count_u8_elems(const struct device_node *np, in of_property_count_u8_elems()
1080 static inline int of_property_count_u16_elems(const struct device_node *np, in of_property_count_u16_elems()
1097 static inline int of_property_count_u32_elems(const struct device_node *np, in of_property_count_u32_elems()
1114 static inline int of_property_count_u64_elems(const struct device_node *np, in of_property_count_u64_elems()
1133 static inline int of_property_read_string_array(const struct device_node *np, in of_property_read_string_array()
1152 static inline int of_property_count_strings(const struct device_node *np, in of_property_count_strings()
1176 static inline int of_property_read_string_index(const struct device_node *np, in of_property_read_string_index()
1192 static inline bool of_property_read_bool(const struct device_node *np, in of_property_read_bool()
1200 static inline int of_property_read_u8(const struct device_node *np, in of_property_read_u8()
1207 static inline int of_property_read_u16(const struct device_node *np, in of_property_read_u16()
1214 static inline int of_property_read_u32(const struct device_node *np, in of_property_read_u32()
1221 static inline int of_property_read_s32(const struct device_node *np, in of_property_read_s32()
1277 static inline int of_get_child_count(const struct device_node *np) in of_get_child_count()
1279 struct device_node *child; in of_get_child_count()
1288 static inline int of_get_available_child_count(const struct device_node *np) in of_get_available_child_count()
1290 struct device_node *child; in of_get_available_child_count()
1313 typedef int (*of_init_fn_2)(struct device_node *, struct device_node *);
1314 typedef int (*of_init_fn_1_ret)(struct device_node *);
1315 typedef void (*of_init_fn_1)(struct device_node *);
1341 struct device_node *np;
1378 unsigned long action, struct device_node *np,
1382 struct device_node *np) in of_changeset_attach_node()
1388 struct device_node *np) in of_changeset_detach_node()
1394 struct device_node *np, struct property *prop) in of_changeset_add_property()
1400 struct device_node *np, struct property *prop) in of_changeset_remove_property()
1406 struct device_node *np, struct property *prop) in of_changeset_update_property()
1437 static inline bool of_device_is_system_power_controller(const struct device_node *np) in of_device_is_system_power_controller()
1454 struct device_node *overlay;
1455 struct device_node *target;