Home
last modified time | relevance | path

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

12

/linux-6.15/fs/nls/
H A Dnls_base.c239 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()
279 for (nls = tables; nls; nls = nls->next) { in find_nls()
282 if (nls->alias && !strcmp(nls->alias, charset)) in find_nls()
285 if (nls && !try_module_get(nls->owner)) in find_nls()
286 nls = NULL; in find_nls()
288 return nls; in find_nls()
[all …]
/linux-6.15/fs/isofs/
H A Djoliet.c18 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-6.15/samples/connector/
H A Dcn_test.c22 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-6.15/drivers/connector/
H A Dconnector.c92 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 Dcn_queue.c112 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-6.15/fs/hfsplus/
H A Dsuper.c285 unload_nls(sbi->nls); in delayed_free()
387 struct nls_table *nls; in hfsplus_fill_super() local
398 if (!sbi->nls) { in hfsplus_fill_super()
401 if (!sbi->nls) in hfsplus_fill_super()
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()
[all …]
H A Doptions.c113 if (sbi->nls) { in hfsplus_parse_param()
117 sbi->nls = load_nls(param->string); in hfsplus_parse_param()
118 if (!sbi->nls) { in hfsplus_parse_param()
161 if (sbi->nls) in hfsplus_show_options()
162 seq_printf(seq, ",nls=%s", sbi->nls->charset); in hfsplus_show_options()
H A Dunicode.c127 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()
/linux-6.15/fs/befs/
H A Dlinuxvfs.c186 if (BEFS_SB(sb)->nls) { in befs_lookup()
248 if (BEFS_SB(sb)->nls) { in befs_readdir()
505 struct nls_table *nls = BEFS_SB(sb)->nls; in befs_utf2nls() local
518 if (!nls) { in befs_utf2nls()
582 struct nls_table *nls = BEFS_SB(sb)->nls; in befs_nls2utf() local
596 if (!nls) { in befs_nls2utf()
611 unilen = nls->char2uni(&in[i], in_len - i, &uni); in befs_nls2utf()
751 unload_nls(BEFS_SB(sb)->nls); in befs_put_super()
883 if (!befs_sb->nls) { in befs_fill_super()
887 befs_sb->nls = load_nls_default(); in befs_fill_super()
[all …]
H A Dbefs.h60 struct nls_table *nls; member
H A Dsuper.c52 befs_sb->nls = NULL; in befs_load_sb()
/linux-6.15/fs/exfat/
H A Dnls.c405 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 DMakefile7 exfat-y := inode.o namei.o dir.o super.o fatent.o cache.o nls.o misc.o \
/linux-6.15/fs/ntfs3/
H A Ddir.c23 struct nls_table *nls = sbi->options->nls; in ntfs_utf16_to_nls() local
27 if (!nls) { in ntfs_utf16_to_nls()
50 charlen = nls->uni2char(ec, op, buf_len); in ntfs_utf16_to_nls()
69 nls->charset); in ntfs_utf16_to_nls()
183 struct nls_table *nls = sbi->options->nls; in ntfs_nls_to_utf16() local
188 if (!nls) { in ntfs_nls_to_utf16()
199 slen = nls->char2uni(name, end - name, uname + ret); in ntfs_nls_to_utf16()
H A Dsuper.c240 unload_nls(options->nls); in put_mount_options()
298 if (!nls) in ntfs_load_nls()
299 nls = CONFIG_NLS_DEFAULT; in ntfs_load_nls()
301 if (strcmp(nls, "utf8") == 0) in ntfs_load_nls()
307 ret = load_nls(nls); in ntfs_load_nls()
426 if (IS_ERR(new_opts->nls)) { in ntfs_fs_reconfigure()
427 new_opts->nls = NULL; in ntfs_fs_reconfigure()
432 if (new_opts->nls != sbi->options->nls) in ntfs_fs_reconfigure()
752 if (opts->nls) in ntfs_show_options()
1229 if (IS_ERR(options->nls)) { in ntfs_fill_super()
[all …]
/linux-6.15/fs/vboxsf/
H A Dsuper.c139 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 Dutils.c386 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 Dvfsmod.h46 struct nls_table *nls; member
/linux-6.15/drivers/infiniband/core/
H A Dnetlink.c316 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-6.15/include/linux/
H A Dconnector.h29 struct sock *nls; member
52 struct sock *nls; member
H A Dnls.h53 #define register_nls(nls) __register_nls((nls), THIS_MODULE) argument
/linux-6.15/fs/fat/
H A Dnamei_vfat.c274 static inline int to_shortname_char(struct nls_table *nls, in to_shortname_char() argument
290 len = nls->uni2char(*src, buf, buf_size); in to_shortname_char()
303 buf[0] = nls_toupper(nls, buf[0]); in to_shortname_char()
324 static int vfat_create_shortname(struct inode *dir, struct nls_table *nls, in vfat_create_shortname() argument
380 chl = to_shortname_char(nls, charbuf, sizeof(charbuf), in vfat_create_shortname()
408 chl = to_shortname_char(nls, charbuf, sizeof(charbuf), in vfat_create_shortname()
510 struct nls_table *nls) in xlate_to_uni() argument
545 charlen = nls->char2uni(ip, len - i, in xlate_to_uni()
H A 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-6.15/drivers/leds/
H A Dleds-pca955x.c584 int i, bit, err, nls, reg; in pca955x_probe() local
646 nls = pca955x_num_led_regs(chip->bits); in pca955x_probe()
649 0x10 | (pca955x_num_input_regs(chip->bits) + 4), nls, in pca955x_probe()
654 for (i = 0; i < nls; i++) in pca955x_probe()
713 for (i = 0; i < nls; i++) { in pca955x_probe()
/linux-6.15/Documentation/filesystems/
H A Dhfsplus.rst52 nls=cccc

12