Lines Matching refs:kbuf
348 struct kexec_buf kbuf = { .image = image, .buf_min = 0, in crash_load_segments() local
352 ret = prepare_elf_headers(image, &kbuf.buffer, &kbuf.bufsz, &pnum); in crash_load_segments()
356 image->elf_headers = kbuf.buffer; in crash_load_segments()
357 image->elf_headers_sz = kbuf.bufsz; in crash_load_segments()
358 kbuf.memsz = kbuf.bufsz; in crash_load_segments()
371 kbuf.memsz = pnum * sizeof(Elf64_Phdr); in crash_load_segments()
372 kbuf.memsz += sizeof(Elf64_Ehdr); in crash_load_segments()
377 image->elf_headers_sz = kbuf.memsz; in crash_load_segments()
383 kbuf.buf_align = ELF_CORE_HEADER_ALIGN; in crash_load_segments()
384 kbuf.mem = KEXEC_BUF_MEM_UNKNOWN; in crash_load_segments()
385 ret = kexec_add_buffer(&kbuf); in crash_load_segments()
388 image->elf_load_addr = kbuf.mem; in crash_load_segments()
390 image->elf_load_addr, kbuf.bufsz, kbuf.memsz); in crash_load_segments()