Home
last modified time | relevance | path

Searched refs:cmdline_ptr (Results 1 – 17 of 17) sorted by relevance

/linux-6.12.1/arch/powerpc/kexec/
Dfile_load.c40 char *cmdline_ptr; in setup_kdump_cmdline() local
42 cmdline_ptr = kzalloc(COMMAND_LINE_SIZE, GFP_KERNEL); in setup_kdump_cmdline()
43 if (!cmdline_ptr) in setup_kdump_cmdline()
46 elfcorehdr_strlen = sprintf(cmdline_ptr, "elfcorehdr=0x%lx ", in setup_kdump_cmdline()
51 kfree(cmdline_ptr); in setup_kdump_cmdline()
55 memcpy(cmdline_ptr + elfcorehdr_strlen, cmdline, cmdline_len); in setup_kdump_cmdline()
57 cmdline_ptr[COMMAND_LINE_SIZE - 1] = '\0'; in setup_kdump_cmdline()
58 return cmdline_ptr; in setup_kdump_cmdline()
/linux-6.12.1/arch/x86/boot/
Dcmdline.c28 int __cmdline_find_option(unsigned long cmdline_ptr, const char *option, char *buffer, int bufsize) in __cmdline_find_option() argument
42 if (!cmdline_ptr) in __cmdline_find_option()
45 cptr = cmdline_ptr & 0xf; in __cmdline_find_option()
46 set_fs(cmdline_ptr >> 4); in __cmdline_find_option()
100 int __cmdline_find_option_bool(unsigned long cmdline_ptr, const char *option) in __cmdline_find_option_bool() argument
112 if (!cmdline_ptr) in __cmdline_find_option_bool()
115 cptr = cmdline_ptr & 0xf; in __cmdline_find_option_bool()
116 set_fs(cmdline_ptr >> 4); in __cmdline_find_option_bool()
Dboot.h249 int __cmdline_find_option(unsigned long cmdline_ptr, const char *option, char *buffer, int bufsize);
250 int __cmdline_find_option_bool(unsigned long cmdline_ptr, const char *option);
/linux-6.12.1/arch/loongarch/kernel/
Dmachine_kexec.c37 static unsigned long cmdline_ptr; variable
66 void *cmdline_ptr = (void *)KEXEC_CMDLINE_ADDR; in machine_kexec_prepare() local
76 if (!copy_from_user(cmdline_ptr, kimage->segment[i].buf, COMMAND_LINE_SIZE)) in machine_kexec_prepare()
77 kimage->arch.cmdline_ptr = (unsigned long)cmdline_ptr; in machine_kexec_prepare()
82 if (!kimage->arch.cmdline_ptr) { in machine_kexec_prepare()
134 do_kexec(efi_boot, cmdline_ptr, systable_ptr, start_addr, first_ind_entry); in kexec_reboot()
263 cmdline_ptr = internal->cmdline_ptr; in machine_kexec()
291 pr_notice("Command line at 0x%lx\n", cmdline_ptr); in machine_kexec()
/linux-6.12.1/drivers/firmware/efi/libstub/
Dfdt.c31 void *fdt, int new_fdt_size, char *cmdline_ptr) in update_fdt() argument
88 if (cmdline_ptr != NULL && strlen(cmdline_ptr) > 0) { in update_fdt()
89 status = fdt_setprop(fdt, node, "bootargs", cmdline_ptr, in update_fdt()
90 strlen(cmdline_ptr) + 1); in update_fdt()
226 char *cmdline_ptr) in allocate_new_fdt_and_exit_boot() argument
251 if (strstr(cmdline_ptr, "dtb=")) in allocate_new_fdt_and_exit_boot()
283 (void *)*new_fdt_addr, MAX_FDT_SIZE, cmdline_ptr); in allocate_new_fdt_and_exit_boot()
345 unsigned long kernel_addr, char *cmdline_ptr) in efi_boot_kernel() argument
351 cmdline_ptr); in efi_boot_kernel()
Dzboot.c71 char *cmdline_ptr; in efi_zboot_entry() local
86 status = efi_handle_cmdline(image, &cmdline_ptr); in efi_zboot_entry()
140 status = efi_stub_common(handle, image, image_base, cmdline_ptr); in efi_zboot_entry()
145 efi_bs_call(free_pool, cmdline_ptr); in efi_zboot_entry()
Defi-stub.c113 efi_status_t efi_handle_cmdline(efi_loaded_image_t *image, char **cmdline_ptr) in efi_handle_cmdline() argument
148 *cmdline_ptr = cmdline; in efi_handle_cmdline()
152 efi_bs_call(free_pool, cmdline_ptr); in efi_handle_cmdline()
159 char *cmdline_ptr) in efi_stub_common() argument
186 status = efi_boot_kernel(handle, image, image_addr, cmdline_ptr); in efi_stub_common()
Defi-stub-entry.c38 char *cmdline_ptr = NULL; in efi_pe_entry() local
61 status = efi_handle_cmdline(image, &cmdline_ptr); in efi_pe_entry()
78 status = efi_stub_common(handle, image, image_addr, cmdline_ptr); in efi_pe_entry()
Dloongarch.c48 unsigned long kernel_addr, char *cmdline_ptr) in efi_boot_kernel() argument
82 real_kernel_entry(true, (unsigned long)cmdline_ptr, in efi_boot_kernel()
Dx86-stub.c543 char *cmdline_ptr; in efi_pe_entry() local
572 cmdline_ptr = efi_convert_cmdline(image, &options_size); in efi_pe_entry()
573 if (!cmdline_ptr) { in efi_pe_entry()
578 efi_set_u64_split((unsigned long)cmdline_ptr, &hdr->cmd_line_ptr, in efi_pe_entry()
Defistub.h1026 unsigned long kernel_addr, char *cmdline_ptr);
1126 char *cmdline_ptr);
1128 efi_status_t efi_handle_cmdline(efi_loaded_image_t *image, char **cmdline_ptr);
/linux-6.12.1/arch/x86/include/asm/
Dcmdline.h9 int cmdline_find_option_bool(const char *cmdline_ptr, const char *option);
10 int cmdline_find_option(const char *cmdline_ptr, const char *option,
/linux-6.12.1/arch/riscv/kernel/
Delf_kexec.c174 char *cmdline_ptr; in setup_kdump_cmdline() local
176 cmdline_ptr = kzalloc(COMMAND_LINE_SIZE, GFP_KERNEL); in setup_kdump_cmdline()
177 if (!cmdline_ptr) in setup_kdump_cmdline()
180 elfcorehdr_strlen = sprintf(cmdline_ptr, "elfcorehdr=0x%lx ", in setup_kdump_cmdline()
185 kfree(cmdline_ptr); in setup_kdump_cmdline()
189 memcpy(cmdline_ptr + elfcorehdr_strlen, cmdline, cmdline_len); in setup_kdump_cmdline()
191 cmdline_ptr[COMMAND_LINE_SIZE - 1] = '\0'; in setup_kdump_cmdline()
192 return cmdline_ptr; in setup_kdump_cmdline()
/linux-6.12.1/arch/loongarch/include/asm/
Dkexec.h40 unsigned long cmdline_ptr; member
45 unsigned long cmdline_ptr,
/linux-6.12.1/arch/x86/kernel/
Dkexec-bzimage64.c72 char *cmdline_ptr = ((char *)params) + cmdline_offset; in setup_cmdline() local
77 len = sprintf(cmdline_ptr, in setup_cmdline()
80 memcpy(cmdline_ptr + len, cmdline, cmdline_len); in setup_cmdline()
83 cmdline_ptr[cmdline_len - 1] = '\0'; in setup_cmdline()
85 kexec_dprintk("Final command line is: %s\n", cmdline_ptr); in setup_cmdline()
/linux-6.12.1/kernel/
Dkexec_file.c195 const char __user *cmdline_ptr, in kimage_file_prepare_segments() argument
234 image->cmdline_buf = memdup_user(cmdline_ptr, cmdline_len); in kimage_file_prepare_segments()
274 int initrd_fd, const char __user *cmdline_ptr, in kimage_file_alloc_init() argument
297 cmdline_ptr, cmdline_len, flags); in kimage_file_alloc_init()
333 unsigned long, cmdline_len, const char __user *, cmdline_ptr, in SYSCALL_DEFINE5() argument
374 ret = kimage_file_alloc_init(&image, kernel_fd, initrd_fd, cmdline_ptr, in SYSCALL_DEFINE5()
/linux-6.12.1/include/linux/
Dsyscalls.h1119 const char __user *cmdline_ptr,