Searched refs:charlen (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.10/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 | 810 int i, charlen; in cifs_ci_hash() local 813 for (i = 0; i < q->len; i += charlen) { in cifs_ci_hash() 814 charlen = codepage->char2uni(&q->name[i], q->len - i, &c); in cifs_ci_hash() 816 if (unlikely(charlen < 0)) in cifs_ci_hash() 817 return charlen; in cifs_ci_hash()
|
/Linux-v5.10/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()
|
/Linux-v5.10/include/linux/ |
D | nls.h | 98 int charlen; in nls_nullsize() local 101 charlen = codepage->uni2char(0, tmp, NLS_MAX_CHARSET_SIZE); in nls_nullsize() 103 return charlen > 0 ? charlen : 1; in nls_nullsize()
|
/Linux-v5.10/fs/exfat/ |
D | namei.c | 88 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 …]
|
/Linux-v5.10/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()
|