Lines Matching refs:ns
326 unsigned char *ns; in ntfs_ucstonls() local
331 ns = *outs; in ntfs_ucstonls()
333 if (ns && !ns_len) { in ntfs_ucstonls()
337 if (!ns) { in ntfs_ucstonls()
339 ns = kmalloc(ns_len + 1, GFP_NOFS); in ntfs_ucstonls()
340 if (!ns) in ntfs_ucstonls()
344 retry: wc = nls->uni2char(le16_to_cpu(ins[i]), ns + o, in ntfs_ucstonls()
351 else if (wc == -ENAMETOOLONG && ns != *outs) { in ntfs_ucstonls()
357 memcpy(tc, ns, ns_len); in ntfs_ucstonls()
359 kfree(ns); in ntfs_ucstonls()
360 ns = tc; in ntfs_ucstonls()
366 ns[o] = 0; in ntfs_ucstonls()
367 *outs = ns; in ntfs_ucstonls()
376 if (ns != *outs) in ntfs_ucstonls()
377 kfree(ns); in ntfs_ucstonls()