Lines Matching refs:count

185 	int count = 0;  in cmd_args_set_defaults()  local
187 while (args_struct[count].option != NULL) { in cmd_args_set_defaults()
189 if (args_struct[count].dest == NULL) { in cmd_args_set_defaults()
190 count++; in cmd_args_set_defaults()
194 switch (args_struct[count].type) { in cmd_args_set_defaults()
198 *(bool *)args_struct[count].dest = false; in cmd_args_set_defaults()
201 *(char **)args_struct[count].dest = NULL; in cmd_args_set_defaults()
204 *(uint32_t *)args_struct[count].dest = UINT32_MAX; in cmd_args_set_defaults()
207 *(uint64_t *)args_struct[count].dest = UINT64_MAX; in cmd_args_set_defaults()
210 *(int32_t *)args_struct[count].dest = INT32_MAX; in cmd_args_set_defaults()
213 *(int64_t *)args_struct[count].dest = INT64_MAX; in cmd_args_set_defaults()
216 *(double *)args_struct[count].dest = (double)NAN; in cmd_args_set_defaults()
220 args_struct[count].type); in cmd_args_set_defaults()
223 count++; in cmd_args_set_defaults()
287 int count = 0; in cmd_print_switches_help() local
292 while (args_struct[count].option != NULL) { in cmd_print_switches_help()
296 &args_struct[count]); in cmd_print_switches_help()
305 count++; in cmd_print_switches_help()
317 int count = 0; in cmd_print_long_help() local
326 while (args_struct[count].option != NULL) { in cmd_print_long_help()
332 &args_struct[count]); in cmd_print_long_help()
337 toprint = args_struct[count].descript; in cmd_print_long_help()
351 count++; in cmd_print_long_help()
394 int count = 0; in cmd_parse_one_arg() local
402 while (args_struct[count].option != NULL) { in cmd_parse_one_arg()
403 if (args_struct[count].manual) { in cmd_parse_one_arg()
404 count++; in cmd_parse_one_arg()
407 ret = cmd_is_option(argv, args_struct[count].option, in cmd_parse_one_arg()
408 !args_struct[count].is_switch); in cmd_parse_one_arg()
412 &args_struct[count]); in cmd_parse_one_arg()
415 count++; in cmd_parse_one_arg()