Lines Matching defs:codepage
17 * cifs_mapchar() - convert a host-endian char to proper char in codepage
20 * @cp: codepage to which character should be converted
98 * @codepage: destination codepage
107 const struct nls_table *codepage)
126 charlen = cifs_mapchar(tmp, ftmp, codepage, 0);
142 * @codepage: codepage to which characters should be converted
146 * in the provided codepage. The tolen and fromlen parameters are to ensure
161 const struct nls_table *codepage, bool mapchar)
165 int nullsize = nls_nullsize(codepage);
194 charlen = cifs_mapchar(tmp, ftmp, codepage, mapchar);
200 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, mapchar);
229 * @codepage: codepage to which characters should be converted
234 const struct nls_table *codepage)
241 if (!strcmp(codepage->charset, "utf8")) {
262 charlen = codepage->char2uni(from, len, &wchar_to);
278 * codepage
282 * @codepage: destination codepage
284 * Take a string given by the server, convert it to the local codepage and
292 const struct nls_table *codepage)
298 len = smb_utf16_bytes((__le16 *)src, maxlen, codepage);
299 len += nls_nullsize(codepage);
303 ret = smb_from_utf16(dst, (__le16 *)src, len, maxlen, codepage,
332 * @cp: codepage to which characters should be converted