Lines Matching defs:nfhp
208 * If the nfhp argument is NULL, just get an openowner.
211 nfscl_open(vnode_t vp, u_int8_t *nfhp, int fhlen, u_int32_t amode, int usedeleg,
236 if (nfhp != NULL)
256 if (nfhp != NULL && usedeleg) {
257 LIST_FOREACH(dp, NFSCLDELEGHASH(clp, nfhp, fhlen), nfsdl_hash) {
259 !NFSBCMP(nfhp, dp->nfsdl_fh, fhlen)) {
282 nfscl_newopen(clp, dp, &owp, &nowp, &op, &nop, own, nfhp, fhlen,
290 if (nfhp != NULL && dp != NULL && nop == NULL)
404 nfscl_deleg(mount_t mp, struct nfsclclient *clp, u_int8_t *nfhp,
424 tdp = nfscl_finddeleg(clp, nfhp, fhlen);
432 LIST_INSERT_HEAD(NFSCLDELEGHASH(clp, nfhp, fhlen), dp,
475 nfscl_getstateid(vnode_t vp, u_int8_t *nfhp, int fhlen, u_int32_t mode,
519 LIST_FOREACH(dp, NFSCLDELEGHASH(clp, nfhp, fhlen), nfsdl_hash) {
521 !NFSBCMP(nfhp, dp->nfsdl_fh, fhlen)) {
552 error = nfscl_getopen(&clp->nfsc_owner, nfhp, fhlen, own, own,
575 !NFSBCMP(op->nfso_fh, nfhp, fhlen) &&
611 nfscl_getopen(struct nfsclownerhead *ohp, u_int8_t *nfhp, int fhlen,
642 !NFSBCMP(op->nfso_fh, nfhp, fhlen)
2883 struct nfsfh *nfhp;
2890 nfhp = VTONFS(vp)->n_fhp;
2945 if (nfhp->nfh_len == op2->nfso_fhlen &&
2946 !NFSBCMP(nfhp->nfh_fh, op2->nfso_fh, nfhp->nfh_len)) {
2949 if (op != op2 && nfhp->nfh_len == op->nfso_fhlen &&
2950 !NFSBCMP(nfhp->nfh_fh, op->nfso_fh, nfhp->nfh_len) &&
2993 struct nfsfh *nfhp;
3001 nfhp = VTONFS(vp)->n_fhp;
3012 dp = nfscl_finddeleg(clp, nfhp->nfh_fh, nfhp->nfh_len);
3036 if (op->nfso_fhlen == nfhp->nfh_len &&
3037 !NFSBCMP(op->nfso_fh, nfhp->nfh_fh,
3038 nfhp->nfh_len)) {
3067 struct nfsfh *nfhp;
3075 nfhp = VTONFS(vp)->n_fhp;
3081 dp = nfscl_finddeleg(clp, nfhp->nfh_fh, nfhp->nfh_len);
3095 nfscl_retoncloselayout(clp, nfhp->nfh_fh, nfhp->nfh_len);
3102 if (op->nfso_fhlen == nfhp->nfh_len &&
3103 !NFSBCMP(op->nfso_fh, nfhp->nfh_fh,
3104 nfhp->nfh_len)) {
3156 struct nfsfh *nfhp;
3227 error = nfsm_getfh(nd, &nfhp);
3241 error = nfscl_ngetreopen(mp, nfhp->nfh_fh,
3242 nfhp->nfh_len, p, &np);
3249 dp = nfscl_finddeleg(clp, nfhp->nfh_fh,
3250 nfhp->nfh_len);
3280 if (nfhp != NULL)
3281 FREE((caddr_t)nfhp, M_NFSFH);
3296 error = nfsm_getfh(nd, &nfhp);
3307 dp = nfscl_finddeleg(clp, nfhp->nfh_fh,
3308 nfhp->nfh_len);
3320 if (nfhp != NULL)
3321 FREE((caddr_t)nfhp, M_NFSFH);
3325 nfhp = NULL;
3339 error = nfsm_getfh(nd, &nfhp);
3359 nfhp->nfh_fh,
3360 nfhp->nfh_len);
3387 free(nfhp, M_NFSFH);
4016 struct nfsfh *nfhp;
4032 nfhp = VTONFS(vp)->n_fhp;
4033 error = nfscl_trylock(nmp, vp, nfhp->nfh_fh,
4034 nfhp->nfh_len, nlp, newone, 0, off,