Home
last modified time | relevance | path

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

123

/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/broadcom/wlan/bcmdhd/dhdutil/
Ddhdu_linux.c408 main(int argc, char **argv) in main() argument
421 av0 = argv[0]; in main()
423 argv++; in main()
425 if ((status = dhd_option(&argv, &ifname, &help)) == CMD_OPT) { in main()
430 if (*argv && strncmp (*argv, "--wince", strlen(*argv)) == 0) { in main()
432 argv++; in main()
436 if (*argv && strncmp (*argv, "--socket", strlen(*argv)) == 0) { in main()
437 argv++; in main()
441 if (!(*argv)) { in main()
446 if (!dhd_atoip(*argv, &temp)) { in main()
[all …]
Ddhdu.c123 static int dhd_do_msglevel(void *dhd, cmd_t *cmd, char **argv, dbg_msg_t *dbg_msg);
361 char **argv = *pargv; in dhd_option() local
365 while (*argv) { in dhd_option()
367 if (!strcmp(*argv, "-a") || !strcmp(*argv, "-i")) { in dhd_option()
368 char *opt = *argv++; in dhd_option()
369 ifname = *argv; in dhd_option()
379 else if (!strcmp(*argv, "-d")) in dhd_option()
381 else if (!strcmp(*argv, "-u")) in dhd_option()
383 else if (!strcmp(*argv, "-x")) in dhd_option()
387 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/broadcom/wlan/bcm4329/dhdutil/
Ddhdu.c110 static int dhd_do_msglevel(void *dhd, cmd_t *cmd, char **argv, dbg_msg_t *dbg_msg);
344 char **argv = *pargv; in dhd_option() local
348 while (*argv) { in dhd_option()
350 if (!strcmp(*argv, "-a") || !strcmp(*argv, "-i")) { in dhd_option()
351 char *opt = *argv++; in dhd_option()
352 ifname = *argv; in dhd_option()
362 else if (!strcmp(*argv, "-d")) in dhd_option()
364 else if (!strcmp(*argv, "-u")) in dhd_option()
366 else if (!strcmp(*argv, "-x")) in dhd_option()
370 else if (!strcmp(*argv, "-h")) in dhd_option()
[all …]
Dminiopt.c55 miniopt(miniopt_t *t, char **argv) in miniopt() argument
69 if (*argv == NULL) { in miniopt()
74 p = *argv++; in miniopt()
79 if (*argv == NULL) { in miniopt()
83 p = *argv++; in miniopt()
127 if (*argv == NULL) { in miniopt()
133 valstr = *argv; in miniopt()
134 argv++; in miniopt()
Ddhdu_linux.c341 main(int argc, char **argv) in main() argument
350 av0 = dhdu_av0 = argv[0]; in main()
352 argv++; in main()
354 if ((status = dhd_option(&argv, &ifname, &help)) == CMD_OPT) { in main()
359 err = process_args(&ifr, argv); in main()
369 process_args(struct ifreq* ifr, char **argv) in process_args() argument
376 while (*argv) { in process_args()
377 if ((status = dhd_option(&argv, &ifname, &help)) == CMD_OPT) { in process_args()
393 if (strcmp("dldn", *argv) != 0) { in process_args()
400 cmd = dhd_find_cmd(*argv); in process_args()
[all …]
/hardware/ti/wlan/mac80211/ti-utils/
Dmisc_cmds.c22 int argc, char **argv) in handle_push_nvs() argument
33 fd = open(argv[0], O_RDONLY); in handle_push_nvs()
83 int argc, char **argv)
122 struct nl_msg *msg, int argc, char **argv) in get_nvs_mac() argument
128 argv += 2; in get_nvs_mac()
134 fd = open(argv[0], O_RDONLY); in get_nvs_mac()
159 struct nl_msg *msg, int argc, char **argv) in set_nvs_mac() argument
166 argv += 2; in set_nvs_mac()
168 if (argc < 1 || (argc == 2 && (strlen(argv[1]) != 17))) { in set_nvs_mac()
173 sscanf(argv[1], "%2x:%2x:%2x:%2x:%2x:%2x", in set_nvs_mac()
[all …]
Dplt.c43 struct nl_msg *msg, int argc, char **argv) in plt_power_mode() argument
53 if (strcmp(argv[0], "on") == 0) { in plt_power_mode()
55 } else if (strcmp(argv[0], "off") == 0) { in plt_power_mode()
85 struct nl_msg *msg, int argc, char **argv) in plt_tune_channel() argument
95 prms.band = (unsigned char)atoi(argv[0]); in plt_tune_channel()
96 prms.channel = (unsigned char)atoi(argv[1]); in plt_tune_channel()
123 struct nl_msg *msg, int argc, char **argv) in plt_ref_point() argument
133 prms.ref_detector = atoi(argv[0]); in plt_ref_point()
134 prms.ref_power = atoi(argv[1]); in plt_ref_point()
135 prms.sub_band = atoi(argv[2]); in plt_ref_point()
[all …]
Dcalibrator.c213 int argc, char **argv) in print_help() argument
279 int argc, char **argv, const struct cmd **cmdout) in __handle_cmd() argument
302 o_argv = argv; in __handle_cmd()
307 devidx = strtoul(*argv + 4, &tmp, 0); in __handle_cmd()
312 argv++; in __handle_cmd()
316 devidx = phy_lookup(*argv); in __handle_cmd()
318 argv++; in __handle_cmd()
322 devidx = if_nametoindex(*argv); in __handle_cmd()
327 argv++; in __handle_cmd()
337 section = *argv; in __handle_cmd()
[all …]
/hardware/ril/rild/
Dradiooptions.c55 static int error_check(int argc, char * argv[]) { in error_check() argument
59 const int option = atoi(argv[1]); in error_check()
70 static int get_number_args(char *argv[]) { in get_number_args() argument
71 const int option = atoi(argv[1]); in get_number_args()
79 int main(int argc, char *argv[]) in main() argument
84 if(error_check(argc, argv)) { in main()
97 num_socket_args = get_number_args(argv); in main()
107 int len = strlen(argv[1 + i]); in main()
114 ret = send(fd, argv[1 + i], sizeof(char) * len, 0); in main()
Drild.c68 static int make_argv(char * args, char ** argv) in make_argv() argument
76 argv[count] = tok; in make_argv()
100 int main(int argc, char **argv) in main() argument
114 if (0 == strcmp(argv[i], "-l") && (argc - i > 1)) { in main()
115 rilLibPath = argv[i + 1]; in main()
117 } else if (0 == strcmp(argv[i], "--")) { in main()
122 usage(argv[0]); in main()
232 argv = arg_overrides; in main()
262 rilArgv = argv + i - 1; in main()
273 rilArgv[0] = argv[0]; in main()
/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/ti/wlan/wl1271/CUDK/tiwlan_loader/
Dtiwlan_loader.c194 S32 user_main(S32 argc, PPS8 argv) in user_main() argument
205 if( argv[i][0] != '-' ) in user_main()
207 os_strcpy( g_drv_name, argv[i++] ); in user_main()
211 if( !os_strcmp(argv[i], (PS8)"-h" ) || !os_strcmp(argv[i], (PS8)"--help") ) in user_main()
213 else if(!os_strcmp(argv[i], (PS8)"-f" ) ) in user_main()
215 firmware_file_name = argv[++i]; in user_main()
217 else if(!os_strcmp(argv[i], (PS8)"-e") && (i+1<argc)) in user_main()
219 eeprom_file_name = argv[++i]; in user_main()
221 else if(!os_strcmp(argv[i], (PS8)"-i") && (i+1<argc)) in user_main()
223 init_file_name = argv[++i]; in user_main()
[all …]
/hardware/qcom/audio/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/qcom/media/mm-video/vidc/venc/test/
Dvenc_test.cpp1640 void parseArgs(int argc, char** argv) in parseArgs() argument
1645 usage(argv[0]); in parseArgs()
1647 else if (strcmp("PREVIEW", argv[1]) == 0 || in parseArgs()
1648 strcmp("preview", argv[1]) == 0) in parseArgs()
1653 usage(argv[0]); in parseArgs()
1656 else if (strcmp("DISPLAY", argv[1]) == 0 || in parseArgs()
1657 strcmp("display", argv[1]) == 0) in parseArgs()
1662 usage(argv[0]); in parseArgs()
1664 m_sProfile.cInFileName = argv[5]; in parseArgs()
1667 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 …]
/hardware/ti/omap3/omx/audio/src/openmax_il/wbamr_enc/tests/
DWbAmrEncTest.c492 int main(int argc, char* argv[]) { argument
565 status = stat(argv[1], &sb);
568 APP_IPRINT("Cannot find file %s. (%u)\n", argv[1], errno);
573 fIn = fopen(argv[1], "r");
576 APP_IPRINT("Error: failed to open the input file %s\n", argv[1]);
581 fOut = fopen(argv[2], "w");
584 APP_IPRINT("Error: failed to open the output file %s\n", argv[2]);
588 if (!strcmp(argv[3], "FUNC_ID_1")) {
593 } else if (!strcmp(argv[3], "FUNC_ID_2")) {
598 } else if (!strcmp(argv[3], "FUNC_ID_3")) {
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/g711_enc/tests/
DG711EncTest.c398 int main(int argc, char* argv[]) in main() argument
465 status = stat(argv[1], &sb); in main()
467 printf("Cannot find file %s. (%u)\n", argv[1], errno); in main()
471 if(!strcmp(argv[3],"FUNC_ID_1")) { in main()
474 } else if(!strcmp(argv[3],"FUNC_ID_2")) { in main()
477 } else if(!strcmp(argv[3],"FUNC_ID_3")) { in main()
480 } else if(!strcmp(argv[3],"FUNC_ID_4")) { in main()
485 if(!strcmp(argv[3],"FUNC_ID_5")){ in main()
490 if(!strcmp(argv[3],"FUNC_ID_6")) { in main()
566 audioinfo->nIpBufs = atoi(argv[7]); in main()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/g726_enc/tests/
DG726EncTest.c447 int main(int argc, char* argv[]) argument
517 status = stat(argv[1], &sb);
519 printf("Cannot find file %s (%u)\n", argv[1], errno);
524 printf("%d :: App: Input file is %s\n", __LINE__, argv[1]);
525 fIn = fopen(argv[1], "r");
527 APP_DPRINT("Error: failed to open the input file %s\n", argv[1]);
532 printf("%d :: App: g726 output file is %s\n", __LINE__, argv[2]);
533 fOut = fopen(argv[2], "w");
535 APP_DPRINT("Error: failed to open the output file %s\n", argv[2]);
539 if(!strcmp(argv[3],"FUNC_ID_1")) {
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/g729_enc/tests/
DG729EncTest.c361 int main(int argc, char* argv[]) in main() argument
441 status = stat(argv[1], &sb); in main()
443 APP_DPRINT("Cannot find file %s. (%u)\n", argv[1], errno); in main()
447 fIn = fopen(argv[1], "r"); in main()
450 APP_DPRINT("Error: failed to open the input file %s\n", argv[1]); in main()
454 fOut = fopen(argv[2], "w"); in main()
457 APP_DPRINT("Error: failed to open the output file %s\n", argv[2]); in main()
461 if(!strcmp(argv[3],"FUNC_ID_0")) { in main()
468 else if(!strcmp(argv[3],"FUNC_ID_1")) { in main()
475 else if(!strcmp(argv[3],"FUNC_ID_2")) { in main()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/aac_enc/tests/
DAacEncTest.c517 int main(int argc, char* argv[]) argument
618 status = stat(argv[1], &sb);
621 APP_EPRINT("%d :: App: Cannot find file %s. (%u)\n",__LINE__, argv[1], errno);
626 switch (atoi(argv[4]))
650 if(!strcmp("ROBUST",argv[14]))
666 if(!strcmp("ROBUST",argv[14]))
690 fIn = fopen(argv[1], "r");
693 APP_EPRINT("APP: Error: failed to open the file %s for readonly access\n", argv[1]);
698 fOut = fopen(argv[2], "w");
701 APP_EPRINT("APP: Error: failed to create the output file %s\n", argv[2]);
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/g711_dec/tests/
DG711DecTest.c444 int main(int argc, char* argv[]) in main() argument
506 numInputBuffers = atoi(argv[8]); in main()
507 inputBufferSize = atoi(argv[9]); in main()
508 numOutputBuffers = atoi(argv[10]); in main()
509 outputBufferSize = atoi(argv[11]); in main()
510 fParam1 = atoi(argv[12]); in main()
537 OMX_S16 status = stat(argv[1], &sb); in main()
539 APP_DPRINT( "Cannot find file %s. (%u)\n", argv[1], errno); in main()
544 FILE* fIn = fopen(argv[1], "r"); in main()
546 APP_DPRINT( "Error: failed to open the file %s for readonly\access\n", argv[1]); in main()
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/g722_enc/tests/
DG722EncTest.c291 int main(int argc, char* argv[]) argument
381 int status = stat(argv[1], &sb);
383 APP_DPRINT( "Cannot find file %s. (%u)\n", argv[1], errno);
393 inBufSize = atoi(argv[4])<<1;
394 outBufSize = atoi(argv[5])<<1;
396 numInputBuffers = atoi(argv[7]);
397 numOutputBuffers = atoi(argv[8]);
399 nbDASFframes = atoi(argv[10]);
400 if (atoi(argv[3]) > 0 && atoi(argv[3]) < 7) {
401 switch (atoi(argv[3])) {
[all …]
/hardware/ti/omap3/omx/audio/src/openmax_il/g726_dec/tests/
DG726DecTest.c347 int main(int argc, char* argv[]) in main() argument
403 int status = stat(argv[1], &sb); in main()
405 printf( "Cannot find file %s. (%u)\n", argv[1], errno); in main()
415 if(!strcmp(argv[4],"DM")) { in main()
417 } else if(!strcmp(argv[4],"FM")) { in main()
426 nIpBuffs = atoi(argv[5]); in main()
428 nIpBufSize = atoi(argv[6]); in main()
430 nOpBuffs = atoi(argv[7]); in main()
432 nOpBufSize = atoi(argv[8]); in main()
434 packingType = atoi(argv[9]); in main()
[all …]

123