Lines Matching refs:codepage
180 const struct nls_table *codepage, int map_type) in cifs_from_utf16() argument
184 int nullsize = nls_nullsize(codepage); in cifs_from_utf16()
215 charlen = cifs_mapchar(tmp, ftmp, codepage, map_type); in cifs_from_utf16()
221 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, map_type); in cifs_from_utf16()
251 const struct nls_table *codepage) in cifs_strtoUTF16() argument
258 if (!strcmp(codepage->charset, "utf8")) { in cifs_strtoUTF16()
279 charlen = codepage->char2uni(from, len, &wchar_to); in cifs_strtoUTF16()
307 const struct nls_table *codepage) in cifs_utf16_bytes() argument
328 charlen = cifs_mapchar(tmp, ftmp, codepage, NO_MAP_UNI_RSVD); in cifs_utf16_bytes()
349 const bool is_unicode, const struct nls_table *codepage) in cifs_strndup_from_utf16() argument
355 len = cifs_utf16_bytes((__le16 *) src, maxlen, codepage); in cifs_strndup_from_utf16()
356 len += nls_nullsize(codepage); in cifs_strndup_from_utf16()
360 cifs_from_utf16(dst, (__le16 *) src, len, maxlen, codepage, in cifs_strndup_from_utf16()
589 const struct nls_table *codepage) in cifs_local_to_utf16_bytes() argument
596 charlen = codepage->char2uni(from, len, &wchar_to); in cifs_local_to_utf16_bytes()