Lines Matching refs:segment
131 mstart = image->segment[i].mem; in sanity_check_segment_list()
132 mend = mstart + image->segment[i].memsz; in sanity_check_segment_list()
150 mstart = image->segment[i].mem; in sanity_check_segment_list()
151 mend = mstart + image->segment[i].memsz; in sanity_check_segment_list()
155 pstart = image->segment[j].mem; in sanity_check_segment_list()
156 pend = pstart + image->segment[j].memsz; in sanity_check_segment_list()
169 if (image->segment[i].bufsz > image->segment[i].memsz) in sanity_check_segment_list()
179 if (PAGE_COUNT(image->segment[i].memsz) > nr_pages / 2) in sanity_check_segment_list()
182 total_pages += PAGE_COUNT(image->segment[i].memsz); in sanity_check_segment_list()
203 mstart = image->segment[i].mem; in sanity_check_segment_list()
204 mend = mstart + image->segment[i].memsz - 1; in sanity_check_segment_list()
258 mstart = image->segment[i].mem; in kimage_is_destination_range()
259 mend = mstart + image->segment[i].memsz - 1; in kimage_is_destination_range()
427 mstart = image->segment[i].mem; in kimage_alloc_crash_control_pages()
428 mend = mstart + image->segment[i].memsz - 1; in kimage_alloc_crash_control_pages()
710 struct kexec_segment *segment) in kimage_load_normal_segment() argument
719 kbuf = segment->kbuf; in kimage_load_normal_segment()
721 buf = segment->buf; in kimage_load_normal_segment()
722 ubytes = segment->bufsz; in kimage_load_normal_segment()
723 mbytes = segment->memsz; in kimage_load_normal_segment()
724 maddr = segment->mem; in kimage_load_normal_segment()
781 struct kexec_segment *segment) in kimage_load_crash_segment() argument
795 kbuf = segment->kbuf; in kimage_load_crash_segment()
797 buf = segment->buf; in kimage_load_crash_segment()
798 ubytes = segment->bufsz; in kimage_load_crash_segment()
799 mbytes = segment->memsz; in kimage_load_crash_segment()
800 maddr = segment->mem; in kimage_load_crash_segment()
852 struct kexec_segment *segment) in kimage_load_segment() argument
858 result = kimage_load_normal_segment(image, segment); in kimage_load_segment()
862 result = kimage_load_crash_segment(image, segment); in kimage_load_segment()