Searched refs:charlen (Results 1 – 5 of 5) sorted by relevance
/fs/cifs/ |
D | cifs_unicode.c | 182 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 …]
|
D | dir.c | 827 int i, charlen; in cifs_ci_hash() local 830 for (i = 0; i < q->len; i += charlen) { in cifs_ci_hash() 831 charlen = codepage->char2uni(&q->name[i], q->len - i, &c); in cifs_ci_hash() 833 if (unlikely(charlen < 0)) in cifs_ci_hash() 834 return charlen; in cifs_ci_hash()
|
/fs/jfs/ |
D | jfs_unicode.c | 29 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/ |
D | dir.c | 148 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 …]
|
D | namei_vfat.c | 518 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()
|