Lines Matching defs:from
3 * Some of the source code in this file came from fs/cifs/cifs_unicode.c
19 * @from: host-endian source string
30 cifs_mapchar(char *target, const __u16 *from, const struct nls_table *cp,
36 src_char = *from;
83 len = utf16s_to_utf8s(from, 3, UTF16_LITTLE_ENDIAN, target, 6);
96 * @from: pointer to input string
106 static int smb_utf16_bytes(const __le16 *from, int maxbytes,
116 ftmp[0] = get_unaligned_le16(&from[i]);
121 ftmp[j] = get_unaligned_le16(&from[i + j]);
139 * @from: source buffer
160 static int smb_from_utf16(char *to, const __le16 *from, int tolen, int fromlen,
179 ftmp[0] = get_unaligned_le16(&from[i]);
184 ftmp[j] = get_unaligned_le16(&from[i + j]);
227 * @from: source buffer
233 int smb_strtoUTF16(__le16 *to, const char *from, int len,
247 i = utf8s_to_utf16s(from, len, UTF16_LITTLE_ENDIAN,
261 for (i = 0; len > 0 && *from; i++, from += charlen, len -= charlen) {
262 charlen = codepage->char2uni(from, len, &wchar_to);
277 * smb_strndup_from_utf16() - copy a string from wire format to the local
322 * Convert 16 bit Unicode pathname to wire format from string in current code
328 * smbConvertToUTF16() - convert string from local charset to utf16
335 * Convert 16 bit Unicode pathname to wire format from string in current code