Lines Matching refs:stateidp
156 static int nfsrv_getstate(struct nfsclient *clp, nfsv4stateid_t *stateidp,
170 nfsv4stateid_t *stateidp, int specialid);
174 nfsv4stateid_t *stateidp, int trunc, fhandle_t *fhp,
217 nfsv4stateid_t *stateidp, char *layp, int *layoutlenp, NFSPROC_T *p);
231 static int nfsrv_recalllayout(nfsquad_t clid, nfsv4stateid_t *stateidp,
1757 nfsrv_getstate(struct nfsclient *clp, nfsv4stateid_t *stateidp, __unused u_int32_t flags, in nfsrv_getstate() argument
1765 hp = NFSSTATEHASH(clp, *stateidp); in nfsrv_getstate()
1767 if (!NFSBCMP(stp->ls_stateid.other, stateidp->other, in nfsrv_getstate()
1819 nfsquad_t clientid, nfsv4stateid_t *stateidp, in nfsrv_lockctrl() argument
2347 stateidp->seqid = ++(stp->ls_stateid.seqid); in nfsrv_lockctrl()
2348 if ((nd->nd_flag & ND_NFSV41) != 0 && stateidp->seqid == 0) in nfsrv_lockctrl()
2349 stateidp->seqid = stp->ls_stateid.seqid = 1; in nfsrv_lockctrl()
2350 stateidp->other[0] = stp->ls_stateid.other[0]; in nfsrv_lockctrl()
2351 stateidp->other[1] = stp->ls_stateid.other[1]; in nfsrv_lockctrl()
2352 stateidp->other[2] = stp->ls_stateid.other[2]; in nfsrv_lockctrl()
2481 stateidp->seqid = ++(lckstp->ls_stateid.seqid); in nfsrv_lockctrl()
2482 if ((nd->nd_flag & ND_NFSV41) != 0 && stateidp->seqid == 0) in nfsrv_lockctrl()
2483 stateidp->seqid = lckstp->ls_stateid.seqid = 1; in nfsrv_lockctrl()
2484 stateidp->other[0] = lckstp->ls_stateid.other[0]; in nfsrv_lockctrl()
2485 stateidp->other[1] = lckstp->ls_stateid.other[1]; in nfsrv_lockctrl()
2486 stateidp->other[2] = lckstp->ls_stateid.other[2]; in nfsrv_lockctrl()
2494 stateidp->seqid = new_stp->ls_stateid.seqid = 1; in nfsrv_lockctrl()
2495 stateidp->other[0] = new_stp->ls_stateid.other[0] = in nfsrv_lockctrl()
2497 stateidp->other[1] = new_stp->ls_stateid.other[1] = in nfsrv_lockctrl()
2499 stateidp->other[2] = new_stp->ls_stateid.other[2] = in nfsrv_lockctrl()
2546 nfsrv_opencheck(nfsquad_t clientid, nfsv4stateid_t *stateidp, in nfsrv_opencheck() argument
2682 stateidp->seqid == 0) || in nfsrv_opencheck()
2683 stateidp->seqid == stp->ls_stateid.seqid) && in nfsrv_opencheck()
2684 !NFSBCMP(stateidp->other, stp->ls_stateid.other, in nfsrv_opencheck()
2801 struct nfsstate **new_stpp, nfsquad_t clientid, nfsv4stateid_t *stateidp, in nfsrv_openctrl() argument
2947 stateidp->seqid == 0) || in nfsrv_openctrl()
2948 stateidp->seqid == stp->ls_stateid.seqid) && in nfsrv_openctrl()
2949 !NFSBCMP(stateidp->other, stp->ls_stateid.other, in nfsrv_openctrl()
3409 stateidp->seqid = openstp->ls_stateid.seqid; in nfsrv_openctrl()
3410 stateidp->other[0] = openstp->ls_stateid.other[0]; in nfsrv_openctrl()
3411 stateidp->other[1] = openstp->ls_stateid.other[1]; in nfsrv_openctrl()
3412 stateidp->other[2] = openstp->ls_stateid.other[2]; in nfsrv_openctrl()
3445 nfsv4stateid_t *stateidp, struct nfsrv_descript *nd, NFSPROC_T *p, in nfsrv_openupdate() argument
3517 stateidp->seqid = stp->ls_stateid.seqid + 1; in nfsrv_openupdate()
3518 if ((nd->nd_flag & ND_NFSV41) != 0 && stateidp->seqid == 0) in nfsrv_openupdate()
3519 stateidp->seqid = 1; in nfsrv_openupdate()
3520 stateidp->other[0] = stp->ls_stateid.other[0]; in nfsrv_openupdate()
3521 stateidp->other[1] = stp->ls_stateid.other[1]; in nfsrv_openupdate()
3522 stateidp->other[2] = stp->ls_stateid.other[2]; in nfsrv_openupdate()
3596 nfsv4stateid_t *stateidp, vnode_t vp, int op, struct ucred *cred, in nfsrv_delegupdate() argument
3617 stateidp, 0); in nfsrv_delegupdate()
3620 stateidp, 0); in nfsrv_delegupdate()
3636 error = nfsrv_getstate(clp, stateidp, NFSLCK_DELEGRETURN, &stp); in nfsrv_delegupdate()
3637 if (!error && stp->ls_stateid.seqid != stateidp->seqid && in nfsrv_delegupdate()
3638 ((nd->nd_flag & ND_NFSV41) == 0 || stateidp->seqid != 0)) in nfsrv_delegupdate()
4335 nfsv4stateid_t *stateidp, int specialid) in nfsrv_checkrestart() argument
4349 } else if (stateidp->other[0] != NFSD_VNET(nfsrvboottime) && in nfsrv_checkrestart()
4441 nfsrv_docallback(struct nfsclient *clp, int procnum, nfsv4stateid_t *stateidp, in nfsrv_docallback() argument
4523 *tl++ = txdr_unsigned(stateidp->seqid); in nfsrv_docallback()
4524 NFSBCOPY((caddr_t)stateidp->other, (caddr_t)tl, in nfsrv_docallback()
4556 *tl++ = txdr_unsigned(stateidp->seqid); in nfsrv_docallback()
4557 NFSBCOPY(stateidp->other, tl, NFSX_STATEIDOTHER); in nfsrv_docallback()
5678 nfsv4stateid_t *stateidp, struct nfsvattr *nvap, nfsattrbit_t *attrbitp, in nfsrv_checksetattr() argument
5705 stp->ls_stateid.seqid = stateidp->seqid; in nfsrv_checksetattr()
5706 clientid.lval[0] = stp->ls_stateid.other[0] = stateidp->other[0]; in nfsrv_checksetattr()
5707 clientid.lval[1] = stp->ls_stateid.other[1] = stateidp->other[1]; in nfsrv_checksetattr()
5708 stp->ls_stateid.other[2] = stateidp->other[2]; in nfsrv_checksetattr()
5710 stateidp, exp, nd, p); in nfsrv_checksetattr()
6620 nfsrv_freestateid(struct nfsrv_descript *nd, nfsv4stateid_t *stateidp, in nfsrv_freestateid() argument
6636 if (!NFSBCMP(stp->ls_stateid.other, stateidp->other, in nfsrv_freestateid()
6648 error = nfsrv_getstate(clp, stateidp, 0, &stp); in nfsrv_freestateid()
6665 nfsrv_teststateid(struct nfsrv_descript *nd, nfsv4stateid_t *stateidp, in nfsrv_teststateid() argument
6679 error = nfsrv_getstate(clp, stateidp, 0, &stp); in nfsrv_teststateid()
6680 if (error == 0 && stateidp->seqid != 0 && in nfsrv_teststateid()
6681 SEQ_LT(stateidp->seqid, stp->ls_stateid.seqid)) in nfsrv_teststateid()
6784 nfsv4stateid_t *stateidp, int maxcnt, char *layp, int *hasnewsizep, in nfsrv_layoutcommit() argument
6804 uint64_t minlen, nfsv4stateid_t *stateidp, int maxcnt, int *retonclose, in nfsrv_layoutget() argument
6857 if (error == 0 && (stateidp->other[0] != lyp->lay_stateid.other[0] || in nfsrv_layoutget()
6858 stateidp->other[1] != lyp->lay_stateid.other[1] || in nfsrv_layoutget()
6859 stateidp->other[2] != lyp->lay_stateid.other[2])) { in nfsrv_layoutget()
6900 stateidp->seqid = lyp->lay_stateid.seqid; in nfsrv_layoutget()
6936 error = nfsrv_addlayout(nd, &lyp, stateidp, layp, layoutlenp, p); in nfsrv_layoutget()
7177 nfsrv_recalllayout(nfsquad_t clid, nfsv4stateid_t *stateidp, fhandle_t *fhp, in nfsrv_recalllayout() argument
7193 stateidp, changed, fhp, NULL, NULL, laytype, p); in nfsrv_recalllayout()
7297 int kind, nfsv4stateid_t *stateidp, int maxcnt, uint32_t *layp, int *fndp, in nfsrv_layoutreturn() argument
7330 stateidp->other[0] == lyp->lay_stateid.other[0] && in nfsrv_layoutreturn()
7331 stateidp->other[1] == lyp->lay_stateid.other[1] && in nfsrv_layoutreturn()
7332 stateidp->other[2] == lyp->lay_stateid.other[2]) { in nfsrv_layoutreturn()
7336 stateidp->seqid, stateidp->other[0], in nfsrv_layoutreturn()
7337 stateidp->other[1], stateidp->other[2], in nfsrv_layoutreturn()
7346 stateidp->seqid = lyp->lay_stateid.seqid; in nfsrv_layoutreturn()
7369 stateidp->other[0] == in nfsrv_layoutreturn()
7371 stateidp->other[1] == in nfsrv_layoutreturn()
7373 stateidp->other[2] == in nfsrv_layoutreturn()
7428 nfsv4stateid_t *stateidp, char *layp, int *layoutlenp, NFSPROC_T *p) in nfsrv_addlayout() argument
7447 lyp->lay_stateid.seqid = stateidp->seqid = 1; in nfsrv_addlayout()
7448 lyp->lay_stateid.other[0] = stateidp->other[0] = in nfsrv_addlayout()
7450 lyp->lay_stateid.other[1] = stateidp->other[1] = in nfsrv_addlayout()
7452 lyp->lay_stateid.other[2] = stateidp->other[2] = in nfsrv_addlayout()
7470 stateidp->seqid = nlyp->lay_stateid.seqid; in nfsrv_addlayout()
7471 stateidp->other[0] = nlyp->lay_stateid.other[0]; in nfsrv_addlayout()
7472 stateidp->other[1] = nlyp->lay_stateid.other[1]; in nfsrv_addlayout()
7473 stateidp->other[2] = nlyp->lay_stateid.other[2]; in nfsrv_addlayout()