Lines Matching refs:result
564 int result; in kimage_set_destination() local
567 result = kimage_add_entry(image, destination | IND_DESTINATION); in kimage_set_destination()
569 return result; in kimage_set_destination()
575 int result; in kimage_add_page() local
578 result = kimage_add_entry(image, page | IND_SOURCE); in kimage_add_page()
580 return result; in kimage_add_page()
781 int result; in kimage_load_normal_segment() local
793 result = kimage_set_destination(image, maddr); in kimage_load_normal_segment()
794 if (result < 0) in kimage_load_normal_segment()
804 result = -ENOMEM; in kimage_load_normal_segment()
807 result = kimage_add_page(image, page_to_boot_pfn(page) in kimage_load_normal_segment()
809 if (result < 0) in kimage_load_normal_segment()
824 result = copy_from_user(ptr, buf, uchunk); in kimage_load_normal_segment()
826 if (result) { in kimage_load_normal_segment()
827 result = -EFAULT; in kimage_load_normal_segment()
841 return result; in kimage_load_normal_segment()
853 int result; in kimage_load_crash_segment() local
857 result = 0; in kimage_load_crash_segment()
872 result = -ENOMEM; in kimage_load_crash_segment()
890 result = copy_from_user(ptr, buf, uchunk); in kimage_load_crash_segment()
894 if (result) { in kimage_load_crash_segment()
895 result = -EFAULT; in kimage_load_crash_segment()
909 return result; in kimage_load_crash_segment()
915 int result = -ENOMEM; in kimage_load_segment() local
919 result = kimage_load_normal_segment(image, segment); in kimage_load_segment()
922 result = kimage_load_crash_segment(image, segment); in kimage_load_segment()
926 return result; in kimage_load_segment()