Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 25 of 134) sorted by relevance

123456

/hardware/ti/omap4xxx/security/smc_pa_ctrl/
Dsmc_pa_ctrl.c74 int main(int argc, char *argv[]) in main() argument
90 argv ++; in main()
95 if (argv[0][0] == '-') in main()
101 if ((strcmp(argv[0], "--help") == 0) || (strcmp(argv[0], "-h") == 0)) in main()
105 else if (strcmp(argv[0], "-c") == 0) in main()
109 argv ++; in main()
117 pConfFileName = malloc(strlen(argv[0]) + 1); in main()
124 strcpy(pConfFileName, argv[0]); in main()
128 printf("Invalid option [%s]\n\n", argv[0]); in main()
137 if (strcmp(argv[0], "start") == 0) in main()
[all …]
/hardware/ti/omap4-aah/security/smc_pa_ctrl/
Dsmc_pa_ctrl.c74 int main(int argc, char *argv[]) in main() argument
90 argv ++; in main()
95 if (argv[0][0] == '-') in main()
101 if ((strcmp(argv[0], "--help") == 0) || (strcmp(argv[0], "-h") == 0)) in main()
105 else if (strcmp(argv[0], "-c") == 0) in main()
109 argv ++; in main()
117 pConfFileName = malloc(strlen(argv[0]) + 1); in main()
124 strcpy(pConfFileName, argv[0]); in main()
128 printf("Invalid option [%s]\n\n", argv[0]); in main()
137 if (strcmp(argv[0], "start") == 0) in main()
[all …]
/hardware/broadcom/wlan/bcmdhd/dhdutil/
Ddhdu_linux.c441 main(int argc, char **argv) in main() argument
454 av0 = argv[0]; in main()
456 argv++; in main()
458 if ((status = dhd_option(&argv, &ifname, &help)) == CMD_OPT) { in main()
463 if (*argv && strncmp (*argv, "--wince", strlen(*argv)) == 0) { in main()
465 argv++; in main()
469 if (*argv && strncmp (*argv, "--socket", strlen(*argv)) == 0) { in main()
470 argv++; in main()
474 if (!(*argv)) { in main()
479 if (!dhd_atoip(*argv, &temp)) { in main()
[all …]
Ddhdu.c119 static int dhd_do_msglevel(void *dhd, cmd_t *cmd, char **argv, dbg_msg_t *dbg_msg);
368 char **argv = *pargv; in dhd_option() local
372 while (*argv) { in dhd_option()
374 if (!strcmp(*argv, "-a") || !strcmp(*argv, "-i")) { in dhd_option()
375 char *opt = *argv++; in dhd_option()
376 ifname = *argv; in dhd_option()
386 else if (!strcmp(*argv, "-d")) in dhd_option()
388 else if (!strcmp(*argv, "-u")) in dhd_option()
390 else if (!strcmp(*argv, "-x")) in dhd_option()
394 else if (!strcmp(*argv, "-h")) in dhd_option()
[all …]
Dminiopt.c57 miniopt(miniopt_t *t, char **argv) in miniopt() argument
71 if (*argv == NULL) { in miniopt()
76 p = *argv++; in miniopt()
81 if (*argv == NULL) { in miniopt()
85 p = *argv++; in miniopt()
129 if (*argv == NULL) { in miniopt()
135 valstr = *argv; in miniopt()
136 argv++; in miniopt()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/
Dargs.c28 struct arg arg_init(char **argv) { in arg_init() argument
31 a.argv = argv; in arg_init()
39 int arg_match(struct arg *arg_, const struct arg_def *def, char **argv) { in arg_match() argument
42 if (!argv[0] || argv[0][0] != '-') in arg_match()
45 arg = arg_init(argv); in arg_match()
48 && strlen(arg.argv[0]) == strlen(def->short_name) + 1 in arg_match()
49 && !strcmp(arg.argv[0] + 1, def->short_name)) { in arg_match()
51 arg.name = arg.argv[0] + 1; in arg_match()
52 arg.val = def->has_val ? arg.argv[1] : NULL; in arg_match()
57 if (strlen(arg.argv[0]) >= name_len + 2 in arg_match()
[all …]
/hardware/intel/common/libva/test/common/
Dva_display.c59 get_display_name(int argc, char *argv[]) in get_display_name() argument
65 if (strcmp(argv[i], "--display") != 0) in get_display_name()
67 argv[i] = NULL; in get_display_name()
70 display_name = argv[i]; in get_display_name()
71 argv[i] = NULL; in get_display_name()
88 sanitize_args(int *argc, char *argv[]) in sanitize_args() argument
90 char **out_args = argv; in sanitize_args()
94 if (argv[i]) in sanitize_args()
95 *out_args++ = argv[i]; in sanitize_args()
98 *argc = out_args - argv; in sanitize_args()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/examples/
Dresize_util.c41 int main(int argc, char *argv[]) { in main() argument
52 usage(argv[0]); in main()
56 fin = argv[1]; in main()
57 fout = argv[4]; in main()
58 if (!parse_dim(argv[2], &width, &height)) { in main()
59 printf("Incorrect parameters: %s\n", argv[2]); in main()
60 usage(argv[0]); in main()
63 if (!parse_dim(argv[3], &target_width, &target_height)) { in main()
64 printf("Incorrect parameters: %s\n", argv[3]); in main()
65 usage(argv[0]); in main()
[all …]
Dexample_xma.c76 int main(int argc, char **argv) { in main() argument
87 exec_name = argv[0]; in main()
90 if (!strcmp(argv[i], "--codec")) { in main()
97 if (!strcmp(ifaces[j].name, argv[i])) in main()
104 argv[i]); in main()
107 } else if (!strcmp(argv[i], "-v")) in main()
109 else if (!strcmp(argv[i], "-h")) in main()
111 h = atoi(argv[++i]); in main()
114 else if (!strcmp(argv[i], "-w")) in main()
116 w = atoi(argv[++i]); in main()
[all …]
Ddecode_with_drops.c75 int main(int argc, char **argv) { in main() argument
87 exec_name = argv[0]; in main()
92 reader = vpx_video_reader_open(argv[1]); in main()
94 die("Failed to open %s for reading.", argv[1]); in main()
96 if (!(outfile = fopen(argv[2], "wb"))) in main()
97 die("Failed to open %s for writing.", argv[2]); in main()
99 n = strtol(argv[3], &nptr, 0); in main()
103 die("Couldn't parse pattern %s.\n", argv[3]); in main()
148 info->frame_width, info->frame_height, argv[2]); in main()
Dsimple_decoder.c100 int main(int argc, char **argv) { in main() argument
108 exec_name = argv[0]; in main()
113 reader = vpx_video_reader_open(argv[1]); in main()
115 die("Failed to open %s for reading.", argv[1]); in main()
117 if (!(outfile = fopen(argv[2], "wb"))) in main()
118 die("Failed to open %s for writing.", argv[2]); in main()
151 info->frame_width, info->frame_height, argv[2]); in main()
Dvp8cx_set_ref.c95 int main(int argc, char **argv) { in main() argument
109 exec_name = argv[0]; in main()
119 update_frame_num = atoi(argv[5]); in main()
121 die("Couldn't parse frame number '%s'\n", argv[5]); in main()
124 info.frame_width = strtol(argv[1], NULL, 0); in main()
125 info.frame_height = strtol(argv[2], NULL, 0); in main()
153 writer = vpx_video_writer_open(argv[4], kContainerIVF, &info); in main()
155 die("Failed to open %s for writing.", argv[4]); in main()
157 if (!(infile = fopen(argv[3], "rb"))) in main()
158 die("Failed to open %s for reading.", argv[3]); in main()
Dpostproc.c62 int main(int argc, char **argv) { in main() argument
71 exec_name = argv[0]; in main()
76 reader = vpx_video_reader_open(argv[1]); in main()
78 die("Failed to open %s for reading.", argv[1]); in main()
80 if (!(outfile = fopen(argv[2], "wb"))) in main()
81 die("Failed to open %s for writing", argv[2]); in main()
134 info->frame_width, info->frame_height, argv[2]); in main()
Dsimple_encoder.c149 int main(int argc, char **argv) { in main() argument
172 exec_name = argv[0]; in main()
177 codec_arg = argv[1]; in main()
178 width_arg = argv[2]; in main()
179 height_arg = argv[3]; in main()
180 infile_arg = argv[4]; in main()
181 outfile_arg = argv[5]; in main()
182 keyframe_interval_arg = argv[6]; in main()
221 cfg.g_error_resilient = argc > 7 ? strtol(argv[7], NULL, 0) : 0; in main()
Ddecode_with_partial_drops.c195 int main(int argc, char **argv) { in main() argument
213 argv[0]); in main()
217 if (argc == 6 && strncmp(argv[arg_num++], "-t", 2) == 0) in main()
218 dec_cfg.threads = strtol(argv[arg_num++], NULL, 0); in main()
219 n = strtol(argv[arg_num], &nptr, 0); in main()
225 die("Couldn't parse pattern %s\n", argv[3]); in main()
231 if(!(infile = fopen(argv[1], "rb"))) in main()
232 die("Failed to open %s for reading", argv[1]); in main()
233 if(!(outfile = fopen(argv[2], "wb"))) in main()
234 die("Failed to open %s for writing", argv[2]); in main()
[all …]
/hardware/ril/rild/
Dradiooptions.c64 static int error_check(int argc, char * argv[]) { in error_check() argument
68 const int option = atoi(argv[1]); in error_check()
79 static int get_number_args(char *argv[]) { in get_number_args() argument
80 const int option = atoi(argv[1]); in get_number_args()
88 int main(int argc, char *argv[]) in main() argument
97 if(error_check(argc, argv)) { in main()
102 num_socket_args = get_number_args(argv); in main()
103 modem_socket_type = atoi(argv[(num_socket_args-1)]); in main()
104 sim_id = atoi(argv[(num_socket_args-2)]); in main()
132 int len = strlen(argv[1 + i]); in main()
[all …]
Drild.c76 static int make_argv(char * args, char ** argv) in make_argv() argument
84 argv[count] = tok; in make_argv()
119 int main(int argc, char **argv) in main() argument
136 if (0 == strcmp(argv[i], "-l") && (argc - i > 1)) { in main()
137 rilLibPath = argv[i + 1]; in main()
139 } else if (0 == strcmp(argv[i], "--")) { in main()
143 } else if (0 == strcmp(argv[i], "-c") && (argc - i > 1)) { in main()
144 clientId = argv[i+1]; in main()
147 usage(argv[0]); in main()
267 argv = arg_overrides; in main()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/tools/
Dall_builds.py33 def main(argv): argument
36 if "--" in argv:
37 opt_end_index = argv.index("--")
39 opt_end_index = len(argv)
41 o, _ = getopt.getopt(argv[1:opt_end_index], None, LONG_OPTIONS)
44 print "Usage: %s [--shard=<n> --shards=<n>] -- [configure flag ...]"%argv[0]
48 extra_args = argv[opt_end_index + 1:]
72 main(sys.argv)
/hardware/ti/omap3/omx/video/src/openmax_il/prepost_processor/tests/
DVPPTest.c438 int _tmain(int argc, TCHAR **argv) in _tmain() argument
440 int main(int argc, char* argv[]) in _tmain()
529 argv[0]); in _tmain()
533 argv[0]); in _tmain()
539 szInFile = argv[1]; in _tmain()
540 szOutFile = argv[2]; in _tmain()
542 inputwidth=_wtoi(argv[3]); in _tmain()
543 inputheight=_wtoi(argv[4]); in _tmain()
544 inputcolor=_wtoi(argv[5]); in _tmain()
545 Isoverlay = _wtoi(argv[6]); in _tmain()
[all …]
/hardware/qcom/audio/legacy/libalsa-intf/
Damix.c51 int main(int argc, char **argv) in main() argument
71 ctl = get_ctl(mixer, argv[1]); in main()
73 argv += 2; in main()
81 if (isdigit(argv[0][0])) in main()
82 r = mixer_ctl_set_value(ctl, argc, argv); in main()
84 r = mixer_ctl_select(ctl, argv[0]); in main()
/hardware/intel/img/libdrm/tests/
Ddrmstat.c92 int main(int argc, char **argv) in main() argument
112 while ((c = getopt(argc, argv, in main()
126 drmError(r, argv[0]); in main()
136 drmError(r, argv[0]); in main()
142 drmError(r, argv[0]); in main()
148 drmError(fd, argv[0]); in main()
154 drmError(fd, argv[0]); in main()
176 drmError(r, argv[0]); in main()
191 drmError(r, argv[0]); in main()
195 drmError(0, argv[0]); in main()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/
Dmain.c725 int main(int argc, char *argv[]) in main() argument
761 if(strcmp(argv[i], "-h") == 0 in main()
762 || strcmp(argv[i], "--help") == 0) { in main()
763 print_help(argv[0]); in main()
766 } else if(strcmp(argv[i], "-o") == 0 in main()
767 || strcmp(argv[i], "--output") == 0) { in main()
773 argv[i], output_filename_datetimestamp(end)); in main()
781 } else if(strcmp(argv[i], "-i") == 0 in main()
782 || strcmp(argv[i], "--input") == 0) { in main()
784 strncpy(input_filename, argv[i], sizeof(input_filename)); in main()
[all …]
/hardware/qcom/media/mm-video-legacy/vidc/venc/test/
Dvenc_test.cpp1641 void parseArgs(int argc, char** argv) in parseArgs() argument
1646 usage(argv[0]); in parseArgs()
1648 else if (strcmp("PREVIEW", argv[1]) == 0 || in parseArgs()
1649 strcmp("preview", argv[1]) == 0) in parseArgs()
1654 usage(argv[0]); in parseArgs()
1657 else if (strcmp("DISPLAY", argv[1]) == 0 || in parseArgs()
1658 strcmp("display", argv[1]) == 0) in parseArgs()
1663 usage(argv[0]); in parseArgs()
1665 m_sProfile.cInFileName = argv[5]; in parseArgs()
1668 else if (strcmp("LIVE", argv[1]) == 0 || in parseArgs()
[all …]
/hardware/qcom/media/mm-video-v4l2/vidc/venc/test/
Dvenc_test.cpp1669 void parseArgs(int argc, char** argv) in parseArgs() argument
1674 usage(argv[0]); in parseArgs()
1675 } else if (strcmp("PREVIEW", argv[1]) == 0 || in parseArgs()
1676 strcmp("preview", argv[1]) == 0) { in parseArgs()
1680 usage(argv[0]); in parseArgs()
1682 } else if (strcmp("DISPLAY", argv[1]) == 0 || in parseArgs()
1683 strcmp("display", argv[1]) == 0) { in parseArgs()
1687 usage(argv[0]); in parseArgs()
1690 m_sProfile.cInFileName = argv[5]; in parseArgs()
1692 } else if (strcmp("LIVE", argv[1]) == 0 || in parseArgs()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/nbamr_enc/tests/
DAmrEncTest.c513 int main(int argc, char* argv[]) argument
584 status = stat(argv[1], &sb);
586 APP_DPRINT("Cannot find file %s. (%u)\n", argv[1], errno);
591 fIn = fopen(argv[1], "r");
593 APP_DPRINT("Error: failed to open the input file %s\n", argv[1]);
597 fOut = fopen(argv[2], "w");
599 APP_DPRINT("Error: failed to open the output file %s\n", argv[2]);
603 if(!strcmp(argv[3],"FUNC_ID_1")) {
608 } else if(!strcmp(argv[3],"FUNC_ID_2")) {
613 } else if(!strcmp(argv[3],"FUNC_ID_3")) {
[all …]

123456