Home
last modified time | relevance | path

Searched refs:cmdline (Results 1 – 25 of 249) sorted by relevance

12345678910

/kernel/linux/linux-4.19/arch/x86/lib/
Dcmdline.c29 __cmdline_find_option_bool(const char *cmdline, int max_cmdline_size, in __cmdline_find_option_bool() argument
41 if (!cmdline) in __cmdline_find_option_bool()
49 c = *(char *)cmdline++; in __cmdline_find_option_bool()
122 __cmdline_find_option(const char *cmdline, int max_cmdline_size, in __cmdline_find_option() argument
136 if (!cmdline) in __cmdline_find_option()
144 c = *(char *)cmdline++; in __cmdline_find_option()
205 int cmdline_find_option_bool(const char *cmdline, const char *option) in cmdline_find_option_bool() argument
207 return __cmdline_find_option_bool(cmdline, COMMAND_LINE_SIZE, option); in cmdline_find_option_bool()
210 int cmdline_find_option(const char *cmdline, const char *option, char *buffer, in cmdline_find_option() argument
213 return __cmdline_find_option(cmdline, COMMAND_LINE_SIZE, option, in cmdline_find_option()
/kernel/linux/linux-5.10/arch/x86/lib/
Dcmdline.c28 __cmdline_find_option_bool(const char *cmdline, int max_cmdline_size, in __cmdline_find_option_bool() argument
40 if (!cmdline) in __cmdline_find_option_bool()
48 c = *(char *)cmdline++; in __cmdline_find_option_bool()
121 __cmdline_find_option(const char *cmdline, int max_cmdline_size, in __cmdline_find_option() argument
135 if (!cmdline) in __cmdline_find_option()
143 c = *(char *)cmdline++; in __cmdline_find_option()
204 int cmdline_find_option_bool(const char *cmdline, const char *option) in cmdline_find_option_bool() argument
206 return __cmdline_find_option_bool(cmdline, COMMAND_LINE_SIZE, option); in cmdline_find_option_bool()
209 int cmdline_find_option(const char *cmdline, const char *option, char *buffer, in cmdline_find_option() argument
212 return __cmdline_find_option(cmdline, COMMAND_LINE_SIZE, option, in cmdline_find_option()
/kernel/linux/linux-4.19/kernel/
Dcrash_core.c38 static int __init parse_crashkernel_mem(char *cmdline, in parse_crashkernel_mem() argument
43 char *cur = cmdline, *tmp; in parse_crashkernel_mem()
124 static int __init parse_crashkernel_simple(char *cmdline, in parse_crashkernel_simple() argument
128 char *cur = cmdline; in parse_crashkernel_simple()
130 *crash_size = memparse(cmdline, &cur); in parse_crashkernel_simple()
131 if (cmdline == cur) { in parse_crashkernel_simple()
162 static int __init parse_crashkernel_suffix(char *cmdline, in parse_crashkernel_suffix() argument
166 char *cur = cmdline; in parse_crashkernel_suffix()
168 *crash_size = memparse(cmdline, &cur); in parse_crashkernel_suffix()
169 if (cmdline == cur) { in parse_crashkernel_suffix()
[all …]
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/
Dgop.c36 } cmdline = { .option = EFI_CMDLINE_NONE }; variable
48 cmdline.option = EFI_CMDLINE_MODE_NUM; in parse_modenum()
49 cmdline.mode = m; in parse_modenum()
81 cmdline.option = EFI_CMDLINE_RES; in parse_res()
82 cmdline.res.width = w; in parse_res()
83 cmdline.res.height = h; in parse_res()
84 cmdline.res.format = pf; in parse_res()
85 cmdline.res.depth = d; in parse_res()
98 cmdline.option = EFI_CMDLINE_AUTO; in parse_auto()
111 cmdline.option = EFI_CMDLINE_LIST; in parse_list()
[all …]
Dfile.c87 static int find_file_option(const efi_char16_t *cmdline, int cmdline_len, in find_file_option() argument
96 if (!memcmp(&cmdline[i - prefix_len], prefix, prefix_size)) { in find_file_option()
106 while (i < cmdline_len && (cmdline[i] == L'/' || cmdline[i] == L'\\')) in find_file_option()
110 efi_char16_t c = cmdline[i++]; in find_file_option()
138 const efi_char16_t *cmdline = image->load_options; in handle_cmdline_files() local
151 efi_apply_loadoptions_quirk((const void **)&cmdline, &cmdline_len); in handle_cmdline_files()
152 cmdline_len /= sizeof(*cmdline); in handle_cmdline_files()
163 offset = find_file_option(cmdline, cmdline_len, in handle_cmdline_files()
170 cmdline += offset; in handle_cmdline_files()
/kernel/linux/linux-5.10/kernel/
Dcrash_core.c38 static int __init parse_crashkernel_mem(char *cmdline, in parse_crashkernel_mem() argument
43 char *cur = cmdline, *tmp; in parse_crashkernel_mem()
124 static int __init parse_crashkernel_simple(char *cmdline, in parse_crashkernel_simple() argument
128 char *cur = cmdline; in parse_crashkernel_simple()
130 *crash_size = memparse(cmdline, &cur); in parse_crashkernel_simple()
131 if (cmdline == cur) { in parse_crashkernel_simple()
162 static int __init parse_crashkernel_suffix(char *cmdline, in parse_crashkernel_suffix() argument
166 char *cur = cmdline; in parse_crashkernel_suffix()
168 *crash_size = memparse(cmdline, &cur); in parse_crashkernel_suffix()
169 if (cmdline == cur) { in parse_crashkernel_suffix()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/livepatch/
Dtest-livepatch.sh58 grep 'live patched' /proc/cmdline > /dev/kmsg
63 grep 'live patched' /proc/cmdline > /dev/kmsg
69 grep 'live patched' /proc/cmdline > /dev/kmsg
75 grep 'live patched' /proc/cmdline > /dev/kmsg
119 grep 'live patched' /proc/cmdline > /dev/kmsg
124 grep 'live patched' /proc/cmdline > /dev/kmsg
129 grep 'live patched' /proc/cmdline > /dev/kmsg
135 grep 'live patched' /proc/cmdline > /dev/kmsg
/kernel/linux/linux-5.10/arch/xtensa/platforms/iss/
Dsetup.c60 static char cmdline[COMMAND_LINE_SIZE] __initdata; in platform_setup() local
71 cmdline[0] = 0; in platform_setup()
76 strcat(cmdline, " "); in platform_setup()
77 strcat(cmdline, argv[i]); in platform_setup()
79 *p_cmdline = cmdline; in platform_setup()
/kernel/linux/linux-4.19/arch/xtensa/platforms/iss/
Dsetup.c82 static char cmdline[COMMAND_LINE_SIZE] __initdata; in platform_setup() local
93 cmdline[0] = 0; in platform_setup()
98 strcat(cmdline, " "); in platform_setup()
99 strcat(cmdline, argv[i]); in platform_setup()
101 *p_cmdline = cmdline; in platform_setup()
/kernel/linux/linux-4.19/arch/powerpc/boot/
Dmain.c157 static char cmdline[BOOT_COMMAND_LINE_SIZE] variable
171 if (cmdline[0] == '\0') in prep_cmdline()
172 getprop(chosen, "bootargs", cmdline, BOOT_COMMAND_LINE_SIZE-1); in prep_cmdline()
174 printf("\n\rLinux/PowerPC load: %s", cmdline); in prep_cmdline()
178 console_ops.edit_cmdline(cmdline, BOOT_COMMAND_LINE_SIZE, getline_timeout); in prep_cmdline()
183 setprop_str(chosen, "bootargs", cmdline); in prep_cmdline()
201 if ((loader_info.cmdline_len > 0) && (cmdline[0] == '\0')) in start()
202 memmove(cmdline, loader_info.cmdline, in start()
Dps3.c50 static char cmdline[BOOT_COMMAND_LINE_SIZE] variable
55 if (cmdline[0] == '\0') in prep_cmdline()
56 getprop(chosen, "bootargs", cmdline, BOOT_COMMAND_LINE_SIZE-1); in prep_cmdline()
58 setprop_str(chosen, "bootargs", cmdline); in prep_cmdline()
60 printf("cmdline: '%s'\n", cmdline); in prep_cmdline()
/kernel/linux/linux-4.19/arch/arm/boot/compressed/
Datags_to_fdt.c72 char cmdline[COMMAND_LINE_SIZE]; in merge_fdt_bootargs() local
74 char *ptr = cmdline; in merge_fdt_bootargs()
90 if (ptr - cmdline + len + 2 < COMMAND_LINE_SIZE) { in merge_fdt_bootargs()
98 setprop_string(fdt, "/chosen", "bootargs", cmdline); in merge_fdt_bootargs()
147 atag->u.cmdline.cmdline); in atags_to_fdt()
150 atag->u.cmdline.cmdline); in atags_to_fdt()
/kernel/linux/linux-5.10/arch/powerpc/boot/
Dmain.c193 static char cmdline[BOOT_COMMAND_LINE_SIZE] variable
207 if (cmdline[0] == '\0') in prep_cmdline()
208 getprop(chosen, "bootargs", cmdline, BOOT_COMMAND_LINE_SIZE-1); in prep_cmdline()
210 printf("\n\rLinux/PowerPC load: %s", cmdline); in prep_cmdline()
214 console_ops.edit_cmdline(cmdline, BOOT_COMMAND_LINE_SIZE, getline_timeout); in prep_cmdline()
219 setprop_str(chosen, "bootargs", cmdline); in prep_cmdline()
237 if ((loader_info.cmdline_len > 0) && (cmdline[0] == '\0')) in start()
238 memmove(cmdline, loader_info.cmdline, in start()
Dps3.c38 static char cmdline[BOOT_COMMAND_LINE_SIZE] variable
43 if (cmdline[0] == '\0') in prep_cmdline()
44 getprop(chosen, "bootargs", cmdline, BOOT_COMMAND_LINE_SIZE-1); in prep_cmdline()
46 setprop_str(chosen, "bootargs", cmdline); in prep_cmdline()
48 printf("cmdline: '%s'\n", cmdline); in prep_cmdline()
/kernel/liteos_m/components/shell/src/base/
Dshmsg.c72 CHAR *GetCmdName(const CHAR *cmdline, UINT32 len) in GetCmdName() argument
78 if (cmdline == NULL) { in GetCmdName()
90 for (tmpStr = cmdline, loop = 0; (*tmpStr != '\0') && (loop < len); ) { in GetCmdName()
145 STATIC VOID ParseAndExecCmdline(CmdParsed *cmdParsed, const CHAR *cmdline, UINT32 len) in ParseAndExecCmdline() argument
151 cmdName = GetCmdName(cmdline, len); in ParseAndExecCmdline()
164 ret = OsCmdParse((CHAR *)cmdline, cmdParsed); in ParseAndExecCmdline()
182 LITE_OS_SEC_TEXT_MINOR VOID ExecCmdline(const CHAR *cmdline) in ExecCmdline() argument
189 if (cmdline == NULL) { in ExecCmdline()
196 ret = PreHandleCmdline(cmdline, &output, &outputlen); in ExecCmdline()
/kernel/linux/linux-5.10/arch/arm/boot/compressed/
Datags_to_fdt.c74 char cmdline[COMMAND_LINE_SIZE]; in merge_fdt_bootargs() local
76 char *ptr = cmdline; in merge_fdt_bootargs()
92 if (ptr - cmdline + len + 2 < COMMAND_LINE_SIZE) { in merge_fdt_bootargs()
100 setprop_string(fdt, "/chosen", "bootargs", cmdline); in merge_fdt_bootargs()
167 atag->u.cmdline.cmdline); in atags_to_fdt()
170 atag->u.cmdline.cmdline); in atags_to_fdt()
/kernel/linux/linux-4.19/security/loadpin/
Dloadpin.c30 char *cmdline, *pathname; in report_load() local
33 cmdline = kstrdup_quotable_cmdline(current, GFP_KERNEL); in report_load()
41 cmdline ? "\"" : "", cmdline, cmdline ? "\"" : ""); in report_load()
43 kfree(cmdline); in report_load()
/kernel/linux/linux-4.19/drivers/misc/mic/cosm/
Dcosm_sysfs.c190 char *cmdline; in cmdline_show() local
195 cmdline = cdev->cmdline; in cmdline_show()
197 if (cmdline) in cmdline_show()
198 return scnprintf(buf, PAGE_SIZE, "%s\n", cmdline); in cmdline_show()
212 kfree(cdev->cmdline); in cmdline_store()
214 cdev->cmdline = kmalloc(count + 1, GFP_KERNEL); in cmdline_store()
215 if (!cdev->cmdline) { in cmdline_store()
220 strncpy(cdev->cmdline, buf, count); in cmdline_store()
222 if (cdev->cmdline[count - 1] == '\n') in cmdline_store()
223 cdev->cmdline[count - 1] = '\0'; in cmdline_store()
[all …]
/kernel/linux/linux-4.19/block/partitions/
Dcmdline.c23 static char *cmdline; variable
56 cmdline = s; in cmdline_parts_setup()
130 if (cmdline) { in cmdline_partition()
134 if (cmdline_parts_parse(&bdev_parts, cmdline)) { in cmdline_partition()
135 cmdline = NULL; in cmdline_partition()
138 cmdline = NULL; in cmdline_partition()
/kernel/linux/linux-5.10/block/partitions/
Dcmdline.c22 static char *cmdline; variable
55 cmdline = s; in cmdline_parts_setup()
129 if (cmdline) { in cmdline_partition()
133 if (cmdline_parts_parse(&bdev_parts, cmdline)) { in cmdline_partition()
134 cmdline = NULL; in cmdline_partition()
137 cmdline = NULL; in cmdline_partition()
/kernel/linux/linux-4.19/arch/arm64/kernel/
Dkaslr.c83 const u8 *cmdline, *str; in kaslr_early_init() local
114 cmdline = kaslr_get_cmdline(fdt); in kaslr_early_init()
115 str = strstr(cmdline, "nokaslr"); in kaslr_early_init()
116 if (str == cmdline || (str > cmdline && *(str - 1) == ' ')) in kaslr_early_init()
/kernel/linux/linux-5.10/security/loadpin/
Dloadpin.c24 char *cmdline, *pathname; in report_load() local
27 cmdline = kstrdup_quotable_cmdline(current, GFP_KERNEL); in report_load()
35 cmdline ? "\"" : "", cmdline, cmdline ? "\"" : ""); in report_load()
37 kfree(cmdline); in report_load()
/kernel/linux/linux-5.10/arch/arm64/kernel/
Dkaslr.c86 const u8 *cmdline, *str; in kaslr_early_init() local
118 cmdline = kaslr_get_cmdline(fdt); in kaslr_early_init()
119 str = strstr(cmdline, "nokaslr"); in kaslr_early_init()
120 if (str == cmdline || (str > cmdline && *(str - 1) == ' ')) { in kaslr_early_init()
Dmachine_kexec_file.c55 char *cmdline, void *dtb) in setup_dtb() argument
91 if (cmdline) { in setup_dtb()
92 ret = fdt_setprop_string(dtb, off, FDT_PROP_BOOTARGS, cmdline); in setup_dtb()
167 char *cmdline, void **dtb) in create_dtb() argument
174 cmdline_len = cmdline ? strlen(cmdline) : 0; in create_dtb()
191 cmdline, buf); in create_dtb()
254 char *cmdline) in load_other_segments() argument
317 ret = create_dtb(image, initrd_load_addr, initrd_len, cmdline, &dtb); in load_other_segments()
/kernel/linux/linux-5.10/tools/testing/selftests/wireguard/qemu/
Dinit.c168 char cmdline[4096], *success_dev; in launch_tests() local
187 if (read(fd, cmdline, sizeof(cmdline) - 1) <= 0) in launch_tests()
189 cmdline[sizeof(cmdline) - 1] = '\0'; in launch_tests()
190 for (success_dev = strtok(cmdline, " \n"); success_dev; success_dev = strtok(NULL, " \n")) { in launch_tests()

12345678910