Lines Matching refs:ksegment
385 struct kexec_segment *ksegment; in SYSCALL_DEFINE5() local
387 ksegment = &image->segment[i]; in SYSCALL_DEFINE5()
389 i, ksegment->buf, ksegment->bufsz, ksegment->mem, in SYSCALL_DEFINE5()
390 ksegment->memsz); in SYSCALL_DEFINE5()
632 struct kexec_segment *ksegment; in kexec_add_buffer() local
664 ksegment = &kbuf->image->segment[kbuf->image->nr_segments]; in kexec_add_buffer()
665 ksegment->kbuf = kbuf->buffer; in kexec_add_buffer()
666 ksegment->bufsz = kbuf->bufsz; in kexec_add_buffer()
667 ksegment->mem = kbuf->mem; in kexec_add_buffer()
668 ksegment->memsz = kbuf->memsz; in kexec_add_buffer()
724 struct kexec_segment *ksegment; in kexec_calculate_store_digests() local
726 ksegment = &image->segment[i]; in kexec_calculate_store_digests()
731 if (ksegment->kbuf == pi->purgatory_buf) in kexec_calculate_store_digests()
734 ret = crypto_shash_update(desc, ksegment->kbuf, in kexec_calculate_store_digests()
735 ksegment->bufsz); in kexec_calculate_store_digests()
743 nullsz = ksegment->memsz - ksegment->bufsz; in kexec_calculate_store_digests()
758 sha_regions[j].start = ksegment->mem; in kexec_calculate_store_digests()
759 sha_regions[j].len = ksegment->memsz; in kexec_calculate_store_digests()