| /src/sys/fs/puffs/ | 
| puffs_vfsops.c | 623 	size_t argsize, fhlen;  local in function:puffs_vfsop_fhtovp 630 		fhlen = fhp->fid_len;
 633 		fhlen = PUFFS_FROMFHSIZE(fhp->fid_len);
 637 			if (pmp->pmp_args.pa_fhsize < fhlen)
 640 			if (pmp->pmp_args.pa_fhsize != fhlen)
 645 	argsize = sizeof(struct puffs_vfsmsg_fhtonode) + fhlen;
 647 	fhtonode_msg->pvfsr_dsize = fhlen;
 648 	memcpy(fhtonode_msg->pvfsr_data, fhdata, fhlen);
 674 	size_t argsize, fhlen;  local in function:puffs_vfsop_vptofh
 689 		fhlen = *fh_size
 [all...]
 | 
| puffs_vfsops.c | 623 	size_t argsize, fhlen;  local in function:puffs_vfsop_fhtovp 630 		fhlen = fhp->fid_len;
 633 		fhlen = PUFFS_FROMFHSIZE(fhp->fid_len);
 637 			if (pmp->pmp_args.pa_fhsize < fhlen)
 640 			if (pmp->pmp_args.pa_fhsize != fhlen)
 645 	argsize = sizeof(struct puffs_vfsmsg_fhtonode) + fhlen;
 647 	fhtonode_msg->pvfsr_dsize = fhlen;
 648 	memcpy(fhtonode_msg->pvfsr_data, fhdata, fhlen);
 674 	size_t argsize, fhlen;  local in function:puffs_vfsop_vptofh
 689 		fhlen = *fh_size
 [all...]
 | 
| /src/sys/nfs/ | 
| nfsm_subs.h | 481 	{ uint32_t fhlen = NFSX_V3FH; \ 484 			fhlen = fxdr_unsigned(uint32_t, *tl); \
 486 			if (fhlen > NFSX_V3FHMAX || \
 487 			    (fhlen < FHANDLE_SIZE_MIN && fhlen > 0)) { \
 493 			fhlen = NFSX_V2FH; \
 495 		(nsfh)->nsfh_size = fhlen; \
 496 		if (fhlen != 0) { \
 497 			KASSERT(fhlen >= FHANDLE_SIZE_MIN); \
 498 			KASSERT(fhlen <= FHANDLE_SIZE_MAX);
 [all...]
 | 
| nfsm_subs.h | 481 	{ uint32_t fhlen = NFSX_V3FH; \ 484 			fhlen = fxdr_unsigned(uint32_t, *tl); \
 486 			if (fhlen > NFSX_V3FHMAX || \
 487 			    (fhlen < FHANDLE_SIZE_MIN && fhlen > 0)) { \
 493 			fhlen = NFSX_V2FH; \
 495 		(nsfh)->nsfh_size = fhlen; \
 496 		if (fhlen != 0) { \
 497 			KASSERT(fhlen >= FHANDLE_SIZE_MIN); \
 498 			KASSERT(fhlen <= FHANDLE_SIZE_MAX);
 [all...]
 | 
| nfs_boot.c | 687 				u_int32_t fhlen;  member in struct:md_mount::rdata::__anon2a7a6e7c010a::__anon2a7a6e7c0208 737 		argp->fhsize   = fxdr_unsigned(u_int32_t, rdata->fh.v3fh.fhlen);
 
 | 
| nfs_boot.c | 687 				u_int32_t fhlen;  member in struct:md_mount::rdata::__anon2a7a6e7c010a::__anon2a7a6e7c0208 737 		argp->fhsize   = fxdr_unsigned(u_int32_t, rdata->fh.v3fh.fhlen);
 
 | 
| nfs_vnops.c | 2904 	int error = 0, ofhlen, fhlen;  local in function:nfs_lookitup 2919 		nfsm_getfh(nfhp, fhlen, v3);
 2927 			ofhp, ofhlen, nfhp, fhlen);
 2933 		    if (np->n_fhsize > NFS_SMALLFH && fhlen <= NFS_SMALLFH) {
 2938 		    else if (np->n_fhsize <= NFS_SMALLFH && fhlen > NFS_SMALLFH)
 2939 			np->n_fhp = kmem_alloc(fhlen, KM_SLEEP);
 2941 		    memcpy(np->n_fhp, nfhp, fhlen);
 2942 		    np->n_fhsize = fhlen;
 2944 			ofhp, ofhlen, np->n_fhp, fhlen);
 2946 		} else if (NFS_CMPFH(dnp, nfhp, fhlen)) {
 [all...]
 | 
| nfs_vnops.c | 2904 	int error = 0, ofhlen, fhlen;  local in function:nfs_lookitup 2919 		nfsm_getfh(nfhp, fhlen, v3);
 2927 			ofhp, ofhlen, nfhp, fhlen);
 2933 		    if (np->n_fhsize > NFS_SMALLFH && fhlen <= NFS_SMALLFH) {
 2938 		    else if (np->n_fhsize <= NFS_SMALLFH && fhlen > NFS_SMALLFH)
 2939 			np->n_fhp = kmem_alloc(fhlen, KM_SLEEP);
 2941 		    memcpy(np->n_fhp, nfhp, fhlen);
 2942 		    np->n_fhsize = fhlen;
 2944 			ofhp, ofhlen, np->n_fhp, fhlen);
 2946 		} else if (NFS_CMPFH(dnp, nfhp, fhlen)) {
 [all...]
 | 
| /src/sys/fs/nfs/nlm/ | 
| nlm_advlock.c | 81     int svid, size_t fhlen, void *fh, off_t size, bool_t reclaim); 85     int svid, size_t fhlen, void *fh, off_t size);
 89     int svid, size_t fhlen, void *fh, off_t size);
 94     rpcvers_t vers, size_t fhlen, void *fh, off_t size,
 203 	size_t fhlen;  local in function:nlm_advlock_internal
 233 	nmp->nm_getinfo(vp, fh.fh_bytes, &fhlen, &ss, &is_v3, &size, &timo);
 310 			    svid, fhlen, &fh.fh_bytes, size, reclaim);
 315 				    svid, fhlen, &fh.fh_bytes, size);
 327 					    flags, svid, fhlen, &fh.fh_bytes,
 333 			    vp, op, fl, flags, svid, fhlen, &fh.fh_bytes
 [all...]
 | 
