| /dragonfly/sys/vfs/smbfs/ |
| HD | smbfs_node.c | 79 smbfs_hash(const u_char *name, int nmlen) in smbfs_hash() argument 83 for (v = FNV1_32_INIT; nmlen; name++, nmlen--) { in smbfs_hash() 107 smbfs_name_alloc(const u_char *name, int nmlen) in smbfs_name_alloc() argument 111 nmlen++; in smbfs_name_alloc() 113 cp = kmalloc(nmlen + 2 + sizeof(int), M_SMBNODENAME, M_WAITOK); in smbfs_name_alloc() 114 *(int*)cp = nmlen; in smbfs_name_alloc() 118 bcopy(name, cp, nmlen - 1); in smbfs_name_alloc() 119 cp[nmlen] = 0xfe; in smbfs_name_alloc() 121 cp = kmalloc(nmlen, M_SMBNODENAME, M_WAITOK); in smbfs_name_alloc() 122 bcopy(name, cp, nmlen - 1); in smbfs_name_alloc() [all …]
|
| HD | smbfs_smb.c | 68 smbfs_getino(struct smbnode *dnp, const char *name, int nmlen) in smbfs_getino() argument 77 MD5Update(&md5, name, nmlen); in smbfs_getino() 85 ino = dnp->n_ino + smbfs_hash(name, nmlen); in smbfs_getino() 571 smbfs_smb_create(struct smbnode *dnp, const char *name, int nmlen, in smbfs_smb_create() argument 596 error = smbfs_fullpath(mbp, SSTOVC(ssp), dnp, name, nmlen); in smbfs_smb_create() 1058 int error, svtz, cnt, fxsz, nmlen, recsz; in smbfs_findnextLM2() local 1089 size = nmlen = tb; in smbfs_findnextLM2() 1091 recsz = next = 24 + nmlen; /* docs misses zero byte at end */ in smbfs_findnextLM2() 1116 nmlen = min(size, SMB_MAXFNAMELEN); in smbfs_findnextLM2() 1118 error = md_get_mem(mbp, cp, nmlen, MB_MSYSTEM); in smbfs_findnextLM2() [all …]
|
| HD | smbfs_vnops.c | 470 int nmlen = cnp->cn_namelen; in smbfs_create() local 482 error = smbfs_smb_create(dnp, name, nmlen, &scred); in smbfs_create() 485 error = smbfs_smb_lookup(dnp, name, nmlen, &fattr, &scred); in smbfs_create() 488 error = smbfs_nget(VTOVFS(dvp), dvp, name, nmlen, &fattr, &vp); in smbfs_create() 964 smbfs_pathcheck(struct smbmount *smp, const char *name, int nmlen, int nameiop) in smbfs_pathcheck() argument 985 if (nmlen > 12) in smbfs_pathcheck() 995 for (cp = name, i = 0; i < nmlen; i++, cp++) in smbfs_pathcheck() 999 for (cp = name, i = 0; i < nmlen; i++, cp++) in smbfs_pathcheck() 1027 int nmlen = cnp->cn_namelen; in smbfs_lookup() local 1043 cp = name + nmlen; in smbfs_lookup() [all …]
|
| HD | smbfs_node.h | 88 int smbfs_nget(struct mount *mp, struct vnode *dvp, const char *name, int nmlen, 90 u_int32_t smbfs_hash(const u_char *name, int nmlen); 98 void smbfs_attr_cacherename(struct vnode *vp, const char *name, int nmlen);
|
| HD | smbfs_subr.c | 293 const char *name, int nmlen) in smbfs_fullpath() argument 309 error = smb_put_dmem(mbp, vcp, name, nmlen, caseopt); in smbfs_fullpath() 318 smbfs_fname_tolocal(struct smb_vc *vcp, char *name, int nmlen, int caseopt) in smbfs_fname_tolocal() argument 325 iconv_convmem(vcp->vc_tolocal, name, name, nmlen); in smbfs_fname_tolocal()
|
| HD | smbfs_subr.h | 174 struct smbnode *dnp, const char *name, int nmlen); 175 int smbfs_smb_lookup(struct smbnode *dnp, const char *name, int nmlen, 178 int smbfs_fname_tolocal(struct smb_vc *vcp, char *name, int nmlen, int caseopt);
|
| /dragonfly/contrib/smbfs/lib/smb/ |
| HD | nb_name.c | 81 int nmlen, error; in nb_sockaddr() local 85 nmlen = nb_name_len(np); in nb_sockaddr() 86 if (nmlen < NB_ENCNAMELEN) in nb_sockaddr() 88 error = nb_snballoc(nmlen, &snb); in nb_sockaddr() 91 if (nmlen != nb_name_encode(np, snb->snb_name)) in nb_sockaddr()
|
| /dragonfly/sys/netproto/smb/ |
| HD | smb_rq.c | 562 int error, doff, poff, txdcount, txpcount, nmlen; in smb_t2_request_int() local 607 nmlen = t2p->t_name ? strlen(t2p->t_name) : 0; in smb_t2_request_int() 608 len = ALIGN4(len + 5 * 2 + t2p->t2_setupcount * 2 + 2 + nmlen + 1); in smb_t2_request_int() 635 mb_put_mem(mbp, t2p->t_name, nmlen, MB_MSYSTEM); in smb_t2_request_int()
|
| /dragonfly/contrib/libarchive/libarchive/ |
| HD | archive_write_set_format_iso9660.c | 2889 size_t nmlen = file->basename.length; in set_directory_record_rr() local 2903 while (nmlen + 5 > nmmax) { in set_directory_record_rr() 2912 nmlen -= length - 5; in set_directory_record_rr() 2927 length = 5 + (int)nmlen; in set_directory_record_rr() 2931 memcpy(bp+6, nm, nmlen); in set_directory_record_rr()
|