Home
last modified time | relevance | path

Searched refs:argidx (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/subsys/net/lib/shell/
Dcm.c112 static int parse_ifi_target(const struct shell *sh, size_t argc, char *argv[], int *argidx, in parse_ifi_target() argument
120 if (*argidx >= argc) { in parse_ifi_target()
125 arg = argv[*argidx]; in parse_ifi_target()
141 *argidx += 1; in parse_ifi_target()
150 static int parse_if_target(const struct shell *sh, size_t argc, char *argv[], int *argidx, in parse_if_target() argument
156 if (*argidx >= argc) { in parse_if_target()
161 arg = argv[*argidx]; in parse_if_target()
170 *argidx += 1; in parse_if_target()
184 static int parse_target(const struct shell *sh, size_t argc, char *argv[], int *argidx, in parse_target() argument
190 if (*argidx >= argc) { in parse_target()
[all …]
/Zephyr-latest/drivers/dac/
Ddac_shell.c36 int argidx; in cmd_setup() local
48 argidx = args_indx.options; in cmd_setup()
49 while (argidx < argc && strncmp(argv[argidx], "-", 1) == 0) { in cmd_setup()
50 if (strcmp(argv[argidx], "-b") == 0) { in cmd_setup()
52 argidx++; in cmd_setup()
53 } else if (strcmp(argv[argidx], "-i") == 0) { in cmd_setup()
55 argidx++; in cmd_setup()
57 shell_error(sh, "unsupported option %s", argv[argidx]); in cmd_setup()
/Zephyr-latest/drivers/can/
Dcan_shell.c728 int argidx = 2; in cmd_can_send() local
746 while (argidx < argc && strncmp(argv[argidx], "-", 1) == 0) { in cmd_can_send()
747 if (strcmp(argv[argidx], "--") == 0) { in cmd_can_send()
748 argidx++; in cmd_can_send()
750 } else if (strcmp(argv[argidx], "-e") == 0) { in cmd_can_send()
753 argidx++; in cmd_can_send()
754 } else if (strcmp(argv[argidx], "-r") == 0) { in cmd_can_send()
756 argidx++; in cmd_can_send()
757 } else if (strcmp(argv[argidx], "-f") == 0) { in cmd_can_send()
759 argidx++; in cmd_can_send()
[all …]