Lines Matching refs:codepage
108 const struct nls_table *codepage) in smb_utf16_bytes() argument
127 charlen = cifs_mapchar(tmp, ftmp, codepage, 0); in smb_utf16_bytes()
162 const struct nls_table *codepage, bool mapchar) in smb_from_utf16() argument
166 int nullsize = nls_nullsize(codepage); in smb_from_utf16()
195 charlen = cifs_mapchar(tmp, ftmp, codepage, mapchar); in smb_from_utf16()
201 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, mapchar); in smb_from_utf16()
235 const struct nls_table *codepage) in smb_strtoUTF16() argument
242 if (!strcmp(codepage->charset, "utf8")) { in smb_strtoUTF16()
263 charlen = codepage->char2uni(from, len, &wchar_to); in smb_strtoUTF16()
293 const struct nls_table *codepage) in smb_strndup_from_utf16() argument
299 len = smb_utf16_bytes((__le16 *)src, maxlen, codepage); in smb_strndup_from_utf16()
300 len += nls_nullsize(codepage); in smb_strndup_from_utf16()
304 ret = smb_from_utf16(dst, (__le16 *)src, len, maxlen, codepage, in smb_strndup_from_utf16()