Home
last modified time | relevance | path

Searched refs:cmem (Results 1 – 7 of 7) sorted by relevance

/linux/arch/x86/kernel/
H A Dcrash.c170 cmem = vzalloc(struct_size(cmem, ranges, nr_ranges)); in fill_up_crash_elf_data()
171 if (!cmem) in fill_up_crash_elf_data()
177 return cmem; in fill_up_crash_elf_data()
209 cmem->ranges[cmem->nr_ranges].start = res->start; in prepare_elf64_ram_headers_callback()
210 cmem->ranges[cmem->nr_ranges].end = res->end; in prepare_elf64_ram_headers_callback()
224 if (!cmem) in prepare_elf_headers()
243 vfree(cmem); in prepare_elf_headers()
301 cmem = vzalloc(struct_size(cmem, ranges, 1)); in crash_setup_memmap_entries()
302 if (!cmem) in crash_setup_memmap_entries()
345 ei.size = cmem->ranges[i].end - cmem->ranges[i].start + 1; in crash_setup_memmap_entries()
[all …]
/linux/arch/arm64/kernel/
H A Dmachine_kexec_file.c45 struct crash_mem *cmem; in prepare_elf_headers() local
55 cmem = kmalloc(struct_size(cmem, ranges, nr_ranges), GFP_KERNEL); in prepare_elf_headers()
56 if (!cmem) in prepare_elf_headers()
59 cmem->max_nr_ranges = nr_ranges; in prepare_elf_headers()
60 cmem->nr_ranges = 0; in prepare_elf_headers()
62 cmem->ranges[cmem->nr_ranges].start = start; in prepare_elf_headers()
63 cmem->ranges[cmem->nr_ranges].end = end - 1; in prepare_elf_headers()
64 cmem->nr_ranges++; in prepare_elf_headers()
68 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in prepare_elf_headers()
78 ret = crash_prepare_elf64_headers(cmem, true, addr, sz); in prepare_elf_headers()
[all …]
/linux/drivers/firmware/efi/
H A Dcper.c321 cmem->node = mem->node; in cper_mem_err_pack()
322 cmem->card = mem->card; in cper_mem_err_pack()
323 cmem->module = mem->module; in cper_mem_err_pack()
324 cmem->bank = mem->bank; in cper_mem_err_pack()
325 cmem->device = mem->device; in cper_mem_err_pack()
326 cmem->row = mem->row; in cper_mem_err_pack()
327 cmem->column = mem->column; in cper_mem_err_pack()
328 cmem->bit_pos = mem->bit_pos; in cper_mem_err_pack()
332 cmem->extended = mem->extended; in cper_mem_err_pack()
333 cmem->rank = mem->rank; in cper_mem_err_pack()
[all …]
/linux/arch/riscv/kernel/
H A Delf_kexec.c132 struct crash_mem *cmem = arg; in prepare_elf64_ram_headers_callback() local
134 cmem->ranges[cmem->nr_ranges].start = res->start; in prepare_elf64_ram_headers_callback()
135 cmem->ranges[cmem->nr_ranges].end = res->end; in prepare_elf64_ram_headers_callback()
136 cmem->nr_ranges++; in prepare_elf64_ram_headers_callback()
143 struct crash_mem *cmem; in prepare_elf_headers() local
150 cmem = kmalloc(struct_size(cmem, ranges, nr_ranges), GFP_KERNEL); in prepare_elf_headers()
151 if (!cmem) in prepare_elf_headers()
154 cmem->max_nr_ranges = nr_ranges; in prepare_elf_headers()
155 cmem->nr_ranges = 0; in prepare_elf_headers()
163 ret = crash_prepare_elf64_headers(cmem, true, addr, sz); in prepare_elf_headers()
[all …]
/linux/arch/powerpc/kexec/
H A Dcrash.c428 struct crash_mem *cmem = NULL; in update_crash_elfcorehdr() local
437 ret = get_crash_memory_ranges(&cmem); in update_crash_elfcorehdr()
450 ret = remove_mem_range(&cmem, base_addr, size); in update_crash_elfcorehdr()
457 ret = crash_prepare_elf64_headers(cmem, false, &elfbuf, &elfsz); in update_crash_elfcorehdr()
486 kvfree(cmem); in update_crash_elfcorehdr()
H A Dfile_load_64.c587 static unsigned int kdump_extra_elfcorehdr_size(struct crash_mem *cmem) in kdump_extra_elfcorehdr_size() argument
594 else if (cmem->nr_ranges >= CONFIG_CRASH_MAX_MEMORY_RANGES) in kdump_extra_elfcorehdr_size()
597 extra_sz = (CONFIG_CRASH_MAX_MEMORY_RANGES - cmem->nr_ranges) * sizeof(Elf64_Phdr); in kdump_extra_elfcorehdr_size()
614 struct crash_mem *cmem = NULL; in load_elfcorehdr_segment() local
619 ret = get_crash_memory_ranges(&cmem); in load_elfcorehdr_segment()
624 ret = crash_prepare_elf64_headers(cmem, false, &headers, &headers_sz); in load_elfcorehdr_segment()
636 kbuf->memsz = headers_sz + kdump_extra_elfcorehdr_size(cmem); in load_elfcorehdr_segment()
649 kfree(cmem); in load_elfcorehdr_segment()
/linux/drivers/edac/
H A Dghes_edac.c273 struct cper_mem_err_compact cmem; in ghes_edac_report_mem_error() local
350 cper_mem_err_pack(mem_err, &cmem); in ghes_edac_report_mem_error()
351 p += cper_mem_err_location(&cmem, p); in ghes_edac_report_mem_error()
356 p += cper_dimm_err_location(&cmem, p); in ghes_edac_report_mem_error()