Lines Matching defs:nls
13 #include <linux/nls.h>
177 if (BEFS_SB(sb)->nls) {
252 if (BEFS_SB(sb)->nls) {
496 * the nls tables directly
503 struct nls_table *nls = BEFS_SB(sb)->nls;
508 /* The utf8->nls conversion won't make the final nls string bigger
516 if (!nls) {
536 /* convert from Unicode to nls */
537 unilen = nls->uni2char(uni, &result[o], in_len - o);
551 "cannot be converted to unicode.", nls->charset);
583 struct nls_table *nls = BEFS_SB(sb)->nls;
588 /* There're nls characters that will translate to 3-chars-wide UTF-8
595 if (!nls) {
609 /* convert from nls to unicode */
610 unilen = nls->char2uni(&in[i], in_len - i, &uni);
631 "cannot be converted to unicode.", nls->charset);
732 if (BEFS_SB(sb)->nls) {
733 unload_nls(BEFS_SB(sb)->nls);
734 BEFS_SB(sb)->nls = NULL;
844 /* load nls library */
846 befs_debug(sb, "Loading nls: %s",
848 befs_sb->nls = load_nls(befs_sb->mount_opts.iocharset);
849 if (!befs_sb->nls) {
850 befs_warning(sb, "Cannot load nls %s"
851 " loading default nls",
853 befs_sb->nls = load_nls_default();
855 /* load default nls if none is specified in mount options */
857 befs_debug(sb, "Loading default nls");
858 befs_sb->nls = load_nls_default();