Lines Matching refs:codepage
30 const struct nls_table *codepage) in smb_utf16_bytes() argument
43 charlen = codepage->uni2char(ftmp, tmp, NLS_MAX_CHARSET_SIZE); in smb_utf16_bytes()
159 const struct nls_table *codepage, bool mapchar) in smb_from_utf16() argument
163 int nullsize = nls_nullsize(codepage); in smb_from_utf16()
186 charlen = cifs_mapchar(tmp, ftmp, codepage, mapchar); in smb_from_utf16()
192 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, mapchar); in smb_from_utf16()
213 const struct nls_table *codepage) in smb_strtoUTF16() argument
220 if (!strcmp(codepage->charset, "utf8")) { in smb_strtoUTF16()
241 charlen = codepage->char2uni(from, len, &wchar_to); in smb_strtoUTF16()
271 const struct nls_table *codepage) in smb_strndup_from_utf16() argument
277 len = smb_utf16_bytes((__le16 *)src, maxlen, codepage); in smb_strndup_from_utf16()
278 len += nls_nullsize(codepage); in smb_strndup_from_utf16()
282 ret = smb_from_utf16(dst, (__le16 *)src, len, maxlen, codepage, in smb_strndup_from_utf16()