| /linux/fs/nls/ |
| H A D | nls_base.c | 246 int __register_nls(struct nls_table *nls, struct module *owner) in __register_nls() argument 250 if (nls->next) in __register_nls() 253 nls->owner = owner; in __register_nls() 256 if (nls == *tmp) { in __register_nls() 262 nls->next = tables; in __register_nls() 263 tables = nls; in __register_nls() 269 int unregister_nls(struct nls_table * nls) in unregister_nls() argument 275 if (nls == *tmp) { in unregister_nls() 276 *tmp = nls->next; in unregister_nls() 288 struct nls_table *nls; in find_nls() local [all …]
|
| /linux/fs/isofs/ |
| H A 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() 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()
|
| /linux/samples/connector/ |
| H A 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/drivers/connector/ |
| H A D | connector.c | 92 if (!portid && !netlink_has_listeners(dev->nls, group)) in cn_netlink_send_mult() 114 return netlink_broadcast_filtered(dev->nls, skb, portid, group, in cn_netlink_send_mult() 117 return netlink_unicast(dev->nls, skb, portid, in cn_netlink_send_mult() 285 dev->nls = netlink_kernel_create(&init_net, NETLINK_CONNECTOR, &cfg); in cn_init() 286 if (!dev->nls) in cn_init() 289 dev->cbdev = cn_queue_alloc_dev("cqueue", dev->nls); in cn_init() 291 netlink_kernel_release(dev->nls); in cn_init() 311 netlink_kernel_release(dev->nls); in cn_fini()
|
| H A 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/fs/befs/ |
| H A D | linuxvfs.c | 188 if (BEFS_SB(sb)->nls) { in befs_lookup() 250 if (BEFS_SB(sb)->nls) { in befs_readdir() 507 struct nls_table *nls = BEFS_SB(sb)->nls; in befs_utf2nls() local 520 if (!nls) { in befs_utf2nls() 539 unilen = nls->uni2char(uni, &result[o], in_len - o); in befs_utf2nls() 552 "cannot be converted to unicode.", nls->charset); in befs_utf2nls() 584 struct nls_table *nls = BEFS_SB(sb)->nls; in befs_nls2utf() local 598 if (!nls) { in befs_nls2utf() 613 unilen = nls->char2uni(&in[i], in_len - i, &uni); in befs_nls2utf() 632 "cannot be converted to unicode.", nls->charset); in befs_nls2utf() [all …]
|
| H A D | befs.h | 60 struct nls_table *nls; member
|
| H A D | super.c | 52 befs_sb->nls = NULL; in befs_load_sb()
|
| /linux/fs/hfsplus/ |
| H A D | options.c | 114 if (sbi->nls) { in hfsplus_parse_param() 118 sbi->nls = load_nls(param->string); in hfsplus_parse_param() 119 if (!sbi->nls) { in hfsplus_parse_param() 162 if (sbi->nls) in hfsplus_show_options() 163 seq_printf(seq, ",nls=%s", sbi->nls->charset); in hfsplus_show_options()
|
| H A D | unicode_test.c | 387 struct nls_table nls; member 400 ptr->nls.charset = "utf8"; in setup_mock_sb() 401 ptr->nls.uni2char = NULL; /* Will use default behavior */ in setup_mock_sb() 402 ptr->sb_info.nls = &ptr->nls; in setup_mock_sb() 446 mock_sb->nls.uni2char = test_uni2char; in hfsplus_uni2asc_basic_test() 494 mock_sb->nls.uni2char = test_uni2char; in hfsplus_uni2asc_special_chars_test() 551 mock_sb->nls.uni2char = test_uni2char; in hfsplus_uni2asc_buffer_test() 597 mock_sb->nls.uni2char = test_uni2char; in hfsplus_uni2asc_corrupted_test() 633 mock_sb->nls.uni2char = test_uni2char; in hfsplus_uni2asc_edge_cases_test() 714 mock_sb->nls.char2uni = test_char2uni; in hfsplus_asc2uni_basic_test() [all …]
|
| H A D | super.c | 324 unload_nls(sbi->nls); in delayed_free() 435 struct nls_table *nls; in hfsplus_fill_super() local 446 if (!sbi->nls) { in hfsplus_fill_super() 448 sbi->nls = load_nls("utf8"); in hfsplus_fill_super() 449 if (!sbi->nls) in hfsplus_fill_super() 450 sbi->nls = load_nls_default(); in hfsplus_fill_super() 454 nls = sbi->nls; in hfsplus_fill_super() 455 sbi->nls = load_nls("utf8"); in hfsplus_fill_super() 456 if (!sbi->nls) { in hfsplus_fill_super() 633 unload_nls(sbi->nls); in hfsplus_fill_super() [all …]
|
| /linux/fs/exfat/ |
| H A D | nls.c | 405 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()
|
| H A D | Makefile | 7 exfat-y := inode.o namei.o dir.o super.o fatent.o cache.o nls.o misc.o \
|
| /linux/fs/vboxsf/ |
| H A D | super.c | 139 sbi->nls = load_nls_default(); in vboxsf_fill_super() 141 sbi->nls = load_nls(nls_name); in vboxsf_fill_super() 143 if (!sbi->nls) { in vboxsf_fill_super() 217 if (sbi->nls) in vboxsf_fill_super() 218 unload_nls(sbi->nls); in vboxsf_fill_super() 265 if (sbi->nls) in vboxsf_put_super() 266 unload_nls(sbi->nls); in vboxsf_put_super()
|
| H A D | utils.c | 386 if (sbi->nls) { in vboxsf_path_from_dentry() 397 nb = sbi->nls->char2uni(path, path_len, &uni); in vboxsf_path_from_dentry() 464 nb = sbi->nls->uni2char(uni, out, out_bound_len); in vboxsf_nlscpy()
|
| H A D | vfsmod.h | 46 struct nls_table *nls; member
|
| H A D | dir.c | 146 if (sbi->nls) { in vboxsf_dir_emit()
|
| /linux/drivers/infiniband/core/ |
| H A D | netlink.c | 316 struct sock *nls; in rdma_nl_net_init() local 318 nls = netlink_kernel_create(net, NETLINK_RDMA, &cfg); in rdma_nl_net_init() 319 if (!nls) in rdma_nl_net_init() 322 nls->sk_sndtimeo = 10 * HZ; in rdma_nl_net_init() 323 rnet->nl_sock = nls; in rdma_nl_net_init()
|
| /linux/fs/ntfs3/ |
| H A D | super.c | 248 unload_nls(options->nls); in put_mount_options() 308 static struct nls_table *ntfs_load_nls(const char *nls) in ntfs_load_nls() argument 312 if (!nls) in ntfs_load_nls() 313 nls = CONFIG_NLS_DEFAULT; in ntfs_load_nls() 315 if (strcmp(nls, "utf8") == 0) in ntfs_load_nls() 318 if (strcmp(nls, CONFIG_NLS_DEFAULT) == 0) in ntfs_load_nls() 321 ret = load_nls(nls); in ntfs_load_nls() 450 new_opts->nls = ntfs_load_nls(new_opts->nls_name); in ntfs_fs_reconfigure() 451 if (IS_ERR(new_opts->nls)) { in ntfs_fs_reconfigure() 452 new_opts->nls = NULL; in ntfs_fs_reconfigure() [all …]
|
| /linux/include/linux/ |
| H A D | connector.h | 29 struct sock *nls; member 52 struct sock *nls; member
|
| H A D | nls.h | 53 #define register_nls(nls) __register_nls((nls), THIS_MODULE) argument
|
| /linux/fs/fat/ |
| H A D | namei_vfat.c | 275 static inline int to_shortname_char(struct nls_table *nls, in to_shortname_char() argument 291 len = nls->uni2char(*src, buf, buf_size); in to_shortname_char() 304 buf[0] = nls_toupper(nls, buf[0]); in to_shortname_char() 325 static int vfat_create_shortname(struct inode *dir, struct nls_table *nls, in vfat_create_shortname() argument 381 chl = to_shortname_char(nls, charbuf, sizeof(charbuf), in vfat_create_shortname() 409 chl = to_shortname_char(nls, charbuf, sizeof(charbuf), in vfat_create_shortname() 511 struct nls_table *nls) in xlate_to_uni() argument 546 charlen = nls->char2uni(ip, len - i, in xlate_to_uni()
|
| /linux/drivers/leds/ |
| H A D | leds-pca955x.c | 584 u8 i, nls, psc0; in pca955x_probe() local 645 nls = pca955x_num_led_regs(chip->bits); in pca955x_probe() 648 0x10 | (pca955x_num_input_regs(chip->bits) + 4), nls, in pca955x_probe() 653 for (i = 0; i < nls; i++) in pca955x_probe() 711 for (i = 0; i < nls; i++) { in pca955x_probe()
|
| /linux/Documentation/filesystems/ |
| H A D | hfsplus.rst | 52 nls=cccc
|
| /linux/drivers/scsi/ |
| H A D | scsi_transport_iscsi.c | 1602 static struct sock *nls; variable 2534 return nlmsg_multicast(nls, skb, 0, group, gfp); in iscsi_multicast_skb() 2540 return nlmsg_unicast(nls, skb, portid); in iscsi_unicast_skb() 4983 nls = netlink_kernel_create(&init_net, NETLINK_ISCSI, &cfg); in iscsi_transport_init() 4984 if (!nls) { in iscsi_transport_init() 5000 netlink_kernel_release(nls); in iscsi_transport_init() 5021 netlink_kernel_release(nls); in iscsi_transport_exit()
|