Lines Matching refs:src_char
31 convert_sfu_char(const __u16 src_char, char *target) in convert_sfu_char() argument
38 switch (src_char) { in convert_sfu_char()
65 convert_sfm_char(const __u16 src_char, char *target) in convert_sfm_char() argument
67 if (src_char >= 0xF001 && src_char <= 0xF01F) { in convert_sfm_char()
68 *target = src_char - 0xF000; in convert_sfm_char()
71 switch (src_char) { in convert_sfm_char()
122 __u16 src_char; in cifs_mapchar() local
124 src_char = *from; in cifs_mapchar()
126 if ((maptype == SFM_MAP_UNI_RSVD) && convert_sfm_char(src_char, target)) in cifs_mapchar()
129 convert_sfu_char(src_char, target)) in cifs_mapchar()
133 len = cp->uni2char(src_char, target, NLS_MAX_CHARSET_SIZE); in cifs_mapchar()
367 static __le16 convert_to_sfu_char(char src_char) in convert_to_sfu_char() argument
371 switch (src_char) { in convert_to_sfu_char()
397 static __le16 convert_to_sfm_char(char src_char, bool end_of_string) in convert_to_sfm_char() argument
401 if (src_char >= 0x01 && src_char <= 0x1F) { in convert_to_sfm_char()
402 dest_char = cpu_to_le16(src_char + 0xF000); in convert_to_sfm_char()
405 switch (src_char) { in convert_to_sfm_char()
458 char src_char; in cifsConvertToUTF16() local
471 src_char = source[i]; in cifsConvertToUTF16()
475 if (src_char == 0) in cifsConvertToUTF16()
480 dst_char = convert_to_sfu_char(src_char); in cifsConvertToUTF16()
495 dst_char = convert_to_sfm_char(src_char, end_of_string); in cifsConvertToUTF16()