Lines Matching refs:load
988 static int kexec_do_load_v1(xen_kexec_load_v1_t *load, int compat) in kexec_do_load_v1() argument
994 mfn_t ind_mfn = maddr_to_mfn(load->image.indirection_page); in kexec_do_load_v1()
1017 ret = kimage_alloc(&kimage, load->type, arch, load->image.start_address, in kexec_do_load_v1()
1067 xen_kexec_load_v1_t load; in kexec_load_v1() local
1069 if ( unlikely(copy_from_guest(&load, uarg, 1)) ) in kexec_load_v1()
1072 return kexec_do_load_v1(&load, 0); in kexec_load_v1()
1079 xen_kexec_load_v1_t load; in kexec_load_v1_compat() local
1091 load.type = compat_load.type; in kexec_load_v1_compat()
1092 XLAT_kexec_image(&load.image, &compat_load.image); in kexec_load_v1_compat()
1094 return kexec_do_load_v1(&load, 1); in kexec_load_v1_compat()
1102 xen_kexec_load_t load; in kexec_load() local
1107 if ( copy_from_guest(&load, uarg, 1) ) in kexec_load()
1110 if ( load.nr_segments >= KEXEC_SEGMENT_MAX ) in kexec_load()
1113 segments = xmalloc_array(xen_kexec_segment_t, load.nr_segments); in kexec_load()
1117 if ( copy_from_guest(segments, load.segments.h, load.nr_segments) ) in kexec_load()
1123 ret = kimage_alloc(&kimage, load.type, load.arch, load.entry_maddr, in kexec_load()
1124 load.nr_segments, segments); in kexec_load()
1161 xen_kexec_load_v1_t load; in kexec_unload_v1() local
1164 if ( copy_from_guest(&load, uarg, 1) ) in kexec_unload_v1()
1167 unload.type = load.type; in kexec_unload_v1()