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(const 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(const 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,
356 extern u64 of_get_cpu_hwid(struct device_node *cpun, unsigned int thread);
361 extern int of_n_addr_cells(struct device_node *np);
362 extern int of_n_size_cells(struct device_node *np);
364 const struct of_device_id *matches, const struct device_node *node);
365 extern int of_modalias_node(struct device_node *node, char *modalias, int len);
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_count_phandle_with_args(const struct device_node *np,
378 const struct device_node *np,
389 extern int of_alias_get_id(struct device_node *np, const char *stem);
394 extern int of_add_property(struct device_node *np, struct property *prop);
395 extern int of_remove_property(struct device_node *np, struct property *prop);
396 extern int of_update_property(struct device_node *np, struct property *newprop);
405 extern int of_attach_node(struct device_node *);
406 extern int of_detach_node(struct device_node *);
429 bool of_console_check(struct device_node *dn, char *name, int index);
431 extern int of_cpu_node_to_id(struct device_node *np);
433 int of_map_id(struct device_node *np, u32 id,
435 struct device_node **target, u32 *id_out);
437 phys_addr_t of_dma_get_max_cpu_address(struct device_node *np);
455 static inline struct device_node *to_of_node(const struct fwnode_handle *fwnode) in to_of_node()
460 static inline bool of_node_name_eq(const struct device_node *np, const char *name) in of_node_name_eq()
465 static inline bool of_node_name_prefix(const struct device_node *np, const char *prefix) in of_node_name_prefix()
470 static inline const char* of_node_full_name(const struct device_node *np) in of_node_full_name()
475 static inline struct device_node *of_find_node_by_name(struct device_node *from, in of_find_node_by_name()
481 static inline struct device_node *of_find_node_by_type(struct device_node *from, in of_find_node_by_type()
487 static inline struct device_node *of_find_matching_node_and_match( in of_find_matching_node_and_match()
488 struct device_node *from, in of_find_matching_node_and_match()
495 static inline struct device_node *of_find_node_by_path(const char *path) in of_find_node_by_path()
500 static inline struct device_node *of_find_node_opts_by_path(const char *path, in of_find_node_opts_by_path()
506 static inline struct device_node *of_find_node_by_phandle(phandle handle) in of_find_node_by_phandle()
511 static inline struct device_node *of_get_parent(const struct device_node *node) in of_get_parent()
516 static inline struct device_node *of_get_next_parent(struct device_node *node) in of_get_next_parent()
521 static inline struct device_node *of_get_next_child( in of_get_next_child()
522 const struct device_node *node, struct device_node *prev) in of_get_next_child()
527 static inline struct device_node *of_get_next_available_child( in of_get_next_available_child()
528 const struct device_node *node, struct device_node *prev) in of_get_next_available_child()
533 static inline struct device_node *of_find_node_with_property( in of_find_node_with_property()
534 struct device_node *from, const char *prop_name) in of_find_node_with_property()
546 static inline struct device_node *of_get_compatible_child(const struct device_node *parent, in of_get_compatible_child()
552 static inline struct device_node *of_get_child_by_name( in of_get_child_by_name()
553 const struct device_node *node, in of_get_child_by_name()
559 static inline int of_device_is_compatible(const struct device_node *device, in of_device_is_compatible()
565 static inline int of_device_compatible_match(const struct device_node *device, in of_device_compatible_match()
571 static inline bool of_device_is_available(const struct device_node *device) in of_device_is_available()
576 static inline bool of_device_is_big_endian(const struct device_node *device) in of_device_is_big_endian()
581 static inline struct property *of_find_property(const struct device_node *np, in of_find_property()
588 static inline struct device_node *of_find_compatible_node( in of_find_compatible_node()
589 struct device_node *from, in of_find_compatible_node()
596 static inline int of_property_count_elems_of_size(const struct device_node *np, in of_property_count_elems_of_size()
602 static inline int of_property_read_u32_index(const struct device_node *np, in of_property_read_u32_index()
608 static inline int of_property_read_u64_index(const struct device_node *np, in of_property_read_u64_index()
614 static inline const void *of_get_property(const struct device_node *node, in of_get_property()
621 static inline struct device_node *of_get_cpu_node(int cpu, in of_get_cpu_node()
627 static inline struct device_node *of_get_next_cpu_node(struct device_node *prev) in of_get_next_cpu_node()
632 static inline struct device_node *of_get_cpu_state_node(struct device_node *cpu_node, in of_get_cpu_state_node()
638 static inline int of_n_addr_cells(struct device_node *np) in of_n_addr_cells()
643 static inline int of_n_size_cells(struct device_node *np) in of_n_size_cells()
648 static inline int of_property_read_variable_u8_array(const struct device_node *np, in of_property_read_variable_u8_array()
655 static inline int of_property_read_variable_u16_array(const struct device_node *np, in of_property_read_variable_u16_array()
662 static inline int of_property_read_variable_u32_array(const struct device_node *np, in of_property_read_variable_u32_array()
671 static inline int of_property_read_u64(const struct device_node *np, in of_property_read_u64()
677 static inline int of_property_read_variable_u64_array(const struct device_node *np, in of_property_read_variable_u64_array()
686 static inline int of_property_read_string(const struct device_node *np, in of_property_read_string()
693 static inline int of_property_match_string(const struct device_node *np, in of_property_match_string()
700 static inline int of_property_read_string_helper(const struct device_node *np, in of_property_read_string_helper()
707 static inline int __of_parse_phandle_with_args(const struct device_node *np, in __of_parse_phandle_with_args()
717 static inline int of_parse_phandle_with_args_map(const struct device_node *np, in of_parse_phandle_with_args_map()
726 static inline int of_count_phandle_with_args(const struct device_node *np, in of_count_phandle_with_args()
734 const struct device_node *np, in of_phandle_iterator_init()
754 static inline int of_alias_get_id(struct device_node *np, const char *stem) in of_alias_get_id()
769 static inline int of_add_property(struct device_node *np, struct property *prop) in of_add_property()
774 static inline int of_remove_property(struct device_node *np, struct property *prop) in of_remove_property()
779 static inline bool of_console_check(const struct device_node *dn, const char *name, int index) in of_console_check()
796 static inline int of_node_check_flag(struct device_node *n, unsigned long flag) in of_node_check_flag()
801 static inline int of_node_test_and_set_flag(struct device_node *n, in of_node_test_and_set_flag()
807 static inline void of_node_set_flag(struct device_node *n, unsigned long flag) in of_node_set_flag()
811 static inline void of_node_clear_flag(struct device_node *n, unsigned long flag) in of_node_clear_flag()
829 static inline int of_cpu_node_to_id(struct device_node *np) in of_cpu_node_to_id()
834 static inline int of_map_id(struct device_node *np, u32 id, in of_map_id()
836 struct device_node **target, u32 *id_out) in of_map_id()
841 static inline phys_addr_t of_dma_get_max_cpu_address(struct device_node *np) in of_dma_get_max_cpu_address()
864 extern int of_node_to_nid(struct device_node *np);
866 static inline int of_node_to_nid(struct device_node *device) in of_node_to_nid()
881 static inline struct device_node *of_find_matching_node( in of_find_matching_node()
882 struct device_node *from, in of_find_matching_node()
888 static inline const char *of_node_get_device_type(const struct device_node *np) in of_node_get_device_type()
893 static inline bool of_node_is_type(const struct device_node *np, const char *type) in of_node_is_type()
910 static inline struct device_node *of_parse_phandle(const struct device_node *np, in of_parse_phandle()
955 static inline int of_parse_phandle_with_args(const struct device_node *np, in of_parse_phandle_with_args()
1001 static inline int of_parse_phandle_with_fixed_args(const struct device_node *np, in of_parse_phandle_with_fixed_args()
1024 static inline int of_property_count_u8_elems(const struct device_node *np, in of_property_count_u8_elems()
1043 static inline int of_property_count_u16_elems(const struct device_node *np, in of_property_count_u16_elems()
1062 static inline int of_property_count_u32_elems(const struct device_node *np, in of_property_count_u32_elems()
1081 static inline int of_property_count_u64_elems(const struct device_node *np, in of_property_count_u64_elems()
1100 static inline int of_property_read_string_array(const struct device_node *np, in of_property_read_string_array()
1120 static inline int of_property_count_strings(const struct device_node *np, in of_property_count_strings()
1145 static inline int of_property_read_string_index(const struct device_node *np, in of_property_read_string_index()
1162 static inline bool of_property_read_bool(const struct device_node *np, in of_property_read_bool()
1190 static inline int of_property_read_u8_array(const struct device_node *np, in of_property_read_u8_array()
1222 static inline int of_property_read_u16_array(const struct device_node *np, in of_property_read_u16_array()
1252 static inline int of_property_read_u32_array(const struct device_node *np, in of_property_read_u32_array()
1282 static inline int of_property_read_u64_array(const struct device_node *np, in of_property_read_u64_array()
1294 static inline int of_property_read_u8(const struct device_node *np, in of_property_read_u8()
1301 static inline int of_property_read_u16(const struct device_node *np, in of_property_read_u16()
1308 static inline int of_property_read_u32(const struct device_node *np, in of_property_read_u32()
1315 static inline int of_property_read_s32(const struct device_node *np, in of_property_read_s32()
1371 static inline int of_get_child_count(const struct device_node *np) in of_get_child_count()
1373 struct device_node *child; in of_get_child_count()
1382 static inline int of_get_available_child_count(const struct device_node *np) in of_get_available_child_count()
1384 struct device_node *child; in of_get_available_child_count()
1411 typedef int (*of_init_fn_2)(struct device_node *, struct device_node *);
1412 typedef int (*of_init_fn_1_ret)(struct device_node *);
1413 typedef void (*of_init_fn_1)(struct device_node *);
1439 struct device_node *np;
1476 unsigned long action, struct device_node *np,
1480 struct device_node *np) in of_changeset_attach_node()
1486 struct device_node *np) in of_changeset_detach_node()
1492 struct device_node *np, struct property *prop) in of_changeset_add_property()
1498 struct device_node *np, struct property *prop) in of_changeset_remove_property()
1504 struct device_node *np, struct property *prop) in of_changeset_update_property()
1535 static inline bool of_device_is_system_power_controller(const struct device_node *np) in of_device_is_system_power_controller()
1566 struct device_node *overlay;
1567 struct device_node *target;