| nlm_advlock.c | 81     int svid, size_t fhlen, void *fh, off_t size, bool_t reclaim); 85     int svid, size_t fhlen, void *fh, off_t size);
 89     int svid, size_t fhlen, void *fh, off_t size);
 94     rpcvers_t vers, size_t fhlen, void *fh, off_t size,
 203 	size_t fhlen;  local in function:nlm_advlock_internal
 233 	nmp->nm_getinfo(vp, fh.fh_bytes, &fhlen, &ss, &is_v3, &size, &timo);
 310 			    svid, fhlen, &fh.fh_bytes, size, reclaim);
 315 				    svid, fhlen, &fh.fh_bytes, size);
 327 					    flags, svid, fhlen, &fh.fh_bytes,
 333 			    vp, op, fl, flags, svid, fhlen, &fh.fh_bytes
 [all...]
 | 
| /src/sys/fs/nfs/common/ | 
| nfs_diskless.c | 180 	int cnt, fhlen, is_nfsv3;  local in function:nfs_setup_diskless 276 		fhlen = decode_nfshandle("boot.nfsroot.nfshandle",
 278 		if (fhlen == 0) {
 282 		if (fhlen != nd3->root_fhsize) {
 283 			printf("nfs_diskless: bad NFS handle len=%d\n", fhlen);
 
 | 
| nfs_diskless.c | 180 	int cnt, fhlen, is_nfsv3;  local in function:nfs_setup_diskless 276 		fhlen = decode_nfshandle("boot.nfsroot.nfshandle",
 278 		if (fhlen == 0) {
 282 		if (fhlen != nd3->root_fhsize) {
 283 			printf("nfs_diskless: bad NFS handle len=%d\n", fhlen);
 
 | 
| /src/sys/fs/nfs/client/ | 
| nfs_clstate.c | 211 nfscl_open(vnode_t vp, u_int8_t *nfhp, int fhlen, u_int32_t amode, int usedeleg, 238 		fhlen - 1, M_NFSCLOPEN, M_WAITOK);
 257 		LIST_FOREACH(dp, NFSCLDELEGHASH(clp, nfhp, fhlen), nfsdl_hash) {
 258 			if (dp->nfsdl_fhlen == fhlen &&
 259 			    !NFSBCMP(nfhp, dp->nfsdl_fh, fhlen)) {
 282 	nfscl_newopen(clp, dp, &owp, &nowp, &op, &nop, own, nfhp, fhlen,
 326     struct nfsclopen **nopp, u_int8_t *own, u_int8_t *fhp, int fhlen,
 364 			if (op->nfso_fhlen == fhlen &&
 365 			    !NFSBCMP(op->nfso_fh, fhp, fhlen))
 373 			nop->nfso_fhlen = fhlen;
 [all...]
 | 
| nfs_clstate.c | 211 nfscl_open(vnode_t vp, u_int8_t *nfhp, int fhlen, u_int32_t amode, int usedeleg, 238 		fhlen - 1, M_NFSCLOPEN, M_WAITOK);
 257 		LIST_FOREACH(dp, NFSCLDELEGHASH(clp, nfhp, fhlen), nfsdl_hash) {
 258 			if (dp->nfsdl_fhlen == fhlen &&
 259 			    !NFSBCMP(nfhp, dp->nfsdl_fh, fhlen)) {
 282 	nfscl_newopen(clp, dp, &owp, &nowp, &op, &nop, own, nfhp, fhlen,
 326     struct nfsclopen **nopp, u_int8_t *own, u_int8_t *fhp, int fhlen,
 364 			if (op->nfso_fhlen == fhlen &&
 365 			    !NFSBCMP(op->nfso_fh, fhp, fhlen))
 373 			nop->nfso_fhlen = fhlen;
 [all...]
 | 
| nfs_clcomsubs.c | 134     u_int8_t *nfhp, int fhlen, u_int32_t **opcntpp, struct nfsclsession *sep) 218 			(void) nfsm_fhtom(nd, nfhp, fhlen, 0);
 244 		(void) nfsm_fhtom(nd, nfhp, fhlen, 0);
 
 | 
| nfs_clcomsubs.c | 134     u_int8_t *nfhp, int fhlen, u_int32_t **opcntpp, struct nfsclsession *sep) 218 			(void) nfsm_fhtom(nd, nfhp, fhlen, 0);
 244 		(void) nfsm_fhtom(nd, nfhp, fhlen, 0);
 
 | 
| nfs_clrpcops.c | 378 nfsrpc_openrpc(struct nfsmount *nmp, vnode_t vp, u_int8_t *nfhp, int fhlen, 394 	nfscl_reqstart(nd, NFSPROC_OPEN, nmp, nfhp, fhlen, NULL, NULL);
 544 			ret = nfsrpc_openrpc(nmp, vp, nfhp, fhlen, newfhp,
 780 nfsrpc_openconfirm(vnode_t vp, u_int8_t *nfhp, int fhlen,
 791 	nfscl_reqstart(nd, NFSPROC_OPENCONFIRM, nmp, nfhp, fhlen, NULL, NULL);
 1028 nfsrpc_getattrnovp(struct nfsmount *nmp, u_int8_t *fhp, int fhlen, int syscred,
 1036 	nfscl_reqstart(nd, NFSPROC_GETATTR, nmp, fhp, fhlen, NULL, NULL);
 3960     u_int8_t *nfhp, int fhlen, struct nfscllockowner *lp, int newone,
 3968 	nfscl_reqstart(nd, NFSPROC_LOCK, nmp, nfhp, fhlen, NULL, NULL);
 3995 	    NFSBCOPY(nfhp, &own[NFSV4CL_LOCKNAMELEN], fhlen);
 [all...]
 | 
| nfs_clrpcops.c | 378 nfsrpc_openrpc(struct nfsmount *nmp, vnode_t vp, u_int8_t *nfhp, int fhlen, 394 	nfscl_reqstart(nd, NFSPROC_OPEN, nmp, nfhp, fhlen, NULL, NULL);
 544 			ret = nfsrpc_openrpc(nmp, vp, nfhp, fhlen, newfhp,
 780 nfsrpc_openconfirm(vnode_t vp, u_int8_t *nfhp, int fhlen,
 791 	nfscl_reqstart(nd, NFSPROC_OPENCONFIRM, nmp, nfhp, fhlen, NULL, NULL);
 1028 nfsrpc_getattrnovp(struct nfsmount *nmp, u_int8_t *fhp, int fhlen, int syscred,
 1036 	nfscl_reqstart(nd, NFSPROC_GETATTR, nmp, fhp, fhlen, NULL, NULL);
 3960     u_int8_t *nfhp, int fhlen, struct nfscllockowner *lp, int newone,
 3968 	nfscl_reqstart(nd, NFSPROC_LOCK, nmp, nfhp, fhlen, NULL, NULL);
 3995 	    NFSBCOPY(nfhp, &own[NFSV4CL_LOCKNAMELEN], fhlen);
 [all...]
 |