Lines Matching refs:dti
402 struct dt_info *dti; in build_dt_info() local
404 dti = xmalloc(sizeof(*dti)); in build_dt_info()
405 dti->dtsflags = dtsflags; in build_dt_info()
406 dti->reservelist = reservelist; in build_dt_info()
407 dti->dt = tree; in build_dt_info()
408 dti->boot_cpuid_phys = boot_cpuid_phys; in build_dt_info()
410 return dti; in build_dt_info()
667 static void sort_reserve_entries(struct dt_info *dti) in sort_reserve_entries() argument
672 for (ri = dti->reservelist; in sort_reserve_entries()
682 for (ri = dti->reservelist; in sort_reserve_entries()
689 dti->reservelist = tbl[0]; in sort_reserve_entries()
779 void sort_tree(struct dt_info *dti) in sort_tree() argument
781 sort_reserve_entries(dti); in sort_tree()
782 sort_node(dti->dt); in sort_tree()
811 static bool any_label_tree(struct dt_info *dti, struct node *node) in any_label_tree() argument
819 if (any_label_tree(dti, c)) in any_label_tree()
825 static void generate_label_tree_internal(struct dt_info *dti, in generate_label_tree_internal() argument
829 struct node *dt = dti->dt; in generate_label_tree_internal()
862 generate_label_tree_internal(dti, an, c, allocph); in generate_label_tree_internal()
865 static bool any_fixup_tree(struct dt_info *dti, struct node *node) in any_fixup_tree() argument
874 if (!get_node_by_ref(dti->dt, m->ref)) in any_fixup_tree()
880 if (any_fixup_tree(dti, c)) in any_fixup_tree()
887 static void add_fixup_entry(struct dt_info *dti, struct node *fn, in add_fixup_entry() argument
907 static void generate_fixups_tree_internal(struct dt_info *dti, in generate_fixups_tree_internal() argument
911 struct node *dt = dti->dt; in generate_fixups_tree_internal()
922 add_fixup_entry(dti, fn, node, prop, m); in generate_fixups_tree_internal()
927 generate_fixups_tree_internal(dti, fn, c); in generate_fixups_tree_internal()
930 static bool any_local_fixup_tree(struct dt_info *dti, struct node *node) in any_local_fixup_tree() argument
939 if (get_node_by_ref(dti->dt, m->ref)) in any_local_fixup_tree()
945 if (any_local_fixup_tree(dti, c)) in any_local_fixup_tree()
952 static void add_local_fixup_entry(struct dt_info *dti, in add_local_fixup_entry() argument
988 static void generate_local_fixups_tree_internal(struct dt_info *dti, in generate_local_fixups_tree_internal() argument
992 struct node *dt = dti->dt; in generate_local_fixups_tree_internal()
1003 add_local_fixup_entry(dti, lfn, node, prop, m, refnode); in generate_local_fixups_tree_internal()
1008 generate_local_fixups_tree_internal(dti, lfn, c); in generate_local_fixups_tree_internal()
1011 void generate_label_tree(struct dt_info *dti, char *name, bool allocph) in generate_label_tree() argument
1013 if (!any_label_tree(dti, dti->dt)) in generate_label_tree()
1015 generate_label_tree_internal(dti, build_root_node(dti->dt, name), in generate_label_tree()
1016 dti->dt, allocph); in generate_label_tree()
1019 void generate_fixups_tree(struct dt_info *dti, char *name) in generate_fixups_tree() argument
1021 if (!any_fixup_tree(dti, dti->dt)) in generate_fixups_tree()
1023 generate_fixups_tree_internal(dti, build_root_node(dti->dt, name), in generate_fixups_tree()
1024 dti->dt); in generate_fixups_tree()
1027 void generate_local_fixups_tree(struct dt_info *dti, char *name) in generate_local_fixups_tree() argument
1029 if (!any_local_fixup_tree(dti, dti->dt)) in generate_local_fixups_tree()
1031 generate_local_fixups_tree_internal(dti, build_root_node(dti->dt, name), in generate_local_fixups_tree()
1032 dti->dt); in generate_local_fixups_tree()