Lines Matching refs:ucs2
41 static inline wchar_t *UniStrcpy(wchar_t * ucs1, const wchar_t * ucs2)
45 while ((*ucs1++ = *ucs2++));
54 static inline __le16 *UniStrncpy_le(__le16 * ucs1, const __le16 * ucs2,
59 while (n-- && *ucs2) /* Copy the strings */
60 *ucs1++ = *ucs2++;
71 static inline int UniStrncmp_le(const wchar_t * ucs1, const __le16 * ucs2,
76 while ((*ucs1 == __le16_to_cpu(*ucs2)) && *ucs1 && --n) {
78 ucs2++;
80 return (int) *ucs1 - (int) __le16_to_cpu(*ucs2);
86 static inline __le16 *UniStrncpy_to_le(__le16 * ucs1, const wchar_t * ucs2,
91 while (n-- && *ucs2) /* Copy the strings */
92 *ucs1++ = cpu_to_le16(*ucs2++);
103 static inline wchar_t *UniStrncpy_from_le(wchar_t * ucs1, const __le16 * ucs2,
108 while (n-- && *ucs2) /* Copy the strings */
109 *ucs1++ = __le16_to_cpu(*ucs2++);