Lines Matching refs:fhlen
216 nfscl_open(vnode_t vp, u_int8_t *nfhp, int fhlen, u_int32_t amode, int usedeleg,
243 fhlen - 1, M_NFSCLOPEN, M_WAITOK);
263 LIST_FOREACH(dp, NFSCLDELEGHASH(clp, nfhp, fhlen), nfsdl_hash) {
264 if (dp->nfsdl_fhlen == fhlen &&
265 !NFSBCMP(nfhp, dp->nfsdl_fh, fhlen)) {
293 nfscl_newopen(clp, dp, &owp, &nowp, &op, &nop, own, nfhp, fhlen,
352 struct nfsclopen **nopp, u_int8_t *own, u_int8_t *fhp, int fhlen,
390 if (op->nfso_fhlen == fhlen &&
391 !NFSBCMP(op->nfso_fh, fhp, fhlen))
399 nop->nfso_fhlen = fhlen;
400 NFSBCOPY(fhp, nop->nfso_fh, fhlen);
415 LIST_INSERT_HEAD(NFSCLOPENHASH(clp, fhp, fhlen),
435 int fhlen, struct ucred *cred, NFSPROC_T *p, struct nfscldeleg *dp)
454 tdp = nfscl_finddeleg(clp, nfhp, fhlen);
461 LIST_INSERT_HEAD(NFSCLDELEGHASH(clp, nfhp, fhlen), dp,
480 fhlen), dp, nfsdl_hash);
501 nfscl_finddeleg(struct nfsclclient *clp, u_int8_t *fhp, int fhlen)
505 LIST_FOREACH(dp, NFSCLDELEGHASH(clp, fhp, fhlen), nfsdl_hash) {
506 if (dp->nfsdl_fhlen == fhlen &&
507 !NFSBCMP(dp->nfsdl_fh, fhp, fhlen))
519 nfscl_getstateid(vnode_t vp, u_int8_t *nfhp, int fhlen, u_int32_t mode,
595 LIST_FOREACH(dp, NFSCLDELEGHASH(clp, nfhp, fhlen), nfsdl_hash) {
596 if (dp->nfsdl_fhlen == fhlen &&
597 !NFSBCMP(nfhp, dp->nfsdl_fh, fhlen)) {
636 error = nfscl_getopen(NULL, clp->nfsc_openhash, nfhp, fhlen,
658 oph = NFSCLOPENHASH(clp, nfhp, fhlen);
660 if (op->nfso_fhlen == fhlen &&
661 !NFSBCMP(op->nfso_fh, nfhp, fhlen)) {
712 u_int8_t *nfhp, int fhlen, u_int8_t *openown, u_int8_t *lockown,
743 if (op->nfso_fhlen == fhlen &&
744 !NFSBCMP(op->nfso_fh, nfhp, fhlen)
756 oph = &ohashp[NFSCLOPENHASHFUNC(nfhp, fhlen)];
758 if (op->nfso_fhlen == fhlen &&
759 !NFSBCMP(op->nfso_fh, nfhp, fhlen)
4107 nfscl_localconflict(struct nfsclclient *clp, u_int8_t *fhp, int fhlen,
4119 LIST_FOREACH(op, NFSCLOPENHASH(clp, fhp, fhlen), nfso_hash) {
4120 if (op->nfso_fhlen == fhlen &&
4121 !NFSBCMP(op->nfso_fh, fhp, fhlen)) {
4477 nfsrpc_reopen(struct nfsmount *nmp, u_int8_t *fhp, int fhlen,
4485 error = nfscl_ngetreopen(nmp->nm_mountp, fhp, fhlen, p, &np);
4490 error = nfscl_tryopen(nmp, vp, fhp, fhlen, fhp, fhlen, mode, op,
4494 np->n_v4->n4_fhlen, fhp, fhlen, mode, op,
4509 nfscl_tryopen(struct nfsmount *nmp, vnode_t vp, u_int8_t *fhp, int fhlen,
4520 error = nfsrpc_openrpc(nmp, vp, fhp, fhlen, newfhp, newfhlen,
4531 error = nfsrpc_openrpc(nmp, vp, fhp, fhlen, newfhp,
4548 int fhlen, struct nfscllockowner *nlp, int newone, int reclaim,
4555 error = nfsrpc_lock(nd, nmp, vp, fhp, fhlen, nlp, newone,
4567 error = nfsrpc_lock(nd, nmp, vp, fhp, fhlen, nlp,
5205 nfscl_layout(struct nfsmount *nmp, vnode_t vp, u_int8_t *fhp, int fhlen,
5223 tlyp = malloc(sizeof(*tlyp) + fhlen - 1, M_NFSLAYOUT,
5243 lyp = nfscl_findlayout(clp, fhp, fhlen);
5264 lyp->nfsly_fhlen = fhlen;
5265 NFSBCOPY(fhp, lyp->nfsly_fh, fhlen);
5267 LIST_INSERT_HEAD(NFSCLLAYOUTHASH(clp, fhp, fhlen), lyp,
5315 nfscl_getlayout(struct nfsclclient *clp, uint8_t *fhp, int fhlen,
5327 lyp = nfscl_findlayout(clp, fhp, fhlen);
5364 int fhlen, struct nfsclrecalllayout **recallpp, struct nfscllayout **lypp)
5374 lyp = nfscl_findlayout(clp, fhp, fhlen);
5522 nfscl_findlayout(struct nfsclclient *clp, u_int8_t *fhp, int fhlen)
5526 LIST_FOREACH(lyp, NFSCLLAYOUTHASH(clp, fhp, fhlen), nfsly_hash)
5527 if (lyp->nfsly_fhlen == fhlen &&
5528 !NFSBCMP(lyp->nfsly_fh, fhp, fhlen))