Lines Matching refs:ucs2
22 static inline wchar_t *UniStrcpy(wchar_t * ucs1, const wchar_t * ucs2) in UniStrcpy() argument
26 while ((*ucs1++ = *ucs2++)); in UniStrcpy()
35 static inline __le16 *UniStrncpy_le(__le16 * ucs1, const __le16 * ucs2, in UniStrncpy_le() argument
40 while (n-- && *ucs2) /* Copy the strings */ in UniStrncpy_le()
41 *ucs1++ = *ucs2++; in UniStrncpy_le()
52 static inline int UniStrncmp_le(const wchar_t * ucs1, const __le16 * ucs2, in UniStrncmp_le() argument
57 while ((*ucs1 == __le16_to_cpu(*ucs2)) && *ucs1 && --n) { in UniStrncmp_le()
59 ucs2++; in UniStrncmp_le()
61 return (int) *ucs1 - (int) __le16_to_cpu(*ucs2); in UniStrncmp_le()
67 static inline __le16 *UniStrncpy_to_le(__le16 * ucs1, const wchar_t * ucs2, in UniStrncpy_to_le() argument
72 while (n-- && *ucs2) /* Copy the strings */ in UniStrncpy_to_le()
73 *ucs1++ = cpu_to_le16(*ucs2++); in UniStrncpy_to_le()
84 static inline wchar_t *UniStrncpy_from_le(wchar_t * ucs1, const __le16 * ucs2, in UniStrncpy_from_le() argument
89 while (n-- && *ucs2) /* Copy the strings */ in UniStrncpy_from_le()
90 *ucs1++ = __le16_to_cpu(*ucs2++); in UniStrncpy_from_le()