Lines Matching refs:segment
170 mstart = image->segment[i].mem; in sanity_check_segment_list()
171 mend = mstart + image->segment[i].memsz; in sanity_check_segment_list()
189 mstart = image->segment[i].mem; in sanity_check_segment_list()
190 mend = mstart + image->segment[i].memsz; in sanity_check_segment_list()
194 pstart = image->segment[j].mem; in sanity_check_segment_list()
195 pend = pstart + image->segment[j].memsz; in sanity_check_segment_list()
208 if (image->segment[i].bufsz > image->segment[i].memsz) in sanity_check_segment_list()
218 if (PAGE_COUNT(image->segment[i].memsz) > nr_pages / 2) in sanity_check_segment_list()
221 total_pages += PAGE_COUNT(image->segment[i].memsz); in sanity_check_segment_list()
241 mstart = image->segment[i].mem; in sanity_check_segment_list()
242 mend = mstart + image->segment[i].memsz - 1; in sanity_check_segment_list()
295 mstart = image->segment[i].mem; in kimage_is_destination_range()
296 mend = mstart + image->segment[i].memsz; in kimage_is_destination_range()
463 mstart = image->segment[i].mem; in kimage_alloc_crash_control_pages()
464 mend = mstart + image->segment[i].memsz - 1; in kimage_alloc_crash_control_pages()
775 struct kexec_segment *segment) in kimage_load_normal_segment() argument
784 kbuf = segment->kbuf; in kimage_load_normal_segment()
786 buf = segment->buf; in kimage_load_normal_segment()
787 ubytes = segment->bufsz; in kimage_load_normal_segment()
788 mbytes = segment->memsz; in kimage_load_normal_segment()
789 maddr = segment->mem; in kimage_load_normal_segment()
843 struct kexec_segment *segment) in kimage_load_crash_segment() argument
857 kbuf = segment->kbuf; in kimage_load_crash_segment()
859 buf = segment->buf; in kimage_load_crash_segment()
860 ubytes = segment->bufsz; in kimage_load_crash_segment()
861 mbytes = segment->memsz; in kimage_load_crash_segment()
862 maddr = segment->mem; in kimage_load_crash_segment()
911 struct kexec_segment *segment) in kimage_load_segment() argument
917 result = kimage_load_normal_segment(image, segment); in kimage_load_segment()
920 result = kimage_load_crash_segment(image, segment); in kimage_load_segment()