Home
last modified time | relevance | path

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

/fs/nls/
Dnls_base.c235 int register_nls(struct nls_table * nls) in register_nls() argument
239 if (nls->next) in register_nls()
244 if (nls == *tmp) { in register_nls()
250 nls->next = tables; in register_nls()
251 tables = nls; in register_nls()
256 int unregister_nls(struct nls_table * nls) in unregister_nls() argument
262 if (nls == *tmp) { in unregister_nls()
263 *tmp = nls->next; in unregister_nls()
275 struct nls_table *nls; in find_nls() local
277 for (nls = tables; nls; nls = nls->next) { in find_nls()
[all …]
/fs/hfsplus/
Doptions.c160 if (sbi->nls) { in hfsplus_parse_options()
166 sbi->nls = load_nls(p); in hfsplus_parse_options()
167 if (!sbi->nls) { in hfsplus_parse_options()
197 if (!sbi->nls) { in hfsplus_parse_options()
199 sbi->nls = load_nls("utf8"); in hfsplus_parse_options()
200 if (!sbi->nls) in hfsplus_parse_options()
201 sbi->nls = load_nls_default(); in hfsplus_parse_options()
202 if (!sbi->nls) in hfsplus_parse_options()
223 if (sbi->nls) in hfsplus_show_options()
224 seq_printf(seq, ",nls=%s", sbi->nls->charset); in hfsplus_show_options()
Dsuper.c262 unload_nls(sbi->nls); in hfsplus_put_super()
346 struct nls_table *nls = NULL; in hfsplus_fill_super() local
367 nls = sbi->nls; in hfsplus_fill_super()
368 sbi->nls = load_nls("utf8"); in hfsplus_fill_super()
369 if (!sbi->nls) { in hfsplus_fill_super()
525 unload_nls(sbi->nls); in hfsplus_fill_super()
526 sbi->nls = nls; in hfsplus_fill_super()
544 unload_nls(sbi->nls); in hfsplus_fill_super()
545 unload_nls(nls); in hfsplus_fill_super()
Dunicode.c126 struct nls_table *nls = HFSPLUS_SB(sb)->nls; in hfsplus_uni2asc() local
192 res = nls->uni2char(c0, op, len); in hfsplus_uni2asc()
235 res = nls->uni2char(cc, op, len); in hfsplus_uni2asc()
258 int size = HFSPLUS_SB(sb)->nls->char2uni(astr, len, uc); in asc2unichar()
Dhfsplus_fs.h123 struct nls_table *nls; member
/fs/isofs/
Djoliet.c17 uni16_to_x8(unsigned char *ascii, __be16 *uni, int len, struct nls_table *nls) in uni16_to_x8() argument
27 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
48 nls = ISOFS_SB(inode->i_sb)->s_nls_iocharset; in get_joliet_filename()
56 de->name_len[0] >> 1, nls); in get_joliet_filename()
/fs/befs/
Dlinuxvfs.c177 if (BEFS_SB(sb)->nls) { in befs_lookup()
252 if (BEFS_SB(sb)->nls) { in befs_readdir()
523 struct nls_table *nls = BEFS_SB(sb)->nls; in befs_utf2nls() local
536 if (!nls) { in befs_utf2nls()
558 unilen = nls->uni2char(uni, &result[o], in_len - o); in befs_utf2nls()
571 "cannot be converted to unicode.", nls->charset); in befs_utf2nls()
603 struct nls_table *nls = BEFS_SB(sb)->nls; in befs_nls2utf() local
615 if (!nls) { in befs_nls2utf()
630 unilen = nls->char2uni(&in[i], in_len - i, &uni); in befs_nls2utf()
649 "cannot be converted to unicode.", nls->charset); in befs_nls2utf()
[all …]
Dsuper.c54 befs_sb->nls = NULL; in befs_load_sb()
Dbefs.h56 struct nls_table *nls; member
DChangeLog389 (fs/nls/Config.in)
/fs/ntfs/
Dunistr.c262 struct nls_table *nls = vol->nls_map; in ntfs_nlstoucs() local
272 wc_len = nls->char2uni(ins + i, ins_len - i, in ntfs_nlstoucs()
300 "Unicode.", nls->charset); in ntfs_nlstoucs()
339 struct nls_table *nls = vol->nls_map; in ntfs_ucstonls() local
358 retry: wc = nls->uni2char(le16_to_cpu(ins[i]), ns + o, in ntfs_ucstonls()
389 "try to use the mount option nls=utf8.", nls->charset); in ntfs_ucstonls()
/fs/fat/
Dnamei_vfat.c269 static inline int to_shortname_char(struct nls_table *nls, in to_shortname_char() argument
285 len = nls->uni2char(*src, buf, buf_size); in to_shortname_char()
298 buf[0] = nls_toupper(nls, buf[0]); in to_shortname_char()
319 static int vfat_create_shortname(struct inode *dir, struct nls_table *nls, in vfat_create_shortname() argument
375 chl = to_shortname_char(nls, charbuf, sizeof(charbuf), in vfat_create_shortname()
403 chl = to_shortname_char(nls, charbuf, sizeof(charbuf), in vfat_create_shortname()
505 struct nls_table *nls) in xlate_to_uni() argument
553 charlen = nls->char2uni(ip, len - i, in xlate_to_uni()
Ddir.c140 const wchar_t *uni, int len, struct nls_table *nls) in uni16_to_x8() argument
153 if ((charlen = nls->uni2char(ec, op, NLS_MAX_CHARSET_SIZE)) > 0) { in uni16_to_x8()
229 fat_shortname2uni(struct nls_table *nls, unsigned char *buf, int buf_size, in fat_shortname2uni() argument
235 len = fat_short2lower_uni(nls, buf, buf_size, uni_buf); in fat_shortname2uni()
237 len = fat_short2uni(nls, buf, buf_size, uni_buf); in fat_shortname2uni()
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()
244 len = fat_short2uni(nls, buf, buf_size, uni_buf); in fat_shortname2uni()
/fs/udf/
Dunicode.c253 static int udf_CS0toNLS(struct nls_table *nls, struct ustr *utf_o, in udf_CS0toNLS() argument
283 len = nls->uni2char(c, &utf_o->u_name[utf_o->u_len], in udf_CS0toNLS()
296 static int udf_NLStoCS0(struct nls_table *nls, dstring *ocu, struct ustr *uni, in udf_NLStoCS0() argument
311 len = nls->char2uni(&uni->u_name[i], uni->u_len - i, &uni_char); in udf_NLStoCS0()
/fs/
DMakefile91 obj-$(CONFIG_NLS) += nls/
DKconfig280 source "fs/nls/Kconfig"
/fs/cifs/
DCHANGES685 of default nls codepage
804 unload nls if mount fails.