Searched refs:wchar_to (Results 1 – 2 of 2) sorted by relevance
/fs/smb/client/ |
D | cifs_unicode.c | 254 wchar_t wchar_to; /* needed to quiet sparse */ in cifs_strtoUTF16() local 278 charlen = codepage->char2uni(from, len, &wchar_to); in cifs_strtoUTF16() 283 wchar_to = 0x003f; in cifs_strtoUTF16() 286 put_unaligned_le16(wchar_to, &to[i]); in cifs_strtoUTF16() 462 wchar_t *wchar_to; /* UTF-16 */ in cifsConvertToUTF16() local 469 wchar_to = kzalloc(6, GFP_KERNEL); in cifsConvertToUTF16() 516 if (strcmp(cp->charset, "utf8") || !wchar_to) in cifsConvertToUTF16() 526 wchar_to, 6); in cifsConvertToUTF16() 531 dst_char = cpu_to_le16(*wchar_to); in cifsConvertToUTF16() 540 dst_char = cpu_to_le16(*(wchar_to + 1)); in cifsConvertToUTF16() [all …]
|
/fs/smb/server/ |
D | unicode.c | 239 wchar_t wchar_to; /* needed to quiet sparse */ in smb_strtoUTF16() local 263 charlen = codepage->char2uni(from, len, &wchar_to); in smb_strtoUTF16() 266 wchar_to = 0x003f; in smb_strtoUTF16() 269 put_unaligned_le16(wchar_to, &to[i]); in smb_strtoUTF16() 350 wchar_t wchar_to[6]; /* UTF-16 */ in smbConvertToUTF16() local 409 wchar_to, 6); in smbConvertToUTF16() 414 dst_char = cpu_to_le16(*wchar_to); in smbConvertToUTF16() 425 dst_char = cpu_to_le16(*(wchar_to + 1)); in smbConvertToUTF16() 431 dst_char = cpu_to_le16(*(wchar_to + 1)); in smbConvertToUTF16() 434 dst_char = cpu_to_le16(*(wchar_to + 2)); in smbConvertToUTF16()
|