Lines Matching refs:uniname
484 const unsigned short *uniname = p_uniname->name;
487 len = utf16s_to_utf8s(uniname, MAX_NAME_LENGTH, UTF16_HOST_ENDIAN,
499 unsigned short *uniname = p_uniname->name;
504 (wchar_t *)uniname, MAX_NAME_LENGTH + 2);
518 if (*uniname < 0x0020 ||
519 exfat_wstrchr(bad_uni_chars, *uniname))
522 upname[i] = cpu_to_le16(exfat_toupper(sb, *uniname));
523 uniname++;
526 *uniname = '\0';
546 const unsigned short *uniname = p_uniname->name;
551 if (*uniname == '\0')
553 if ((*uniname & SURROGATE_MASK) != SURROGATE_PAIR) {
554 len = exfat_convert_ucs2_to_char(nls, *uniname, buf,
558 if (!(*uniname & SURROGATE_LOW) &&
560 (*(uniname+1) & SURROGATE_MASK) == SURROGATE_PAIR &&
561 (*(uniname+1) & SURROGATE_LOW)) {
562 uniname++;
587 uniname++;
601 unsigned short *uniname = p_uniname->name;
608 uniname, &lossy);
610 if (*uniname < 0x0020 ||
611 exfat_wstrchr(bad_uni_chars, *uniname))
614 upname[unilen] = cpu_to_le16(exfat_toupper(sb, *uniname));
615 uniname++;
622 *uniname = '\0';
632 int exfat_utf16_to_nls(struct super_block *sb, struct exfat_uni_name *uniname,
636 return exfat_utf16_to_utf8(sb, uniname, p_cstring,
638 return __exfat_utf16_to_nls(sb, uniname, p_cstring, buflen);
642 const int len, struct exfat_uni_name *uniname, int *p_lossy)
646 uniname, p_lossy);
647 return exfat_nls_to_ucs2(sb, p_cstring, len, uniname, p_lossy);