nls               112 drivers/connector/cn_queue.c struct cn_queue_dev *cn_queue_alloc_dev(const char *name, struct sock *nls)
nls               125 drivers/connector/cn_queue.c 	dev->nls = nls;
nls                91 drivers/connector/connector.c 	if (!portid && !netlink_has_listeners(dev->nls, group))
nls               113 drivers/connector/connector.c 		return netlink_broadcast(dev->nls, skb, portid, group,
nls               115 drivers/connector/connector.c 	return netlink_unicast(dev->nls, skb, portid,
nls               259 drivers/connector/connector.c 	dev->nls = netlink_kernel_create(&init_net, NETLINK_CONNECTOR, &cfg);
nls               260 drivers/connector/connector.c 	if (!dev->nls)
nls               263 drivers/connector/connector.c 	dev->cbdev = cn_queue_alloc_dev("cqueue", dev->nls);
nls               265 drivers/connector/connector.c 		netlink_kernel_release(dev->nls);
nls               285 drivers/connector/connector.c 	netlink_kernel_release(dev->nls);
nls               315 drivers/infiniband/core/netlink.c 	struct sock *nls;
nls               317 drivers/infiniband/core/netlink.c 	nls = netlink_kernel_create(net, NETLINK_RDMA, &cfg);
nls               318 drivers/infiniband/core/netlink.c 	if (!nls)
nls               321 drivers/infiniband/core/netlink.c 	nls->sk_sndtimeo = 10 * HZ;
nls               322 drivers/infiniband/core/netlink.c 	rnet->nl_sock = nls;
nls              1608 drivers/scsi/scsi_transport_iscsi.c static struct sock *nls;
nls              2330 drivers/scsi/scsi_transport_iscsi.c 	return nlmsg_multicast(nls, skb, 0, group, gfp);
nls              2336 drivers/scsi/scsi_transport_iscsi.c 	return nlmsg_unicast(nls, skb, portid);
nls              4587 drivers/scsi/scsi_transport_iscsi.c 	nls = netlink_kernel_create(&init_net, NETLINK_ISCSI, &cfg);
nls              4588 drivers/scsi/scsi_transport_iscsi.c 	if (!nls) {
nls              4602 drivers/scsi/scsi_transport_iscsi.c 	netlink_kernel_release(nls);
nls              4623 drivers/scsi/scsi_transport_iscsi.c 	netlink_kernel_release(nls);
nls                24 drivers/staging/exfat/exfat_nls.c static int convert_ch_to_uni(struct nls_table *nls, u16 *uni, u8 *ch,
nls                36 drivers/staging/exfat/exfat_nls.c 	len = nls->char2uni(ch, NLS_MAX_CHARSET_SIZE, uni);
nls                43 drivers/staging/exfat/exfat_nls.c 		if (!strcmp(nls->charset, "utf8"))
nls                52 drivers/staging/exfat/exfat_nls.c static int convert_uni_to_ch(struct nls_table *nls, u8 *ch, u16 uni,
nls                64 drivers/staging/exfat/exfat_nls.c 	len = nls->uni2char(uni, ch, NLS_MAX_CHARSET_SIZE);
nls               128 drivers/staging/exfat/exfat_nls.c 	struct nls_table *nls = EXFAT_SB(sb)->nls_disk;
nls               184 drivers/staging/exfat/exfat_nls.c 			len = convert_uni_to_ch(nls, buf, *uniname, &lossy);
nls               247 drivers/staging/exfat/exfat_nls.c 	struct nls_table *nls = EXFAT_SB(sb)->nls_disk;
nls               288 drivers/staging/exfat/exfat_nls.c 		i += convert_ch_to_uni(nls, uniname, (buf + i), NULL);
nls               303 drivers/staging/exfat/exfat_nls.c 	struct nls_table *nls = EXFAT_SB(sb)->nls_io;
nls               305 drivers/staging/exfat/exfat_nls.c 	if (!nls) {
nls               318 drivers/staging/exfat/exfat_nls.c 		len = convert_uni_to_ch(nls, buf, *uniname, NULL);
nls               343 drivers/staging/exfat/exfat_nls.c 	struct nls_table *nls = EXFAT_SB(sb)->nls_io;
nls               366 drivers/staging/exfat/exfat_nls.c 	if (!nls) {
nls               380 drivers/staging/exfat/exfat_nls.c 			i += convert_ch_to_uni(nls, uniname,
nls                60 fs/befs/befs.h 	struct nls_table *nls;
nls               186 fs/befs/linuxvfs.c 	if (BEFS_SB(sb)->nls) {
nls               248 fs/befs/linuxvfs.c 		if (BEFS_SB(sb)->nls) {
nls               508 fs/befs/linuxvfs.c 	struct nls_table *nls = BEFS_SB(sb)->nls;
nls               521 fs/befs/linuxvfs.c 	if (!nls) {
nls               540 fs/befs/linuxvfs.c 		unilen = nls->uni2char(uni, &result[o], in_len - o);
nls               553 fs/befs/linuxvfs.c 		   "cannot be converted to unicode.", nls->charset);
nls               585 fs/befs/linuxvfs.c 	struct nls_table *nls = BEFS_SB(sb)->nls;
nls               599 fs/befs/linuxvfs.c 	if (!nls) {
nls               614 fs/befs/linuxvfs.c 		unilen = nls->char2uni(&in[i], in_len - i, &uni);
nls               633 fs/befs/linuxvfs.c 		   "cannot be converted to unicode.", nls->charset);
nls               796 fs/befs/linuxvfs.c 	unload_nls(BEFS_SB(sb)->nls);
nls               914 fs/befs/linuxvfs.c 		befs_sb->nls = load_nls(befs_sb->mount_opts.iocharset);
nls               915 fs/befs/linuxvfs.c 		if (!befs_sb->nls) {
nls               919 fs/befs/linuxvfs.c 			befs_sb->nls = load_nls_default();
nls               924 fs/befs/linuxvfs.c 		befs_sb->nls = load_nls_default();
nls                52 fs/befs/super.c 	befs_sb->nls = NULL;
nls              1406 fs/cifs/cifssmb.c 	const struct nls_table *nls = cifs_sb->local_nls;
nls              1425 fs/cifs/cifssmb.c 					      path, PATH_MAX, nls, remap);
nls               142 fs/fat/dir.c   		       const wchar_t *uni, int len, struct nls_table *nls)
nls               155 fs/fat/dir.c   		charlen = nls->uni2char(ec, op, NLS_MAX_CHARSET_SIZE);
nls               234 fs/fat/dir.c   fat_shortname2uni(struct nls_table *nls, unsigned char *buf, int buf_size,
nls               240 fs/fat/dir.c   		len =  fat_short2lower_uni(nls, buf, buf_size, uni_buf);
nls               242 fs/fat/dir.c   		len = fat_short2uni(nls, buf, buf_size, uni_buf);
nls               245 fs/fat/dir.c   			len = fat_short2lower_uni(nls, buf, buf_size, uni_buf);
nls               247 fs/fat/dir.c   			len = fat_short2uni(nls, buf, buf_size, uni_buf);
nls               249 fs/fat/dir.c   		len = fat_short2uni(nls, buf, buf_size, uni_buf);
nls               277 fs/fat/namei_vfat.c static inline int to_shortname_char(struct nls_table *nls,
nls               293 fs/fat/namei_vfat.c 	len = nls->uni2char(*src, buf, buf_size);
nls               306 fs/fat/namei_vfat.c 		buf[0] = nls_toupper(nls, buf[0]);
nls               327 fs/fat/namei_vfat.c static int vfat_create_shortname(struct inode *dir, struct nls_table *nls,
nls               383 fs/fat/namei_vfat.c 		chl = to_shortname_char(nls, charbuf, sizeof(charbuf),
nls               411 fs/fat/namei_vfat.c 			chl = to_shortname_char(nls, charbuf, sizeof(charbuf),
nls               513 fs/fat/namei_vfat.c 	     struct nls_table *nls)
nls               548 fs/fat/namei_vfat.c 				charlen = nls->char2uni(ip, len - i,
nls               155 fs/hfsplus/hfsplus_fs.h 	struct nls_table *nls;
nls               169 fs/hfsplus/options.c 			if (sbi->nls) {
nls               175 fs/hfsplus/options.c 				sbi->nls = load_nls(p);
nls               176 fs/hfsplus/options.c 			if (!sbi->nls) {
nls               205 fs/hfsplus/options.c 	if (!sbi->nls) {
nls               207 fs/hfsplus/options.c 		sbi->nls = load_nls("utf8");
nls               208 fs/hfsplus/options.c 		if (!sbi->nls)
nls               209 fs/hfsplus/options.c 			sbi->nls = load_nls_default();
nls               210 fs/hfsplus/options.c 		if (!sbi->nls)
nls               232 fs/hfsplus/options.c 	if (sbi->nls)
nls               233 fs/hfsplus/options.c 		seq_printf(seq, ",nls=%s", sbi->nls->charset);
nls               305 fs/hfsplus/super.c 	unload_nls(sbi->nls);
nls               383 fs/hfsplus/super.c 	struct nls_table *nls = NULL;
nls               406 fs/hfsplus/super.c 	nls = sbi->nls;
nls               407 fs/hfsplus/super.c 	sbi->nls = load_nls("utf8");
nls               408 fs/hfsplus/super.c 	if (!sbi->nls) {
nls               589 fs/hfsplus/super.c 	unload_nls(sbi->nls);
nls               590 fs/hfsplus/super.c 	sbi->nls = nls;
nls               611 fs/hfsplus/super.c 	unload_nls(sbi->nls);
nls               612 fs/hfsplus/super.c 	unload_nls(nls);
nls               127 fs/hfsplus/unicode.c 	struct nls_table *nls = HFSPLUS_SB(sb)->nls;
nls               193 fs/hfsplus/unicode.c 			res = nls->uni2char(c0, op, len);
nls               236 fs/hfsplus/unicode.c 		res = nls->uni2char(cc, op, len);
nls               259 fs/hfsplus/unicode.c 	int size = HFSPLUS_SB(sb)->nls->char2uni(astr, len, uc);
nls                18 fs/isofs/joliet.c uni16_to_x8(unsigned char *ascii, __be16 *uni, int len, struct nls_table *nls)
nls                28 fs/isofs/joliet.c 		llen = nls->uni2char(be16_to_cpu(ch), op, NLS_MAX_CHARSET_SIZE);
nls                45 fs/isofs/joliet.c 	struct nls_table *nls;
nls                49 fs/isofs/joliet.c 	nls = ISOFS_SB(inode->i_sb)->s_nls_iocharset;
nls                57 fs/isofs/joliet.c 				de->name_len[0] >> 1, nls);
nls               235 fs/nls/nls_base.c int __register_nls(struct nls_table *nls, struct module *owner)
nls               239 fs/nls/nls_base.c 	if (nls->next)
nls               242 fs/nls/nls_base.c 	nls->owner = owner;
nls               245 fs/nls/nls_base.c 		if (nls == *tmp) {
nls               251 fs/nls/nls_base.c 	nls->next = tables;
nls               252 fs/nls/nls_base.c 	tables = nls;
nls               258 fs/nls/nls_base.c int unregister_nls(struct nls_table * nls)
nls               264 fs/nls/nls_base.c 		if (nls == *tmp) {
nls               265 fs/nls/nls_base.c 			*tmp = nls->next;
nls               277 fs/nls/nls_base.c 	struct nls_table *nls;
nls               279 fs/nls/nls_base.c 	for (nls = tables; nls; nls = nls->next) {
nls               280 fs/nls/nls_base.c 		if (!strcmp(nls->charset, charset))
nls               282 fs/nls/nls_base.c 		if (nls->alias && !strcmp(nls->alias, charset))
nls               285 fs/nls/nls_base.c 	if (nls && !try_module_get(nls->owner))
nls               286 fs/nls/nls_base.c 		nls = NULL;
nls               288 fs/nls/nls_base.c 	return nls;
nls               296 fs/nls/nls_base.c void unload_nls(struct nls_table *nls)
nls               298 fs/nls/nls_base.c 	if (nls)
nls               299 fs/nls/nls_base.c 		module_put(nls->owner);
nls               248 fs/ntfs/unistr.c 	struct nls_table *nls = vol->nls_map;
nls               258 fs/ntfs/unistr.c 				wc_len = nls->char2uni(ins + i, ins_len - i,
nls               286 fs/ntfs/unistr.c 				"Unicode.", nls->charset);
nls               325 fs/ntfs/unistr.c 	struct nls_table *nls = vol->nls_map;
nls               344 fs/ntfs/unistr.c retry:			wc = nls->uni2char(le16_to_cpu(ins[i]), ns + o,
nls               375 fs/ntfs/unistr.c 			"try to use the mount option nls=utf8.", nls->charset);
nls                29 include/linux/connector.h 	struct sock *nls;
nls                52 include/linux/connector.h 	struct sock *nls;
nls                53 include/linux/nls.h #define register_nls(nls) __register_nls((nls), THIS_MODULE)
nls                22 samples/connector/cn_test.c static struct sock *nls;
nls               106 samples/connector/cn_test.c 	netlink_unicast(nls, skb, 0, 0);
nls               167 samples/connector/cn_test.c 	if (nls && nls->sk_socket)
nls               168 samples/connector/cn_test.c 		sock_release(nls->sk_socket);
nls               179 samples/connector/cn_test.c 	if (nls && nls->sk_socket)
nls               180 samples/connector/cn_test.c 		sock_release(nls->sk_socket);