Lines Matching refs:namelen
722 int namelen; in cramfs_readdir() local
733 namelen = de->namelen << 2; in cramfs_readdir()
734 memcpy(buf, name, namelen); in cramfs_readdir()
738 nextoffset = offset + sizeof(*de) + namelen; in cramfs_readdir()
740 if (!namelen) { in cramfs_readdir()
744 if (buf[namelen-1]) in cramfs_readdir()
746 namelen--; in cramfs_readdir()
748 if (!dir_emit(ctx, buf, namelen, ino, mode >> 12)) in cramfs_readdir()
771 int namelen, retval; in cramfs_lookup() local
781 namelen = de->namelen << 2; in cramfs_lookup()
782 offset += sizeof(*de) + namelen; in cramfs_lookup()
785 if (((dentry->d_name.len + 3) & ~3) != namelen) in cramfs_lookup()
789 if (!namelen) { in cramfs_lookup()
793 if (name[namelen-1]) in cramfs_lookup()
795 namelen--; in cramfs_lookup()
797 if (namelen != dentry->d_name.len) in cramfs_lookup()
799 retval = memcmp(dentry->d_name.name, name, namelen); in cramfs_lookup()