Lines Matching defs:lp

642 	struct nfscllockowner *lp, *nlp;
669 LIST_FOREACH(lp, &op->nfso_lock, nfsl_list) {
671 LIST_FOREACH_SAFE(lop, &lp->nfsl_lock, nfslo_list, nlop) {
683 error = nfsrpc_locku(nd, nmp, lp, off,
706 (void)nfsrpc_rellockown(nmp, lp, lp->nfsl_open->nfso_fh,
707 lp->nfsl_open->nfso_fhlen, tcred, p);
725 LIST_FOREACH_SAFE(lp, &op->nfso_lock, nfsl_list, nlp)
726 nfscl_freelockowner(lp, 0);
3704 struct nfscllockowner *lp;
3773 clp, id, flags, &lp, &dorpc);
3775 * If it returns a NULL lp, we're done.
3777 if (lp == NULL) {
3796 if (dorpc && (lp->nfsl_open->nfso_posixlock ||
3803 error = nfsrpc_locku(nd, nmp, lp, off, len,
3818 NULL, 0, id, flags, NULL, NULL, &lp, &newone, &donelocally);
3827 if (!lp->nfsl_open->nfso_posixlock &&
3832 nfhp->nfh_len, lp, newone, reclaim, off,
3837 nfscl_lockrelease(lp, error, newone);
3944 struct nfscllockowner *lp, u_int64_t off, u_int64_t len,
3950 nfscl_reqstart(nd, NFSPROC_LOCKU, nmp, lp->nfsl_open->nfso_fh,
3951 lp->nfsl_open->nfso_fhlen, NULL, NULL);
3954 *tl = txdr_unsigned(lp->nfsl_seqid);
3957 *tl = txdr_unsigned(lp->nfsl_seqid + 1);
3962 *tl++ = lp->nfsl_stateid.seqid;
3963 *tl++ = lp->nfsl_stateid.other[0];
3964 *tl++ = lp->nfsl_stateid.other[1];
3965 *tl++ = lp->nfsl_stateid.other[2];
3973 NFSCL_INCRSEQID(lp->nfsl_seqid, nd);
3978 lp->nfsl_stateid.seqid = *tl++;
3979 lp->nfsl_stateid.other[0] = *tl++;
3980 lp->nfsl_stateid.other[1] = *tl++;
3981 lp->nfsl_stateid.other[2] = *tl;
3983 nfscl_initiate_recovery(lp->nfsl_open->nfso_own->nfsow_clp);
3994 u_int8_t *nfhp, int fhlen, struct nfscllockowner *lp, int newone,
4018 *tl++ = txdr_unsigned(lp->nfsl_open->nfso_own->nfsow_seqid);
4022 *tl++ = lp->nfsl_open->nfso_stateid.seqid;
4023 *tl++ = lp->nfsl_open->nfso_stateid.other[0];
4024 *tl++ = lp->nfsl_open->nfso_stateid.other[1];
4025 *tl++ = lp->nfsl_open->nfso_stateid.other[2];
4026 *tl++ = txdr_unsigned(lp->nfsl_seqid);
4030 NFSBCOPY(lp->nfsl_owner, own, NFSV4CL_LOCKNAMELEN);
4039 *tl++ = lp->nfsl_stateid.seqid;
4040 *tl++ = lp->nfsl_stateid.other[0];
4041 *tl++ = lp->nfsl_stateid.other[1];
4042 *tl++ = lp->nfsl_stateid.other[2];
4043 *tl = txdr_unsigned(lp->nfsl_seqid);
4046 *tl = txdr_unsigned(lp->nfsl_seqid + 1);
4055 NFSCL_INCRSEQID(lp->nfsl_open->nfso_own->nfsow_seqid, nd);
4056 NFSCL_INCRSEQID(lp->nfsl_seqid, nd);
4059 lp->nfsl_stateid.seqid = *tl++;
4060 lp->nfsl_stateid.other[0] = *tl++;
4061 lp->nfsl_stateid.other[1] = *tl++;
4062 lp->nfsl_stateid.other[2] = *tl;
4071 nfscl_initiate_recovery(lp->nfsl_open->nfso_own->nfsow_clp);
4311 nfsrpc_rellockown(struct nfsmount *nmp, struct nfscllockowner *lp,
4324 nfsm_stateidtom(nd, &lp->nfsl_stateid, NFSSTATEID_PUTSTATEID);
4332 NFSBCOPY(lp->nfsl_owner, own, NFSV4CL_LOCKNAMELEN);