Lines Matching refs:ret

361     int ret;  in kexec_common_shutdown()  local
363 ret = one_cpu_only(); in kexec_common_shutdown()
364 if ( ret ) in kexec_common_shutdown()
365 return ret; in kexec_common_shutdown()
452 void * ret; in alloc_from_crash_heap() local
455 ret = (void*)crash_heap_current; in alloc_from_crash_heap()
457 return ret; in alloc_from_crash_heap()
464 int ret = 0; in kexec_init_cpu_notes() local
471 return ret; in kexec_init_cpu_notes()
506 ret = -ENOMEM; in kexec_init_cpu_notes()
528 return ret; in kexec_init_cpu_notes()
667 int ret = -EINVAL; in kexec_get_range_internal() local
672 ret = kexec_get_reserve(range); in kexec_get_range_internal()
675 ret = kexec_get_cpu(range); in kexec_get_range_internal()
678 ret = kexec_get_vmcoreinfo(range); in kexec_get_range_internal()
681 ret = machine_kexec_get(range); in kexec_get_range_internal()
685 return ret; in kexec_get_range_internal()
691 int ret = -EINVAL; in kexec_get_range() local
696 ret = kexec_get_range_internal(&range); in kexec_get_range()
698 if ( ret == 0 && unlikely(__copy_to_guest(uarg, &range, 1)) ) in kexec_get_range()
699 ret = -EFAULT; in kexec_get_range()
701 return ret; in kexec_get_range()
709 int ret = -EINVAL; in kexec_get_range_compat() local
716 ret = kexec_get_range_internal(&range); in kexec_get_range_compat()
722 if ( ret == 0 ) in kexec_get_range_compat()
726 ret = -EFAULT; in kexec_get_range_compat()
729 return ret; in kexec_get_range_compat()
821 int base, bit, pos, ret = -EINVAL; in kexec_exec() local
839 ret = continue_hypercall_on_cpu(0, kexec_reboot, image); in kexec_exec()
883 int ret = -ENOMEM; in kexec_load_slot() local
885 ret = machine_kexec_load(kimage); in kexec_load_slot()
886 if ( ret < 0 ) in kexec_load_slot()
887 return ret; in kexec_load_slot()
891 ret = kexec_swap_images(kimage->type, kimage, &old_kimage); in kexec_load_slot()
892 if ( ret < 0 ) in kexec_load_slot()
893 return ret; in kexec_load_slot()
941 int ret = 0; in kexec_segments_from_ind_page() local
959 ret = kexec_segments_add_segment(nr_segments, segments, mfn); in kexec_segments_from_ind_page()
960 if ( ret < 0 ) in kexec_segments_from_ind_page()
972 ret = -EINVAL; in kexec_segments_from_ind_page()
978 ret = -EINVAL; in kexec_segments_from_ind_page()
985 return ret; in kexec_segments_from_ind_page()
995 int ret; in kexec_do_load_v1() local
1013 ret = kexec_segments_from_ind_page(ind_mfn, &nr_segments, segments, compat); in kexec_do_load_v1()
1014 if ( ret < 0 ) in kexec_do_load_v1()
1017 ret = kimage_alloc(&kimage, load->type, arch, load->image.start_address, in kexec_do_load_v1()
1019 if ( ret < 0 ) in kexec_do_load_v1()
1030 ret = kimage_build_ind(kimage, ind_mfn, compat); in kexec_do_load_v1()
1031 if ( ret < 0 ) in kexec_do_load_v1()
1046 ret = machine_kexec_add_page(kimage, addr, addr); in kexec_do_load_v1()
1047 if ( ret < 0 ) in kexec_do_load_v1()
1052 ret = kexec_load_slot(kimage); in kexec_do_load_v1()
1053 if ( ret < 0 ) in kexec_do_load_v1()
1062 return ret; in kexec_do_load_v1()
1105 int ret; in kexec_load() local
1119 ret = -EFAULT; in kexec_load()
1123 ret = kimage_alloc(&kimage, load.type, load.arch, load.entry_maddr, in kexec_load()
1125 if ( ret < 0 ) in kexec_load()
1128 ret = kimage_load_segments(kimage); in kexec_load()
1129 if ( ret < 0 ) in kexec_load()
1132 ret = kexec_load_slot(kimage); in kexec_load()
1133 if ( ret < 0 ) in kexec_load()
1142 return ret; in kexec_load()
1148 int ret; in kexec_do_unload() local
1150 ret = kexec_swap_images(unload->type, NULL, &old_kimage); in kexec_do_unload()
1151 if ( ret < 0 ) in kexec_do_unload()
1152 return ret; in kexec_do_unload()
1217 int ret = -EINVAL; in do_kexec_op_internal() local
1219 ret = xsm_kexec(XSM_PRIV); in do_kexec_op_internal()
1220 if ( ret ) in do_kexec_op_internal()
1221 return ret; in do_kexec_op_internal()
1230 ret = kexec_get_range_compat(uarg); in do_kexec_op_internal()
1232 ret = kexec_get_range(uarg); in do_kexec_op_internal()
1236 ret = kexec_load_v1_compat(uarg); in do_kexec_op_internal()
1238 ret = kexec_load_v1(uarg); in do_kexec_op_internal()
1242 ret = kexec_unload_v1_compat(uarg); in do_kexec_op_internal()
1244 ret = kexec_unload_v1(uarg); in do_kexec_op_internal()
1247 ret = kexec_exec(uarg); in do_kexec_op_internal()
1250 ret = kexec_load(uarg); in do_kexec_op_internal()
1253 ret = kexec_unload(uarg); in do_kexec_op_internal()
1256 ret = kexec_status(uarg); in do_kexec_op_internal()
1262 return ret; in do_kexec_op_internal()