Lines Matching refs:argidx
728 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()
760 } else if (strcmp(argv[argidx], "-b") == 0) { in cmd_can_send()
762 argidx++; in cmd_can_send()
764 shell_error(sh, "unsupported option %s", argv[argidx]); in cmd_can_send()
771 if (argidx >= argc) { in cmd_can_send()
777 val = (uint32_t)strtoul(argv[argidx++], &endptr, 16); in cmd_can_send()
792 nbytes = argc - argidx; in cmd_can_send()
802 val = (uint32_t)strtoul(argv[argidx++], &endptr, 16); in cmd_can_send()
804 shell_error(sh, "failed to parse data %s", argv[argidx++]); in cmd_can_send()
847 int argidx = 2; in cmd_can_filter_add() local
862 while (argidx < argc && strncmp(argv[argidx], "-", 1) == 0) { in cmd_can_filter_add()
863 if (strcmp(argv[argidx], "--") == 0) { in cmd_can_filter_add()
864 argidx++; in cmd_can_filter_add()
866 } else if (strcmp(argv[argidx], "-e") == 0) { in cmd_can_filter_add()
869 argidx++; in cmd_can_filter_add()
871 shell_error(sh, "unsupported argument %s", argv[argidx]); in cmd_can_filter_add()
878 if (argidx >= argc) { in cmd_can_filter_add()
884 val = (uint32_t)strtoul(argv[argidx++], &endptr, 16); in cmd_can_filter_add()
899 if (argidx < argc) { in cmd_can_filter_add()
901 val = (uint32_t)strtoul(argv[argidx++], &endptr, 16); in cmd_can_filter_add()