Lines Matching refs:codepage
29 const struct nls_table *codepage) in smb_utf16_bytes() argument
42 charlen = codepage->uni2char(ftmp, tmp, NLS_MAX_CHARSET_SIZE); in smb_utf16_bytes()
140 const struct nls_table *codepage, bool mapchar) in smb_from_utf16() argument
144 int nullsize = nls_nullsize(codepage); in smb_from_utf16()
167 charlen = cifs_mapchar(tmp, ftmp, codepage, mapchar); in smb_from_utf16()
173 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, mapchar); in smb_from_utf16()
194 const struct nls_table *codepage) in smb_strtoUTF16() argument
201 if (!strcmp(codepage->charset, "utf8")) { in smb_strtoUTF16()
222 charlen = codepage->char2uni(from, len, &wchar_to); in smb_strtoUTF16()
252 const struct nls_table *codepage) in smb_strndup_from_utf16() argument
258 len = smb_utf16_bytes((__le16 *)src, maxlen, codepage); in smb_strndup_from_utf16()
259 len += nls_nullsize(codepage); in smb_strndup_from_utf16()
263 ret = smb_from_utf16(dst, (__le16 *)src, len, maxlen, codepage, in smb_strndup_from_utf16()