Home
last modified time | relevance | path

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

/arch/sh/kernel/
Dmachine_kexec.c157 unsigned long long crash_size, crash_base; in reserve_crashkernel() local
161 &crash_size, &crash_base); in reserve_crashkernel()
162 if (ret == 0 && crash_size > 0) { in reserve_crashkernel()
164 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
170 crash_size = PAGE_ALIGN(resource_size(&crashk_res)); in reserve_crashkernel()
173 crashk_res.start = __memblock_alloc_base(crash_size, PAGE_SIZE, max); in reserve_crashkernel()
179 ret = memblock_reserve(crashk_res.start, crash_size); in reserve_crashkernel()
187 crashk_res.end = crashk_res.start + crash_size - 1; in reserve_crashkernel()
199 (unsigned long)(crash_size >> 20), in reserve_crashkernel()
/arch/powerpc/kernel/
Dmachine_kexec.c104 unsigned long long crash_size, crash_base; in reserve_crashkernel() local
109 &crash_size, &crash_base); in reserve_crashkernel()
110 if (ret == 0 && crash_size > 0) { in reserve_crashkernel()
112 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
123 crash_size = resource_size(&crashk_res); in reserve_crashkernel()
153 crash_size = PAGE_ALIGN(crash_size); in reserve_crashkernel()
154 crashk_res.end = crashk_res.start + crash_size - 1; in reserve_crashkernel()
173 (unsigned long)(crash_size >> 20), in reserve_crashkernel()
177 memblock_reserve(crashk_res.start, crash_size); in reserve_crashkernel()
/arch/s390/kernel/
Dsetup.c599 static unsigned long __init find_crash_base(unsigned long crash_size, in find_crash_base() argument
606 if (memory_chunk[0].size < crash_size) { in find_crash_base()
610 if (OLDMEM_BASE && crash_size == OLDMEM_SIZE) in find_crash_base()
619 if (chunk->size < crash_size) in find_crash_base()
621 crash_base = (chunk->addr + chunk->size) - crash_size; in find_crash_base()
622 if (crash_base < crash_size) in find_crash_base()
638 unsigned long crash_size, in verify_crash_base() argument
648 if (crash_size > crash_base) { in verify_crash_base()
654 if (memory_chunk[0].size < crash_size) { in verify_crash_base()
668 if (crash_base + crash_size > chunk->addr + chunk->size) { in verify_crash_base()
[all …]
/arch/x86/kernel/
Dsetup.c572 unsigned long long crash_size, crash_base; in reserve_crashkernel() local
580 &crash_size, &crash_base); in reserve_crashkernel()
581 if (ret != 0 || crash_size <= 0) { in reserve_crashkernel()
584 &crash_size, &crash_base); in reserve_crashkernel()
585 if (ret != 0 || crash_size <= 0) in reserve_crashkernel()
598 crash_size, alignment); in reserve_crashkernel()
609 crash_base + crash_size, crash_size, 1<<20); in reserve_crashkernel()
615 memblock_reserve(crash_base, crash_size); in reserve_crashkernel()
619 (unsigned long)(crash_size >> 20), in reserve_crashkernel()
624 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
/arch/arm/kernel/
Dsetup.c706 unsigned long long crash_size, crash_base; in reserve_crashkernel() local
712 &crash_size, &crash_base); in reserve_crashkernel()
716 ret = reserve_bootmem(crash_base, crash_size, BOOTMEM_EXCLUSIVE); in reserve_crashkernel()
725 (unsigned long)(crash_size >> 20), in reserve_crashkernel()
730 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
/arch/mips/kernel/
Dsetup.c759 unsigned long long crash_size, crash_base; in mips_parse_crashkernel() local
764 &crash_size, &crash_base); in mips_parse_crashkernel()
765 if (ret != 0 || crash_size <= 0) in mips_parse_crashkernel()
769 crashk_res.end = crash_base + crash_size - 1; in mips_parse_crashkernel()