Home
last modified time | relevance | path

Searched refs:charlen (Results 1 – 6 of 6) sorted by relevance

/fs/cifs/
Dcifs_unicode.c182 int i, charlen, safelen; in cifs_from_utf16() local
215 charlen = cifs_mapchar(tmp, ftmp, codepage, map_type); in cifs_from_utf16()
216 if ((outlen + charlen) > (tolen - nullsize)) in cifs_from_utf16()
221 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, map_type); in cifs_from_utf16()
222 outlen += charlen; in cifs_from_utf16()
229 if (charlen == 4) in cifs_from_utf16()
231 else if (charlen >= 5) in cifs_from_utf16()
253 int charlen; in cifs_strtoUTF16() local
278 for (i = 0; len && *from; i++, from += charlen, len -= charlen) { in cifs_strtoUTF16()
279 charlen = codepage->char2uni(from, len, &wchar_to); in cifs_strtoUTF16()
[all …]
Ddir.c828 int i, charlen; in cifs_ci_hash() local
831 for (i = 0; i < q->len; i += charlen) { in cifs_ci_hash()
832 charlen = codepage->char2uni(&q->name[i], q->len - i, &c); in cifs_ci_hash()
834 if (unlikely(charlen < 0)) in cifs_ci_hash()
835 return charlen; in cifs_ci_hash()
/fs/jfs/
Djfs_unicode.c29 int charlen; in jfs_strfromUCS_le() local
30 charlen = in jfs_strfromUCS_le()
34 if (charlen > 0) in jfs_strfromUCS_le()
35 outlen += charlen; in jfs_strfromUCS_le()
72 int charlen; in jfs_strtoUCS() local
76 for (i = 0; len && *from; i++, from += charlen, len -= charlen) in jfs_strtoUCS()
78 charlen = codepage->char2uni(from, len, &to[i]); in jfs_strtoUCS()
79 if (charlen < 1) { in jfs_strtoUCS()
81 charlen); in jfs_strtoUCS()
84 return charlen; in jfs_strtoUCS()
/fs/fat/
Ddir.c148 int charlen; in uni16_to_x8() local
155 charlen = nls->uni2char(ec, op, NLS_MAX_CHARSET_SIZE); in uni16_to_x8()
156 if (charlen > 0) { in uni16_to_x8()
157 op += charlen; in uni16_to_x8()
158 len -= charlen; in uni16_to_x8()
195 int charlen; in fat_short2uni() local
197 charlen = t->char2uni(c, clen, uni); in fat_short2uni()
198 if (charlen < 0) { in fat_short2uni()
200 charlen = 1; in fat_short2uni()
202 return charlen; in fat_short2uni()
[all …]
Dnamei_vfat.c518 int charlen; in xlate_to_uni() local
548 charlen = nls->char2uni(ip, len - i, in xlate_to_uni()
550 if (charlen < 0) in xlate_to_uni()
552 ip += charlen; in xlate_to_uni()
553 i += charlen; in xlate_to_uni()
/fs/exfat/
Dnamei.c88 int i, charlen; in exfat_d_hash() local
91 for (i = 0; i < len; i += charlen) { in exfat_d_hash()
92 charlen = t->char2uni(&name[i], len - i, &c); in exfat_d_hash()
93 if (charlen < 0) in exfat_d_hash()
94 return charlen; in exfat_d_hash()
110 int charlen, i; in exfat_d_cmp() local
115 for (i = 0; i < len; i += charlen) { in exfat_d_cmp()
116 charlen = t->char2uni(&name->name[i], alen - i, &c1); in exfat_d_cmp()
117 if (charlen < 0) in exfat_d_cmp()
119 if (charlen != t->char2uni(&str[i], blen - i, &c2)) in exfat_d_cmp()
[all …]