Home
last modified time | relevance | path

Searched refs:nls (Results 1 – 22 of 22) sorted by relevance

/fs/nls/
Dnls_base.c235 int __register_nls(struct nls_table *nls, struct module *owner) in __register_nls() argument
239 if (nls->next) in __register_nls()
242 nls->owner = owner; in __register_nls()
245 if (nls == *tmp) { in __register_nls()
251 nls->next = tables; in __register_nls()
252 tables = nls; in __register_nls()
258 int unregister_nls(struct nls_table * nls) in unregister_nls() argument
264 if (nls == *tmp) { in unregister_nls()
265 *tmp = nls->next; in unregister_nls()
277 struct nls_table *nls; in find_nls() local
[all …]
/fs/hfsplus/
Doptions.c173 if (sbi->nls) { in hfsplus_parse_options()
179 sbi->nls = load_nls(p); in hfsplus_parse_options()
180 if (!sbi->nls) { in hfsplus_parse_options()
209 if (!sbi->nls) { in hfsplus_parse_options()
211 sbi->nls = load_nls("utf8"); in hfsplus_parse_options()
212 if (!sbi->nls) in hfsplus_parse_options()
213 sbi->nls = load_nls_default(); in hfsplus_parse_options()
214 if (!sbi->nls) in hfsplus_parse_options()
236 if (sbi->nls) in hfsplus_show_options()
237 seq_printf(seq, ",nls=%s", sbi->nls->charset); in hfsplus_show_options()
Dsuper.c305 unload_nls(sbi->nls); in hfsplus_put_super()
382 struct nls_table *nls = NULL; in hfsplus_fill_super() local
405 nls = sbi->nls; in hfsplus_fill_super()
406 sbi->nls = load_nls("utf8"); in hfsplus_fill_super()
407 if (!sbi->nls) { in hfsplus_fill_super()
588 unload_nls(sbi->nls); in hfsplus_fill_super()
589 sbi->nls = nls; in hfsplus_fill_super()
610 unload_nls(sbi->nls); in hfsplus_fill_super()
611 unload_nls(nls); in hfsplus_fill_super()
Dunicode.c127 struct nls_table *nls = HFSPLUS_SB(sb)->nls; in hfsplus_uni2asc() local
193 res = nls->uni2char(c0, op, len); in hfsplus_uni2asc()
236 res = nls->uni2char(cc, op, len); in hfsplus_uni2asc()
259 int size = HFSPLUS_SB(sb)->nls->char2uni(astr, len, uc); in asc2unichar()
Dhfsplus_fs.h155 struct nls_table *nls; member
/fs/isofs/
Djoliet.c18 uni16_to_x8(unsigned char *ascii, __be16 *uni, int len, struct nls_table *nls) in uni16_to_x8() argument
28 llen = nls->uni2char(be16_to_cpu(ch), op, NLS_MAX_CHARSET_SIZE); in uni16_to_x8()
44 struct nls_table *nls; in get_joliet_filename() local
47 nls = ISOFS_SB(inode->i_sb)->s_nls_iocharset; in get_joliet_filename()
49 if (!nls) { in get_joliet_filename()
55 de->name_len[0] >> 1, nls); in get_joliet_filename()
/fs/befs/
Dlinuxvfs.c188 if (BEFS_SB(sb)->nls) { in befs_lookup()
250 if (BEFS_SB(sb)->nls) { in befs_readdir()
510 struct nls_table *nls = BEFS_SB(sb)->nls; in befs_utf2nls() local
523 if (!nls) { in befs_utf2nls()
542 unilen = nls->uni2char(uni, &result[o], in_len - o); in befs_utf2nls()
555 "cannot be converted to unicode.", nls->charset); in befs_utf2nls()
587 struct nls_table *nls = BEFS_SB(sb)->nls; in befs_nls2utf() local
601 if (!nls) { in befs_nls2utf()
616 unilen = nls->char2uni(&in[i], in_len - i, &uni); in befs_nls2utf()
635 "cannot be converted to unicode.", nls->charset); in befs_nls2utf()
[all …]
Dbefs.h60 struct nls_table *nls; member
Dsuper.c52 befs_sb->nls = NULL; in befs_load_sb()
DChangeLog389 (fs/nls/Config.in)
/fs/exfat/
Dnls.c405 static int exfat_convert_char_to_ucs2(struct nls_table *nls, in exfat_convert_char_to_ucs2() argument
418 len = nls->char2uni(ch, ch_len, ucs2); in exfat_convert_char_to_ucs2()
429 static int exfat_convert_ucs2_to_char(struct nls_table *nls, in exfat_convert_ucs2_to_char() argument
441 len = nls->uni2char(ucs2, ch, MAX_CHARSET_SIZE); in exfat_convert_ucs2_to_char()
547 struct nls_table *nls = EXFAT_SB(sb)->nls_io; in __exfat_utf16_to_nls() local
554 len = exfat_convert_ucs2_to_char(nls, *uniname, buf, in __exfat_utf16_to_nls()
602 struct nls_table *nls = EXFAT_SB(sb)->nls_io; in exfat_nls_to_ucs2() local
607 i += exfat_convert_char_to_ucs2(nls, p_cstring + i, len - i, in exfat_nls_to_ucs2()
DMakefile7 exfat-y := inode.o namei.o dir.o super.o fatent.o cache.o nls.o misc.o \
/fs/ntfs/
Dunistr.c248 struct nls_table *nls = vol->nls_map; in ntfs_nlstoucs() local
258 wc_len = nls->char2uni(ins + i, ins_len - i, in ntfs_nlstoucs()
286 "Unicode.", nls->charset); in ntfs_nlstoucs()
325 struct nls_table *nls = vol->nls_map; in ntfs_ucstonls() local
344 retry: wc = nls->uni2char(le16_to_cpu(ins[i]), ns + o, in ntfs_ucstonls()
375 "try to use the mount option nls=utf8.", nls->charset); in ntfs_ucstonls()
/fs/vboxsf/
Dsuper.c147 sbi->nls = load_nls_default(); in vboxsf_fill_super()
149 sbi->nls = load_nls(nls_name); in vboxsf_fill_super()
151 if (!sbi->nls) { in vboxsf_fill_super()
225 if (sbi->nls) in vboxsf_fill_super()
226 unload_nls(sbi->nls); in vboxsf_fill_super()
272 if (sbi->nls) in vboxsf_put_super()
273 unload_nls(sbi->nls); in vboxsf_put_super()
Dutils.c365 if (sbi->nls) { in vboxsf_path_from_dentry()
376 nb = sbi->nls->char2uni(path, path_len, &uni); in vboxsf_path_from_dentry()
445 nb = sbi->nls->uni2char(uni, out, out_bound_len); in vboxsf_nlscpy()
Dvfsmod.h46 struct nls_table *nls; member
Ddir.c146 if (sbi->nls) { in vboxsf_dir_emit()
/fs/fat/
Dnamei_vfat.c277 static inline int to_shortname_char(struct nls_table *nls, in to_shortname_char() argument
293 len = nls->uni2char(*src, buf, buf_size); in to_shortname_char()
306 buf[0] = nls_toupper(nls, buf[0]); in to_shortname_char()
327 static int vfat_create_shortname(struct inode *dir, struct nls_table *nls, in vfat_create_shortname() argument
383 chl = to_shortname_char(nls, charbuf, sizeof(charbuf), in vfat_create_shortname()
411 chl = to_shortname_char(nls, charbuf, sizeof(charbuf), in vfat_create_shortname()
513 struct nls_table *nls) in xlate_to_uni() argument
548 charlen = nls->char2uni(ip, len - i, in xlate_to_uni()
Ddir.c142 const wchar_t *uni, int len, struct nls_table *nls) in uni16_to_x8() argument
155 charlen = nls->uni2char(ec, op, NLS_MAX_CHARSET_SIZE); in uni16_to_x8()
234 fat_shortname2uni(struct nls_table *nls, unsigned char *buf, int buf_size, in fat_shortname2uni() argument
240 len = fat_short2lower_uni(nls, buf, buf_size, uni_buf); in fat_shortname2uni()
242 len = fat_short2uni(nls, buf, buf_size, uni_buf); in fat_shortname2uni()
245 len = fat_short2lower_uni(nls, buf, buf_size, uni_buf); in fat_shortname2uni()
247 len = fat_short2uni(nls, buf, buf_size, uni_buf); in fat_shortname2uni()
249 len = fat_short2uni(nls, buf, buf_size, uni_buf); in fat_shortname2uni()
/fs/
DMakefile97 obj-$(CONFIG_NLS) += nls/
DKconfig346 source "fs/nls/Kconfig"
/fs/cifs/
Dcifssmb.c1333 const struct nls_table *nls = cifs_sb->local_nls; in CIFS_open() local
1352 path, PATH_MAX, nls, remap); in CIFS_open()