Lines Matching refs:result
96 int result; in do_kimage_alloc() local
99 result = -ENOMEM; in do_kimage_alloc()
127 result = -EADDRNOTAVAIL; in do_kimage_alloc()
144 result = -EINVAL; in do_kimage_alloc()
168 result = -EINVAL; in do_kimage_alloc()
179 result = -ENOMEM; in do_kimage_alloc()
183 result = machine_kexec_add_page(image, in do_kimage_alloc()
186 if ( result < 0 ) in do_kimage_alloc()
190 result = -ENOMEM; in do_kimage_alloc()
194 result = machine_kexec_add_page(image, page_to_maddr(image->entry_page), in do_kimage_alloc()
196 if ( result < 0 ) in do_kimage_alloc()
201 result = 0; in do_kimage_alloc()
203 if ( result == 0 ) in do_kimage_alloc()
211 return result; in do_kimage_alloc()
775 int result = -ENOMEM; in kimage_load_segment() local
783 result = kimage_load_normal_segment(image, segment); in kimage_load_segment()
786 result = kimage_load_crash_segment(image, segment); in kimage_load_segment()
794 result = machine_kexec_add_page(image, addr, addr); in kimage_load_segment()
795 if ( result < 0 ) in kimage_load_segment()
799 return result; in kimage_load_segment()
806 int result; in kimage_alloc() local
811 result = kimage_normal_alloc(rimage, entry_maddr, nr_segments, segment); in kimage_alloc()
814 result = kimage_crash_alloc(rimage, entry_maddr, nr_segments, segment); in kimage_alloc()
817 result = -EINVAL; in kimage_alloc()
820 if ( result < 0 ) in kimage_alloc()
821 return result; in kimage_alloc()
825 return result; in kimage_alloc()
831 int result; in kimage_load_segments() local
834 result = kimage_load_segment(image, &image->segments[s]); in kimage_load_segments()
835 if ( result < 0 ) in kimage_load_segments()
836 return result; in kimage_load_segments()