Lines Matching refs:i
194 int i, charlen, safelen; in cifs_from_utf16() local
209 for (i = 0; i < fromwords; i++) { in cifs_from_utf16()
210 ftmp[0] = get_unaligned_le16(&from[i]); in cifs_from_utf16()
213 if (i + 1 < fromwords) in cifs_from_utf16()
214 ftmp[1] = get_unaligned_le16(&from[i + 1]); in cifs_from_utf16()
217 if (i + 2 < fromwords) in cifs_from_utf16()
218 ftmp[2] = get_unaligned_le16(&from[i + 2]); in cifs_from_utf16()
242 i++; in cifs_from_utf16()
245 i += 2; in cifs_from_utf16()
249 for (i = 0; i < nullsize; i++) in cifs_from_utf16()
266 int i; in cifs_strtoUTF16() local
276 i = utf8s_to_utf16s(from, len, UTF16_LITTLE_ENDIAN, in cifs_strtoUTF16()
280 if (i >= 0) in cifs_strtoUTF16()
290 for (i = 0; len && *from; i++, from += charlen, len -= charlen) { in cifs_strtoUTF16()
299 put_unaligned_le16(wchar_to, &to[i]); in cifs_strtoUTF16()
303 put_unaligned_le16(0, &to[i]); in cifs_strtoUTF16()
304 return i; in cifs_strtoUTF16()
321 int i; in cifs_utf16_bytes() local
327 for (i = 0; i < maxwords; i++) { in cifs_utf16_bytes()
328 ftmp[0] = get_unaligned_le16(&from[i]); in cifs_utf16_bytes()
331 if (i + 1 < maxwords) in cifs_utf16_bytes()
332 ftmp[1] = get_unaligned_le16(&from[i + 1]); in cifs_utf16_bytes()
335 if (i + 2 < maxwords) in cifs_utf16_bytes()
336 ftmp[2] = get_unaligned_le16(&from[i + 2]); in cifs_utf16_bytes()
471 int i, charlen; in cifsConvertToUTF16() local
485 for (i = 0; i < srclen; j++) { in cifsConvertToUTF16()
486 src_char = source[i]; in cifsConvertToUTF16()
499 if (i == srclen - 1) in cifsConvertToUTF16()
513 charlen = cp->char2uni(source + i, srclen - i, &tmp); in cifsConvertToUTF16()
526 if (*(source + i) & 0x80) { in cifsConvertToUTF16()
527 charlen = utf8_to_utf32(source + i, 6, &u); in cifsConvertToUTF16()
532 ret = utf8s_to_utf16s(source + i, charlen, in cifsConvertToUTF16()
538 i += charlen; in cifsConvertToUTF16()
573 i += charlen; in cifsConvertToUTF16()
600 int i; in cifs_local_to_utf16_bytes() local
603 for (i = 0; len && *from; i++, from += charlen, len -= charlen) { in cifs_local_to_utf16_bytes()
609 return 2 * i; /* UTF16 characters are two bytes */ in cifs_local_to_utf16_bytes()