Home
last modified time | relevance | path

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

/linux-4.1.27/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 …]
/linux-4.1.27/fs/hfsplus/
Doptions.c168 if (sbi->nls) { in hfsplus_parse_options()
174 sbi->nls = load_nls(p); in hfsplus_parse_options()
175 if (!sbi->nls) { in hfsplus_parse_options()
204 if (!sbi->nls) { in hfsplus_parse_options()
206 sbi->nls = load_nls("utf8"); in hfsplus_parse_options()
207 if (!sbi->nls) in hfsplus_parse_options()
208 sbi->nls = load_nls_default(); in hfsplus_parse_options()
209 if (!sbi->nls) in hfsplus_parse_options()
231 if (sbi->nls) in hfsplus_show_options()
232 seq_printf(seq, ",nls=%s", sbi->nls->charset); in hfsplus_show_options()
Dsuper.c300 unload_nls(sbi->nls); in hfsplus_put_super()
378 struct nls_table *nls = NULL; in hfsplus_fill_super() local
401 nls = sbi->nls; in hfsplus_fill_super()
402 sbi->nls = load_nls("utf8"); in hfsplus_fill_super()
403 if (!sbi->nls) { in hfsplus_fill_super()
582 unload_nls(sbi->nls); in hfsplus_fill_super()
583 sbi->nls = nls; in hfsplus_fill_super()
603 unload_nls(sbi->nls); in hfsplus_fill_super()
604 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.h155 struct nls_table *nls; member
/linux-4.1.27/Documentation/connector/
Dcn_test.c35 static struct sock *nls; variable
119 netlink_unicast(nls, skb, 0, 0);
180 if (nls && nls->sk_socket) in cn_test_init()
181 sock_release(nls->sk_socket); in cn_test_init()
192 if (nls && nls->sk_socket) in cn_test_fini()
193 sock_release(nls->sk_socket); in cn_test_fini()
/linux-4.1.27/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()
/linux-4.1.27/drivers/infiniband/core/
Dnetlink.c49 static struct sock *nls; variable
159 return netlink_dump_start(nls, skb, nlh, &c); in ibnl_rcv_msg()
178 return nlmsg_unicast(nls, skb, pid); in ibnl_unicast()
185 return nlmsg_multicast(nls, skb, 0, group, flags); in ibnl_multicast()
195 nls = netlink_kernel_create(&init_net, NETLINK_RDMA, &cfg); in ibnl_init()
196 if (!nls) { in ibnl_init()
215 netlink_kernel_release(nls); in ibnl_cleanup()
/linux-4.1.27/drivers/connector/
Dconnector.c103 if (!portid && !netlink_has_listeners(dev->nls, group)) in cn_netlink_send_mult()
125 return netlink_broadcast(dev->nls, skb, portid, group, in cn_netlink_send_mult()
127 return netlink_unicast(dev->nls, skb, portid, !(gfp_mask&__GFP_WAIT)); in cn_netlink_send_mult()
287 dev->nls = netlink_kernel_create(&init_net, NETLINK_CONNECTOR, &cfg); in cn_init()
288 if (!dev->nls) in cn_init()
291 dev->cbdev = cn_queue_alloc_dev("cqueue", dev->nls); in cn_init()
293 netlink_kernel_release(dev->nls); in cn_init()
313 netlink_kernel_release(dev->nls); in cn_fini()
Dcn_queue.c126 struct cn_queue_dev *cn_queue_alloc_dev(const char *name, struct sock *nls) in cn_queue_alloc_dev() argument
139 dev->nls = nls; in cn_queue_alloc_dev()
/linux-4.1.27/fs/befs/
Dlinuxvfs.c179 if (BEFS_SB(sb)->nls) { in befs_lookup()
250 if (BEFS_SB(sb)->nls) { in befs_readdir()
522 struct nls_table *nls = BEFS_SB(sb)->nls; in befs_utf2nls() local
535 if (!nls) { in befs_utf2nls()
557 unilen = nls->uni2char(uni, &result[o], in_len - o); in befs_utf2nls()
570 "cannot be converted to unicode.", nls->charset); in befs_utf2nls()
602 struct nls_table *nls = BEFS_SB(sb)->nls; in befs_nls2utf() local
614 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)
/linux-4.1.27/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()
/linux-4.1.27/include/linux/
Dconnector.h42 struct sock *nls; member
65 struct sock *nls; member
Dnls.h52 #define register_nls(nls) __register_nls((nls), THIS_MODULE) argument
/linux-4.1.27/fs/udf/
Dunicode.c264 static int udf_CS0toNLS(struct nls_table *nls, struct ustr *utf_o, in udf_CS0toNLS() argument
294 len = nls->uni2char(c, &utf_o->u_name[utf_o->u_len], in udf_CS0toNLS()
307 static int udf_NLStoCS0(struct nls_table *nls, dstring *ocu, struct ustr *uni, in udf_NLStoCS0() argument
326 len = nls->char2uni(&uni->u_name[i], uni->u_len - i, &uni_char); in udf_NLStoCS0()
/linux-4.1.27/fs/fat/
Dnamei_vfat.c263 static inline int to_shortname_char(struct nls_table *nls, in to_shortname_char() argument
279 len = nls->uni2char(*src, buf, buf_size); in to_shortname_char()
292 buf[0] = nls_toupper(nls, buf[0]); in to_shortname_char()
313 static int vfat_create_shortname(struct inode *dir, struct nls_table *nls, in vfat_create_shortname() argument
369 chl = to_shortname_char(nls, charbuf, sizeof(charbuf), in vfat_create_shortname()
397 chl = to_shortname_char(nls, charbuf, sizeof(charbuf), in vfat_create_shortname()
499 struct nls_table *nls) in xlate_to_uni() argument
547 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()
/linux-4.1.27/Documentation/filesystems/
Dhfsplus.txt50 nls=cccc
Dntfs.txt108 nls=name in the future. See description for nls=name.
110 nls=name Character set to use when returning file names.
116 advised to use nls=utf8 which is capable of
120 nls=utf8 but please use nls=utf8 in the future and
122 the kernel. See description for nls=name.
/linux-4.1.27/fs/
DMakefile89 obj-$(CONFIG_NLS) += nls/
DKconfig278 source "fs/nls/Kconfig"
/linux-4.1.27/drivers/scsi/
Dscsi_transport_iscsi.c1609 static struct sock *nls; variable
2343 return nlmsg_multicast(nls, skb, 0, group, gfp); in iscsi_multicast_skb()
4548 nls = netlink_kernel_create(&init_net, NETLINK_ISCSI, &cfg); in iscsi_transport_init()
4549 if (!nls) { in iscsi_transport_init()
4563 netlink_kernel_release(nls); in iscsi_transport_init()
4584 netlink_kernel_release(nls); in iscsi_transport_exit()
/linux-4.1.27/Documentation/filesystems/cifs/
DCHANGES685 of default nls codepage
804 unload nls if mount fails.
/linux-4.1.27/fs/cifs/
Dcifssmb.c1284 const struct nls_table *nls = cifs_sb->local_nls; in CIFS_open() local
1303 path, PATH_MAX, nls, remap); in CIFS_open()