Home
last modified time | relevance | path

Searched refs:maxlength (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/lib/
Ducs2_string.c7 ucs2_strnlen(const ucs2_char_t *s, size_t maxlength) in ucs2_strnlen() argument
11 while (*s++ != 0 && length < maxlength) in ucs2_strnlen()
29 ucs2_strsize(const ucs2_char_t *data, unsigned long maxlength) in ucs2_strsize() argument
31 return ucs2_strnlen(data, maxlength/sizeof(ucs2_char_t)) * sizeof(ucs2_char_t); in ucs2_strsize()
135 ucs2_as_utf8(u8 *dest, const ucs2_char_t *src, unsigned long maxlength) in ucs2_as_utf8() argument
139 unsigned long limit = ucs2_strnlen(src, maxlength); in ucs2_as_utf8()
141 for (i = 0; maxlength && i < limit; i++) { in ucs2_as_utf8()
145 if (maxlength < 3) in ucs2_as_utf8()
147 maxlength -= 3; in ucs2_as_utf8()
152 if (maxlength < 2) in ucs2_as_utf8()
[all …]
/linux-6.12.1/include/linux/
Ducs2_string.h10 unsigned long ucs2_strnlen(const ucs2_char_t *s, size_t maxlength);
12 unsigned long ucs2_strsize(const ucs2_char_t *data, unsigned long maxlength);
18 unsigned long maxlength);
/linux-6.12.1/drivers/hsi/clients/
Dcmt_speech.c180 static void cs_notify_data(u32 message, int maxlength) in cs_notify_data() argument
186 while (cs_char_data.dataind_pending > maxlength && in cs_notify_data()