Lines Matching +full:single +full:- +full:wire

1 // SPDX-License-Identifier: GPL-2.0-or-later
18 * smb_utf16_bytes() - how long will a string be after conversion?
43 charlen = codepage->uni2char(ftmp, tmp, NLS_MAX_CHARSET_SIZE); in smb_utf16_bytes()
54 * cifs_mapchar() - convert a host-endian char to proper char in codepage
56 * @src_char: 2 byte host-endian source character
60 * This function handles the conversion of a single character. It is the
107 len = cp->uni2char(src_char, target, NLS_MAX_CHARSET_SIZE); in cifs_mapchar()
117 * is_char_allowed() - check for valid character
135 * smb_from_utf16() - convert utf16le string to local charset
143 * Convert a little-endian utf16le string (as sent by the server) to a string
151 * Note that some windows versions actually send multiword UTF-16 characters
152 * instead of straight UTF16-2. The linux nls routines however aren't able to
174 safelen = tolen - (NLS_MAX_CHARSET_SIZE + nullsize); in smb_from_utf16()
187 if ((outlen + charlen) > (tolen - nullsize)) in smb_from_utf16()
196 /* properly null-terminate string */ in smb_from_utf16()
204 * smb_strtoUTF16() - Convert character string to unicode string
220 if (!strcmp(codepage->charset, "utf8")) { in smb_strtoUTF16()
222 * convert utf8 -> utf16, we assume we have enough space in smb_strtoUTF16()
240 for (i = 0; len > 0 && *from; i++, from += charlen, len -= charlen) { in smb_strtoUTF16()
241 charlen = codepage->char2uni(from, len, &wchar_to); in smb_strtoUTF16()
256 * smb_strndup_from_utf16() - copy a string from wire format to the local
281 return ERR_PTR(-ENOMEM); in smb_strndup_from_utf16()
286 return ERR_PTR(-EINVAL); in smb_strndup_from_utf16()
293 return ERR_PTR(-ENOMEM); in smb_strndup_from_utf16()
301 * Convert 16 bit Unicode pathname to wire format from string in current code
303 * only legal in POSIX-like OS (if they are present in the string). Path
304 * names are little endian 16 bit Unicode on the wire
307 * smbConvertToUTF16() - convert string from local charset to utf16
314 * Convert 16 bit Unicode pathname to wire format from string in current code
316 * only legal in POSIX-like OS (if they are present in the string). Path
317 * names are little endian 16 bit Unicode on the wire
363 charlen = cp->char2uni(source + i, srclen - i, &tmp); in smbConvertToUTF16()