Lines Matching refs:ret
111 int ret; in bootm_find_os() local
198 ret = boot_get_setup(&images, IH_ARCH_I386, &images.ep, &len); in bootm_find_os()
199 if (ret < 0 && ret != -ENOENT) { in bootm_find_os()
208 int ret; in bootm_find_os() local
210 ret = fit_image_get_entry(images.fit_hdr_os, in bootm_find_os()
212 if (ret) { in bootm_find_os()
250 int ret; in bootm_find_images() local
253 ret = boot_get_ramdisk(argc, argv, &images, IH_INITRD_ARCH, in bootm_find_images()
255 if (ret) { in bootm_find_images()
262 ret = boot_get_fdt(flag, argc, argv, IH_ARCH_DEFAULT, &images, in bootm_find_images()
264 if (ret) { in bootm_find_images()
277 ret = boot_get_fpga(argc, argv, &images, IH_ARCH_DEFAULT, in bootm_find_images()
279 if (ret) { in bootm_find_images()
286 ret = boot_get_loadable(argc, argv, &images, IH_ARCH_DEFAULT, in bootm_find_images()
288 if (ret) { in bootm_find_images()
354 size_t unc_len, int ret) in handle_decomp_error() argument
362 printf("%s: uncompress error %d\n", name, ret); in handle_decomp_error()
413 int ret = 0; in bootm_decomp_image() local
431 ret = 1; in bootm_decomp_image()
435 ret = gunzip(load_buf, unc_len, image_buf, &image_len); in bootm_decomp_image()
448 ret = BZ2_bzBuffToBuffDecompress(load_buf, &size, in bootm_decomp_image()
459 ret = lzmaBuffToBuffDecompress(load_buf, &lzma_len, in bootm_decomp_image()
469 ret = lzop_decompress(image_buf, image_len, load_buf, &size); in bootm_decomp_image()
478 ret = ulz4fn(image_buf, image_len, load_buf, &size); in bootm_decomp_image()
488 if (ret) in bootm_decomp_image()
489 return handle_decomp_error(comp, image_len, unc_len, ret); in bootm_decomp_image()
691 int ret = 0, need_boot_fn; in do_bootm_states() local
705 ret = bootm_start(cmdtp, flag, argc, argv); in do_bootm_states()
707 if (!ret && (states & BOOTM_STATE_FINDOS)) in do_bootm_states()
708 ret = bootm_find_os(cmdtp, flag, argc, argv); in do_bootm_states()
710 if (!ret && (states & BOOTM_STATE_FINDOTHER)) in do_bootm_states()
711 ret = bootm_find_other(cmdtp, flag, argc, argv); in do_bootm_states()
714 if (!ret && (states & BOOTM_STATE_LOADOS)) { in do_bootm_states()
718 ret = bootm_load_os(images, &load_end, 0); in do_bootm_states()
719 if (ret == 0) in do_bootm_states()
722 else if (ret && ret != BOOTM_ERR_OVERLAP) in do_bootm_states()
724 else if (ret == BOOTM_ERR_OVERLAP) in do_bootm_states()
725 ret = 0; in do_bootm_states()
730 if (!ret && ((states & BOOTM_STATE_RAMDISK) || in do_bootm_states()
736 if (!ret && (states & BOOTM_STATE_RAMDISK)) { in do_bootm_states()
739 ret = boot_ramdisk_high(&images->lmb, images->rd_start, in do_bootm_states()
741 if (!ret) { in do_bootm_states()
748 if (!ret && (states & BOOTM_STATE_FDT)) { in do_bootm_states()
749 ret = boot_relocate_fdt(&images->lmb, &images->ft_addr, in do_bootm_states()
755 if (ret) in do_bootm_states()
756 return ret; in do_bootm_states()
772 if (!ret && (states & BOOTM_STATE_OS_CMDLINE)) in do_bootm_states()
773 ret = boot_fn(BOOTM_STATE_OS_CMDLINE, argc, argv, images); in do_bootm_states()
774 if (!ret && (states & BOOTM_STATE_OS_BD_T)) in do_bootm_states()
775 ret = boot_fn(BOOTM_STATE_OS_BD_T, argc, argv, images); in do_bootm_states()
776 if (!ret && (states & BOOTM_STATE_OS_PREP)) { in do_bootm_states()
783 ret = boot_fn(BOOTM_STATE_OS_PREP, argc, argv, images); in do_bootm_states()
788 if (!ret && (states & BOOTM_STATE_OS_FAKE_GO)) { in do_bootm_states()
791 ret = boot_selected_os(argc, argv, BOOTM_STATE_OS_FAKE_GO, in do_bootm_states()
793 if (!ret && cmd_list) in do_bootm_states()
794 ret = run_command_list(cmd_list, -1, flag); in do_bootm_states()
799 if (ret) { in do_bootm_states()
801 return ret; in do_bootm_states()
805 if (!ret && (states & BOOTM_STATE_OS_GO)) in do_bootm_states()
806 ret = boot_selected_os(argc, argv, BOOTM_STATE_OS_GO, in do_bootm_states()
814 if (ret == BOOTM_ERR_UNIMPLEMENTED) in do_bootm_states()
816 else if (ret == BOOTM_ERR_RESET) in do_bootm_states()
819 return ret; in do_bootm_states()
1011 int ret; in bootm_host_load_image() local
1033 ret = bootm_decomp_image(imape_comp, 0, data, image_type, load_buf, in bootm_host_load_image()
1038 if (ret && ret != BOOTM_ERR_UNIMPLEMENTED) in bootm_host_load_image()
1039 return ret; in bootm_host_load_image()
1072 int ret; in bootm_host_load_images() local
1074 ret = bootm_host_load_image(fit, image_types[i], 0); in bootm_host_load_images()
1075 if (!err && ret && ret != -ENOENT) in bootm_host_load_images()
1076 err = ret; in bootm_host_load_images()
1080 int ret; in bootm_host_load_images() local
1087 ret = bootm_host_load_image(fit, image_types_spl[i], index); in bootm_host_load_images()
1088 if (!err && ret && ret != -ENOENT) in bootm_host_load_images()
1089 err = ret; in bootm_host_load_images()