Home
last modified time | relevance | path

Searched refs:crash_size (Results 1 – 12 of 12) sorted by relevance

/linux/kernel/
H A Dcrash_reserve.c58 unsigned long long *crash_size, in parse_crashkernel_mem() argument
122 *crash_size = size; in parse_crashkernel_mem()
127 if (*crash_size > 0) { in parse_crashkernel_mem()
152 unsigned long long *crash_size, in parse_crashkernel_simple() argument
157 *crash_size = memparse(cmdline, &cur); in parse_crashkernel_simple()
190 unsigned long long *crash_size, in parse_crashkernel_suffix() argument
195 *crash_size = memparse(cmdline, &cur); in parse_crashkernel_suffix()
255 unsigned long long *crash_size, in __parse_crashkernel() argument
263 BUG_ON(!crash_size || !crash_base); in __parse_crashkernel()
264 *crash_size = 0; in __parse_crashkernel()
[all …]
/linux/arch/powerpc/kexec/
H A Dcore.c85 unsigned long long crash_size, crash_base, total_mem_sz; in reserve_crashkernel() local
91 &crash_size, &crash_base, NULL, NULL); in reserve_crashkernel()
92 if (ret == 0 && crash_size > 0) { in reserve_crashkernel()
94 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
105 crash_size = resource_size(&crashk_res); in reserve_crashkernel()
142 crash_size = PAGE_ALIGN(crash_size); in reserve_crashkernel()
143 crashk_res.end = crashk_res.start + crash_size - 1; in reserve_crashkernel()
163 (unsigned long)(crash_size >> 20), in reserve_crashkernel()
167 if (!memblock_is_region_memory(crashk_res.start, crash_size) || in reserve_crashkernel()
168 memblock_reserve(crashk_res.start, crash_size)) { in reserve_crashkernel()
/linux/arch/sh/kernel/
H A Dmachine_kexec.c142 unsigned long long crash_size, crash_base; in reserve_crashkernel() local
149 &crash_size, &crash_base, NULL, NULL); in reserve_crashkernel()
150 if (ret == 0 && crash_size > 0) { in reserve_crashkernel()
152 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
158 crash_size = PAGE_ALIGN(resource_size(&crashk_res)); in reserve_crashkernel()
161 crashk_res.start = memblock_phys_alloc_range(crash_size, 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()
188 (unsigned long)(crash_size >> 20), in reserve_crashkernel()
/linux/arch/s390/kernel/
H A Dsetup.c617 unsigned long long crash_base, crash_size; in reserve_crashkernel() local
622 &crash_size, &crash_base, NULL, NULL); in reserve_crashkernel()
625 crash_size = ALIGN(crash_size, KEXEC_CRASH_MEM_ALIGN); in reserve_crashkernel()
626 if (rc || crash_size == 0) in reserve_crashkernel()
629 if (memblock.memory.regions[0].size < crash_size) { in reserve_crashkernel()
636 high = low + crash_size; in reserve_crashkernel()
642 low = max_t(unsigned long, crash_size, sclp.hsa_size); in reserve_crashkernel()
643 high = crash_base ? crash_base + crash_size : ULONG_MAX; in reserve_crashkernel()
651 crash_base = memblock_phys_alloc_range(crash_size, in reserve_crashkernel()
663 memblock_phys_free(crash_base, crash_size); in reserve_crashkernel()
[all …]
H A Dmachine_kexec_file.c110 u64 crash_size; in kexec_file_update_purgatory() local
119 crash_size = crashk_res.end - crashk_res.start + 1; in kexec_file_update_purgatory()
121 &crash_size, in kexec_file_update_purgatory()
122 sizeof(crash_size), in kexec_file_update_purgatory()
/linux/include/linux/
H A Dcrash_reserve.h18 unsigned long long *crash_size, unsigned long long *crash_base,
36 unsigned long long crash_size,
42 unsigned long long crash_size, in reserve_crashkernel_generic() argument
/linux/arch/mips/kernel/
H A Dsetup.c452 unsigned long long crash_size, crash_base; in mips_parse_crashkernel() local
460 &crash_size, &crash_base, in mips_parse_crashkernel()
462 if (ret != 0 || crash_size <= 0) in mips_parse_crashkernel()
466 crash_base = memblock_phys_alloc_range(crash_size, CRASH_ALIGN, in mips_parse_crashkernel()
476 start = memblock_phys_alloc_range(crash_size, 1, in mips_parse_crashkernel()
478 crash_base + crash_size); in mips_parse_crashkernel()
486 crashk_res.end = crash_base + crash_size - 1; in mips_parse_crashkernel()
/linux/arch/powerpc/mm/nohash/
H A Dkaslr_booke.c177 unsigned long long crash_size, crash_base; in get_crash_kernel() local
180 ret = parse_crashkernel(boot_command_line, size, &crash_size, in get_crash_kernel()
182 if (ret != 0 || crash_size == 0) in get_crash_kernel()
188 regions.crash_end = (unsigned long)(crash_base + crash_size); in get_crash_kernel()
190 pr_debug("crash_base=0x%llx crash_size=0x%llx\n", crash_base, crash_size); in get_crash_kernel()
/linux/arch/arm/kernel/
H A Dsetup.c1006 unsigned long long crash_size, crash_base; in reserve_crashkernel() local
1012 &crash_size, &crash_base, in reserve_crashkernel()
1015 if (ret || !crash_size) in reserve_crashkernel()
1024 crash_base = memblock_phys_alloc_range(crash_size, CRASH_ALIGN, in reserve_crashkernel()
1031 unsigned long long crash_max = crash_base + crash_size; in reserve_crashkernel()
1034 start = memblock_phys_alloc_range(crash_size, SECTION_SIZE, in reserve_crashkernel()
1043 (unsigned long)(crash_size >> 20), in reserve_crashkernel()
1049 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
1063 crashk_boot_res.end = crashk_boot_res.start + crash_size - 1; in reserve_crashkernel()
/linux/arch/loongarch/kernel/
H A Dsetup.c261 unsigned long long crash_base, crash_size; in arch_reserve_crashkernel() local
269 &crash_size, &crash_base, &low_size, &high); in arch_reserve_crashkernel()
273 reserve_crashkernel_generic(cmdline, crash_size, crash_base, low_size, high); in arch_reserve_crashkernel()
/linux/arch/x86/kernel/
H A Dsetup.c471 unsigned long long crash_base, crash_size, low_size = 0; in arch_reserve_crashkernel() local
480 &crash_size, &crash_base, in arch_reserve_crashkernel()
490 reserve_crashkernel_generic(cmdline, crash_size, crash_base, in arch_reserve_crashkernel()
/linux/arch/riscv/mm/
H A Dinit.c1394 unsigned long long crash_base, crash_size; in arch_reserve_crashkernel() local
1403 &crash_size, &crash_base, in arch_reserve_crashkernel()
1408 reserve_crashkernel_generic(cmdline, crash_size, crash_base, in arch_reserve_crashkernel()