Lines Matching refs:codepage
183 const struct nls_table *codepage, int map_type) in cifs_from_utf16() argument
187 int nullsize = nls_nullsize(codepage); in cifs_from_utf16()
218 charlen = cifs_mapchar(tmp, ftmp, codepage, map_type); in cifs_from_utf16()
224 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, map_type); in cifs_from_utf16()
254 const struct nls_table *codepage) in cifs_strtoUTF16() argument
261 if (!strcmp(codepage->charset, "utf8")) { in cifs_strtoUTF16()
282 charlen = codepage->char2uni(from, len, &wchar_to); in cifs_strtoUTF16()
310 const struct nls_table *codepage) in cifs_utf16_bytes() argument
331 charlen = cifs_mapchar(tmp, ftmp, codepage, NO_MAP_UNI_RSVD); in cifs_utf16_bytes()
352 const bool is_unicode, const struct nls_table *codepage) in cifs_strndup_from_utf16() argument
358 len = cifs_utf16_bytes((__le16 *) src, maxlen, codepage); in cifs_strndup_from_utf16()
359 len += nls_nullsize(codepage); in cifs_strndup_from_utf16()
363 cifs_from_utf16(dst, (__le16 *) src, len, maxlen, codepage, in cifs_strndup_from_utf16()
566 const struct nls_table *codepage) in cifs_local_to_utf16_bytes() argument
573 charlen = codepage->char2uni(from, len, &wchar_to); in cifs_local_to_utf16_bytes()