/arch/sh/kernel/ |
D | machine_kexec.c | 153 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()
|
/arch/powerpc/kexec/ |
D | core.c | 118 unsigned long long crash_size, crash_base, total_mem_sz; in reserve_crashkernel() local 124 &crash_size, &crash_base); in reserve_crashkernel() 125 if (ret == 0 && crash_size > 0) { in reserve_crashkernel() 127 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel() 138 crash_size = resource_size(&crashk_res); in reserve_crashkernel() 175 crash_size = PAGE_ALIGN(crash_size); in reserve_crashkernel() 176 crashk_res.end = crashk_res.start + crash_size - 1; in reserve_crashkernel() 196 (unsigned long)(crash_size >> 20), in reserve_crashkernel() 200 if (!memblock_is_region_memory(crashk_res.start, crash_size) || in reserve_crashkernel() 201 memblock_reserve(crashk_res.start, crash_size)) { in reserve_crashkernel()
|
/arch/arm64/mm/ |
D | init.c | 109 unsigned long long crash_base, crash_size; in reserve_crashkernel() local 114 &crash_size, &crash_base); in reserve_crashkernel() 116 if (ret || !crash_size) in reserve_crashkernel() 119 crash_size = PAGE_ALIGN(crash_size); in reserve_crashkernel() 123 crash_max = crash_base + crash_size; in reserve_crashkernel() 126 crash_base = memblock_phys_alloc_range(crash_size, SZ_2M, in reserve_crashkernel() 130 crash_size); in reserve_crashkernel() 135 crash_base, crash_base + crash_size, crash_size >> 20); in reserve_crashkernel() 143 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
|
/arch/s390/kernel/ |
D | setup.c | 646 unsigned long long crash_base, crash_size; in reserve_crashkernel() local 650 rc = parse_crashkernel(boot_command_line, ident_map_size, &crash_size, in reserve_crashkernel() 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() 671 low = max_t(unsigned long, crash_size, sclp.hsa_size); in reserve_crashkernel() 672 high = crash_base ? crash_base + crash_size : ULONG_MAX; in reserve_crashkernel() 680 crash_base = memblock_phys_alloc_range(crash_size, in reserve_crashkernel() 692 memblock_free(crash_base, crash_size); in reserve_crashkernel() [all …]
|
D | machine_kexec_file.c | 107 u64 crash_size; in kexec_file_update_purgatory() local 116 crash_size = crashk_res.end - crashk_res.start + 1; in kexec_file_update_purgatory() 118 &crash_size, in kexec_file_update_purgatory() 119 sizeof(crash_size), in kexec_file_update_purgatory()
|
/arch/x86/kernel/ |
D | setup.c | 483 unsigned long long crash_size, crash_base, total_mem; in reserve_crashkernel() local 490 ret = parse_crashkernel(boot_command_line, total_mem, &crash_size, &crash_base); in reserve_crashkernel() 491 if (ret != 0 || crash_size <= 0) { in reserve_crashkernel() 494 &crash_size, &crash_base); in reserve_crashkernel() 495 if (ret != 0 || crash_size <= 0) in reserve_crashkernel() 516 crash_base = memblock_phys_alloc_range(crash_size, in reserve_crashkernel() 520 crash_base = memblock_phys_alloc_range(crash_size, in reserve_crashkernel() 530 start = memblock_phys_alloc_range(crash_size, SZ_1M, crash_base, in reserve_crashkernel() 531 crash_base + crash_size); in reserve_crashkernel() 539 memblock_free(crash_base, crash_size); in reserve_crashkernel() [all …]
|
/arch/riscv/mm/ |
D | init.c | 807 unsigned long long crash_size = 0; in reserve_crashkernel() local 826 &crash_size, &crash_base); in reserve_crashkernel() 827 if (ret || !crash_size) in reserve_crashkernel() 830 crash_size = PAGE_ALIGN(crash_size); in reserve_crashkernel() 834 search_end = crash_base + crash_size; in reserve_crashkernel() 844 crash_base = memblock_phys_alloc_range(crash_size, PMD_SIZE, in reserve_crashkernel() 849 crash_base = memblock_phys_alloc_range(crash_size, PMD_SIZE, in reserve_crashkernel() 853 crash_size >> 10); in reserve_crashkernel() 859 crash_base, crash_base + crash_size, crash_size >> 20); in reserve_crashkernel() 862 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
|
/arch/mips/kernel/ |
D | setup.c | 448 unsigned long long crash_size, crash_base; in mips_parse_crashkernel() local 453 &crash_size, &crash_base); in mips_parse_crashkernel() 454 if (ret != 0 || crash_size <= 0) in mips_parse_crashkernel() 458 crash_base = memblock_phys_alloc_range(crash_size, CRASH_ALIGN, in mips_parse_crashkernel() 468 start = memblock_phys_alloc_range(crash_size, 1, in mips_parse_crashkernel() 470 crash_base + crash_size); in mips_parse_crashkernel() 478 crashk_res.end = crash_base + crash_size - 1; in mips_parse_crashkernel()
|
/arch/powerpc/mm/nohash/ |
D | kaslr_booke.c | 179 unsigned long long crash_size, crash_base; in get_crash_kernel() local 182 ret = parse_crashkernel(boot_command_line, size, &crash_size, in get_crash_kernel() 184 if (ret != 0 || crash_size == 0) in get_crash_kernel() 190 regions.crash_end = (unsigned long)(crash_base + crash_size); in get_crash_kernel() 192 pr_debug("crash_base=0x%llx crash_size=0x%llx\n", crash_base, crash_size); in get_crash_kernel()
|
/arch/arm/kernel/ |
D | setup.c | 1000 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()
|
/arch/s390/purgatory/ |
D | head.S | 142 lg %r9,crash_size-.base_crash(%r13) 266 GLOBAL_VARIABLE crash_size,8
|