Lines Matching refs:cmem
44 struct crash_mem *cmem; in prepare_elf_headers() local
54 cmem = kmalloc(struct_size(cmem, ranges, nr_ranges), GFP_KERNEL); in prepare_elf_headers()
55 if (!cmem) in prepare_elf_headers()
58 cmem->max_nr_ranges = nr_ranges; in prepare_elf_headers()
59 cmem->nr_ranges = 0; in prepare_elf_headers()
61 cmem->ranges[cmem->nr_ranges].start = start; in prepare_elf_headers()
62 cmem->ranges[cmem->nr_ranges].end = end - 1; in prepare_elf_headers()
63 cmem->nr_ranges++; in prepare_elf_headers()
67 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in prepare_elf_headers()
72 ret = crash_exclude_mem_range(cmem, crashk_low_res.start, crashk_low_res.end); in prepare_elf_headers()
77 ret = crash_prepare_elf64_headers(cmem, true, addr, sz); in prepare_elf_headers()
80 kfree(cmem); in prepare_elf_headers()