Lines Matching refs:src_char
33 convert_sfu_char(const __u16 src_char, char *target) in convert_sfu_char() argument
40 switch (src_char) { in convert_sfu_char()
67 convert_sfm_char(const __u16 src_char, char *target) in convert_sfm_char() argument
69 if (src_char >= 0xF001 && src_char <= 0xF01F) { in convert_sfm_char()
70 *target = src_char - 0xF000; in convert_sfm_char()
73 switch (src_char) { in convert_sfm_char()
124 __u16 src_char; in cifs_mapchar() local
126 src_char = *from; in cifs_mapchar()
128 if ((maptype == SFM_MAP_UNI_RSVD) && convert_sfm_char(src_char, target)) in cifs_mapchar()
131 convert_sfu_char(src_char, target)) in cifs_mapchar()
135 len = cp->uni2char(src_char, target, NLS_MAX_CHARSET_SIZE); in cifs_mapchar()
369 static __le16 convert_to_sfu_char(char src_char) in convert_to_sfu_char() argument
373 switch (src_char) { in convert_to_sfu_char()
399 static __le16 convert_to_sfm_char(char src_char, bool end_of_string) in convert_to_sfm_char() argument
403 if (src_char >= 0x01 && src_char <= 0x1F) { in convert_to_sfm_char()
404 dest_char = cpu_to_le16(src_char + 0xF000); in convert_to_sfm_char()
407 switch (src_char) { in convert_to_sfm_char()
460 char src_char; in cifsConvertToUTF16() local
473 src_char = source[i]; in cifsConvertToUTF16()
477 if (src_char == 0) in cifsConvertToUTF16()
482 dst_char = convert_to_sfu_char(src_char); in cifsConvertToUTF16()
497 dst_char = convert_to_sfm_char(src_char, end_of_string); in cifsConvertToUTF16()