Lines Matching refs:unilen
497 int i, unilen, lossy = NLS_NAME_NO_LOSSY; in exfat_utf8_to_utf16() local
503 unilen = utf8s_to_utf16s(p_cstring, len, UTF16_HOST_ENDIAN, in exfat_utf8_to_utf16()
505 if (unilen < 0) { in exfat_utf8_to_utf16()
507 __func__, unilen, len); in exfat_utf8_to_utf16()
508 return unilen; in exfat_utf8_to_utf16()
511 if (unilen > MAX_NAME_LENGTH) { in exfat_utf8_to_utf16()
513 __func__, len, unilen, MAX_NAME_LENGTH); in exfat_utf8_to_utf16()
517 for (i = 0; i < unilen; i++) { in exfat_utf8_to_utf16()
527 p_uniname->name_len = unilen; in exfat_utf8_to_utf16()
528 p_uniname->name_hash = exfat_calc_chksum16(upname, unilen << 1, 0, in exfat_utf8_to_utf16()
533 return unilen; in exfat_utf8_to_utf16()
599 int i = 0, unilen = 0, lossy = NLS_NAME_NO_LOSSY; in exfat_nls_to_ucs2() local
606 while (unilen < MAX_NAME_LENGTH && i < len) { in exfat_nls_to_ucs2()
614 upname[unilen] = cpu_to_le16(exfat_toupper(sb, *uniname)); in exfat_nls_to_ucs2()
616 unilen++; in exfat_nls_to_ucs2()
623 p_uniname->name_len = unilen; in exfat_nls_to_ucs2()
624 p_uniname->name_hash = exfat_calc_chksum16(upname, unilen << 1, 0, in exfat_nls_to_ucs2()
629 return unilen; in exfat_nls_to_ucs2()