Lines Matching refs:stateidp

108 static int nfsrv_getstate(struct nfsclient *clp, nfsv4stateid_t *stateidp, 
122 nfsv4stateid_t *stateidp, int specialid);
126 nfsv4stateid_t *stateidp, int trunc, fhandle_t *fhp,
1461 nfsrv_getstate(struct nfsclient *clp, nfsv4stateid_t *stateidp, __unused u_int32_t flags, in nfsrv_getstate() argument
1469 hp = NFSSTATEHASH(clp, *stateidp); in nfsrv_getstate()
1471 if (!NFSBCMP(stp->ls_stateid.other, stateidp->other, in nfsrv_getstate()
1523 nfsquad_t clientid, nfsv4stateid_t *stateidp, in nfsrv_lockctrl() argument
2044 stateidp->seqid = ++(stp->ls_stateid.seqid); in nfsrv_lockctrl()
2045 if ((nd->nd_flag & ND_NFSV41) != 0 && stateidp->seqid == 0) in nfsrv_lockctrl()
2046 stateidp->seqid = stp->ls_stateid.seqid = 1; in nfsrv_lockctrl()
2047 stateidp->other[0] = stp->ls_stateid.other[0]; in nfsrv_lockctrl()
2048 stateidp->other[1] = stp->ls_stateid.other[1]; in nfsrv_lockctrl()
2049 stateidp->other[2] = stp->ls_stateid.other[2]; in nfsrv_lockctrl()
2178 stateidp->seqid = ++(lckstp->ls_stateid.seqid); in nfsrv_lockctrl()
2179 if ((nd->nd_flag & ND_NFSV41) != 0 && stateidp->seqid == 0) in nfsrv_lockctrl()
2180 stateidp->seqid = lckstp->ls_stateid.seqid = 1; in nfsrv_lockctrl()
2181 stateidp->other[0] = lckstp->ls_stateid.other[0]; in nfsrv_lockctrl()
2182 stateidp->other[1] = lckstp->ls_stateid.other[1]; in nfsrv_lockctrl()
2183 stateidp->other[2] = lckstp->ls_stateid.other[2]; in nfsrv_lockctrl()
2191 stateidp->seqid = new_stp->ls_stateid.seqid = 1; in nfsrv_lockctrl()
2192 stateidp->other[0] = new_stp->ls_stateid.other[0] = in nfsrv_lockctrl()
2194 stateidp->other[1] = new_stp->ls_stateid.other[1] = in nfsrv_lockctrl()
2196 stateidp->other[2] = new_stp->ls_stateid.other[2] = in nfsrv_lockctrl()
2243 nfsrv_opencheck(nfsquad_t clientid, nfsv4stateid_t *stateidp, in nfsrv_opencheck() argument
2379 stateidp->seqid == 0) || in nfsrv_opencheck()
2380 stateidp->seqid == stp->ls_stateid.seqid) && in nfsrv_opencheck()
2381 !NFSBCMP(stateidp->other, stp->ls_stateid.other, in nfsrv_opencheck()
2495 struct nfsstate **new_stpp, nfsquad_t clientid, nfsv4stateid_t *stateidp, in nfsrv_openctrl() argument
2638 stateidp->seqid == 0) || in nfsrv_openctrl()
2639 stateidp->seqid == stp->ls_stateid.seqid) && in nfsrv_openctrl()
2640 !NFSBCMP(stateidp->other, stp->ls_stateid.other, in nfsrv_openctrl()
3206 stateidp->seqid = openstp->ls_stateid.seqid; in nfsrv_openctrl()
3207 stateidp->other[0] = openstp->ls_stateid.other[0]; in nfsrv_openctrl()
3208 stateidp->other[1] = openstp->ls_stateid.other[1]; in nfsrv_openctrl()
3209 stateidp->other[2] = openstp->ls_stateid.other[2]; in nfsrv_openctrl()
3232 nfsv4stateid_t *stateidp, struct nfsrv_descript *nd, NFSPROC_T *p) in nfsrv_openupdate() argument
3303 stateidp->seqid = stp->ls_stateid.seqid + 1; in nfsrv_openupdate()
3304 if ((nd->nd_flag & ND_NFSV41) != 0 && stateidp->seqid == 0) in nfsrv_openupdate()
3305 stateidp->seqid = 1; in nfsrv_openupdate()
3306 stateidp->other[0] = stp->ls_stateid.other[0]; in nfsrv_openupdate()
3307 stateidp->other[1] = stp->ls_stateid.other[1]; in nfsrv_openupdate()
3308 stateidp->other[2] = stp->ls_stateid.other[2]; in nfsrv_openupdate()
3388 nfsv4stateid_t *stateidp, vnode_t vp, int op, struct ucred *cred, in nfsrv_delegupdate() argument
3409 stateidp, 0); in nfsrv_delegupdate()
3412 stateidp, 0); in nfsrv_delegupdate()
3428 error = nfsrv_getstate(clp, stateidp, NFSLCK_DELEGRETURN, &stp); in nfsrv_delegupdate()
3429 if (!error && stp->ls_stateid.seqid != stateidp->seqid && in nfsrv_delegupdate()
3430 ((nd->nd_flag & ND_NFSV41) == 0 || stateidp->seqid != 0)) in nfsrv_delegupdate()
3999 nfsv4stateid_t *stateidp, int specialid) in nfsrv_checkrestart() argument
4013 } else if (stateidp->other[0] != nfsrvboottime && in nfsrv_checkrestart()
4082 nfsv4stateid_t *stateidp, int trunc, fhandle_t *fhp, in nfsrv_docallback() argument
4158 *tl++ = txdr_unsigned(stateidp->seqid); in nfsrv_docallback()
4159 NFSBCOPY((caddr_t)stateidp->other, (caddr_t)tl, in nfsrv_docallback()
5208 nfsv4stateid_t *stateidp, struct nfsvattr *nvap, nfsattrbit_t *attrbitp, in nfsrv_checksetattr() argument
5235 stp->ls_stateid.seqid = stateidp->seqid; in nfsrv_checksetattr()
5236 clientid.lval[0] = stp->ls_stateid.other[0] = stateidp->other[0]; in nfsrv_checksetattr()
5237 clientid.lval[1] = stp->ls_stateid.other[1] = stateidp->other[1]; in nfsrv_checksetattr()
5238 stp->ls_stateid.other[2] = stateidp->other[2]; in nfsrv_checksetattr()
5240 stateidp, exp, nd, p); in nfsrv_checksetattr()
5972 nfsrv_freestateid(struct nfsrv_descript *nd, nfsv4stateid_t *stateidp, in nfsrv_freestateid() argument
5988 if (!NFSBCMP(stp->ls_stateid.other, stateidp->other, in nfsrv_freestateid()
6000 error = nfsrv_getstate(clp, stateidp, 0, &stp); in nfsrv_freestateid()