/linux-6.12.1/arch/powerpc/kexec/ |
D | file_load.c | 40 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/ |
D | cmdline.c | 28 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()
|
D | boot.h | 249 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/ |
D | machine_kexec.c | 37 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/ |
D | fdt.c | 31 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()
|
D | zboot.c | 71 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()
|
D | efi-stub.c | 113 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()
|
D | efi-stub-entry.c | 38 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()
|
D | loongarch.c | 48 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()
|
D | x86-stub.c | 543 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()
|
D | efistub.h | 1026 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/ |
D | cmdline.h | 9 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/ |
D | elf_kexec.c | 174 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/ |
D | kexec.h | 40 unsigned long cmdline_ptr; member 45 unsigned long cmdline_ptr,
|
/linux-6.12.1/arch/x86/kernel/ |
D | kexec-bzimage64.c | 72 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/ |
D | kexec_file.c | 195 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/ |
D | syscalls.h | 1119 const char __user *cmdline_ptr,
|