Lines Matching defs:codepage
109 * cifs_mapchar - convert a host-endian char to proper char in codepage
112 * @cp - codepage to which character should be converted
162 * @codepage - codepage to which characters should be converted
166 * in the provided codepage. The tolen and fromlen parameters are to ensure
180 const struct nls_table *codepage, int map_type)
184 int nullsize = nls_nullsize(codepage);
215 charlen = cifs_mapchar(tmp, ftmp, codepage, map_type);
221 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, map_type);
251 const struct nls_table *codepage)
258 if (!strcmp(codepage->charset, "utf8")) {
279 charlen = codepage->char2uni(from, len, &wchar_to);
299 * @codepage - destination codepage
307 const struct nls_table *codepage)
328 charlen = cifs_mapchar(tmp, ftmp, codepage, NO_MAP_UNI_RSVD);
337 * codepage
341 * @codepage - destination codepage
343 * Take a string given by the server, convert it to the local codepage and
349 const bool is_unicode, const struct nls_table *codepage)
355 len = cifs_utf16_bytes((__le16 *) src, maxlen, codepage);
356 len += nls_nullsize(codepage);
360 cifs_from_utf16(dst, (__le16 *) src, len, maxlen, codepage,
580 * @codepage - source codepage
589 const struct nls_table *codepage)
596 charlen = codepage->char2uni(from, len, &wchar_to);
605 * cifs_strndup_to_utf16 - copy a string to wire format from the local codepage
609 * @cp - source codepage
612 * Take a string convert it from the local codepage to UTF16 and