Lines Matching refs:tstr
267 static int parse_btl(char *tstr, path_id_t *bus, target_id_t *target,
3031 parse_btl(char *tstr, path_id_t *bus, target_id_t *target, lun_id_t *lun,
3037 while (isspace(*tstr) && (*tstr != '\0'))
3038 tstr++;
3040 tmpstr = (char *)strtok(tstr, ":");
3071 char *tstr;
3078 tstr = argv[optind];
3079 while (isspace(*tstr) && (*tstr != '\0'))
3080 tstr++;
3081 if (strncasecmp(tstr, "all", strlen("all")) == 0)
3378 char *tstr;
3379 tstr = optarg;
3380 while (isspace(*tstr) && (*tstr != '\0'))
3381 tstr++;
3382 if (strcmp(tstr, "block") == 0)
3384 else if (strcmp(tstr, "bfi") == 0)
3386 else if (strcmp(tstr, "phys") == 0)
3390 warnx("invalid defect format %s", tstr);
3891 char *datastr = NULL, *tstr, *resstr = NULL;
3909 tstr = optarg;
3910 while (isspace(*tstr) && (*tstr != '\0'))
3911 tstr++;
3915 atacmd_len = buff_encode_visit(atacmd, sizeof(atacmd), tstr,
3931 tstr = optarg;
3932 while (isspace(*tstr) && (*tstr != '\0'))
3933 tstr++;
3937 cdb_len = buff_encode_visit(cdb, sizeof(cdb), tstr,
4236 char *tstr, *tmpstr = NULL;
4292 tstr = *argv;
4294 while (isspace(*tstr) && (*tstr != '\0'))
4295 tstr++;
4297 if (strncmp(tstr, "off", 3) == 0) {
4302 } else if (strncmp(tstr, "all", 3) != 0) {
4303 tmpstr = (char *)strtok(tstr, ":");
7995 char *tstr;
8148 tstr = optarg;
8149 while (isspace(*tstr) && (*tstr != '\0'))
8150 tstr++;
8151 device = (char *)strdup(tstr);