Lines Matching refs:from
32 int jfs_strfromUCS_le(char *to, const __le16 * from, in jfs_strfromUCS_le() argument
41 for (i = 0; (i < len) && from[i]; i++) { in jfs_strfromUCS_le()
44 codepage->uni2char(le16_to_cpu(from[i]), in jfs_strfromUCS_le()
53 for (i = 0; (i < len) && from[i]; i++) { in jfs_strfromUCS_le()
54 if (unlikely(le16_to_cpu(from[i]) & 0xff00)) { in jfs_strfromUCS_le()
61 le16_to_cpu(from[i])); in jfs_strfromUCS_le()
68 to[i] = (char) (le16_to_cpu(from[i])); in jfs_strfromUCS_le()
82 static int jfs_strtoUCS(wchar_t * to, const unsigned char *from, int len, in jfs_strtoUCS() argument
89 for (i = 0; len && *from; i++, from += charlen, len -= charlen) in jfs_strtoUCS()
91 charlen = codepage->char2uni(from, len, &to[i]); in jfs_strtoUCS()
96 codepage->charset, *from); in jfs_strtoUCS()
101 for (i = 0; (i < len) && from[i]; i++) in jfs_strtoUCS()
102 to[i] = (wchar_t) from[i]; in jfs_strtoUCS()