Lines Matching refs:rt_ofw_node
25 struct rt_ofw_node *ofw_node_root = RT_NULL;
26 struct rt_ofw_node *ofw_node_cpus = RT_NULL;
27 struct rt_ofw_node *ofw_node_chosen = RT_NULL;
28 struct rt_ofw_node *ofw_node_aliases = RT_NULL;
29 struct rt_ofw_node *ofw_node_reserved_memory = RT_NULL;
32 static struct rt_ofw_node **_phandle_hash = RT_NULL;
40 struct rt_ofw_node **hash_ptr = RT_NULL; in ofw_phandle_hash_reset()
131 static struct rt_ofw_node *ofw_get_next_node(struct rt_ofw_node *prev) in ofw_get_next_node()
133 struct rt_ofw_node *np; in ofw_get_next_node()
187 static void ofw_node_destroy(struct rt_ofw_node *np) in ofw_node_destroy()
189 struct rt_ofw_node *prev; in ofw_node_destroy()
228 rt_err_t rt_ofw_node_destroy(struct rt_ofw_node *np) in rt_ofw_node_destroy()
251 struct rt_ofw_node *rt_ofw_node_get(struct rt_ofw_node *np) in rt_ofw_node_get()
264 struct rt_ofw_node *np = rt_container_of(r, struct rt_ofw_node, ref); in ofw_node_release()
272 void rt_ofw_node_put(struct rt_ofw_node *np) in rt_ofw_node_put()
281 rt_bool_t rt_ofw_node_tag_equ(const struct rt_ofw_node *np, const char *tag) in rt_ofw_node_tag_equ()
296 rt_bool_t rt_ofw_node_tag_prefix(const struct rt_ofw_node *np, const char *prefix) in rt_ofw_node_tag_prefix()
344 static int ofw_node_index_of_compatible(const struct rt_ofw_node *np, const char *compatible) in ofw_node_index_of_compatible()
392 static rt_bool_t ofw_node_is_fail(const struct rt_ofw_node *np) in ofw_node_is_fail()
405 static rt_bool_t ofw_node_is_available(const struct rt_ofw_node *np) in ofw_node_is_available()
418 rt_bool_t rt_ofw_node_is_available(const struct rt_ofw_node *np) in rt_ofw_node_is_available()
423 rt_bool_t rt_ofw_node_is_compatible(const struct rt_ofw_node *np, const char *compatible) in rt_ofw_node_is_compatible()
466 struct rt_ofw_node_id *rt_ofw_node_match(struct rt_ofw_node *np, const struct rt_ofw_node_id *ids) in rt_ofw_node_match()
479 struct rt_ofw_node *rt_ofw_find_node_by_tag(struct rt_ofw_node *from, const char *tag) in rt_ofw_find_node_by_tag()
481 struct rt_ofw_node *np = RT_NULL; in rt_ofw_find_node_by_tag()
497 struct rt_ofw_node *rt_ofw_find_node_by_prop_r(struct rt_ofw_node *from, const char *propname, in rt_ofw_find_node_by_prop_r()
500 struct rt_ofw_node *np = RT_NULL; in rt_ofw_find_node_by_prop_r()
523 struct rt_ofw_node *rt_ofw_find_node_by_name(struct rt_ofw_node *from, const char *name) in rt_ofw_find_node_by_name()
525 struct rt_ofw_node *np = RT_NULL; in rt_ofw_find_node_by_name()
542 struct rt_ofw_node *rt_ofw_find_node_by_type(struct rt_ofw_node *from, const char *type) in rt_ofw_find_node_by_type()
544 struct rt_ofw_node *np = RT_NULL; in rt_ofw_find_node_by_type()
560 struct rt_ofw_node *rt_ofw_find_node_by_compatible(struct rt_ofw_node *from, const char *compatible) in rt_ofw_find_node_by_compatible()
562 struct rt_ofw_node *np = RT_NULL; in rt_ofw_find_node_by_compatible()
578 struct rt_ofw_node *rt_ofw_find_node_by_ids_r(struct rt_ofw_node *from, const struct rt_ofw_node_id… in rt_ofw_find_node_by_ids_r()
581 struct rt_ofw_node *np = RT_NULL; in rt_ofw_find_node_by_ids_r()
604 struct rt_ofw_node *rt_ofw_find_node_by_path(const char *path) in rt_ofw_find_node_by_path()
606 struct rt_ofw_node *np = RT_NULL, *parent, *tmp = RT_NULL; in rt_ofw_find_node_by_path()
658 struct rt_ofw_node *rt_ofw_find_node_by_phandle(rt_phandle phandle) in rt_ofw_find_node_by_phandle()
660 struct rt_ofw_node *np = RT_NULL; in rt_ofw_find_node_by_phandle()
690 struct rt_ofw_node *rt_ofw_get_parent(const struct rt_ofw_node *np) in rt_ofw_get_parent()
697 return (struct rt_ofw_node *)np; in rt_ofw_get_parent()
700 struct rt_ofw_node *rt_ofw_get_child_by_tag(const struct rt_ofw_node *parent, const char *tag) in rt_ofw_get_child_by_tag()
702 struct rt_ofw_node *child = RT_NULL; in rt_ofw_get_child_by_tag()
718 struct rt_ofw_node *rt_ofw_get_child_by_compatible(const struct rt_ofw_node *parent, const char *co… in rt_ofw_get_child_by_compatible()
720 struct rt_ofw_node *child = RT_NULL; in rt_ofw_get_child_by_compatible()
736 int rt_ofw_get_child_count(const struct rt_ofw_node *np) in rt_ofw_get_child_count()
742 struct rt_ofw_node *child; in rt_ofw_get_child_count()
759 int rt_ofw_get_available_child_count(const struct rt_ofw_node *np) in rt_ofw_get_available_child_count()
765 struct rt_ofw_node *child; in rt_ofw_get_available_child_count()
782 struct rt_ofw_node *rt_ofw_get_next_node(struct rt_ofw_node *prev) in rt_ofw_get_next_node()
784 struct rt_ofw_node *np; in rt_ofw_get_next_node()
792 struct rt_ofw_node *rt_ofw_get_next_parent(struct rt_ofw_node *prev) in rt_ofw_get_next_parent()
794 struct rt_ofw_node *next = RT_NULL; in rt_ofw_get_next_parent()
805 struct rt_ofw_node *rt_ofw_get_next_child(const struct rt_ofw_node *parent, struct rt_ofw_node *pre… in rt_ofw_get_next_child()
807 struct rt_ofw_node *next = RT_NULL; in rt_ofw_get_next_child()
819 struct rt_ofw_node *rt_ofw_get_next_available_child(const struct rt_ofw_node *parent, struct rt_ofw… in rt_ofw_get_next_available_child()
821 struct rt_ofw_node *next = RT_NULL; in rt_ofw_get_next_available_child()
836 struct rt_ofw_node *rt_ofw_get_cpu_node(int cpu, int *thread, rt_bool_t (*match_cpu_hwid)(int cpu, … in rt_ofw_get_cpu_node()
839 struct rt_ofw_node *cpu_np = RT_NULL; in rt_ofw_get_cpu_node()
921 struct rt_ofw_node *rt_ofw_get_next_cpu_node(struct rt_ofw_node *prev) in rt_ofw_get_next_cpu_node()
923 struct rt_ofw_node *cpu_np; in rt_ofw_get_next_cpu_node()
956 struct rt_ofw_node *rt_ofw_get_cpu_state_node(struct rt_ofw_node *cpu_np, int index) in rt_ofw_get_cpu_state_node()
959 struct rt_ofw_node *np = RT_NULL, *state_np; in rt_ofw_get_cpu_state_node()
997 rt_uint64_t rt_ofw_get_cpu_id(struct rt_ofw_node *cpu_np) in rt_ofw_get_cpu_id()
1004 struct rt_ofw_node *np = ofw_node_cpus->child; in rt_ofw_get_cpu_id()
1032 rt_uint64_t rt_ofw_get_cpu_hwid(struct rt_ofw_node *cpu_np, unsigned int thread) in rt_ofw_get_cpu_hwid()
1048 struct rt_ofw_node *np = ofw_node_aliases, *tmp; in ofw_alias_scan()
1104 struct rt_ofw_node *rt_ofw_get_alias_node(const char *tag, int id) in rt_ofw_get_alias_node()
1107 struct rt_ofw_node *np = RT_NULL; in rt_ofw_get_alias_node()
1132 int ofw_alias_node_id(struct rt_ofw_node *np) in ofw_alias_node_id()
1160 int rt_ofw_get_alias_id(struct rt_ofw_node *np, const char *tag) in rt_ofw_get_alias_id()
1225 static rt_err_t ofw_map_id(struct rt_ofw_node *np, rt_uint32_t id, const char *map_name, const char… in ofw_map_id()
1226 const fdt32_t *map, rt_ssize_t map_len, struct rt_ofw_node **ref_np, rt_uint32_t *out_id) in ofw_map_id()
1243 struct rt_ofw_node *phandle_node; in ofw_map_id()
1315 rt_err_t rt_ofw_map_id(struct rt_ofw_node *np, rt_uint32_t id, const char *map_name, const char *ma… in rt_ofw_map_id()
1316 struct rt_ofw_node **ref_np, rt_uint32_t *out_id) in rt_ofw_map_id()
1357 struct rt_ofw_node *rt_ofw_append_child(struct rt_ofw_node *parent, const char *full_name) in rt_ofw_append_child()
1362 struct rt_ofw_node *np = RT_NULL, *child; in rt_ofw_append_child()
1416 rt_err_t rt_ofw_append_prop(struct rt_ofw_node *np, const char *name, int length, void *value) in rt_ofw_append_prop()
1460 struct rt_ofw_node *rt_ofw_parse_phandle(const struct rt_ofw_node *np, const char *phandle_name, in… in rt_ofw_parse_phandle()
1463 struct rt_ofw_node *ref_np = RT_NULL; in rt_ofw_parse_phandle()
1473 static rt_err_t ofw_parse_phandle_cells(const struct rt_ofw_node *np, const char *list_name, const … in ofw_parse_phandle_cells()
1515 struct rt_ofw_node *phandle_np = rt_ofw_find_node_by_phandle((rt_phandle)value); in ofw_parse_phandle_cells()
1549 rt_err_t rt_ofw_parse_phandle_cells(const struct rt_ofw_node *np, const char *list_name, const char… in rt_ofw_parse_phandle_cells()
1566 int rt_ofw_count_phandle_cells(const struct rt_ofw_node *np, const char *list_name, const char *cel… in rt_ofw_count_phandle_cells()
1603 static const char *ofw_get_prop_fuzzy_name(const struct rt_ofw_node *np, const char *name) in ofw_get_prop_fuzzy_name()
1754 const char *rt_ofw_get_prop_fuzzy_name(const struct rt_ofw_node *np, const char *name) in rt_ofw_get_prop_fuzzy_name()
1767 struct rt_ofw_prop *rt_ofw_get_prop(const struct rt_ofw_node *np, const char *name, rt_ssize_t *out… in rt_ofw_get_prop()
1792 const struct rt_ofw_node *np, const char *propname, \
1831 int rt_ofw_prop_read_string_array_index(const struct rt_ofw_node *np, const char *propname, in rt_ofw_prop_read_string_array_index()
1874 int rt_ofw_prop_count_of_size(const struct rt_ofw_node *np, const char *propname, int size) in rt_ofw_prop_count_of_size()
1902 int rt_ofw_prop_index_of_string(const struct rt_ofw_node *np, const char *propname, const char *str… in rt_ofw_prop_index_of_string()