Home
last modified time | relevance | path

Searched refs:cmdline_len (Results 1 – 19 of 19) sorted by relevance

/linux-6.6.21/drivers/firmware/efi/libstub/
Dfile.c95 static int find_file_option(const efi_char16_t *cmdline, int cmdline_len, in find_file_option() argument
103 for (i = prefix_len; i < cmdline_len; i++) { in find_file_option()
114 while (i < cmdline_len && (cmdline[i] == L'/' || cmdline[i] == L'\\')) in find_file_option()
117 while (--result_len > 0 && i < cmdline_len) { in find_file_option()
193 u32 cmdline_len = efi_table_attr(image, load_options_size); in handle_cmdline_files() local
205 efi_apply_loadoptions_quirk((const void **)&cmdline, &cmdline_len); in handle_cmdline_files()
206 cmdline_len /= sizeof(*cmdline); in handle_cmdline_files()
217 offset = find_file_option(cmdline, cmdline_len, in handle_cmdline_files()
225 cmdline_len -= offset; in handle_cmdline_files()
/linux-6.6.21/arch/powerpc/kexec/
Dfile_load.c37 unsigned long cmdline_len) in setup_kdump_cmdline() argument
49 if (elfcorehdr_strlen + cmdline_len > COMMAND_LINE_SIZE) { in setup_kdump_cmdline()
55 memcpy(cmdline_ptr + elfcorehdr_strlen, cmdline, cmdline_len); in setup_kdump_cmdline()
Delf_64.c30 unsigned long cmdline_len) in elf64_load() argument
82 cmdline_len); in elf64_load()
/linux-6.6.21/arch/x86/kernel/
Dkexec-bzimage64.c70 unsigned long cmdline_len) in setup_cmdline() argument
80 memcpy(cmdline_ptr + len, cmdline, cmdline_len); in setup_cmdline()
81 cmdline_len += len; in setup_cmdline()
83 cmdline_ptr[cmdline_len - 1] = '\0'; in setup_cmdline()
388 unsigned long cmdline_len) in bzImage64_load() argument
417 if (cmdline_len > header->cmdline_size) { in bzImage64_load()
426 if (cmdline_len + MAX_ELFCOREHDR_STR_LEN > header->cmdline_size) { in bzImage64_load()
460 params_cmdline_sz = sizeof(struct boot_params) + cmdline_len + in bzImage64_load()
530 sizeof(struct boot_params), cmdline, cmdline_len); in bzImage64_load()
/linux-6.6.21/kernel/
Dkexec_file.c194 unsigned long cmdline_len, unsigned flags) in kimage_file_prepare_segments() argument
229 if (cmdline_len) { in kimage_file_prepare_segments()
230 image->cmdline_buf = memdup_user(cmdline_ptr, cmdline_len); in kimage_file_prepare_segments()
237 image->cmdline_buf_len = cmdline_len; in kimage_file_prepare_segments()
240 if (image->cmdline_buf[cmdline_len - 1] != '\0') { in kimage_file_prepare_segments()
271 unsigned long cmdline_len, unsigned long flags) in kimage_file_alloc_init() argument
290 cmdline_ptr, cmdline_len, flags); in kimage_file_alloc_init()
326 unsigned long, cmdline_len, const char __user *, cmdline_ptr, in SYSCALL_DEFINE5() argument
367 cmdline_len, flags); in SYSCALL_DEFINE5()
/linux-6.6.21/arch/parisc/kernel/
Dkexec_file.c19 unsigned long cmdline_len) in elf_load() argument
61 kbuf.bufsz = kbuf.memsz = ALIGN(cmdline_len, 8); in elf_load()
/linux-6.6.21/arch/riscv/kernel/
Delf_kexec.c169 unsigned long cmdline_len) in setup_kdump_cmdline() argument
181 if (elfcorehdr_strlen + cmdline_len > COMMAND_LINE_SIZE) { in setup_kdump_cmdline()
187 memcpy(cmdline_ptr + elfcorehdr_strlen, cmdline, cmdline_len); in setup_kdump_cmdline()
196 unsigned long cmdline_len) in elf_kexec_load() argument
260 cmdline_len); in elf_kexec_load()
/linux-6.6.21/arch/powerpc/boot/
Dcuboot.c26 loader_info.cmdline_len = r7 - r6; in cuboot_init()
Dmain.c237 if ((loader_info.cmdline_len > 0) && (cmdline[0] == '\0')) in start()
239 min(loader_info.cmdline_len, BOOT_COMMAND_LINE_SIZE-1)); in start()
Dredboot-83xx.c56 loader_info.cmdline_len = strlen((char *)bd.bi_cmdline); in platform_init()
Dredboot-8xx.c54 loader_info.cmdline_len = strlen((char *)bd.bi_cmdline); in platform_init()
Dtreeboot-akebono.c129 loader_info.cmdline_len = 256; in platform_init()
Dops.h79 int cmdline_len; member
/linux-6.6.21/arch/s390/kernel/
Dkexec_image.c46 char *cmdline, unsigned long cmdline_len) in s390_image_load() argument
Dkexec_elf.c69 char *cmdline, unsigned long cmdline_len) in s390_elf_load() argument
/linux-6.6.21/arch/arm64/kernel/
Dkexec_image.c39 char *cmdline, unsigned long cmdline_len) in image_load() argument
/linux-6.6.21/arch/powerpc/include/asm/
Dkexec.h121 unsigned long cmdline_len);
/linux-6.6.21/include/linux/
Dkexec.h134 unsigned long cmdline_len);
Dsyscalls.h1086 unsigned long cmdline_len,