Lines Matching defs:codepage
107 * cifs_mapchar - convert a host-endian char to proper char in codepage
110 * @cp - codepage to which character should be converted
160 * @codepage - codepage to which characters should be converted
164 * in the provided codepage. The tolen and fromlen parameters are to ensure
178 const struct nls_table *codepage, int map_type)
182 int nullsize = nls_nullsize(codepage);
213 charlen = cifs_mapchar(tmp, ftmp, codepage, map_type);
219 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, map_type);
249 const struct nls_table *codepage)
256 if (!strcmp(codepage->charset, "utf8")) {
277 charlen = codepage->char2uni(from, len, &wchar_to);
297 * @codepage - destination codepage
305 const struct nls_table *codepage)
326 charlen = cifs_mapchar(tmp, ftmp, codepage, NO_MAP_UNI_RSVD);
335 * codepage
339 * @codepage - destination codepage
341 * Take a string given by the server, convert it to the local codepage and
347 const bool is_unicode, const struct nls_table *codepage)
353 len = cifs_utf16_bytes((__le16 *) src, maxlen, codepage);
354 len += nls_nullsize(codepage);
358 cifs_from_utf16(dst, (__le16 *) src, len, maxlen, codepage,
578 * @codepage - source codepage
587 const struct nls_table *codepage)
594 charlen = codepage->char2uni(from, len, &wchar_to);
603 * cifs_strndup_to_utf16 - copy a string to wire format from the local codepage
607 * @cp - source codepage
610 * Take a string convert it from the local codepage to UTF16 and