Home
last modified time | relevance | path

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

123456

/linux-6.6.21/drivers/gpu/drm/tests/
Ddrm_cmdline_parser_test.c17 const char *cmdline = "e"; in drm_test_cmdline_force_e_only() local
19 KUNIT_ASSERT_TRUE(test, drm_mode_parse_command_line_for_connector(cmdline, in drm_test_cmdline_force_e_only()
35 const char *cmdline = "D"; in drm_test_cmdline_force_D_only_not_digital() local
37 KUNIT_ASSERT_TRUE(test, drm_mode_parse_command_line_for_connector(cmdline, in drm_test_cmdline_force_D_only_not_digital()
57 const char *cmdline = "D"; in drm_test_cmdline_force_D_only_hdmi() local
59 KUNIT_ASSERT_TRUE(test, drm_mode_parse_command_line_for_connector(cmdline, in drm_test_cmdline_force_D_only_hdmi()
79 const char *cmdline = "D"; in drm_test_cmdline_force_D_only_dvi() local
81 KUNIT_ASSERT_TRUE(test, drm_mode_parse_command_line_for_connector(cmdline, in drm_test_cmdline_force_D_only_dvi()
97 const char *cmdline = "d"; in drm_test_cmdline_force_d_only() local
99 KUNIT_ASSERT_TRUE(test, drm_mode_parse_command_line_for_connector(cmdline, in drm_test_cmdline_force_d_only()
[all …]
Ddrm_client_modeset_test.c92 const char *cmdline = "1920x1080@60"; in drm_test_pick_cmdline_res_1920_1080_60() local
99 drm_mode_parse_command_line_for_connector(cmdline, in drm_test_pick_cmdline_res_1920_1080_60()
115 const char *cmdline; member
121 .cmdline = _cmdline, \
133 const char *cmdline = params->cmdline; in drm_test_pick_cmdline_named() local
137 drm_mode_parse_command_line_for_connector(cmdline, in drm_test_pick_cmdline_named()
167 sprintf(desc, "%s", t->cmdline); in drm_connector_pick_cmdline_mode_desc()
Ddrm_probe_helper_test.c69 bool cmdline; member
80 .cmdline = _cmdline, \
99 struct drm_cmdline_mode *cmdline = &connector->cmdline_mode; in drm_test_connector_helper_tv_get_modes_check() local
105 if (params->cmdline) { in drm_test_connector_helper_tv_get_modes_check()
106 cmdline->tv_mode_specified = true; in drm_test_connector_helper_tv_get_modes_check()
107 cmdline->tv_mode = params->cmdline_mode; in drm_test_connector_helper_tv_get_modes_check()
/linux-6.6.21/arch/riscv/kernel/pi/
Dcmdline_early.c47 static u64 match_noXlvl(char *cmdline) in match_noXlvl() argument
49 if (strstr(cmdline, "no4lvl")) in match_noXlvl()
51 else if (strstr(cmdline, "no5lvl")) in match_noXlvl()
59 char *cmdline = get_early_cmdline(dtb_pa); in set_satp_mode_from_cmdline() local
61 return match_noXlvl(cmdline); in set_satp_mode_from_cmdline()
64 static bool match_nokaslr(char *cmdline) in match_nokaslr() argument
66 return strstr(cmdline, "nokaslr"); in match_nokaslr()
71 char *cmdline = get_early_cmdline(dtb_pa); in set_nokaslr_from_cmdline() local
73 return match_nokaslr(cmdline); in set_nokaslr_from_cmdline()
/linux-6.6.21/arch/x86/lib/
Dcmdline.c30 __cmdline_find_option_bool(const char *cmdline, int max_cmdline_size, in __cmdline_find_option_bool() argument
42 if (!cmdline) in __cmdline_find_option_bool()
50 c = *(char *)cmdline++; in __cmdline_find_option_bool()
123 __cmdline_find_option(const char *cmdline, int max_cmdline_size, in __cmdline_find_option() argument
137 if (!cmdline) in __cmdline_find_option()
145 c = *(char *)cmdline++; in __cmdline_find_option()
206 int cmdline_find_option_bool(const char *cmdline, const char *option) in cmdline_find_option_bool() argument
208 return __cmdline_find_option_bool(cmdline, COMMAND_LINE_SIZE, option); in cmdline_find_option_bool()
211 int cmdline_find_option(const char *cmdline, const char *option, char *buffer, in cmdline_find_option() argument
214 return __cmdline_find_option(cmdline, COMMAND_LINE_SIZE, option, in cmdline_find_option()
/linux-6.6.21/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.c95 static int find_file_option(const efi_char16_t *cmdline, int cmdline_len, in find_file_option() argument
104 if (!memcmp(&cmdline[i - prefix_len], prefix, prefix_size)) { in find_file_option()
114 while (i < cmdline_len && (cmdline[i] == L'/' || cmdline[i] == L'\\')) in find_file_option()
118 efi_char16_t c = cmdline[i++]; in find_file_option()
192 const efi_char16_t *cmdline = efi_table_attr(image, load_options); 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()
224 cmdline += offset; in handle_cmdline_files()
Defi-stub.c117 char *cmdline; in efi_handle_cmdline() local
124 cmdline = efi_convert_cmdline(image, &cmdline_size); in efi_handle_cmdline()
125 if (!cmdline) { in efi_handle_cmdline()
141 status = efi_parse_options(cmdline); in efi_handle_cmdline()
148 *cmdline_ptr = cmdline; in efi_handle_cmdline()
/linux-6.6.21/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
/linux-6.6.21/arch/arm64/kernel/
Didreg-override.c197 static int __init find_field(const char *cmdline, in find_field() argument
206 if (!parameqn(cmdline, opt, len)) in find_field()
209 return kstrtou64(cmdline + len, 0, v); in find_field()
212 static void __init match_options(const char *cmdline) in match_options() argument
228 if (find_field(cmdline, regs[i], f, &v)) in match_options()
252 static __init void __parse_cmdline(const char *cmdline, bool parse_aliases) in __parse_cmdline() argument
259 cmdline = skip_spaces(cmdline); in __parse_cmdline()
261 for (len = 0; cmdline[len] && !isspace(cmdline[len]); len++); in __parse_cmdline()
266 memcpy(buf, cmdline, len); in __parse_cmdline()
272 cmdline += len; in __parse_cmdline()
/linux-6.6.21/arch/xtensa/platforms/iss/
Dsetup.c63 static char cmdline[COMMAND_LINE_SIZE] __initdata; in platform_setup() local
74 cmdline[0] = 0; in platform_setup()
79 strcat(cmdline, " "); in platform_setup()
80 strcat(cmdline, argv[i]); in platform_setup()
82 *p_cmdline = cmdline; in platform_setup()
/linux-6.6.21/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.c31 static char cmdline[BOOT_COMMAND_LINE_SIZE] variable
36 if (cmdline[0] == '\0') in prep_cmdline()
37 getprop(chosen, "bootargs", cmdline, BOOT_COMMAND_LINE_SIZE-1); in prep_cmdline()
39 setprop_str(chosen, "bootargs", cmdline); in prep_cmdline()
41 printf("cmdline: '%s'\n", cmdline); in prep_cmdline()
/linux-6.6.21/arch/arm/boot/compressed/
Datags_to_fdt.c75 char cmdline[COMMAND_LINE_SIZE]; in merge_fdt_bootargs() local
77 char *ptr = cmdline; in merge_fdt_bootargs()
93 if (ptr - cmdline + len + 2 < COMMAND_LINE_SIZE) { in merge_fdt_bootargs()
101 setprop_string(fdt, "/chosen", "bootargs", cmdline); in merge_fdt_bootargs()
168 atag->u.cmdline.cmdline); in atags_to_fdt()
171 atag->u.cmdline.cmdline); in atags_to_fdt()
/linux-6.6.21/kernel/
Dcrash_core.c50 static int __init parse_crashkernel_mem(char *cmdline, in parse_crashkernel_mem() argument
55 char *cur = cmdline, *tmp; in parse_crashkernel_mem()
145 static int __init parse_crashkernel_simple(char *cmdline, in parse_crashkernel_simple() argument
149 char *cur = cmdline; in parse_crashkernel_simple()
151 *crash_size = memparse(cmdline, &cur); in parse_crashkernel_simple()
152 if (cmdline == cur) { in parse_crashkernel_simple()
183 static int __init parse_crashkernel_suffix(char *cmdline, in parse_crashkernel_suffix() argument
187 char *cur = cmdline; in parse_crashkernel_suffix()
189 *crash_size = memparse(cmdline, &cur); in parse_crashkernel_suffix()
190 if (cmdline == cur) { in parse_crashkernel_suffix()
[all …]
/linux-6.6.21/arch/loongarch/kernel/
Denv.c23 char *cmdline = early_memremap_ro(fw_arg1, COMMAND_LINE_SIZE); in init_environ() local
30 strscpy(boot_command_line, cmdline, COMMAND_LINE_SIZE); in init_environ()
31 strscpy(init_command_line, cmdline, COMMAND_LINE_SIZE); in init_environ()
32 early_memunmap(cmdline, COMMAND_LINE_SIZE); in init_environ()
/linux-6.6.21/arch/arm64/kernel/pi/
Dkaslr_early.c35 static bool cmdline_contains_nokaslr(const u8 *cmdline) in cmdline_contains_nokaslr() argument
39 str = __strstr(cmdline, "nokaslr"); in cmdline_contains_nokaslr()
40 return str == cmdline || (str > cmdline && *(str - 1) == ' '); in cmdline_contains_nokaslr()
/linux-6.6.21/arch/powerpc/kexec/
Delf_64.c29 unsigned long initrd_len, char *cmdline, in elf64_load() argument
81 modified_cmdline = setup_kdump_cmdline(image, cmdline, in elf64_load()
88 cmdline = modified_cmdline; in elf64_load()
106 initrd_len, cmdline, in elf64_load()
115 initrd_len, cmdline); in elf64_load()
/linux-6.6.21/tools/testing/selftests/wireguard/qemu/
Dinit.c163 char cmdline[4096], *success_dev; in launch_tests() local
182 if (read(fd, cmdline, sizeof(cmdline) - 1) <= 0) in launch_tests()
184 cmdline[sizeof(cmdline) - 1] = '\0'; in launch_tests()
185 for (success_dev = strtok(cmdline, " \n"); success_dev; success_dev = strtok(NULL, " \n")) { in launch_tests()
/linux-6.6.21/arch/parisc/kernel/
Dkexec_file.c18 unsigned long initrd_len, char *cmdline, in elf_load() argument
59 if (cmdline != NULL) { in elf_load()
60 kbuf.buffer = cmdline; in elf_load()
72 image->arch.cmdline = kbuf.mem; in elf_load()
/linux-6.6.21/block/partitions/
Dcmdline.c192 const char *cmdline) in cmdline_parts_parse() argument
202 next = pbuf = buf = kstrdup(cmdline, GFP_KERNEL); in cmdline_parts_parse()
247 static char *cmdline; variable
308 cmdline = s; in cmdline_parts_setup()
381 if (cmdline) { in cmdline_partition()
385 if (cmdline_parts_parse(&bdev_parts, cmdline)) { in cmdline_partition()
386 cmdline = NULL; in cmdline_partition()
389 cmdline = NULL; in cmdline_partition()
/linux-6.6.21/tools/power/pm-graph/
Dbootgraph.py92 cmdline = 'initcall_debug log_buf_len=32M'
98 cmdline += ' trace_buf_size=%dK trace_clock=global '\
106 return cmdline
145 cmdline = '%s -cronjob' % os.path.abspath(sys.argv[0])
154 cmdline += ' %s "%s"' % (arg, os.path.abspath(next(args)))
158 cmdline += ' %s "%s"' % (arg, os.path.abspath(file))
160 cmdline += ' '+arg
162 cmdline += ' -func "%s"' % self.graph_filter
163 cmdline += ' -o "%s"' % os.path.abspath(self.testdir)
164 return cmdline
[all …]
/linux-6.6.21/Documentation/translations/zh_CN/arch/loongarch/
Dbooting.rst21 LoongArch支持ACPI和FDT启动,需要传递给内核的信息包括memmap、initrd、cmdline、可
29 - a1 = cmdline: `cmdline` 是一个指向内核命令行的指针。
/linux-6.6.21/fs/nfs/
Dnfsroot.c224 static int __init root_nfs_data(char *cmdline) in root_nfs_data() argument
243 if (cmdline[0] != '\0') { in root_nfs_data()
244 dprintk("Root-NFS: nfsroot=%s\n", cmdline); in root_nfs_data()
245 if (root_nfs_parse_options(cmdline, tmp, tmplen)) in root_nfs_data()
/linux-6.6.21/security/loadpin/
Dloadpin.c28 char *cmdline, *pathname; in report_load() local
31 cmdline = kstrdup_quotable_cmdline(current, GFP_KERNEL); in report_load()
39 cmdline ? "\"" : "", cmdline, cmdline ? "\"" : ""); in report_load()
41 kfree(cmdline); in report_load()

123456