Lines Matching refs:mbString
493 char *mbString = NULL; in checkScsiNameString() local
503 mbString = calloc(1, (mbStringLen = wcstombs(mbString, input, 0)) + 1); in checkScsiNameString()
504 if (mbString == NULL) { in checkScsiNameString()
509 if (wcstombs(mbString, input, mbStringLen) == (size_t)-1) { in checkScsiNameString()
516 if (strncmp(mbString, "iqn.", 4) == 0) { in checkScsiNameString()
517 if ((len = strlen(mbString)) > (SNS_IQN_223)) { in checkScsiNameString()
521 mbString[i] = tolower(mbString[i]); in checkScsiNameString()
526 } else if (strncmp(mbString, "wwn.", 4) == 0) { in checkScsiNameString()
527 if ((len = strlen(mbString + 4)) != SNS_WWN_16) { in checkScsiNameString()
529 } else if (checkHexUpper(mbString + 4) != 0) { in checkScsiNameString()
532 } else if (strncmp(mbString, "eui.", 4) == 0) { in checkScsiNameString()
533 if ((len = strlen(mbString + 4)) != SNS_EUI_16) { in checkScsiNameString()
535 } else if (checkHexUpper(mbString + 4) != 0) { in checkScsiNameString()
546 devid->identLength = strlen(mbString); in checkScsiNameString()
548 bcopy(mbString, devid->ident, devid->identLength); in checkScsiNameString()