| /linux/arch/sh/kernel/ |
| H A D | machine_kexec.c | 151 crashk_res.start = crash_base; in reserve_crashkernel() 152 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel() 155 if (crashk_res.end == crashk_res.start) in reserve_crashkernel() 158 crash_size = PAGE_ALIGN(resource_size(&crashk_res)); in reserve_crashkernel() 159 if (!crashk_res.start) { in reserve_crashkernel() 161 crashk_res.start = memblock_phys_alloc_range(crash_size, in reserve_crashkernel() 163 if (!crashk_res.start) { in reserve_crashkernel() 168 ret = memblock_reserve(crashk_res.start, crash_size); in reserve_crashkernel() 176 crashk_res.end = crashk_res.start + crash_size - 1; in reserve_crashkernel() 181 if ((memblock_end_of_DRAM() - memory_limit) <= crashk_res.end) { in reserve_crashkernel() [all …]
|
| H A D | setup.c | 224 request_resource(res, &crashk_res); in __add_active_range()
|
| /linux/arch/powerpc/kexec/ |
| H A D | core.c | 145 return (start + size) > crashk_res.start && start <= crashk_res.end; in overlaps_crashkernel() 180 if (crashk_res.start != 0) { in export_crashk_values() 181 crashk_base = cpu_to_be_ulong(crashk_res.start), in export_crashk_values() 183 crashk_size = cpu_to_be_ulong(resource_size(&crashk_res)); in export_crashk_values()
|
| H A D | elf_64.c | 54 kbuf.buf_min = pbuf.buf_min = crashk_res.start; in elf64_load() 56 ((crashk_res.end < ppc64_rma_size) ? in elf64_load() 57 crashk_res.end : (ppc64_rma_size - 1)); in elf64_load()
|
| H A D | ranges.c | 527 ret = add_mem_range(mem_ranges, 0, crashk_res.end + 1); in get_usable_memory_ranges() 608 ret = crash_exclude_mem_range_guarded(mem_ranges, crashk_res.start, crashk_res.end); in get_crash_memory_ranges()
|
| /linux/arch/s390/kernel/ |
| H A D | machine_kexec_file.c | 113 &crashk_res.start, in kexec_file_update_purgatory() 114 sizeof(crashk_res.start), in kexec_file_update_purgatory() 119 crash_size = crashk_res.end - crashk_res.start + 1; in kexec_file_update_purgatory() 141 buf.mem += crashk_res.start; in kexec_file_add_purgatory() 167 buf.mem += crashk_res.start; in kexec_file_add_initrd() 234 buf.mem += crashk_res.start; in kexec_file_add_ipl_report() 281 data.parm->oldmem_base = crashk_res.start; in kexec_file_add_components() 282 data.parm->oldmem_size = crashk_res.end - crashk_res.start + 1; in kexec_file_add_components()
|
| H A D | kexec_image.c | 29 buf.mem += crashk_res.start; in kexec_file_add_kernel_image()
|
| H A D | kexec_elf.c | 45 buf.mem += crashk_res.start; in kexec_file_add_kernel_elf()
|
| /linux/arch/loongarch/kernel/ |
| H A D | machine_kexec_file.c | 84 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in prepare_elf_headers() 110 crashk_res.end - crashk_res.start + 1, crashk_res.start); in cmdline_add_mem()
|
| /linux/kernel/ |
| H A D | crash_reserve.c | 29 struct resource crashk_res = { variable 467 crashk_res.start = crash_base; in reserve_crashkernel_generic() 468 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel_generic() 470 insert_resource(&iomem_resource, &crashk_res); in reserve_crashkernel_generic() 530 if (crashk_res.start < crashk_res.end) in insert_crashkernel_resources() 531 insert_resource(&iomem_resource, &crashk_res); in insert_crashkernel_resources()
|
| H A D | crash_core.c | 350 size += crash_resource_size(&crashk_res); in crash_get_memory_size() 399 old_size = crash_resource_size(&crashk_res) + low_size; in crash_shrink_memory() 415 ret = __crash_shrink_memory(&crashk_res, 0); in crash_shrink_memory() 421 ret = __crash_shrink_memory(&crashk_res, new_size - low_size); in crash_shrink_memory() 425 if (!crashk_res.end && crashk_low_res.end) { in crash_shrink_memory() 426 crashk_res.start = crashk_low_res.start; in crash_shrink_memory() 427 crashk_res.end = crashk_low_res.end; in crash_shrink_memory() 431 insert_resource(&iomem_resource, &crashk_res); in crash_shrink_memory()
|
| H A D | kexec.c | 34 if ((entry < phys_to_boot_phys(crashk_res.start)) || in kimage_alloc_init() 35 (entry > phys_to_boot_phys(crashk_res.end))) in kimage_alloc_init() 52 image->control_page = crashk_res.start; in kimage_alloc_init()
|
| H A D | kexec_file.c | 323 image->control_page = crashk_res.start; in kimage_file_alloc_init() 597 return func(&crashk_res, kbuf); in kexec_walk_memblock() 659 return walk_iomem_res_desc(crashk_res.desc, in kexec_walk_resources() 661 crashk_res.start, crashk_res.end, in kexec_walk_resources()
|
| H A D | kexec_core.c | 209 if ((mstart < phys_to_boot_phys(crashk_res.start)) || in sanity_check_segment_list() 210 (mend > phys_to_boot_phys(crashk_res.end))) in sanity_check_segment_list() 428 while (hole_end <= crashk_res.end) { in kimage_alloc_crash_control_pages()
|
| /linux/arch/mips/kernel/ |
| H A D | setup.c | 485 crashk_res.start = crash_base; in mips_parse_crashkernel() 486 crashk_res.end = crash_base + crash_size - 1; in mips_parse_crashkernel() 496 if (crashk_res.start == crashk_res.end) in request_crashkernel() 499 ret = request_resource(res, &crashk_res); in request_crashkernel() 502 (unsigned long)(resource_size(&crashk_res) >> 20), in request_crashkernel() 503 (unsigned long)(crashk_res.start >> 20)); in request_crashkernel()
|
| /linux/arch/x86/kernel/ |
| H A D | crash.c | 204 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in elf_header_exclude_ranges() 385 ret = memmap_exclude_ranges(image, cmem, crashk_res.start, crashk_res.end); in crash_setup_memmap_entries()
|
| H A D | machine_kexec_64.c | 658 kexec_mark_range(crashk_res.start, control - 1, protect); in kexec_mark_crashkres() 660 kexec_mark_range(control, crashk_res.end, protect); in kexec_mark_crashkres()
|
| /linux/arch/arm64/kernel/ |
| H A D | machine_kexec_file.c | 68 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in prepare_elf_headers()
|
| /linux/drivers/of/ |
| H A D | kexec.c | 438 "linux,usable-memory-range", crashk_res.start, in of_kexec_alloc_and_setup_fdt() 439 crashk_res.end - crashk_res.start + 1); in of_kexec_alloc_and_setup_fdt()
|
| /linux/include/linux/ |
| H A D | crash_reserve.h | 14 extern struct resource crashk_res;
|
| /linux/arch/riscv/kernel/ |
| H A D | machine_kexec_file.c | 78 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in prepare_elf_headers()
|
| /linux/arch/arm/kernel/ |
| H A D | setup.c | 1042 crashk_res.start = crash_base; in reserve_crashkernel() 1043 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel() 1044 insert_resource(&iomem_resource, &crashk_res); in reserve_crashkernel()
|
| /linux/init/ |
| H A D | initramfs.c | 669 unsigned long crashk_start = (unsigned long)__va(crashk_res.start); in kexec_free_initrd() 670 unsigned long crashk_end = (unsigned long)__va(crashk_res.end); in kexec_free_initrd()
|