Lines Matching refs:device_node

48 struct device_node {  struct
56 struct device_node *parent; argument
57 struct device_node *child; argument
58 struct device_node *sibling; argument
72 struct device_node *np; argument
81 const struct device_node *parent;
91 struct device_node *node;
95 struct device_node *dn;
113 static inline void of_node_init(struct device_node *node) in of_node_init()
128 extern struct device_node *of_node_get(struct device_node *node);
129 extern void of_node_put(struct device_node *node);
132 static inline struct device_node *of_node_get(struct device_node *node) in of_node_get()
136 static inline void of_node_put(struct device_node *node) { } in of_node_put()
138 DEFINE_FREE(device_node, struct device_node *, if (_T) of_node_put(_T))
141 extern struct device_node *of_root;
142 extern struct device_node *of_chosen;
143 extern struct device_node *of_aliases;
144 extern struct device_node *of_stdout;
173 struct device_node, fwnode) : \
185 static inline bool of_node_is_root(const struct device_node *node) in of_node_is_root()
190 static inline int of_node_check_flag(const struct device_node *n, unsigned long flag) in of_node_check_flag()
195 static inline int of_node_test_and_set_flag(struct device_node *n, in of_node_test_and_set_flag()
201 static inline void of_node_set_flag(struct device_node *n, unsigned long flag) in of_node_set_flag()
206 static inline void of_node_clear_flag(struct device_node *n, unsigned long flag) in of_node_clear_flag()
228 extern struct device_node *__of_find_all_nodes(struct device_node *prev);
229 extern struct device_node *of_find_all_nodes(struct device_node *prev);
258 extern bool of_node_name_eq(const struct device_node *np, const char *name);
259 extern bool of_node_name_prefix(const struct device_node *np, const char *prefix);
261 static inline const char *of_node_full_name(const struct device_node *np) in of_node_full_name()
269 extern struct device_node *of_find_node_by_name(struct device_node *from,
271 extern struct device_node *of_find_node_by_type(struct device_node *from,
273 extern struct device_node *of_find_compatible_node(struct device_node *from,
275 extern struct device_node *of_find_matching_node_and_match(
276 struct device_node *from,
280 extern struct device_node *of_find_node_opts_by_path(const char *path,
282 static inline struct device_node *of_find_node_by_path(const char *path) in of_find_node_by_path()
287 extern struct device_node *of_find_node_by_phandle(phandle handle);
288 extern struct device_node *of_get_parent(const struct device_node *node);
289 extern struct device_node *of_get_next_parent(struct device_node *node);
290 extern struct device_node *of_get_next_child(const struct device_node *node,
291 struct device_node *prev);
292 extern struct device_node *of_get_next_available_child(
293 const struct device_node *node, struct device_node *prev);
294 extern struct device_node *of_get_next_reserved_child(
295 const struct device_node *node, struct device_node *prev);
297 extern struct device_node *of_get_compatible_child(const struct device_node *parent,
299 extern struct device_node *of_get_child_by_name(const struct device_node *node,
303 extern struct device_node *of_find_next_cache_node(const struct device_node *);
305 extern struct device_node *of_find_node_with_property(
306 struct device_node *from, const char *prop_name);
308 extern struct property *of_find_property(const struct device_node *np,
311 extern int of_property_count_elems_of_size(const struct device_node *np,
313 extern int of_property_read_u32_index(const struct device_node *np,
316 extern int of_property_read_u64_index(const struct device_node *np,
319 extern int of_property_read_variable_u8_array(const struct device_node *np,
322 extern int of_property_read_variable_u16_array(const struct device_node *np,
325 extern int of_property_read_variable_u32_array(const struct device_node *np,
330 extern int of_property_read_u64(const struct device_node *np,
332 extern int of_property_read_variable_u64_array(const struct device_node *np,
338 extern int of_property_read_string(const struct device_node *np,
341 extern int of_property_match_string(const struct device_node *np,
344 extern int of_property_read_string_helper(const struct device_node *np,
347 extern int of_device_is_compatible(const struct device_node *device,
349 extern int of_device_compatible_match(const struct device_node *device,
351 extern bool of_device_is_available(const struct device_node *device);
352 extern bool of_device_is_big_endian(const struct device_node *device);
353 extern const void *of_get_property(const struct device_node *node,
356 extern struct device_node *of_get_cpu_node(int cpu, unsigned int *thread);
357 extern struct device_node *of_cpu_device_node_get(int cpu);
358 extern int of_cpu_node_to_id(struct device_node *np);
359 extern struct device_node *of_get_next_cpu_node(struct device_node *prev);
360 extern struct device_node *of_get_cpu_state_node(struct device_node *cpu_node,
362 extern u64 of_get_cpu_hwid(struct device_node *cpun, unsigned int thread);
364 extern int of_n_addr_cells(struct device_node *np);
365 extern int of_n_size_cells(struct device_node *np);
367 const struct of_device_id *matches, const struct device_node *node);
369 extern int of_alias_from_compatible(const struct device_node *node, char *alias,
372 extern int __of_parse_phandle_with_args(const struct device_node *np,
375 extern int of_parse_phandle_with_args_map(const struct device_node *np,
378 extern int of_count_phandle_with_args(const struct device_node *np,
382 extern ssize_t of_modalias(const struct device_node *np, char *str, ssize_t len);
383 extern int of_request_module(const struct device_node *np);
387 const struct device_node *np,
398 extern int of_alias_get_id(struct device_node *np, const char *stem);
416 extern int of_add_property(struct device_node *np, struct property *prop);
417 extern int of_remove_property(struct device_node *np, struct property *prop);
418 extern int of_update_property(struct device_node *np, struct property *newprop);
427 extern int of_attach_node(struct device_node *);
428 extern int of_detach_node(struct device_node *);
449 bool of_console_check(struct device_node *dn, char *name, int index);
451 int of_map_id(struct device_node *np, u32 id,
453 struct device_node **target, u32 *id_out);
455 phys_addr_t of_dma_get_max_cpu_address(struct device_node *np);
473 static inline struct device_node *to_of_node(const struct fwnode_handle *fwnode) in to_of_node()
478 static inline bool of_node_name_eq(const struct device_node *np, const char *name) in of_node_name_eq()
483 static inline bool of_node_name_prefix(const struct device_node *np, const char *prefix) in of_node_name_prefix()
488 static inline const char* of_node_full_name(const struct device_node *np) in of_node_full_name()
493 static inline struct device_node *of_find_node_by_name(struct device_node *from, in of_find_node_by_name()
499 static inline struct device_node *of_find_node_by_type(struct device_node *from, in of_find_node_by_type()
505 static inline struct device_node *of_find_matching_node_and_match( in of_find_matching_node_and_match()
506 struct device_node *from, in of_find_matching_node_and_match()
513 static inline struct device_node *of_find_node_by_path(const char *path) in of_find_node_by_path()
518 static inline struct device_node *of_find_node_opts_by_path(const char *path, in of_find_node_opts_by_path()
524 static inline struct device_node *of_find_node_by_phandle(phandle handle) in of_find_node_by_phandle()
529 static inline struct device_node *of_get_parent(const struct device_node *node) in of_get_parent()
534 static inline struct device_node *of_get_next_parent(struct device_node *node) in of_get_next_parent()
539 static inline struct device_node *of_get_next_child( in of_get_next_child()
540 const struct device_node *node, struct device_node *prev) in of_get_next_child()
545 static inline struct device_node *of_get_next_available_child( in of_get_next_available_child()
546 const struct device_node *node, struct device_node *prev) in of_get_next_available_child()
551 static inline struct device_node *of_get_next_reserved_child( in of_get_next_reserved_child()
552 const struct device_node *node, struct device_node *prev) in of_get_next_reserved_child()
557 static inline struct device_node *of_find_node_with_property( in of_find_node_with_property()
558 struct device_node *from, const char *prop_name) in of_find_node_with_property()
565 static inline struct device_node *of_get_compatible_child(const struct device_node *parent, in of_get_compatible_child()
571 static inline struct device_node *of_get_child_by_name( in of_get_child_by_name()
572 const struct device_node *node, in of_get_child_by_name()
578 static inline int of_device_is_compatible(const struct device_node *device, in of_device_is_compatible()
584 static inline int of_device_compatible_match(const struct device_node *device, in of_device_compatible_match()
590 static inline bool of_device_is_available(const struct device_node *device) in of_device_is_available()
595 static inline bool of_device_is_big_endian(const struct device_node *device) in of_device_is_big_endian()
600 static inline struct property *of_find_property(const struct device_node *np, in of_find_property()
607 static inline struct device_node *of_find_compatible_node( in of_find_compatible_node()
608 struct device_node *from, in of_find_compatible_node()
615 static inline int of_property_count_elems_of_size(const struct device_node *np, in of_property_count_elems_of_size()
621 static inline int of_property_read_u32_index(const struct device_node *np, in of_property_read_u32_index()
627 static inline int of_property_read_u64_index(const struct device_node *np, in of_property_read_u64_index()
633 static inline const void *of_get_property(const struct device_node *node, in of_get_property()
640 static inline struct device_node *of_get_cpu_node(int cpu, in of_get_cpu_node()
646 static inline struct device_node *of_cpu_device_node_get(int cpu) in of_cpu_device_node_get()
651 static inline int of_cpu_node_to_id(struct device_node *np) in of_cpu_node_to_id()
656 static inline struct device_node *of_get_next_cpu_node(struct device_node *prev) in of_get_next_cpu_node()
661 static inline struct device_node *of_get_cpu_state_node(struct device_node *cpu_node, in of_get_cpu_state_node()
667 static inline int of_n_addr_cells(struct device_node *np) in of_n_addr_cells()
672 static inline int of_n_size_cells(struct device_node *np) in of_n_size_cells()
677 static inline int of_property_read_variable_u8_array(const struct device_node *np, in of_property_read_variable_u8_array()
684 static inline int of_property_read_variable_u16_array(const struct device_node *np, in of_property_read_variable_u16_array()
691 static inline int of_property_read_variable_u32_array(const struct device_node *np, in of_property_read_variable_u32_array()
700 static inline int of_property_read_u64(const struct device_node *np, in of_property_read_u64()
706 static inline int of_property_read_variable_u64_array(const struct device_node *np, in of_property_read_variable_u64_array()
715 static inline int of_property_read_string(const struct device_node *np, in of_property_read_string()
722 static inline int of_property_match_string(const struct device_node *np, in of_property_match_string()
729 static inline int of_property_read_string_helper(const struct device_node *np, in of_property_read_string_helper()
736 static inline int __of_parse_phandle_with_args(const struct device_node *np, in __of_parse_phandle_with_args()
746 static inline int of_parse_phandle_with_args_map(const struct device_node *np, in of_parse_phandle_with_args_map()
755 static inline int of_count_phandle_with_args(const struct device_node *np, in of_count_phandle_with_args()
762 static inline ssize_t of_modalias(const struct device_node *np, char *str, in of_modalias()
768 static inline int of_request_module(const struct device_node *np) in of_request_module()
774 const struct device_node *np, in of_phandle_iterator_init()
794 static inline int of_alias_get_id(struct device_node *np, const char *stem) in of_alias_get_id()
809 static inline int of_add_property(struct device_node *np, struct property *prop) in of_add_property()
814 static inline int of_remove_property(struct device_node *np, struct property *prop) in of_remove_property()
824 static inline bool of_console_check(const struct device_node *dn, const char *name, int index) in of_console_check()
841 static inline int of_node_check_flag(struct device_node *n, unsigned long flag) in of_node_check_flag()
846 static inline int of_node_test_and_set_flag(struct device_node *n, in of_node_test_and_set_flag()
852 static inline void of_node_set_flag(struct device_node *n, unsigned long flag) in of_node_set_flag()
856 static inline void of_node_clear_flag(struct device_node *n, unsigned long flag) in of_node_clear_flag()
874 static inline int of_map_id(struct device_node *np, u32 id, in of_map_id()
876 struct device_node **target, u32 *id_out) in of_map_id()
881 static inline phys_addr_t of_dma_get_max_cpu_address(struct device_node *np) in of_dma_get_max_cpu_address()
912 extern int of_node_to_nid(struct device_node *np);
914 static inline int of_node_to_nid(struct device_node *device) in of_node_to_nid()
929 static inline struct device_node *of_find_matching_node( in of_find_matching_node()
930 struct device_node *from, in of_find_matching_node()
936 static inline const char *of_node_get_device_type(const struct device_node *np) in of_node_get_device_type()
941 static inline bool of_node_is_type(const struct device_node *np, const char *type) in of_node_is_type()
958 static inline struct device_node *of_parse_phandle(const struct device_node *np, in of_parse_phandle()
1003 static inline int of_parse_phandle_with_args(const struct device_node *np, in of_parse_phandle_with_args()
1049 static inline int of_parse_phandle_with_fixed_args(const struct device_node *np, in of_parse_phandle_with_fixed_args()
1074 static inline int of_parse_phandle_with_optional_args(const struct device_node *np, in of_parse_phandle_with_optional_args()
1113 static inline int of_property_count_u8_elems(const struct device_node *np, in of_property_count_u8_elems()
1132 static inline int of_property_count_u16_elems(const struct device_node *np, in of_property_count_u16_elems()
1151 static inline int of_property_count_u32_elems(const struct device_node *np, in of_property_count_u32_elems()
1170 static inline int of_property_count_u64_elems(const struct device_node *np, in of_property_count_u64_elems()
1189 static inline int of_property_read_string_array(const struct device_node *np, in of_property_read_string_array()
1209 static inline int of_property_count_strings(const struct device_node *np, in of_property_count_strings()
1234 static inline int of_property_read_string_index(const struct device_node *np, in of_property_read_string_index()
1252 static inline bool of_property_read_bool(const struct device_node *np, in of_property_read_bool()
1269 static inline bool of_property_present(const struct device_node *np, const char *propname) in of_property_present()
1294 static inline int of_property_read_u8_array(const struct device_node *np, in of_property_read_u8_array()
1326 static inline int of_property_read_u16_array(const struct device_node *np, in of_property_read_u16_array()
1356 static inline int of_property_read_u32_array(const struct device_node *np, in of_property_read_u32_array()
1386 static inline int of_property_read_u64_array(const struct device_node *np, in of_property_read_u64_array()
1398 static inline int of_property_read_u8(const struct device_node *np, in of_property_read_u8()
1405 static inline int of_property_read_u16(const struct device_node *np, in of_property_read_u16()
1412 static inline int of_property_read_u32(const struct device_node *np, in of_property_read_u32()
1419 static inline int of_property_read_s32(const struct device_node *np, in of_property_read_s32()
1466 for (struct device_node *child __free(device_node) = \
1479 for (struct device_node *child __free(device_node) = \
1492 static inline int of_get_child_count(const struct device_node *np) in of_get_child_count()
1494 struct device_node *child; in of_get_child_count()
1503 static inline int of_get_available_child_count(const struct device_node *np) in of_get_available_child_count()
1505 struct device_node *child; in of_get_available_child_count()
1532 typedef int (*of_init_fn_2)(struct device_node *, struct device_node *);
1533 typedef int (*of_init_fn_1_ret)(struct device_node *);
1534 typedef void (*of_init_fn_1)(struct device_node *);
1560 struct device_node *np;
1599 unsigned long action, struct device_node *np,
1603 struct device_node *np) in of_changeset_attach_node()
1609 struct device_node *np) in of_changeset_detach_node()
1615 struct device_node *np, struct property *prop) in of_changeset_add_property()
1621 struct device_node *np, struct property *prop) in of_changeset_remove_property()
1627 struct device_node *np, struct property *prop) in of_changeset_update_property()
1632 struct device_node *of_changeset_create_node(struct of_changeset *ocs,
1633 struct device_node *parent,
1636 struct device_node *np,
1639 struct device_node *np,
1643 struct device_node *np,
1647 struct device_node *np, in of_changeset_add_prop_u32()
1654 int of_changeset_add_prop_bool(struct of_changeset *ocs, struct device_node *np,
1684 static inline bool of_device_is_system_power_controller(const struct device_node *np) in of_device_is_system_power_controller()
1730 struct device_node *overlay;
1731 struct device_node *target;
1737 int *ovcs_id, struct device_node *target_base);
1747 int *ovcs_id, struct device_node *target_base) in of_overlay_fdt_apply()