Home
last modified time | relevance | path

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

12345678910>>...77

/openbmc/linux/tools/perf/
H A Dbuiltin.h8 int cmd_annotate(int argc, const char **argv);
9 int cmd_bench(int argc, const char **argv);
10 int cmd_buildid_cache(int argc, const char **argv);
11 int cmd_buildid_list(int argc, const char **argv);
12 int cmd_config(int argc, const char **argv);
13 int cmd_c2c(int argc, const char **argv);
14 int cmd_diff(int argc, const char **argv);
15 int cmd_evlist(int argc, const char **argv);
16 int cmd_help(int argc, const char **argv);
17 int cmd_sched(int argc, const char **argv);
[all …]
/openbmc/linux/tools/perf/bench/
H A Dbench.h21 int bench_numa(int argc, const char **argv);
22 int bench_sched_messaging(int argc, const char **argv);
23 int bench_sched_pipe(int argc, const char **argv);
24 int bench_sched_seccomp_notify(int argc, const char **argv);
25 int bench_syscall_basic(int argc, const char **argv);
26 int bench_syscall_getpgid(int argc, const char **argv);
27 int bench_syscall_fork(int argc, const char **argv);
28 int bench_syscall_execve(int argc, const char **argv);
29 int bench_mem_memcpy(int argc, const char **argv);
30 int bench_mem_memset(int argc, const char **argv);
[all …]
/openbmc/u-boot/cmd/
H A Dyaffs2.c46 int do_ytrace(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) in do_ytrace() argument
48 if (argc > 1) in do_ytrace()
57 int do_ydevls(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) in do_ydevls() argument
65 int do_ydevconfig(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) in do_ydevconfig() argument
72 if (argc != 5) { in do_ydevconfig()
88 int do_ymount(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) in do_ymount() argument
92 if (argc != 2) { in do_ymount()
105 int do_yumount(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) in do_yumount() argument
109 if (argc != 2) { in do_yumount()
121 int do_yls(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) in do_yls() argument
[all …]
H A Dpart.c29 static int do_part_uuid(int argc, char * const argv[]) in do_part_uuid() argument
35 if (argc < 2) in do_part_uuid()
37 if (argc > 3) in do_part_uuid()
44 if (argc > 2) in do_part_uuid()
52 static int do_part_list(int argc, char * const argv[]) in do_part_list() argument
60 if (argc < 2) in do_part_list()
63 if (argc > 2) { in do_part_list()
64 for (i = 2; i < argc ; i++) { in do_part_list()
80 if (argc != i + 1) in do_part_list()
115 static int do_part_info(int argc, char * const argv[], enum cmd_part_info param) in do_part_info() argument
[all …]
H A Dhost.c15 static int do_host_load(cmd_tbl_t *cmdtp, int flag, int argc, in do_host_load() argument
18 return do_load(cmdtp, flag, argc, argv, FS_TYPE_SANDBOX); in do_host_load()
21 static int do_host_ls(cmd_tbl_t *cmdtp, int flag, int argc, in do_host_ls() argument
24 return do_ls(cmdtp, flag, argc, argv, FS_TYPE_SANDBOX); in do_host_ls()
27 static int do_host_size(cmd_tbl_t *cmdtp, int flag, int argc, in do_host_size() argument
30 return do_size(cmdtp, flag, argc, argv, FS_TYPE_SANDBOX); in do_host_size()
33 static int do_host_save(cmd_tbl_t *cmdtp, int flag, int argc, in do_host_save() argument
36 return do_save(cmdtp, flag, argc, argv, FS_TYPE_SANDBOX); in do_host_save()
39 static int do_host_bind(cmd_tbl_t *cmdtp, int flag, int argc, in do_host_bind() argument
42 if (argc < 2 || argc > 3) in do_host_bind()
[all …]
H A Dnvedit.c115 static int do_env_print(cmd_tbl_t *cmdtp, int flag, int argc, in do_env_print() argument
123 if (argc > 1 && argv[1][0] == '-' && argv[1][1] == 'e') in do_env_print()
124 return do_env_print_efi(cmdtp, flag, --argc, ++argv); in do_env_print()
127 if (argc > 1 && argv[1][0] == '-' && argv[1][1] == 'a') { in do_env_print()
128 argc--; in do_env_print()
133 if (argc == 1) { in do_env_print()
145 for (i = 1; i < argc; ++i) { in do_env_print()
158 int argc, char * const argv[]) in do_env_grep() argument
163 if (argc < 2) in do_env_grep()
169 while (--argc > 0 && **++argv == '-') { in do_env_grep()
[all …]
H A Dfpga.c34 cmd_tbl_t *cmdtp, int argc, char *const argv[]) in do_fpga_check_params() argument
39 debug("%s %d, %d\n", __func__, argc, cmdtp->maxargs); in do_fpga_check_params()
41 if (argc != cmdtp->maxargs) { in do_fpga_check_params()
66 int do_fpga_loads(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) in do_fpga_loads() argument
75 if (argc < 5) { in do_fpga_loads()
80 if (argc == 6) in do_fpga_loads()
91 argc++; in do_fpga_loads()
109 cmdtp, argc, argv); in do_fpga_loads()
118 static int do_fpga_loadfs(cmd_tbl_t *cmdtp, int flag, int argc, in do_fpga_loadfs() argument
127 cmdtp, argc, argv); in do_fpga_loadfs()
[all …]
H A Dtpm-v2.c16 static int do_tpm2_startup(cmd_tbl_t *cmdtp, int flag, int argc, in do_tpm2_startup() argument
26 if (argc != 2) in do_tpm2_startup()
41 static int do_tpm2_self_test(cmd_tbl_t *cmdtp, int flag, int argc, in do_tpm2_self_test() argument
51 if (argc != 2) in do_tpm2_self_test()
66 static int do_tpm2_clear(cmd_tbl_t *cmdtp, int flag, int argc, in do_tpm2_clear() argument
70 const char *pw = (argc < 3) ? NULL : argv[2]; in do_tpm2_clear()
79 if (argc < 2 || argc > 3) in do_tpm2_clear()
95 static int do_tpm2_pcr_extend(cmd_tbl_t *cmdtp, int flag, int argc, in do_tpm2_pcr_extend() argument
105 if (argc != 3) in do_tpm2_pcr_extend()
127 static int do_tpm_pcr_read(cmd_tbl_t *cmdtp, int flag, int argc, in do_tpm_pcr_read() argument
[all …]
H A Dfat.c21 int do_fat_size(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_fat_size() argument
23 return do_size(cmdtp, flag, argc, argv, FS_TYPE_FAT); in do_fat_size()
34 int do_fat_fsload (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_fat_fsload() argument
36 return do_load(cmdtp, flag, argc, argv, FS_TYPE_FAT); in do_fat_fsload()
55 static int do_fat_ls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_fat_ls() argument
57 return do_ls(cmdtp, flag, argc, argv, FS_TYPE_FAT); in do_fat_ls()
67 static int do_fat_fsinfo(cmd_tbl_t *cmdtp, int flag, int argc, in do_fat_fsinfo() argument
74 if (argc < 2) { in do_fat_fsinfo()
101 int argc, char * const argv[]) in do_fat_fswrite() argument
114 if (argc < 5) in do_fat_fswrite()
[all …]
H A Dfs.c13 static int do_size_wrapper(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) 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(cmd_tbl_t *cmdtp, int flag, int argc, in do_load_wrapper() argument
30 efi_set_bootdev(argv[1], (argc > 2) ? argv[2] : "", in do_load_wrapper()
31 (argc > 4) ? argv[4] : ""); in do_load_wrapper()
33 return do_load(cmdtp, flag, argc, argv, FS_TYPE_ANY); in do_load_wrapper()
48 static int do_save_wrapper(cmd_tbl_t *cmdtp, int flag, int argc, in do_save_wrapper() argument
51 return do_save(cmdtp, flag, argc, argv, FS_TYPE_ANY); in do_save_wrapper()
65 static int do_ls_wrapper(cmd_tbl_t *cmdtp, int flag, int argc, in do_ls_wrapper() argument
68 return do_ls(cmdtp, flag, argc, argv, FS_TYPE_ANY); in do_ls_wrapper()
[all …]
H A Dfsi.c21 static void do_getcfam(int argc, char *const argv[]) in do_getcfam() argument
26 if (argc != 3) { in do_getcfam()
43 static void do_putcfam(int argc, char *const argv[]) in do_putcfam() argument
48 if (argc != 4) { in do_putcfam()
62 static void do_divisor(int argc, char *const argv[]) in do_divisor() argument
67 if (argc == 2) { in do_divisor()
71 } else if (argc == 3) { in do_divisor()
83 static struct fsi_master_aspeed *do_probe(int argc, char *const argv[]) in do_probe() argument
89 if (argc > 3) { in do_probe()
94 if (argc == 2) in do_probe()
[all …]
H A Dnet.c17 static int do_bootp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_bootp() argument
19 return netboot_common(BOOTP, cmdtp, argc, argv); in do_bootp()
30 int do_tftpb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_tftpb() argument
35 ret = netboot_common(TFTPGET, cmdtp, argc, argv); in do_tftpb()
48 static int do_tftpput(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_tftpput() argument
50 return netboot_common(TFTPPUT, cmdtp, argc, argv); in do_tftpput()
61 static int do_tftpsrv(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) in do_tftpsrv() argument
63 return netboot_common(TFTPSRV, cmdtp, argc, argv); in do_tftpsrv()
78 int do_rarpb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_rarpb() argument
80 return netboot_common(RARP, cmdtp, argc, argv); in do_rarpb()
[all …]
H A Dmmc.c119 static int do_mmcinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_mmcinfo() argument
153 int argc, char * const argv[]) in do_mmcrpmb_key() argument
158 if (argc != 2) in do_mmcrpmb_key()
171 int argc, char * const argv[]) in do_mmcrpmb_read() argument
179 if (argc < 4) in do_mmcrpmb_read()
186 if (argc == 5) in do_mmcrpmb_read()
199 int argc, char * const argv[]) in do_mmcrpmb_write() argument
207 if (argc != 5) in do_mmcrpmb_write()
225 int argc, char * const argv[]) in do_mmcrpmb_counter() argument
244 int argc, char * const argv[]) in do_mmcrpmb() argument
[all …]
H A Ddemo.c16 static int do_demo_hello(cmd_tbl_t *cmdtp, int flag, int argc, in do_demo_hello() argument
21 if (argc) in do_demo_hello()
27 static int do_demo_status(cmd_tbl_t *cmdtp, int flag, int argc, in do_demo_status() argument
42 static int do_demo_light(cmd_tbl_t *cmdtp, int flag, int argc, in do_demo_light() argument
48 if (argc) { in do_demo_light()
62 int do_demo_list(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_demo_list() argument
88 static int do_demo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_demo() argument
94 if (argc < 2) in do_demo()
98 argc -= 2; in do_demo()
101 if ((!demo_cmd || argc > demo_cmd->maxargs) || in do_demo()
[all …]
H A Dfastboot.c18 static int do_fastboot_udp(int argc, char *const argv[], in do_fastboot_udp() argument
36 static int do_fastboot_usb(int argc, char *const argv[], in do_fastboot_usb() argument
45 if (argc < 2) in do_fastboot_usb()
96 static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) in do_fastboot() argument
101 if (argc < 2) in do_fastboot()
104 while (argc > 1 && **(argv + 1) == '-') { in do_fastboot()
107 --argc; in do_fastboot()
111 if (--argc <= 0) in do_fastboot()
117 if (--argc <= 0) in do_fastboot()
131 if (argc == 1) { in do_fastboot()
[all …]
H A Davb.c22 int do_avb_init(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_avb_init() argument
26 if (argc != 2) in do_avb_init()
43 int do_avb_read_part(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_avb_read_part() argument
55 if (argc != 5) in do_avb_read_part()
75 int do_avb_read_part_hex(cmd_tbl_t *cmdtp, int flag, int argc, in do_avb_read_part_hex() argument
88 if (argc != 4) in do_avb_read_part_hex()
121 int do_avb_write_part(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_avb_write_part() argument
133 if (argc != 5) in do_avb_write_part()
152 int do_avb_read_rb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_avb_read_rb() argument
162 if (argc != 2) in do_avb_read_rb()
[all …]
H A Dspl.c51 static int call_bootm(int argc, char * const argv[], const char *subcommand[]) in call_bootm() argument
61 switch (argc) { in call_bootm()
78 debug("args %d: %s %s ", argc, bootm_argv[0], bootm_argv[1]); in call_bootm()
79 for (j = 0; j < argc; j++) in call_bootm()
83 ret = do_bootm(find_cmd("do_bootm"), 0, argc+2, in call_bootm()
102 static int spl_export(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in spl_export() argument
106 if (argc < 2) /* no subcommand */ in spl_export()
112 argc -= 2; in spl_export()
114 if (call_bootm(argc, argv, subcmd_list[(long)c->cmd])) in spl_export()
147 static int do_spl(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) in do_spl() argument
[all …]
H A Dfuse.c43 static int do_fuse(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) in do_fuse() argument
45 const char *op = argc >= 2 ? argv[1] : NULL; in do_fuse()
46 int confirmed = argc >= 3 && !strcmp(argv[2], "-y"); in do_fuse()
50 argc -= 2 + confirmed; in do_fuse()
53 if (argc < 2 || strtou32(argv[0], 0, &bank) || in do_fuse()
58 if (argc == 2) in do_fuse()
60 else if (argc != 3 || strtou32(argv[2], 0, &cnt)) in do_fuse()
76 if (argc == 2) in do_fuse()
78 else if (argc != 3 || strtou32(argv[2], 0, &cnt)) in do_fuse()
94 if (argc < 3) in do_fuse()
[all …]
/openbmc/linux/tools/bpf/bpftool/
H A Dmain.h34 #define NEXT_ARG() ({ argc--; argv++; if (argc < 0) usage(); })
35 #define NEXT_ARGP() ({ (*argc)--; (*argv)++; if (*argc < 0) usage(); })
37 #define GET_ARG() ({ argc--; *argv++; })
43 if (argc < _cnt) { \
45 argv[-1], _cnt, argc); \
130 int (*func)(int argc, char **argv);
133 int cmd_select(const struct cmd *cmds, int argc, char **argv,
134 int (*help)(int argc, char **argv));
147 int do_pin_any(int argc, char **argv, int (*get_fd_by_id)(int *, char ***));
151 int do_gen(int argc, char **argv);
[all …]
/openbmc/u-boot/drivers/net/pfe_eth/
H A Dpfe_cmd.c19 static void pfe_command_pe(int argc, char * const argv[]) in pfe_command_pe() argument
21 if (argc >= 3 && strcmp(argv[2], "pmem") == 0) { in pfe_command_pe()
22 if (argc >= 4 && strcmp(argv[3], "read") == 0) { in pfe_command_pe()
30 if (argc == 7) { in pfe_command_pe()
32 } else if (argc == 6) { in pfe_command_pe()
55 } else if (argc >= 3 && strcmp(argv[2], "dmem") == 0) { in pfe_command_pe()
56 if (argc >= 4 && strcmp(argv[3], "read") == 0) { in pfe_command_pe()
64 if (argc == 7) { in pfe_command_pe()
66 } else if (argc == 6) { in pfe_command_pe()
86 } else if (argc >= 4 && strcmp(argv[3], "write") == 0) { in pfe_command_pe()
[all …]
/openbmc/u-boot/common/
H A Dcommand.c22 int argc, char * const argv[]) in _do_help() argument
27 if (argc == 1) { /* show list of commands */ in _do_help()
71 for (i = 1; i < argc; ++i) { in _do_help()
147 int var_complete(int argc, char * const argv[], char last_char, int maxv, char *cmdv[]) in var_complete() argument
153 if (space && argc == 1) in var_complete()
157 if (!space && argc == 2) in var_complete()
165 static int dollar_complete(int argc, char * const argv[], char last_char, in dollar_complete() argument
169 if (argc < 1 || argv[argc - 1][0] != '$' || in dollar_complete()
173 return env_complete(argv[argc - 1], maxv, cmdv, sizeof(env_complete_buf), in dollar_complete()
179 int complete_subcmdv(cmd_tbl_t *cmdtp, int count, int argc, in complete_subcmdv() argument
[all …]
/openbmc/u-boot/include/
H A Dcommand.h40 int (*cmd_rep)(struct cmd_tbl_s *cmd, int flags, int argc,
50 int (*complete)(int argc, char * const argv[], char last_char, int maxv, char *cmdv[]);
58 extern int do_run(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
63 flag, int argc, char * const argv[]);
66 int complete_subcmdv(cmd_tbl_t *cmdtp, int count, int argc,
73 int cmd_always_repeatable(cmd_tbl_t *cmdtp, int flag, int argc,
75 int cmd_never_repeatable(cmd_tbl_t *cmdtp, int flag, int argc,
77 int cmd_discard_repeatable(cmd_tbl_t *cmdtp, int flag, int argc,
86 extern int var_complete(int argc, char * const argv[], char last_char, int maxv, char *cmdv[]);
118 extern int do_bootd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Duoutp.c31 nvkm_uoutp_mthd_dp_mst_vcpi(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_dp_mst_vcpi() argument
36 if (argc != sizeof(args->v0) || args->v0.version != 0) in nvkm_uoutp_mthd_dp_mst_vcpi()
47 nvkm_uoutp_mthd_dp_retrain(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_dp_retrain() argument
51 if (argc != sizeof(args->vn)) in nvkm_uoutp_mthd_dp_retrain()
61 nvkm_uoutp_mthd_dp_aux_pwr(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_dp_aux_pwr() argument
65 if (argc != sizeof(args->v0) || args->v0.version != 0) in nvkm_uoutp_mthd_dp_aux_pwr()
74 nvkm_uoutp_mthd_hda_eld(struct nvkm_outp *outp, void *argv, u32 argc) in nvkm_uoutp_mthd_hda_eld() argument
79 if (argc < sizeof(args->v0) || args->v0.version != 0) in nvkm_uoutp_mthd_hda_eld()
81 argc -= sizeof(args->v0); in nvkm_uoutp_mthd_hda_eld()
85 if (argc > 0x60) in nvkm_uoutp_mthd_hda_eld()
[all …]
/openbmc/linux/tools/power/cpupower/utils/
H A Dbuiltin.h5 extern int cmd_set(int argc, const char **argv);
6 extern int cmd_info(int argc, const char **argv);
7 extern int cmd_freq_set(int argc, const char **argv);
8 extern int cmd_freq_info(int argc, const char **argv);
9 extern int cmd_idle_set(int argc, const char **argv);
10 extern int cmd_idle_info(int argc, const char **argv);
11 extern int cmd_cap_info(int argc, const char **argv);
12 extern int cmd_cap_set(int argc, const char **argv);
13 extern int cmd_monitor(int argc, const char **argv);
/openbmc/linux/tools/lib/subcmd/
H A Dexec-cmd.c170 int argc; in prepare_exec_cmd() local
173 for (argc = 0; argv[argc]; argc++) in prepare_exec_cmd()
175 nargv = malloc(sizeof(*nargv) * (argc + 2)); in prepare_exec_cmd()
178 for (argc = 0; argv[argc]; argc++) in prepare_exec_cmd()
179 nargv[argc + 1] = argv[argc]; in prepare_exec_cmd()
180 nargv[argc + 1] = NULL; in prepare_exec_cmd()
197 int argc; in execl_cmd() local
204 argc = 1; in execl_cmd()
205 while (argc < MAX_ARGS) { in execl_cmd()
206 arg = argv[argc++] = va_arg(param, char *); in execl_cmd()
[all …]

12345678910>>...77