Home
last modified time | relevance | path

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

/linux/kernel/
A Dcrash_core.c42 unsigned long long *crash_size, in parse_crashkernel_mem() argument
97 *crash_size = size; in parse_crashkernel_mem()
102 if (*crash_size > 0) { in parse_crashkernel_mem()
127 unsigned long long *crash_size, in parse_crashkernel_simple() argument
132 *crash_size = memparse(cmdline, &cur); in parse_crashkernel_simple()
165 unsigned long long *crash_size, in parse_crashkernel_suffix() argument
170 *crash_size = memparse(cmdline, &cur); in parse_crashkernel_suffix()
233 unsigned long long *crash_size, in __parse_crashkernel() argument
241 BUG_ON(!crash_size || !crash_base); in __parse_crashkernel()
242 *crash_size = 0; in __parse_crashkernel()
[all …]
/linux/arch/powerpc/kexec/
A Dcore.c105 unsigned long long crash_size, crash_base, total_mem_sz; in reserve_crashkernel() local
111 &crash_size, &crash_base); in reserve_crashkernel()
112 if (ret == 0 && crash_size > 0) { in reserve_crashkernel()
114 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
125 crash_size = resource_size(&crashk_res); in reserve_crashkernel()
155 crash_size = PAGE_ALIGN(crash_size); in reserve_crashkernel()
156 crashk_res.end = crashk_res.start + crash_size - 1; in reserve_crashkernel()
176 (unsigned long)(crash_size >> 20), in reserve_crashkernel()
180 if (!memblock_is_region_memory(crashk_res.start, crash_size) || in reserve_crashkernel()
181 memblock_reserve(crashk_res.start, crash_size)) { in reserve_crashkernel()
/linux/arch/sh/kernel/
A Dmachine_kexec.c153 unsigned long long crash_size, crash_base; in reserve_crashkernel() local
157 &crash_size, &crash_base); in reserve_crashkernel()
158 if (ret == 0 && crash_size > 0) { in reserve_crashkernel()
160 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
166 crash_size = PAGE_ALIGN(resource_size(&crashk_res)); in reserve_crashkernel()
169 crashk_res.start = memblock_phys_alloc_range(crash_size, in reserve_crashkernel()
176 ret = memblock_reserve(crashk_res.start, crash_size); in reserve_crashkernel()
184 crashk_res.end = crashk_res.start + crash_size - 1; in reserve_crashkernel()
196 (unsigned long)(crash_size >> 20), in reserve_crashkernel()
/linux/arch/arm64/mm/
A Dinit.c77 unsigned long long crash_base, crash_size; in reserve_crashkernel() local
82 &crash_size, &crash_base); in reserve_crashkernel()
84 if (ret || !crash_size) in reserve_crashkernel()
87 crash_size = PAGE_ALIGN(crash_size); in reserve_crashkernel()
91 crash_max = crash_base + crash_size; in reserve_crashkernel()
94 crash_base = memblock_phys_alloc_range(crash_size, SZ_2M, in reserve_crashkernel()
98 crash_size); in reserve_crashkernel()
103 crash_base, crash_base + crash_size, crash_size >> 20); in reserve_crashkernel()
111 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
/linux/arch/s390/kernel/
A Dsetup.c646 unsigned long long crash_base, crash_size; in reserve_crashkernel() local
654 crash_size = ALIGN(crash_size, KEXEC_CRASH_MEM_ALIGN); in reserve_crashkernel()
655 if (rc || crash_size == 0) in reserve_crashkernel()
658 if (memblock.memory.regions[0].size < crash_size) { in reserve_crashkernel()
665 high = low + crash_size; in reserve_crashkernel()
680 crash_base = memblock_phys_alloc_range(crash_size, in reserve_crashkernel()
692 memblock_phys_free(crash_base, crash_size); in reserve_crashkernel()
699 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
700 memblock_remove(crash_base, crash_size); in reserve_crashkernel()
703 crash_size >> 20, crash_base >> 20, in reserve_crashkernel()
[all …]
A Dmachine_kexec_file.c101 u64 crash_size; in kexec_file_update_purgatory() local
110 crash_size = crashk_res.end - crashk_res.start + 1; in kexec_file_update_purgatory()
112 &crash_size, in kexec_file_update_purgatory()
113 sizeof(crash_size), in kexec_file_update_purgatory()
/linux/arch/x86/kernel/
A Dsetup.c468 unsigned long long crash_size, crash_base, total_mem; in reserve_crashkernel() local
476 if (ret != 0 || crash_size <= 0) { in reserve_crashkernel()
479 &crash_size, &crash_base); in reserve_crashkernel()
480 if (ret != 0 || crash_size <= 0) in reserve_crashkernel()
501 crash_base = memblock_phys_alloc_range(crash_size, in reserve_crashkernel()
505 crash_base = memblock_phys_alloc_range(crash_size, in reserve_crashkernel()
515 start = memblock_phys_alloc_range(crash_size, SZ_1M, crash_base, in reserve_crashkernel()
516 crash_base + crash_size); in reserve_crashkernel()
524 memblock_phys_free(crash_base, crash_size); in reserve_crashkernel()
529 (unsigned long)(crash_size >> 20), in reserve_crashkernel()
[all …]
/linux/arch/riscv/mm/
A Dinit.c782 unsigned long long crash_size = 0; in reserve_crashkernel() local
801 &crash_size, &crash_base); in reserve_crashkernel()
802 if (ret || !crash_size) in reserve_crashkernel()
805 crash_size = PAGE_ALIGN(crash_size); in reserve_crashkernel()
809 search_end = crash_base + crash_size; in reserve_crashkernel()
816 crash_base = memblock_phys_alloc_range(crash_size, PMD_SIZE, in reserve_crashkernel()
820 crash_size >> 10); in reserve_crashkernel()
825 crash_base, crash_base + crash_size, crash_size >> 20); in reserve_crashkernel()
828 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
/linux/include/linux/
A Dcrash_core.h81 unsigned long long *crash_size, unsigned long long *crash_base);
83 unsigned long long *crash_size, unsigned long long *crash_base);
85 unsigned long long *crash_size, unsigned long long *crash_base);
/linux/arch/mips/kernel/
A Dsetup.c445 unsigned long long crash_size, crash_base; in mips_parse_crashkernel() local
450 &crash_size, &crash_base); in mips_parse_crashkernel()
451 if (ret != 0 || crash_size <= 0) in mips_parse_crashkernel()
455 crash_base = memblock_phys_alloc_range(crash_size, CRASH_ALIGN, in mips_parse_crashkernel()
465 start = memblock_phys_alloc_range(crash_size, 1, in mips_parse_crashkernel()
467 crash_base + crash_size); in mips_parse_crashkernel()
475 crashk_res.end = crash_base + crash_size - 1; in mips_parse_crashkernel()
/linux/arch/powerpc/mm/nohash/
A Dkaslr_booke.c183 unsigned long long crash_size, crash_base; in get_crash_kernel() local
186 ret = parse_crashkernel(boot_command_line, size, &crash_size, in get_crash_kernel()
188 if (ret != 0 || crash_size == 0) in get_crash_kernel()
194 regions.crash_end = (unsigned long)(crash_base + crash_size); in get_crash_kernel()
196 pr_debug("crash_base=0x%llx crash_size=0x%llx\n", crash_base, crash_size); in get_crash_kernel()
/linux/arch/arm/kernel/
A Dsetup.c1000 unsigned long long crash_size, crash_base; in reserve_crashkernel() local
1006 &crash_size, &crash_base); in reserve_crashkernel()
1016 crash_base = memblock_phys_alloc_range(crash_size, CRASH_ALIGN, in reserve_crashkernel()
1023 unsigned long long crash_max = crash_base + crash_size; in reserve_crashkernel()
1026 start = memblock_phys_alloc_range(crash_size, SECTION_SIZE, in reserve_crashkernel()
1035 (unsigned long)(crash_size >> 20), in reserve_crashkernel()
1041 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
1055 crashk_boot_res.end = crashk_boot_res.start + crash_size - 1; in reserve_crashkernel()
/linux/arch/s390/purgatory/
A Dhead.S142 lg %r9,crash_size-.base_crash(%r13)
266 GLOBAL_VARIABLE crash_size,8

Completed in 21 milliseconds