Lines Matching refs:cmem
211 struct crash_mem *cmem; in prepare_elf_headers() local
221 cmem = kmalloc(struct_size(cmem, ranges, nr_ranges), GFP_KERNEL); in prepare_elf_headers()
222 if (!cmem) in prepare_elf_headers()
225 cmem->max_nr_ranges = nr_ranges; in prepare_elf_headers()
226 cmem->nr_ranges = 0; in prepare_elf_headers()
228 cmem->ranges[cmem->nr_ranges].start = start; in prepare_elf_headers()
229 cmem->ranges[cmem->nr_ranges].end = end - 1; in prepare_elf_headers()
230 cmem->nr_ranges++; in prepare_elf_headers()
234 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in prepare_elf_headers()
237 ret = crash_prepare_elf64_headers(cmem, true, addr, sz); in prepare_elf_headers()
239 kfree(cmem); in prepare_elf_headers()