Lines Matching refs:overlay_tree

227                                   struct ufdt *overlay_tree) {  in ufdt_overlay_do_fixups()  argument
230 ufdt_get_node_by_path(overlay_tree, "/__fixups__"); in ufdt_overlay_do_fixups()
281 if (ufdt_do_one_fixup(overlay_tree, fixups_paths, len, phandle) < 0) { in ufdt_overlay_do_fixups()
384 struct ufdt *overlay_tree) { in ufdt_overlay_apply_fragments() argument
391 for_each_node(it, overlay_tree->root) { in ufdt_overlay_apply_fragments()
525 struct ufdt *overlay_tree) { in ufdt_overlay_local_ref_update() argument
530 ufdt_try_increase_phandle(overlay_tree, phandle_offset); in ufdt_overlay_local_ref_update()
533 int err = ufdt_overlay_do_local_fixups(overlay_tree, phandle_offset); in ufdt_overlay_local_ref_update()
544 const struct ufdt *overlay_tree) { in _ufdt_overlay_fdtps() argument
545 for (int i = 0; i < overlay_tree->num_used_fdtps; i++) { in _ufdt_overlay_fdtps()
546 void *fdt = overlay_tree->fdtps[i]; in _ufdt_overlay_fdtps()
554 static int ufdt_overlay_apply(struct ufdt *main_tree, struct ufdt *overlay_tree, in ufdt_overlay_apply() argument
556 if (_ufdt_overlay_fdtps(main_tree, overlay_tree) < 0) { in ufdt_overlay_apply()
567 if (ufdt_overlay_local_ref_update(main_tree, overlay_tree) < 0) { in ufdt_overlay_apply()
572 if (ufdt_overlay_do_fixups(main_tree, overlay_tree) < 0) { in ufdt_overlay_apply()
576 if (ufdt_overlay_apply_fragments(main_tree, overlay_tree) < 0) { in ufdt_overlay_apply()
645 struct ufdt *overlay_tree = NULL; in ufdt_apply_overlay() local
648 overlay_tree = fdt_to_ufdt(overlay_fdtp, overlay_size); in ufdt_apply_overlay()
650 int err = ufdt_overlay_apply(main_tree, overlay_tree, overlay_size); in ufdt_apply_overlay()
661 ufdt_destruct(overlay_tree); in ufdt_apply_overlay()
667 ufdt_destruct(overlay_tree); in ufdt_apply_overlay()