Lines Matching refs:nmlen
62 smbfs_hash(const u_char *name, int nmlen) in smbfs_hash() argument
64 return (fnv_32_buf(name, nmlen, FNV1_32_INIT)); in smbfs_hash()
68 smbfs_name_alloc(const u_char *name, int nmlen) in smbfs_name_alloc() argument
72 nmlen++; in smbfs_name_alloc()
73 cp = malloc(nmlen, M_SMBNODENAME, M_WAITOK); in smbfs_name_alloc()
74 bcopy(name, cp, nmlen - 1); in smbfs_name_alloc()
75 cp[nmlen - 1] = 0; in smbfs_name_alloc()
102 int dirlen, const char *name, int nmlen, char sep, in smbfs_node_alloc() argument
115 sc.n_nmlen = nmlen; in smbfs_node_alloc()
121 if (nmlen == 2 && bcmp(name, "..", 2) == 0) { in smbfs_node_alloc()
129 } else if (nmlen == 1 && name[0] == '.') { in smbfs_node_alloc()
138 error = vfs_hash_get(mp, smbfs_hash(name, nmlen), LK_EXCLUSIVE, td, in smbfs_node_alloc()
179 rplen += nmlen; in smbfs_node_alloc()
187 bcopy(name, p, nmlen); in smbfs_node_alloc()
188 p += nmlen; in smbfs_node_alloc()
200 np->n_nmlen = nmlen; in smbfs_node_alloc()
201 np->n_name = smbfs_name_alloc(name, nmlen); in smbfs_node_alloc()
219 error = vfs_hash_insert(vp, smbfs_hash(name, nmlen), LK_EXCLUSIVE, in smbfs_node_alloc()
229 smbfs_nget(struct mount *mp, struct vnode *dvp, const char *name, int nmlen, in smbfs_nget() argument
241 name, nmlen, sep, fap, &vp); in smbfs_nget()
243 error = smbfs_node_alloc(mp, NULL, "\\", 1, name, nmlen, in smbfs_nget()