Lines Matching +full:- +full:- +full:disable +full:- +full:lzo
1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2000-2009
17 #include <linux/lzo.h>
21 #include <tpm-v2.h>
63 lmb_init_and_reserve_range(&images->lmb, (phys_addr_t)mem_start, in boot_start_lmb()
178 if (ret < 0 && ret != -ENOENT) { in bootm_find_os()
227 * bootm_find_images - wrapper to find and locate various images
304 * print_decomp_msg() - Print a suitable decompression/loading message
321 * handle_decomp_error() - display a decompression error
368 * loaded, ret will be non-zero on error. in bootm_decomp_image()
446 image_info_t os = images->os; in bootm_load_os()
469 flush_len = load_end - load; in bootm_load_os()
471 flush_len += load - flush_start; in bootm_load_os()
487 if (images->legacy_hdr_valid) { in bootm_load_os()
488 if (image_get_type(&images->legacy_hdr_os_copy) in bootm_load_os()
493 puts("ERROR: new format image overwritten - must RESET the board to recover\n"); in bootm_load_os()
499 lmb_reserve(&images->lmb, images->os.load, (load_end - in bootm_load_os()
500 images->os.load)); in bootm_load_os()
505 * bootm_disable_interrupts() - Disable interrupts in preparation for load/boot
507 * @return interrupt flag (0 if interrupts were disabled, non-zero if they were
546 #define CONSOLE_ARG_LEN (sizeof(CONSOLE_ARG) - 1)
558 * no - we never fixup in fixup_silent_linux()
559 * yes - we always fixup in fixup_silent_linux()
560 * unset - we rely on the console silent flag in fixup_silent_linux()
565 else if (want_silent == -1 && !(gd->flags & GD_FLG_SILENT)) in fixup_silent_linux()
568 debug("before silent fix-up: %s\n", cmdline); in fixup_silent_linux()
581 int num_start_bytes = start - cmdline + CONSOLE_ARG_LEN; in fixup_silent_linux()
598 debug("after silent fix-up: %s\n", env_val); in fixup_silent_linux()
622 image_buf = map_sysmem(images->os.image_start, in bootm_measure()
623 images->os.image_len); in bootm_measure()
624 ret = tcg2_measure_data(dev, &elog, 8, images->os.image_len, in bootm_measure()
630 rd_len = images->rd_end - images->rd_start; in bootm_measure()
631 initrd_buf = map_sysmem(images->rd_start, rd_len); in bootm_measure()
639 ret = tcg2_measure_data(dev, &elog, 0, images->ft_len, in bootm_measure()
640 (u8 *)images->ft_addr, in bootm_measure()
670 * or sub-command arguments must have already been taken.
698 images->state |= states; in do_bootm_states()
730 ulong rd_len = images->rd_end - images->rd_start; in do_bootm_states()
732 ret = boot_ramdisk_high(&images->lmb, images->rd_start, in do_bootm_states()
733 rd_len, &images->initrd_start, &images->initrd_end); in do_bootm_states()
735 env_set_hex("initrd_start", images->initrd_start); in do_bootm_states()
736 env_set_hex("initrd_end", images->initrd_end); in do_bootm_states()
742 boot_fdt_add_mem_rsv_regions(&images->lmb, images->ft_addr); in do_bootm_states()
743 ret = boot_relocate_fdt(&images->lmb, &images->ft_addr, in do_bootm_states()
744 &images->ft_len); in do_bootm_states()
751 boot_fn = bootm_os_get_boot_func(images->os.os); in do_bootm_states()
759 genimg_get_os_name(images->os.os), images->os.os); in do_bootm_states()
772 if (images->os.os == IH_OS_LINUX) in do_bootm_states()
786 ret = run_command_list(cmd_list, -1, flag); in do_bootm_states()
816 * image_get_kernel - verify legacy format kernel image
868 * boot_get_kernel - find kernel image
908 hdr = image_get_kernel(img_addr, images->verify); in boot_get_kernel()
929 cmdtp->name); in boot_get_kernel()
938 memmove(&images->legacy_hdr_os_copy, hdr, in boot_get_kernel()
942 images->legacy_hdr_os = hdr; in boot_get_kernel()
944 images->legacy_hdr_valid = 1; in boot_get_kernel()
958 images->fit_hdr_os = map_sysmem(img_addr, 0); in boot_get_kernel()
959 images->fit_uname_os = fit_uname_kernel; in boot_get_kernel()
960 images->fit_uname_cfg = fit_uname_config; in boot_get_kernel()
961 images->fit_noffset_os = os_noffset; in boot_get_kernel()
967 if (android_image_get_kernel(buf, images->verify, in boot_get_kernel()
973 printf("Wrong Image Format for %s command\n", cmdtp->name); in boot_get_kernel()
985 * switch_to_non_secure_mode() - switch to non-secure mode
1016 IH_ARCH_DEFAULT, req_image_type, -1, in bootm_host_load_image()
1022 return -EINVAL; in bootm_host_load_image()
1027 return -EINVAL; in bootm_host_load_image()
1057 if (!err && ret && ret != -ENOENT) in bootm_host_load_images()