Home
last modified time | relevance | path

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

12345678910>>...12

/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.c120 static int dhd_do_msglevel(void *dhd, cmd_t *cmd, char **argv, dbg_msg_t *dbg_msg);
369 char **argv = *pargv; in dhd_option() local
373 while (*argv) { in dhd_option()
375 if (!strcmp(*argv, "-a") || !strcmp(*argv, "-i")) { in dhd_option()
376 char *opt = *argv++; in dhd_option()
377 ifname = *argv; in dhd_option()
387 else if (!strcmp(*argv, "-d")) in dhd_option()
389 else if (!strcmp(*argv, "-u")) in dhd_option()
391 else if (!strcmp(*argv, "-x")) in dhd_option()
395 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/bsp/intel/peripheral/libmraa/examples/
Dmraa-i2c.c177 process_command(int argc, char** argv) in process_command() argument
179 if (strcmp(argv[1], "help") == 0) { in process_command()
182 } else if (strcmp(argv[1], "version") == 0) { in process_command()
185 } else if (strcmp(argv[1], "list") == 0) { in process_command()
188 } else if (strcmp(argv[1], "detect") == 0) { in process_command()
190 int bus = strtol(argv[2], NULL, 0); in process_command()
197 } else if ((strcmp(argv[1], "get") == 0)) { in process_command()
199 int bus = strtol(argv[2], NULL, 0); in process_command()
200 uint8_t device_address = strtol(argv[3], NULL, 0); in process_command()
201 uint8_t register_address = strtol(argv[4], NULL, 0); in process_command()
[all …]
Dmraa-gpio.c174 main(int argc, char** argv) in main() argument
181 if (strcmp(argv[1], "list") == 0) { in main()
183 } else if (strcmp(argv[1], "help") == 0) { in main()
185 } else if (strcmp(argv[1], "version") == 0) { in main()
187 } else if ((strcmp(argv[1], "set") == 0) || (strcmp(argv[1], "setraw") == 0)) { in main()
189 int pin = atoi(argv[2]); in main()
190 mraa_boolean_t rawmode = strcmp(argv[1], "setraw") == 0; in main()
191 if (gpio_set(pin, atoi(argv[3]), rawmode) != MRAA_SUCCESS) in main()
196 } else if ((strcmp(argv[1], "get") == 0) || (strcmp(argv[1], "getraw") == 0)) { in main()
198 int pin = atoi(argv[2]); in main()
[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()
/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.c56 (const struct RIL_Env *, int, char **), RIL_SOCKET_TYPE socketType, int argc, char **argv);
86 static int make_argv(char * args, char ** argv) { in make_argv() argument
93 argv[count] = tok; in make_argv()
145 int main(int argc, char **argv) { in main() argument
164 if (0 == strcmp(argv[i], "-l") && (argc - i > 1)) { in main()
165 rilLibPath = argv[i + 1]; in main()
167 } else if (0 == strcmp(argv[i], "--")) { in main()
171 } else if (0 == strcmp(argv[i], "-c") && (argc - i > 1)) { in main()
172 clientId = argv[i+1]; in main()
175 usage(argv[0]); 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/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/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/bsp/intel/peripheral/displays/SparkFun_OLED/
DSparkFunOLED.cpp65 int ReadOpts(int argc, char **argv, struct pgm_options *options) { in ReadOpts() argument
68 while ((ch = getopt_long(argc, argv, shortopts, longopts, NULL)) != -1) { in ReadOpts()
77 Usage(argv[0]); in ReadOpts()
82 argv += optind; in ReadOpts()
90 int main(int argc, char* argv[]) { in main() argument
93 if (ReadOpts(argc, argv, &options) < 0) in main()
/hardware/bsp/intel/peripheral/examples/mraa/gpio_output/
DOutputGPIO.cpp75 int ReadOpts(int argc, char **argv, struct pgm_options *options) { in ReadOpts() argument
78 while ((ch = getopt_long(argc, argv, shortopts, longopts, NULL)) != -1) { in ReadOpts()
90 Usage(argv[0]); in ReadOpts()
95 argv += optind; in ReadOpts()
100 int main(int argc, char* argv[]) { in main() argument
104 if (ReadOpts(argc, argv, &options) < 0) in main()
/hardware/bsp/intel/peripheral/displays/Grove_LCD_RGB/
DgroveLCD.cpp70 int ReadOpts(int argc, char **argv, struct pgm_options *options) { in ReadOpts() argument
74 while ((ch = getopt_long(argc, argv, shortopts, longopts, NULL)) != -1) { in ReadOpts()
92 Usage(argv[0]); in ReadOpts()
97 argv += optind; in ReadOpts()
110 int main(int argc, char* argv[]) { in main() argument
113 if (ReadOpts(argc, argv, &options) < 0) in main()
/hardware/google/apf/
Dapf_run.c53 int main(int argc, char* argv[]) { in main() argument
60 basename(argv[0])); in main()
64 uint32_t program_len = parse_hex(argv[1], &program); in main()
66 uint32_t packet_len = parse_hex(argv[2], &packet); in main()
67 uint32_t filter_age = atoi(argv[3]); in main()

12345678910>>...12