/Linux-v5.4/fs/nls/ |
D | nls_base.c | 235 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-v5.4/fs/hfsplus/ |
D | options.c | 169 if (sbi->nls) { in hfsplus_parse_options() 175 sbi->nls = load_nls(p); in hfsplus_parse_options() 176 if (!sbi->nls) { in hfsplus_parse_options() 205 if (!sbi->nls) { in hfsplus_parse_options() 207 sbi->nls = load_nls("utf8"); in hfsplus_parse_options() 208 if (!sbi->nls) in hfsplus_parse_options() 209 sbi->nls = load_nls_default(); in hfsplus_parse_options() 210 if (!sbi->nls) in hfsplus_parse_options() 232 if (sbi->nls) in hfsplus_show_options() 233 seq_printf(seq, ",nls=%s", sbi->nls->charset); in hfsplus_show_options()
|
D | super.c | 305 unload_nls(sbi->nls); in hfsplus_put_super() 383 struct nls_table *nls = NULL; in hfsplus_fill_super() local 406 nls = sbi->nls; in hfsplus_fill_super() 407 sbi->nls = load_nls("utf8"); in hfsplus_fill_super() 408 if (!sbi->nls) { in hfsplus_fill_super() 589 unload_nls(sbi->nls); in hfsplus_fill_super() 590 sbi->nls = nls; in hfsplus_fill_super() 611 unload_nls(sbi->nls); in hfsplus_fill_super() 612 unload_nls(nls); in hfsplus_fill_super()
|
D | unicode.c | 127 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()
|
D | hfsplus_fs.h | 155 struct nls_table *nls; member
|
/Linux-v5.4/drivers/staging/exfat/ |
D | exfat_nls.c | 24 static int convert_ch_to_uni(struct nls_table *nls, u16 *uni, u8 *ch, in convert_ch_to_uni() argument 36 len = nls->char2uni(ch, NLS_MAX_CHARSET_SIZE, uni); in convert_ch_to_uni() 43 if (!strcmp(nls->charset, "utf8")) in convert_ch_to_uni() 52 static int convert_uni_to_ch(struct nls_table *nls, u8 *ch, u16 uni, in convert_uni_to_ch() argument 64 len = nls->uni2char(uni, ch, NLS_MAX_CHARSET_SIZE); in convert_uni_to_ch() 128 struct nls_table *nls = EXFAT_SB(sb)->nls_disk; in nls_uniname_to_dosname() local 184 len = convert_uni_to_ch(nls, buf, *uniname, &lossy); in nls_uniname_to_dosname() 247 struct nls_table *nls = EXFAT_SB(sb)->nls_disk; in nls_dosname_to_uniname() local 288 i += convert_ch_to_uni(nls, uniname, (buf + i), NULL); in nls_dosname_to_uniname() 303 struct nls_table *nls = EXFAT_SB(sb)->nls_io; in nls_uniname_to_cstring() local [all …]
|
/Linux-v5.4/samples/connector/ |
D | cn_test.c | 22 static struct sock *nls; variable 106 netlink_unicast(nls, skb, 0, 0); 167 if (nls && nls->sk_socket) in cn_test_init() 168 sock_release(nls->sk_socket); in cn_test_init() 179 if (nls && nls->sk_socket) in cn_test_fini() 180 sock_release(nls->sk_socket); in cn_test_fini()
|
/Linux-v5.4/fs/isofs/ |
D | joliet.c | 18 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() 45 struct nls_table *nls; in get_joliet_filename() local 49 nls = ISOFS_SB(inode->i_sb)->s_nls_iocharset; in get_joliet_filename() 57 de->name_len[0] >> 1, nls); in get_joliet_filename()
|
/Linux-v5.4/drivers/connector/ |
D | connector.c | 91 if (!portid && !netlink_has_listeners(dev->nls, group)) in cn_netlink_send_mult() 113 return netlink_broadcast(dev->nls, skb, portid, group, in cn_netlink_send_mult() 115 return netlink_unicast(dev->nls, skb, portid, in cn_netlink_send_mult() 259 dev->nls = netlink_kernel_create(&init_net, NETLINK_CONNECTOR, &cfg); in cn_init() 260 if (!dev->nls) in cn_init() 263 dev->cbdev = cn_queue_alloc_dev("cqueue", dev->nls); in cn_init() 265 netlink_kernel_release(dev->nls); in cn_init() 285 netlink_kernel_release(dev->nls); in cn_fini()
|
D | cn_queue.c | 112 struct cn_queue_dev *cn_queue_alloc_dev(const char *name, struct sock *nls) in cn_queue_alloc_dev() argument 125 dev->nls = nls; in cn_queue_alloc_dev()
|
/Linux-v5.4/fs/befs/ |
D | linuxvfs.c | 186 if (BEFS_SB(sb)->nls) { in befs_lookup() 248 if (BEFS_SB(sb)->nls) { in befs_readdir() 508 struct nls_table *nls = BEFS_SB(sb)->nls; in befs_utf2nls() local 521 if (!nls) { in befs_utf2nls() 540 unilen = nls->uni2char(uni, &result[o], in_len - o); in befs_utf2nls() 553 "cannot be converted to unicode.", nls->charset); in befs_utf2nls() 585 struct nls_table *nls = BEFS_SB(sb)->nls; in befs_nls2utf() local 599 if (!nls) { in befs_nls2utf() 614 unilen = nls->char2uni(&in[i], in_len - i, &uni); in befs_nls2utf() 633 "cannot be converted to unicode.", nls->charset); in befs_nls2utf() [all …]
|
D | befs.h | 60 struct nls_table *nls; member
|
D | super.c | 52 befs_sb->nls = NULL; in befs_load_sb()
|
D | ChangeLog | 389 (fs/nls/Config.in)
|
/Linux-v5.4/fs/ntfs/ |
D | unistr.c | 248 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()
|
/Linux-v5.4/drivers/infiniband/core/ |
D | netlink.c | 315 struct sock *nls; in rdma_nl_net_init() local 317 nls = netlink_kernel_create(net, NETLINK_RDMA, &cfg); in rdma_nl_net_init() 318 if (!nls) in rdma_nl_net_init() 321 nls->sk_sndtimeo = 10 * HZ; in rdma_nl_net_init() 322 rnet->nl_sock = nls; in rdma_nl_net_init()
|
/Linux-v5.4/include/linux/ |
D | connector.h | 29 struct sock *nls; member 52 struct sock *nls; member
|
D | nls.h | 53 #define register_nls(nls) __register_nls((nls), THIS_MODULE) argument
|
/Linux-v5.4/fs/fat/ |
D | namei_vfat.c | 277 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()
|
D | dir.c | 142 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-v5.4/Documentation/filesystems/ |
D | hfsplus.txt | 50 nls=cccc
|
D | ntfs.txt | 108 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-v5.4/fs/ |
D | Makefile | 95 obj-$(CONFIG_NLS) += nls/
|
D | Kconfig | 321 source "fs/nls/Kconfig"
|
/Linux-v5.4/drivers/scsi/ |
D | scsi_transport_iscsi.c | 1606 static struct sock *nls; variable 2326 return nlmsg_multicast(nls, skb, 0, group, gfp); in iscsi_multicast_skb() 2332 return nlmsg_unicast(nls, skb, portid); in iscsi_unicast_skb() 4558 nls = netlink_kernel_create(&init_net, NETLINK_ISCSI, &cfg); in iscsi_transport_init() 4559 if (!nls) { in iscsi_transport_init() 4573 netlink_kernel_release(nls); in iscsi_transport_init() 4594 netlink_kernel_release(nls); in iscsi_transport_exit()
|