Lines Matching +full:reboot +full:- +full:offset
1 // SPDX-License-Identifier: GPL-2.0-or-later
14 #include <linux/reboot.h>
19 #include <asm/reboot.h>
63 /* argv at offset 0, argv[] at offset KEXEC_ARGV_SIZE/2 */ in loongson_kexec_prepare()
64 if (image->type == KEXEC_TYPE_DEFAULT) in loongson_kexec_prepare()
71 for (i = 0; i < image->nr_segments; i++) { in loongson_kexec_prepare()
72 if (!strncmp(bootloader, (char *)image->segment[i].buf, in loongson_kexec_prepare()
80 memcpy(str, image->segment[i].buf, KEXEC_ARGV_SIZE/2); in loongson_kexec_prepare()
86 offt = (int)(ptr - str + 1); in loongson_kexec_prepare()
96 if (image->type == KEXEC_TYPE_DEFAULT) in loongson_kexec_prepare()
102 image->control_code_page = virt_to_page((void *)KEXEC_CTRL_CODE); in loongson_kexec_prepare()
158 return -ENOMEM; in mips_reboot_setup()
162 return -ENOMEM; in mips_reboot_setup()
166 return -ENOMEM; in mips_reboot_setup()