Lines Matching refs:ns
340 unsigned char *ns; in ntfs_ucstonls() local
345 ns = *outs; in ntfs_ucstonls()
347 if (ns && !ns_len) { in ntfs_ucstonls()
351 if (!ns) { in ntfs_ucstonls()
353 ns = kmalloc(ns_len + 1, GFP_NOFS); in ntfs_ucstonls()
354 if (!ns) in ntfs_ucstonls()
358 retry: wc = nls->uni2char(le16_to_cpu(ins[i]), ns + o, in ntfs_ucstonls()
365 else if (wc == -ENAMETOOLONG && ns != *outs) { in ntfs_ucstonls()
371 memcpy(tc, ns, ns_len); in ntfs_ucstonls()
373 kfree(ns); in ntfs_ucstonls()
374 ns = tc; in ntfs_ucstonls()
380 ns[o] = 0; in ntfs_ucstonls()
381 *outs = ns; in ntfs_ucstonls()
390 if (ns != *outs) in ntfs_ucstonls()
391 kfree(ns); in ntfs_ucstonls()