Lines Matching refs:device_node

51 struct device_node {  struct
60 struct device_node *parent; argument
61 struct device_node *child; argument
62 struct device_node *sibling; argument
77 struct device_node *np; argument
86 const struct device_node *parent;
96 struct device_node *node;
100 struct device_node *dn;
108 static inline void of_node_init(struct device_node *node) in of_node_init()
123 extern struct device_node *of_node_get(struct device_node *node);
124 extern void of_node_put(struct device_node *node);
127 static inline struct device_node *of_node_get(struct device_node *node) in of_node_get()
131 static inline void of_node_put(struct device_node *node) { } in of_node_put()
135 extern struct device_node *of_root;
136 extern struct device_node *of_chosen;
137 extern struct device_node *of_aliases;
138 extern struct device_node *of_stdout;
163 struct device_node, fwnode) : \
180 static inline bool of_node_is_root(const struct device_node *node) in of_node_is_root()
185 static inline int of_node_check_flag(struct device_node *n, unsigned long flag) in of_node_check_flag()
190 static inline int of_node_test_and_set_flag(struct device_node *n, in of_node_test_and_set_flag()
196 static inline void of_node_set_flag(struct device_node *n, unsigned long flag) in of_node_set_flag()
201 static inline void of_node_clear_flag(struct device_node *n, unsigned long flag) in of_node_clear_flag()
223 extern struct device_node *__of_find_all_nodes(struct device_node *prev);
224 extern struct device_node *of_find_all_nodes(struct device_node *prev);
259 extern bool of_node_name_eq(const struct device_node *np, const char *name);
260 extern bool of_node_name_prefix(const struct device_node *np, const char *prefix);
262 static inline const char *of_node_full_name(const struct device_node *np) in of_node_full_name()
270 extern struct device_node *of_find_node_by_name(struct device_node *from,
272 extern struct device_node *of_find_node_by_type(struct device_node *from,
274 extern struct device_node *of_find_compatible_node(struct device_node *from,
276 extern struct device_node *of_find_matching_node_and_match(
277 struct device_node *from,
281 extern struct device_node *of_find_node_opts_by_path(const char *path,
283 static inline struct device_node *of_find_node_by_path(const char *path) in of_find_node_by_path()
288 extern struct device_node *of_find_node_by_phandle(phandle handle);
289 extern struct device_node *of_get_parent(const struct device_node *node);
290 extern struct device_node *of_get_next_parent(struct device_node *node);
291 extern struct device_node *of_get_next_child(const struct device_node *node,
292 struct device_node *prev);
293 extern struct device_node *of_get_next_available_child(
294 const struct device_node *node, struct device_node *prev);
296 extern struct device_node *of_get_compatible_child(const struct device_node *parent,
298 extern struct device_node *of_get_child_by_name(const struct device_node *node,
302 extern struct device_node *of_find_next_cache_node(const struct device_node *);
304 extern struct device_node *of_find_node_with_property(
305 struct device_node *from, const char *prop_name);
307 extern struct property *of_find_property(const struct device_node *np,
310 extern int of_property_count_elems_of_size(const struct device_node *np,
312 extern int of_property_read_u32_index(const struct device_node *np,
315 extern int of_property_read_u64_index(const struct device_node *np,
318 extern int of_property_read_variable_u8_array(const struct device_node *np,
321 extern int of_property_read_variable_u16_array(const struct device_node *np,
324 extern int of_property_read_variable_u32_array(const struct device_node *np,
329 extern int of_property_read_u64(const struct device_node *np,
331 extern int of_property_read_variable_u64_array(const struct device_node *np,
337 extern int of_property_read_string(const struct device_node *np,
340 extern int of_property_match_string(const struct device_node *np,
343 extern int of_property_read_string_helper(const struct device_node *np,
346 extern int of_device_is_compatible(const struct device_node *device,
348 extern int of_device_compatible_match(struct device_node *device,
350 extern bool of_device_is_available(const struct device_node *device);
351 extern bool of_device_is_big_endian(const struct device_node *device);
352 extern const void *of_get_property(const struct device_node *node,
355 extern struct device_node *of_get_cpu_node(int cpu, unsigned int *thread);
359 extern int of_n_addr_cells(struct device_node *np);
360 extern int of_n_size_cells(struct device_node *np);
362 const struct of_device_id *matches, const struct device_node *node);
363 extern int of_modalias_node(struct device_node *node, char *modalias, int len);
365 extern struct device_node *of_parse_phandle(const struct device_node *np,
368 extern int of_parse_phandle_with_args(const struct device_node *np,
371 extern int of_parse_phandle_with_args_map(const struct device_node *np,
374 extern int of_parse_phandle_with_fixed_args(const struct device_node *np,
377 extern int of_count_phandle_with_args(const struct device_node *np,
382 const struct device_node *np,
393 extern int of_alias_get_id(struct device_node *np, const char *stem);
398 extern int of_add_property(struct device_node *np, struct property *prop);
399 extern int of_remove_property(struct device_node *np, struct property *prop);
400 extern int of_update_property(struct device_node *np, struct property *newprop);
409 extern int of_attach_node(struct device_node *);
410 extern int of_detach_node(struct device_node *);
432 static inline int of_property_read_u8_array(const struct device_node *np, in of_property_read_u8_array()
462 static inline int of_property_read_u16_array(const struct device_node *np, in of_property_read_u16_array()
490 static inline int of_property_read_u32_array(const struct device_node *np, in of_property_read_u32_array()
518 static inline int of_property_read_u64_array(const struct device_node *np, in of_property_read_u64_array()
549 bool of_console_check(struct device_node *dn, char *name, int index);
551 extern int of_cpu_node_to_id(struct device_node *np);
564 static inline struct device_node *to_of_node(const struct fwnode_handle *fwnode) in to_of_node()
569 static inline bool of_node_name_eq(const struct device_node *np, const char *name) in of_node_name_eq()
574 static inline bool of_node_name_prefix(const struct device_node *np, const char *prefix) in of_node_name_prefix()
579 static inline const char* of_node_full_name(const struct device_node *np) in of_node_full_name()
584 static inline struct device_node *of_find_node_by_name(struct device_node *from, in of_find_node_by_name()
590 static inline struct device_node *of_find_node_by_type(struct device_node *from, in of_find_node_by_type()
596 static inline struct device_node *of_find_matching_node_and_match( in of_find_matching_node_and_match()
597 struct device_node *from, in of_find_matching_node_and_match()
604 static inline struct device_node *of_find_node_by_path(const char *path) in of_find_node_by_path()
609 static inline struct device_node *of_find_node_opts_by_path(const char *path, in of_find_node_opts_by_path()
615 static inline struct device_node *of_find_node_by_phandle(phandle handle) in of_find_node_by_phandle()
620 static inline struct device_node *of_get_parent(const struct device_node *node) in of_get_parent()
625 static inline struct device_node *of_get_next_child( in of_get_next_child()
626 const struct device_node *node, struct device_node *prev) in of_get_next_child()
631 static inline struct device_node *of_get_next_available_child( in of_get_next_available_child()
632 const struct device_node *node, struct device_node *prev) in of_get_next_available_child()
637 static inline struct device_node *of_find_node_with_property( in of_find_node_with_property()
638 struct device_node *from, const char *prop_name) in of_find_node_with_property()
650 static inline struct device_node *of_get_compatible_child(const struct device_node *parent, in of_get_compatible_child()
656 static inline struct device_node *of_get_child_by_name( in of_get_child_by_name()
657 const struct device_node *node, in of_get_child_by_name()
663 static inline int of_device_is_compatible(const struct device_node *device, in of_device_is_compatible()
669 static inline int of_device_compatible_match(struct device_node *device, in of_device_compatible_match()
675 static inline bool of_device_is_available(const struct device_node *device) in of_device_is_available()
680 static inline bool of_device_is_big_endian(const struct device_node *device) in of_device_is_big_endian()
685 static inline struct property *of_find_property(const struct device_node *np, in of_find_property()
692 static inline struct device_node *of_find_compatible_node( in of_find_compatible_node()
693 struct device_node *from, in of_find_compatible_node()
700 static inline int of_property_count_elems_of_size(const struct device_node *np, in of_property_count_elems_of_size()
706 static inline int of_property_read_u8_array(const struct device_node *np, in of_property_read_u8_array()
712 static inline int of_property_read_u16_array(const struct device_node *np, in of_property_read_u16_array()
718 static inline int of_property_read_u32_array(const struct device_node *np, in of_property_read_u32_array()
725 static inline int of_property_read_u64_array(const struct device_node *np, in of_property_read_u64_array()
732 static inline int of_property_read_u32_index(const struct device_node *np, in of_property_read_u32_index()
738 static inline int of_property_read_u64_index(const struct device_node *np, in of_property_read_u64_index()
744 static inline const void *of_get_property(const struct device_node *node, in of_get_property()
751 static inline struct device_node *of_get_cpu_node(int cpu, in of_get_cpu_node()
757 static inline int of_n_addr_cells(struct device_node *np) in of_n_addr_cells()
762 static inline int of_n_size_cells(struct device_node *np) in of_n_size_cells()
767 static inline int of_property_read_variable_u8_array(const struct device_node *np, in of_property_read_variable_u8_array()
774 static inline int of_property_read_variable_u16_array(const struct device_node *np, in of_property_read_variable_u16_array()
781 static inline int of_property_read_variable_u32_array(const struct device_node *np, in of_property_read_variable_u32_array()
790 static inline int of_property_read_u64(const struct device_node *np, in of_property_read_u64()
796 static inline int of_property_read_variable_u64_array(const struct device_node *np, in of_property_read_variable_u64_array()
805 static inline int of_property_read_string(const struct device_node *np, in of_property_read_string()
812 static inline int of_property_match_string(const struct device_node *np, in of_property_match_string()
819 static inline int of_property_read_string_helper(const struct device_node *np, in of_property_read_string_helper()
826 static inline struct device_node *of_parse_phandle(const struct device_node *np, in of_parse_phandle()
833 static inline int of_parse_phandle_with_args(const struct device_node *np, in of_parse_phandle_with_args()
842 static inline int of_parse_phandle_with_args_map(const struct device_node *np, in of_parse_phandle_with_args_map()
851 static inline int of_parse_phandle_with_fixed_args(const struct device_node *np, in of_parse_phandle_with_fixed_args()
858 static inline int of_count_phandle_with_args(struct device_node *np, in of_count_phandle_with_args()
866 const struct device_node *np, in of_phandle_iterator_init()
886 static inline int of_alias_get_id(struct device_node *np, const char *stem) in of_alias_get_id()
901 static inline bool of_console_check(const struct device_node *dn, const char *name, int index) in of_console_check()
918 static inline int of_node_check_flag(struct device_node *n, unsigned long flag) in of_node_check_flag()
923 static inline int of_node_test_and_set_flag(struct device_node *n, in of_node_test_and_set_flag()
929 static inline void of_node_set_flag(struct device_node *n, unsigned long flag) in of_node_set_flag()
933 static inline void of_node_clear_flag(struct device_node *n, unsigned long flag) in of_node_clear_flag()
950 static inline int of_cpu_node_to_id(struct device_node *np) in of_cpu_node_to_id()
967 extern int of_node_to_nid(struct device_node *np);
969 static inline int of_node_to_nid(struct device_node *device) in of_node_to_nid()
984 static inline struct device_node *of_find_matching_node( in of_find_matching_node()
985 struct device_node *from, in of_find_matching_node()
991 static inline const char *of_node_get_device_type(const struct device_node *np) in of_node_get_device_type()
996 static inline bool of_node_is_type(const struct device_node *np, const char *type) in of_node_is_type()
1014 static inline int of_property_count_u8_elems(const struct device_node *np, in of_property_count_u8_elems()
1031 static inline int of_property_count_u16_elems(const struct device_node *np, in of_property_count_u16_elems()
1048 static inline int of_property_count_u32_elems(const struct device_node *np, in of_property_count_u32_elems()
1065 static inline int of_property_count_u64_elems(const struct device_node *np, in of_property_count_u64_elems()
1084 static inline int of_property_read_string_array(const struct device_node *np, in of_property_read_string_array()
1103 static inline int of_property_count_strings(const struct device_node *np, in of_property_count_strings()
1127 static inline int of_property_read_string_index(const struct device_node *np, in of_property_read_string_index()
1143 static inline bool of_property_read_bool(const struct device_node *np, in of_property_read_bool()
1151 static inline int of_property_read_u8(const struct device_node *np, in of_property_read_u8()
1158 static inline int of_property_read_u16(const struct device_node *np, in of_property_read_u16()
1165 static inline int of_property_read_u32(const struct device_node *np, in of_property_read_u32()
1172 static inline int of_property_read_s32(const struct device_node *np, in of_property_read_s32()
1224 static inline int of_get_child_count(const struct device_node *np) in of_get_child_count()
1226 struct device_node *child; in of_get_child_count()
1235 static inline int of_get_available_child_count(const struct device_node *np) in of_get_available_child_count()
1237 struct device_node *child; in of_get_available_child_count()
1260 typedef int (*of_init_fn_2)(struct device_node *, struct device_node *);
1261 typedef int (*of_init_fn_1_ret)(struct device_node *);
1262 typedef void (*of_init_fn_1)(struct device_node *);
1288 struct device_node *np;
1325 unsigned long action, struct device_node *np,
1329 struct device_node *np) in of_changeset_attach_node()
1335 struct device_node *np) in of_changeset_detach_node()
1341 struct device_node *np, struct property *prop) in of_changeset_add_property()
1347 struct device_node *np, struct property *prop) in of_changeset_remove_property()
1353 struct device_node *np, struct property *prop) in of_changeset_update_property()
1384 static inline bool of_device_is_system_power_controller(const struct device_node *np) in of_device_is_system_power_controller()
1401 struct device_node *overlay;
1402 struct device_node *target;