Home
last modified time | relevance | path

Searched refs:argc (Results 1 – 25 of 495) sorted by relevance

12345678910>>...20

/u-boot/cmd/
A Dabootimg.c24 if (argc > 1) in abootimg_get_ver()
34 if (argc == 0) in abootimg_get_ver()
49 if (argc > 2) in abootimg_get_recovery_dtbo()
59 if (argc == 2) in abootimg_get_recovery_dtbo()
71 if (argc > 1) in abootimg_get_dtb_load_addr()
87 if (argc == 0) in abootimg_get_dtb_load_addr()
105 if (argc < 1 || argc > 3) in abootimg_get_dtb_by_index()
146 if (argc < 1) in abootimg_get_dtb()
179 if (argc < 2) in do_abootimg_get()
183 argc -= 2; in do_abootimg_get()
[all …]
A Dpart.c37 if (argc < 2) in do_part_uuid()
39 if (argc > 3) in do_part_uuid()
46 if (argc > 2) in do_part_uuid()
62 if (argc < 2) in do_part_list()
65 if (argc > 2) { in do_part_list()
66 for (i = 2; i < argc ; i++) { in do_part_list()
82 if (argc != i + 1) in do_part_list()
127 if (argc < 3) in do_part_info()
129 if (argc > 4) in do_part_info()
162 if (argc > 3) in do_part_info()
[all …]
A Dyaffs2.c48 if (argc > 1) in do_ytrace()
72 if (argc != 5) { in do_ydevconfig()
92 if (argc != 2) { in do_ymount()
109 if (argc != 2) { in do_yumount()
125 if (argc < 2 || argc > 3 || (argc == 3 && strcmp(argv[1], "-l"))) { in do_yls()
141 if (argc != 2) { in do_yrd()
162 if (argc != 4) { in do_ywr()
185 if (argc != 3) { in do_yrdm()
204 if (argc != 4) { in do_ywrm()
222 if (argc != 2) { in do_ymkdir()
[all …]
A Dfs.c12 static int do_size_wrapper(struct cmd_tbl *cmdtp, int flag, int argc, in do_size_wrapper() argument
15 return do_size(cmdtp, flag, argc, argv, FS_TYPE_ANY); in do_size_wrapper()
26 static int do_load_wrapper(struct cmd_tbl *cmdtp, int flag, int argc, in do_load_wrapper() argument
29 return do_load(cmdtp, flag, argc, argv, FS_TYPE_ANY); in do_load_wrapper()
47 return do_save(cmdtp, flag, argc, argv, FS_TYPE_ANY); in do_save_wrapper()
61 static int do_ls_wrapper(struct cmd_tbl *cmdtp, int flag, int argc, in do_ls_wrapper() argument
64 return do_ls(cmdtp, flag, argc, argv, FS_TYPE_ANY); in do_ls_wrapper()
75 static int do_ln_wrapper(struct cmd_tbl *cmdtp, int flag, int argc, in do_ln_wrapper() argument
78 return do_ln(cmdtp, flag, argc, argv, FS_TYPE_ANY); in do_ln_wrapper()
92 return do_fs_type(cmdtp, flag, argc, argv); in do_fstype_wrapper()
[all …]
A Dhost.c20 return do_load(cmdtp, flag, argc, argv, FS_TYPE_SANDBOX); in do_host_load()
26 return do_ls(cmdtp, flag, argc, argv, FS_TYPE_SANDBOX); in do_host_ls()
32 return do_size(cmdtp, flag, argc, argv, FS_TYPE_SANDBOX); in do_host_size()
44 if (argc < 2 || argc > 3) in do_host_bind()
48 char *file = argc >= 3 ? argv[2] : NULL; in do_host_bind()
60 if (argc < 1 || argc > 2) in do_host_info()
64 if (argc >= 2) { in do_host_info()
112 if (argc < 1 || argc > 3) in do_host_dev()
115 if (argc == 1) { in do_host_dev()
160 argc--; in do_host()
[all …]
A Dfat.c20 return do_size(cmdtp, flag, argc, argv, FS_TYPE_FAT); in do_fat_size()
33 return do_load(cmdtp, flag, argc, argv, FS_TYPE_FAT); in do_fat_fsload()
52 static int do_fat_ls(struct cmd_tbl *cmdtp, int flag, int argc, in do_fat_ls() argument
55 return do_ls(cmdtp, flag, argc, argv, FS_TYPE_FAT); in do_fat_ls()
65 static int do_fat_fsinfo(struct cmd_tbl *cmdtp, int flag, int argc, in do_fat_fsinfo() argument
72 if (argc < 2) { in do_fat_fsinfo()
101 return do_save(cmdtp, flag, argc, argv, FS_TYPE_FAT); in do_fat_fswrite()
112 static int do_fat_rm(struct cmd_tbl *cmdtp, int flag, int argc, in do_fat_rm() argument
115 return do_rm(cmdtp, flag, argc, argv, FS_TYPE_FAT); in do_fat_rm()
125 static int do_fat_mkdir(struct cmd_tbl *cmdtp, int flag, int argc, in do_fat_mkdir() argument
[all …]
A Dadtimg.c27 if (argc != 2) in do_adtimg_addr()
63 if (argc != 1) in do_adtimg_dump()
111 if (argc > 3) { in adtimg_getopt_index()
120 if (argc > 1) in adtimg_getopt_index()
122 if (argc > 2) in adtimg_getopt_index()
169 if (argc < 2) { in adtimg_get_dt()
175 argc--; in adtimg_get_dt()
188 if (argc < 2) { in do_adtimg_get()
197 argc--; in do_adtimg_get()
221 argc--; in do_adtimg()
[all …]
A Ddm.c19 static int do_dm_dump_all(struct cmd_tbl *cmdtp, int flag, int argc, in do_dm_dump_all() argument
27 static int do_dm_dump_uclass(struct cmd_tbl *cmdtp, int flag, int argc, in do_dm_dump_uclass() argument
35 static int do_dm_dump_devres(struct cmd_tbl *cmdtp, int flag, int argc, in do_dm_dump_devres() argument
43 static int do_dm_dump_drivers(struct cmd_tbl *cmdtp, int flag, int argc, in do_dm_dump_drivers() argument
51 static int do_dm_dump_driver_compat(struct cmd_tbl *cmdtp, int flag, int argc, in do_dm_dump_driver_compat() argument
59 static int do_dm_dump_static_driver_info(struct cmd_tbl *cmdtp, int flag, int argc, in do_dm_dump_static_driver_info() argument
86 static int do_dm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) in do_dm() argument
95 if (argc < 2) in do_dm()
99 argc -= 2; in do_dm()
101 if (!test_cmd || argc > test_cmd->maxargs) in do_dm()
[all …]
A Dfastboot.c19 static int do_fastboot_udp(int argc, char *const argv[], in do_fastboot_udp() argument
37 static int do_fastboot_usb(int argc, char *const argv[], in do_fastboot_usb() argument
46 if (argc < 2) in do_fastboot_usb()
103 if (argc < 2) in do_fastboot()
106 while (argc > 1 && **(argv + 1) == '-') { in do_fastboot()
109 --argc; in do_fastboot()
113 if (--argc <= 0) in do_fastboot()
119 if (--argc <= 0) in do_fastboot()
133 if (argc == 1) { in do_fastboot()
145 argc--; in do_fastboot()
[all …]
A Ddemo.c18 static int do_demo_hello(struct cmd_tbl *cmdtp, int flag, int argc, in do_demo_hello() argument
23 if (argc) in do_demo_hello()
50 if (argc) { in do_demo_light()
90 static int do_demo(struct cmd_tbl *cmdtp, int flag, int argc, in do_demo() argument
97 if (argc < 2) in do_demo()
101 argc -= 2; in do_demo()
104 if ((!demo_cmd || argc > demo_cmd->maxargs) || in do_demo()
105 ((demo_cmd->name[0] != 'l') && (argc < 1))) in do_demo()
108 if (argc) { in do_demo()
113 argc--; in do_demo()
[all …]
A Dspl.c65 switch (argc) { in call_bootm()
82 debug("args %d: %s %s ", argc, bootm_argv[0], bootm_argv[1]); in call_bootm()
83 for (j = 0; j < argc; j++) in call_bootm()
87 ret = do_bootm(find_cmd("do_bootm"), 0, argc+2, in call_bootm()
106 static int spl_export(struct cmd_tbl *cmdtp, int flag, int argc, in spl_export() argument
111 if (argc < 2) /* no subcommand */ in spl_export()
117 argc -= 2; in spl_export()
119 if (call_bootm(argc, argv, subcmd_list[(long)c->cmd])) in spl_export()
157 if (argc < 2) /* no subcommand */ in do_spl()
165 argc--; in do_spl()
[all …]
A Dext4.c44 int do_ext4_size(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) in do_ext4_size() argument
46 return do_size(cmdtp, flag, argc, argv, FS_TYPE_EXT); in do_ext4_size()
49 int do_ext4_load(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) in do_ext4_load() argument
51 return do_load(cmdtp, flag, argc, argv, FS_TYPE_EXT); in do_ext4_load()
54 int do_ext4_ls(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) in do_ext4_ls() argument
56 return do_ls(cmdtp, flag, argc, argv, FS_TYPE_EXT); in do_ext4_ls()
60 int do_ext4_write(struct cmd_tbl *cmdtp, int flag, int argc, in do_ext4_write() argument
63 return do_save(cmdtp, flag, argc, argv, FS_TYPE_EXT); in do_ext4_write()
A Dfpga.c80 if (argc < 5) { in do_fpga_loads()
85 if (argc == 6) in do_fpga_loads()
96 argc++; in do_fpga_loads()
114 cmdtp, argc, argv); in do_fpga_loads()
132 cmdtp, argc, argv); in do_fpga_loadfs()
162 cmdtp, argc, argv); in do_fpga_dump()
177 cmdtp, argc, argv); in do_fpga_load()
192 cmdtp, argc, argv); in do_fpga_loadb()
259 if (argc == 2) { in do_fpga_loadmk()
396 if (argc < 2) in do_fpga_wrapper()
[all …]
A Dfuse.c46 const char *op = argc >= 2 ? argv[1] : NULL; in do_fuse()
51 argc -= 2 + confirmed; in do_fuse()
54 if (argc < 2 || strtou32(argv[0], 0, &bank) || in do_fuse()
59 if (argc == 2) in do_fuse()
61 else if (argc != 3 || strtou32(argv[2], 0, &cnt)) in do_fuse()
77 if (argc == 2) in do_fuse()
79 else if (argc != 3 || strtou32(argv[2], 0, &cnt)) in do_fuse()
95 if (argc < 3) in do_fuse()
98 for (i = 2; i < argc; i++, word++) { in do_fuse()
111 if (argc < 3) in do_fuse()
[all …]
A Dnvedit.c140 argc--; in do_env_print()
175 if (argc < 2) in do_env_grep()
245 --argc; in _do_env_set()
390 if (argc < 2) in do_env_set()
417 if (argc == 1) in do_env_ask()
431 --argc; in do_env_ask()
635 if (argc < 2) in do_env_edit()
883 --argc; in do_env_delete()
1001 if (argc < 1) in do_env_export()
1010 argc--; in do_env_export()
[all …]
A Drtc.c13 static int do_rtc_read(struct udevice *dev, int argc, char * const argv[]) in do_rtc_read() argument
18 if (argc < 2 || argc > 3) in do_rtc_read()
24 if (argc == 3) { in do_rtc_read()
59 if (argc < 2 || argc > 3) in do_rtc_write()
64 if (argc == 3) { in do_rtc_write()
111 if (argc < 2) in do_rtc()
114 argc--; in do_rtc()
132 if (!strcmp(argv[0], "dev") && argc >= 2) in do_rtc()
143 if (argc >= 2) in do_rtc()
150 return do_rtc_read(dev, argc - 1, argv + 1); in do_rtc()
[all …]
A Dtpm-v2.c26 if (argc != 2) in do_tpm2_startup()
51 if (argc != 2) in do_tpm2_self_test()
79 if (argc < 2 || argc > 3) in do_tpm2_clear()
105 if (argc != 3) in do_tpm2_pcr_extend()
137 if (argc != 3) in do_tpm_pcr_read()
179 if (argc != 5) in do_tpm_get_capability()
220 if (argc > 2) in do_tpm_dam_reset()
248 if (argc < 4 || argc > 5) in do_tpm_dam_parameters()
288 if (argc < 3 || argc > 4) in do_tpm_change_auth()
326 if (argc < 3 || argc > 4) in do_tpm_pcr_setauthpolicy()
[all …]
A Davb.c22 if (argc != 2) in do_avb_init()
52 if (argc != 5) in do_avb_read_part()
85 if (argc != 4) in do_avb_read_part_hex()
131 if (argc != 5) in do_avb_write_part()
161 if (argc != 2) in do_avb_read_rb()
188 if (argc != 3) in do_avb_write_rb()
214 if (argc != 2) in do_avb_get_uuid()
249 if (argc < 1 || argc > 2) in do_avb_verify_part()
252 if (argc == 2) in do_avb_verify_part()
365 if (argc != 3) in do_avb_read_pvalue()
[all …]
A Dbootstage.c10 static int do_bootstage_report(struct cmd_tbl *cmdtp, int flag, int argc, in do_bootstage_report() argument
18 static int get_base_size(int argc, char *const argv[], ulong *basep, in get_base_size() argument
25 if (argc < 2) in get_base_size()
30 if (argc == 2) in get_base_size()
39 static int do_bootstage_stash(struct cmd_tbl *cmdtp, int flag, int argc, in do_bootstage_stash() argument
45 if (get_base_size(argc, argv, &base, &size)) in do_bootstage_stash()
71 static int do_boostage(struct cmd_tbl *cmdtp, int flag, int argc, in do_boostage() argument
77 argc--; in do_boostage()
84 return c->cmd(cmdtp, flag, argc, argv); in do_boostage()
A Dsmccc.c13 static int do_call(struct cmd_tbl *cmdtp, int flag, int argc, in do_call() argument
28 if (argc < 2) in do_call()
33 a1 = argc > 2 ? simple_strtoul(argv[2], NULL, 16) : 0; in do_call()
34 a2 = argc > 3 ? simple_strtoul(argv[3], NULL, 16) : 0; in do_call()
35 a3 = argc > 4 ? simple_strtoul(argv[4], NULL, 16) : 0; in do_call()
36 a4 = argc > 5 ? simple_strtoul(argv[5], NULL, 16) : 0; in do_call()
37 a5 = argc > 6 ? simple_strtoul(argv[6], NULL, 16) : 0; in do_call()
38 a6 = argc > 7 ? simple_strtoul(argv[7], NULL, 16) : 0; in do_call()
39 a7 = argc > 8 ? simple_strtoul(argv[8], NULL, 16) : 0; in do_call()
/u-boot/include/test/
A Dsuites.h27 int argc, char *const argv[]);
29 int do_ut_addrmap(struct cmd_tbl *cmdtp, int flag, int argc,
32 int do_ut_bloblist(struct cmd_tbl *cmdtp, int flag, int argc,
34 int do_ut_compression(struct cmd_tbl *cmdtp, int flag, int argc,
36 int do_ut_dm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
37 int do_ut_env(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
38 int do_ut_lib(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
40 int do_ut_mem(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
42 int do_ut_overlay(struct cmd_tbl *cmdtp, int flag, int argc,
44 int do_ut_setexpr(struct cmd_tbl *cmdtp, int flag, int argc,
[all …]
/u-boot/drivers/ram/stm32mp1/
A Dstm32mp1_interactive.c163 if (argc == 1) { in stm32mp1_do_info()
172 if (argc < 3) { in stm32mp1_do_info()
235 if (argc == 2) { in stm32mp1_do_freq()
247 if (argc == 2) in stm32mp1_do_freq()
256 switch (argc) { in stm32mp1_do_param()
276 switch (argc) { in stm32mp1_do_print()
294 switch (argc) { in stm32mp1_do_step()
342 if (argc == 1) { in stm32mp1_ddr_subcmd()
388 int argc; in stm32mp1_ddr_interactive() local
428 if (!argc) in stm32mp1_ddr_interactive()
[all …]
/u-boot/drivers/net/pfe_eth/
A Dpfe_cmd.c34 if (argc == 7) { in pfe_command_pe()
36 } else if (argc == 6) { in pfe_command_pe()
68 if (argc == 7) { in pfe_command_pe()
70 } else if (argc == 6) { in pfe_command_pe()
96 if (argc != 7) { in pfe_command_pe()
117 if (argc == 6) { in pfe_command_pe()
119 } else if (argc == 5) { in pfe_command_pe()
139 if (argc != 6) { in pfe_command_pe()
346 pfe_pe_status(argc, argv); in pfe_command_status()
381 if (argc == 3) { in pfe_command_expt()
[all …]
/u-boot/include/
A Dfs.h31 int do_fat_fsload(struct cmd_tbl *cmdtp, int flag, int argc,
43 int do_ext2load(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
233 int do_size(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
235 int do_load(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
237 int do_ls(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
241 int do_save(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
243 int do_rm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
245 int do_mkdir(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
247 int do_ln(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
254 int do_fs_uuid(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[],
[all …]
A Dcommand.h41 int (*cmd_rep)(struct cmd_tbl *cmd, int flags, int argc,
44 int (*cmd)(struct cmd_tbl *cmd, int flags, int argc,
52 int (*complete)(int argc, char *const argv[],
58 int do_run(struct cmd_tbl *cmdtp, int flag, int argc,
64 int flag, int argc, char *const argv[]);
148 int do_bootd(struct cmd_tbl *cmdtp, int flag, int argc,
312 int argc, char *const argv[], \
320 if (argc < 2 || argc > CONFIG_SYS_MAXARGS) \
325 if (!subcmd || argc - 1 > subcmd->maxargs) \
332 return subcmd->cmd_rep(subcmd, flag, argc - 1, \
[all …]

Completed in 35 milliseconds

12345678910>>...20