Lines Matching refs:from
31 cifs_mapchar(char *target, const __u16 *from, const struct nls_table *cp, in cifs_mapchar() argument
37 src_char = *from; in cifs_mapchar()
84 len = utf16s_to_utf8s(from, 3, UTF16_LITTLE_ENDIAN, target, 6); in cifs_mapchar()
107 static int smb_utf16_bytes(const __le16 *from, int maxbytes, in smb_utf16_bytes() argument
117 ftmp[0] = get_unaligned_le16(&from[i]); in smb_utf16_bytes()
122 ftmp[j] = get_unaligned_le16(&from[i + j]); in smb_utf16_bytes()
161 static int smb_from_utf16(char *to, const __le16 *from, int tolen, int fromlen, in smb_from_utf16() argument
180 ftmp[0] = get_unaligned_le16(&from[i]); in smb_from_utf16()
185 ftmp[j] = get_unaligned_le16(&from[i + j]); in smb_from_utf16()
234 int smb_strtoUTF16(__le16 *to, const char *from, int len, in smb_strtoUTF16() argument
248 i = utf8s_to_utf16s(from, len, UTF16_LITTLE_ENDIAN, in smb_strtoUTF16()
262 for (i = 0; len > 0 && *from; i++, from += charlen, len -= charlen) { in smb_strtoUTF16()
263 charlen = codepage->char2uni(from, len, &wchar_to); in smb_strtoUTF16()