Lines Matching refs:codepage
179 const struct nls_table *codepage, int map_type) in cifs_from_utf16() argument
183 int nullsize = nls_nullsize(codepage); in cifs_from_utf16()
214 charlen = cifs_mapchar(tmp, ftmp, codepage, map_type); in cifs_from_utf16()
220 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, map_type); in cifs_from_utf16()
250 const struct nls_table *codepage) in cifs_strtoUTF16() argument
257 if (!strcmp(codepage->charset, "utf8")) { in cifs_strtoUTF16()
278 charlen = codepage->char2uni(from, len, &wchar_to); in cifs_strtoUTF16()
306 const struct nls_table *codepage) in cifs_utf16_bytes() argument
327 charlen = cifs_mapchar(tmp, ftmp, codepage, NO_MAP_UNI_RSVD); in cifs_utf16_bytes()
348 const bool is_unicode, const struct nls_table *codepage) in cifs_strndup_from_utf16() argument
354 len = cifs_utf16_bytes((__le16 *) src, maxlen, codepage); in cifs_strndup_from_utf16()
355 len += nls_nullsize(codepage); in cifs_strndup_from_utf16()
359 cifs_from_utf16(dst, (__le16 *) src, len, maxlen, codepage, in cifs_strndup_from_utf16()
588 const struct nls_table *codepage) in cifs_local_to_utf16_bytes() argument
595 charlen = codepage->char2uni(from, len, &wchar_to); in cifs_local_to_utf16_bytes()