Lines Matching refs:tl
303 u_int32_t *tl; in nfsrpc_accessrpc() local
325 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_accessrpc()
326 *tl = txdr_unsigned(mode); in nfsrpc_accessrpc()
331 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_accessrpc()
332 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_accessrpc()
346 NFSM_DISSECT(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_accessrpc()
347 supported = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_accessrpc()
349 NFSM_DISSECT(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_accessrpc()
351 rmode = fxdr_unsigned(u_int32_t, *tl); in nfsrpc_accessrpc()
548 u_int32_t *tl; in nfsrpc_openrpc() local
561 NFSM_BUILD(tl, u_int32_t *, 5 * NFSX_UNSIGNED); in nfsrpc_openrpc()
562 *tl++ = txdr_unsigned(op->nfso_own->nfsow_seqid); in nfsrpc_openrpc()
563 *tl++ = txdr_unsigned(mode & (NFSV4OPEN_ACCESSBOTH | in nfsrpc_openrpc()
565 *tl++ = txdr_unsigned((mode >> NFSLCK_SHIFT) & NFSV4OPEN_DENYBOTH); in nfsrpc_openrpc()
567 *tl++ = tsep->nfsess_clientid.lval[0]; in nfsrpc_openrpc()
568 *tl = tsep->nfsess_clientid.lval[1]; in nfsrpc_openrpc()
570 NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_openrpc()
571 *tl++ = txdr_unsigned(NFSV4OPEN_NOCREATE); in nfsrpc_openrpc()
573 *tl = txdr_unsigned(NFSV4OPEN_CLAIMPREVIOUS); in nfsrpc_openrpc()
574 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_openrpc()
575 *tl = txdr_unsigned(delegtype); in nfsrpc_openrpc()
579 *tl = txdr_unsigned( in nfsrpc_openrpc()
582 *tl = txdr_unsigned(NFSV4OPEN_CLAIMDELEGATECUR); in nfsrpc_openrpc()
583 NFSM_BUILD(tl, u_int32_t *, NFSX_STATEID); in nfsrpc_openrpc()
585 *tl++ = 0; in nfsrpc_openrpc()
587 *tl++ = dp->nfsdl_stateid.seqid; in nfsrpc_openrpc()
588 *tl++ = dp->nfsdl_stateid.other[0]; in nfsrpc_openrpc()
589 *tl++ = dp->nfsdl_stateid.other[1]; in nfsrpc_openrpc()
590 *tl = dp->nfsdl_stateid.other[2]; in nfsrpc_openrpc()
594 *tl = txdr_unsigned(NFSV4OPEN_CLAIMFH); in nfsrpc_openrpc()
596 *tl = txdr_unsigned(NFSV4OPEN_CLAIMNULL); in nfsrpc_openrpc()
600 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_openrpc()
601 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_openrpc()
615 NFSM_DISSECT(tl, u_int32_t *, NFSX_STATEID + in nfsrpc_openrpc()
617 op->nfso_stateid.seqid = *tl++; in nfsrpc_openrpc()
618 op->nfso_stateid.other[0] = *tl++; in nfsrpc_openrpc()
619 op->nfso_stateid.other[1] = *tl++; in nfsrpc_openrpc()
620 op->nfso_stateid.other[2] = *tl; in nfsrpc_openrpc()
621 rflags = fxdr_unsigned(u_int32_t, *(tl + 6)); in nfsrpc_openrpc()
625 NFSM_DISSECT(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_openrpc()
626 deleg = fxdr_unsigned(u_int32_t, *tl); in nfsrpc_openrpc()
643 NFSM_DISSECT(tl, u_int32_t *, NFSX_STATEID + in nfsrpc_openrpc()
645 ndp->nfsdl_stateid.seqid = *tl++; in nfsrpc_openrpc()
646 ndp->nfsdl_stateid.other[0] = *tl++; in nfsrpc_openrpc()
647 ndp->nfsdl_stateid.other[1] = *tl++; in nfsrpc_openrpc()
648 ndp->nfsdl_stateid.other[2] = *tl++; in nfsrpc_openrpc()
649 ret = fxdr_unsigned(int, *tl); in nfsrpc_openrpc()
655 NFSM_DISSECT(tl, u_int32_t *, in nfsrpc_openrpc()
657 limitby = fxdr_unsigned(int, *tl++); in nfsrpc_openrpc()
660 ndp->nfsdl_sizelimit = fxdr_hyper(tl); in nfsrpc_openrpc()
664 fxdr_unsigned(u_int64_t, *tl++); in nfsrpc_openrpc()
666 fxdr_unsigned(u_int64_t, *tl); in nfsrpc_openrpc()
683 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_openrpc()
684 deleg = fxdr_unsigned(uint32_t, *tl); in nfsrpc_openrpc()
687 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_openrpc()
692 NFSM_DISSECT(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_openrpc()
694 if (*++tl == 0) { in nfsrpc_openrpc()
779 u_int32_t *tl; in nfsrpc_opendowngrade() local
784 NFSM_BUILD(tl, u_int32_t *, NFSX_STATEID + 3 * NFSX_UNSIGNED); in nfsrpc_opendowngrade()
786 *tl++ = 0; in nfsrpc_opendowngrade()
788 *tl++ = op->nfso_stateid.seqid; in nfsrpc_opendowngrade()
789 *tl++ = op->nfso_stateid.other[0]; in nfsrpc_opendowngrade()
790 *tl++ = op->nfso_stateid.other[1]; in nfsrpc_opendowngrade()
791 *tl++ = op->nfso_stateid.other[2]; in nfsrpc_opendowngrade()
792 *tl++ = txdr_unsigned(op->nfso_own->nfsow_seqid); in nfsrpc_opendowngrade()
793 *tl++ = txdr_unsigned(mode & NFSV4OPEN_ACCESSBOTH); in nfsrpc_opendowngrade()
794 *tl = txdr_unsigned((mode >> NFSLCK_SHIFT) & NFSV4OPEN_DENYBOTH); in nfsrpc_opendowngrade()
800 NFSM_DISSECT(tl, u_int32_t *, NFSX_STATEID); in nfsrpc_opendowngrade()
801 op->nfso_stateid.seqid = *tl++; in nfsrpc_opendowngrade()
802 op->nfso_stateid.other[0] = *tl++; in nfsrpc_opendowngrade()
803 op->nfso_stateid.other[1] = *tl++; in nfsrpc_opendowngrade()
804 op->nfso_stateid.other[2] = *tl; in nfsrpc_opendowngrade()
952 u_int32_t *tl; in nfsrpc_closerpc() local
957 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED + NFSX_STATEID); in nfsrpc_closerpc()
959 *tl++ = 0; in nfsrpc_closerpc()
960 *tl++ = 0; in nfsrpc_closerpc()
962 *tl++ = txdr_unsigned(op->nfso_own->nfsow_seqid); in nfsrpc_closerpc()
963 *tl++ = op->nfso_stateid.seqid; in nfsrpc_closerpc()
965 *tl++ = op->nfso_stateid.other[0]; in nfsrpc_closerpc()
966 *tl++ = op->nfso_stateid.other[1]; in nfsrpc_closerpc()
967 *tl = op->nfso_stateid.other[2]; in nfsrpc_closerpc()
977 NFSM_DISSECT(tl, u_int32_t *, NFSX_STATEID); in nfsrpc_closerpc()
993 u_int32_t *tl; in nfsrpc_openconfirm() local
1003 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED + NFSX_STATEID); in nfsrpc_openconfirm()
1004 *tl++ = op->nfso_stateid.seqid; in nfsrpc_openconfirm()
1005 *tl++ = op->nfso_stateid.other[0]; in nfsrpc_openconfirm()
1006 *tl++ = op->nfso_stateid.other[1]; in nfsrpc_openconfirm()
1007 *tl++ = op->nfso_stateid.other[2]; in nfsrpc_openconfirm()
1008 *tl = txdr_unsigned(op->nfso_own->nfsow_seqid); in nfsrpc_openconfirm()
1014 NFSM_DISSECT(tl, u_int32_t *, NFSX_STATEID); in nfsrpc_openconfirm()
1015 op->nfso_stateid.seqid = *tl++; in nfsrpc_openconfirm()
1016 op->nfso_stateid.other[0] = *tl++; in nfsrpc_openconfirm()
1017 op->nfso_stateid.other[1] = *tl++; in nfsrpc_openconfirm()
1018 op->nfso_stateid.other[2] = *tl; in nfsrpc_openconfirm()
1036 u_int32_t *tl; in nfsrpc_setclient() local
1197 NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_setclient()
1198 *tl++ = txdr_unsigned(nfsboottime.tv_sec); in nfsrpc_setclient()
1199 *tl = txdr_unsigned(clp->nfsc_rev); in nfsrpc_setclient()
1205 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_setclient()
1206 *tl = txdr_unsigned(NFS_CALLBCKPROG); in nfsrpc_setclient()
1246 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_setclient()
1247 *tl = txdr_unsigned(clp->nfsc_cbident); in nfsrpc_setclient()
1254 NFSM_DISSECT(tl, u_int32_t *, 4 * NFSX_UNSIGNED); in nfsrpc_setclient()
1255 tsep->nfsess_clientid.lval[0] = *tl++; in nfsrpc_setclient()
1256 tsep->nfsess_clientid.lval[1] = *tl++; in nfsrpc_setclient()
1257 confirm.lval[0] = *tl++; in nfsrpc_setclient()
1258 confirm.lval[1] = *tl; in nfsrpc_setclient()
1267 NFSM_BUILD(tl, u_int32_t *, 4 * NFSX_UNSIGNED); in nfsrpc_setclient()
1268 *tl++ = tsep->nfsess_clientid.lval[0]; in nfsrpc_setclient()
1269 *tl++ = tsep->nfsess_clientid.lval[1]; in nfsrpc_setclient()
1270 *tl++ = confirm.lval[0]; in nfsrpc_setclient()
1271 *tl = confirm.lval[1]; in nfsrpc_setclient()
1461 u_int32_t *tl; in nfsrpc_setattrrpc() local
1473 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_setattrrpc()
1474 *tl = newnfs_false; in nfsrpc_setattrrpc()
1476 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_setattrrpc()
1477 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_setattrrpc()
1504 uint32_t deleg, rflags, *tl; in nfsrpc_lookup() local
1550 NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_lookup()
1551 *tl++ = txdr_unsigned(NFSV4OP_GETFH); in nfsrpc_lookup()
1552 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_lookup()
1558 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_lookup()
1559 *tl = txdr_unsigned(NFSV4OP_VERIFY); in nfsrpc_lookup()
1561 NFSM_BUILD(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_lookup()
1562 *tl++ = txdr_unsigned(NFSX_UNSIGNED); in nfsrpc_lookup()
1563 *tl = vtonfsv34_type(VREG); in nfsrpc_lookup()
1567 NFSM_BUILD(tl, uint32_t *, 6 * NFSX_UNSIGNED); in nfsrpc_lookup()
1568 *tl++ = txdr_unsigned(NFSV4OP_OPEN); in nfsrpc_lookup()
1569 *tl++ = 0; /* seqid, ignored. */ in nfsrpc_lookup()
1570 *tl++ = txdr_unsigned(openmode | NFSV4OPEN_WANTNODELEG); in nfsrpc_lookup()
1571 *tl++ = txdr_unsigned(NFSV4OPEN_DENYNONE); in nfsrpc_lookup()
1572 *tl++ = 0; /* ClientID, ignored. */ in nfsrpc_lookup()
1573 *tl = 0; in nfsrpc_lookup()
1575 NFSM_BUILD(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_lookup()
1576 *tl++ = txdr_unsigned(NFSV4OPEN_NOCREATE); in nfsrpc_lookup()
1577 *tl = txdr_unsigned(NFSV4OPEN_CLAIMFH); in nfsrpc_lookup()
1611 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_lookup()
1612 if (*++tl != 0) in nfsrpc_lookup()
1617 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_lookup()
1618 if (*++tl != 0) in nfsrpc_lookup()
1626 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_lookup()
1627 if (*++tl != 0) in nfsrpc_lookup()
1648 NFSM_DISSECT(tl, u_int32_t *, 4 * NFSX_UNSIGNED); in nfsrpc_lookup()
1656 NFSM_DISSECT(tl, uint32_t *, NFSX_STATEID + in nfsrpc_lookup()
1658 tl += 4; /* Skip over Verify+Open status. */ in nfsrpc_lookup()
1659 stateid.seqid = *tl++; in nfsrpc_lookup()
1660 stateid.other[0] = *tl++; in nfsrpc_lookup()
1661 stateid.other[1] = *tl++; in nfsrpc_lookup()
1662 stateid.other[2] = *tl; in nfsrpc_lookup()
1663 rflags = fxdr_unsigned(uint32_t, *(tl + 6)); in nfsrpc_lookup()
1667 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_lookup()
1668 deleg = fxdr_unsigned(uint32_t, *tl); in nfsrpc_lookup()
1687 NFSM_DISSECT(tl, uint32_t *, NFSX_STATEID); in nfsrpc_lookup()
1688 ndp->nfsdl_stateid.seqid = *tl++; in nfsrpc_lookup()
1689 ndp->nfsdl_stateid.other[0] = *tl++; in nfsrpc_lookup()
1690 ndp->nfsdl_stateid.other[1] = *tl++; in nfsrpc_lookup()
1691 ndp->nfsdl_stateid.other[2] = *tl++; in nfsrpc_lookup()
1694 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_lookup()
1695 deleg = fxdr_unsigned(uint32_t, *tl); in nfsrpc_lookup()
1698 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_lookup()
1750 u_int32_t *tl; in nfsrpc_readlink() local
1762 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_readlink()
1763 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_readlink()
1875 u_int32_t *tl; in nfsrpc_readrpc() local
1900 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED * 3); in nfsrpc_readrpc()
1902 *tl++ = txdr_unsigned(uiop->uio_offset); in nfsrpc_readrpc()
1903 *tl++ = txdr_unsigned(len); in nfsrpc_readrpc()
1904 *tl = 0; in nfsrpc_readrpc()
1906 txdr_hyper(uiop->uio_offset, tl); in nfsrpc_readrpc()
1907 *(tl + 2) = txdr_unsigned(len); in nfsrpc_readrpc()
1930 NFSM_DISSECT(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_readrpc()
1931 eof = fxdr_unsigned(int, *(tl + 1)); in nfsrpc_readrpc()
1933 NFSM_DISSECT(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_readrpc()
1934 eof = fxdr_unsigned(int, *tl); in nfsrpc_readrpc()
2052 u_int32_t *tl; in nfsrpc_writerpc() local
2093 NFSM_BUILD(tl, uint32_t *, 2 * NFSX_UNSIGNED + in nfsrpc_writerpc()
2095 *tl++ = txdr_unsigned(NFSX_HYPER); in nfsrpc_writerpc()
2096 txdr_hyper(uiop->uio_offset, tl); tl += 2; in nfsrpc_writerpc()
2097 *tl = txdr_unsigned(NFSV4OP_WRITE); in nfsrpc_writerpc()
2100 NFSM_BUILD(tl, u_int32_t *, NFSX_HYPER+2*NFSX_UNSIGNED); in nfsrpc_writerpc()
2101 txdr_hyper(uiop->uio_offset, tl); in nfsrpc_writerpc()
2102 tl += 2; in nfsrpc_writerpc()
2103 *tl++ = txdr_unsigned(*iomode); in nfsrpc_writerpc()
2104 *tl = txdr_unsigned(len); in nfsrpc_writerpc()
2106 NFSM_BUILD(tl, u_int32_t *, NFSX_HYPER+3*NFSX_UNSIGNED); in nfsrpc_writerpc()
2107 txdr_hyper(uiop->uio_offset, tl); in nfsrpc_writerpc()
2108 tl += 2; in nfsrpc_writerpc()
2109 *tl++ = txdr_unsigned(len); in nfsrpc_writerpc()
2110 *tl++ = txdr_unsigned(*iomode); in nfsrpc_writerpc()
2111 *tl = txdr_unsigned(len); in nfsrpc_writerpc()
2115 NFSM_BUILD(tl, u_int32_t *, 4 * NFSX_UNSIGNED); in nfsrpc_writerpc()
2124 *tl++ = x; /* "begin offset" */ in nfsrpc_writerpc()
2125 *tl++ = x; /* "current offset" */ in nfsrpc_writerpc()
2127 *tl++ = x; /* total to this offset */ in nfsrpc_writerpc()
2128 *tl = x; /* size of this write */ in nfsrpc_writerpc()
2158 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_writerpc()
2159 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_writerpc()
2206 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_writerpc()
2209 NFSM_DISSECT(tl, u_int32_t *, 2 * NFSX_UNSIGNED in nfsrpc_writerpc()
2211 rlen = fxdr_unsigned(int, *tl++); in nfsrpc_writerpc()
2225 commit = fxdr_unsigned(int, *tl++); in nfsrpc_writerpc()
2238 NFSBCOPY((caddr_t)tl, in nfsrpc_writerpc()
2242 } else if (NFSBCMP(tl, nmp->nm_verf, in nfsrpc_writerpc()
2245 NFSBCOPY(tl, nmp->nm_verf, NFSX_VERF); in nfsrpc_writerpc()
2250 NFSM_DISSECT(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_writerpc()
2348 uint32_t *tl; in nfsrpc_deallocaterpc() local
2358 NFSM_BUILD(tl, uint32_t *, 2 * NFSX_HYPER); in nfsrpc_deallocaterpc()
2359 txdr_hyper(offs, tl); in nfsrpc_deallocaterpc()
2360 tl += 2; in nfsrpc_deallocaterpc()
2361 txdr_hyper(len, tl); in nfsrpc_deallocaterpc()
2363 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_deallocaterpc()
2364 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_deallocaterpc()
2374 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_deallocaterpc()
2399 u_int32_t *tl; in nfsrpc_mknod() local
2412 NFSM_BUILD(tl, u_int32_t *, 3 * NFSX_UNSIGNED); in nfsrpc_mknod()
2413 *tl++ = vtonfsv34_type(vtyp); in nfsrpc_mknod()
2414 *tl++ = txdr_unsigned(NFSMAJOR(rdev)); in nfsrpc_mknod()
2415 *tl = txdr_unsigned(NFSMINOR(rdev)); in nfsrpc_mknod()
2417 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_mknod()
2418 *tl = vtonfsv34_type(vtyp); in nfsrpc_mknod()
2423 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_mknod()
2424 *tl = vtonfsv34_type(vtyp); in nfsrpc_mknod()
2430 NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_mknod()
2431 *tl++ = txdr_unsigned(NFSMAJOR(rdev)); in nfsrpc_mknod()
2432 *tl = txdr_unsigned(NFSMINOR(rdev)); in nfsrpc_mknod()
2436 NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_mknod()
2437 *tl++ = txdr_unsigned(NFSV4OP_GETFH); in nfsrpc_mknod()
2438 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_mknod()
2450 NFSM_DISSECT(tl, u_int32_t *, 5 * NFSX_UNSIGNED); in nfsrpc_mknod()
2549 u_int32_t *tl; in nfsrpc_createv23() local
2561 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_createv23()
2563 *tl = txdr_unsigned(NFSCREATE_EXCLUSIVE); in nfsrpc_createv23()
2564 NFSM_BUILD(tl, u_int32_t *, NFSX_VERF); in nfsrpc_createv23()
2565 *tl++ = cverf.lval[0]; in nfsrpc_createv23()
2566 *tl = cverf.lval[1]; in nfsrpc_createv23()
2568 *tl = txdr_unsigned(NFSCREATE_UNCHECKED); in nfsrpc_createv23()
2598 u_int32_t *tl; in nfsrpc_createv4() local
2624 NFSM_BUILD(tl, u_int32_t *, 5 * NFSX_UNSIGNED); in nfsrpc_createv4()
2625 *tl++ = txdr_unsigned(owp->nfsow_seqid); in nfsrpc_createv4()
2629 *tl++ = txdr_unsigned(NFSV4OPEN_ACCESSWRITE | in nfsrpc_createv4()
2632 *tl++ = txdr_unsigned(NFSV4OPEN_ACCESSWRITE | in nfsrpc_createv4()
2635 *tl++ = txdr_unsigned(NFSV4OPEN_ACCESSWRITE | in nfsrpc_createv4()
2637 *tl++ = txdr_unsigned(NFSV4OPEN_DENYNONE); in nfsrpc_createv4()
2639 *tl++ = tsep->nfsess_clientid.lval[0]; in nfsrpc_createv4()
2640 *tl = tsep->nfsess_clientid.lval[1]; in nfsrpc_createv4()
2642 NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_createv4()
2643 *tl++ = txdr_unsigned(NFSV4OPEN_CREATE); in nfsrpc_createv4()
2648 *tl = txdr_unsigned(NFSCREATE_GUARDED); in nfsrpc_createv4()
2653 *tl = txdr_unsigned(NFSCREATE_EXCLUSIVE41); in nfsrpc_createv4()
2654 NFSM_BUILD(tl, u_int32_t *, NFSX_VERF); in nfsrpc_createv4()
2655 *tl++ = cverf.lval[0]; in nfsrpc_createv4()
2656 *tl = cverf.lval[1]; in nfsrpc_createv4()
2662 *tl = txdr_unsigned(NFSCREATE_EXCLUSIVE); in nfsrpc_createv4()
2663 NFSM_BUILD(tl, u_int32_t *, NFSX_VERF); in nfsrpc_createv4()
2664 *tl++ = cverf.lval[0]; in nfsrpc_createv4()
2665 *tl = cverf.lval[1]; in nfsrpc_createv4()
2668 *tl = txdr_unsigned(NFSCREATE_UNCHECKED); in nfsrpc_createv4()
2671 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_createv4()
2672 *tl = txdr_unsigned(NFSV4OPEN_CLAIMNULL); in nfsrpc_createv4()
2675 NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_createv4()
2676 *tl++ = txdr_unsigned(NFSV4OP_GETFH); in nfsrpc_createv4()
2677 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_createv4()
2681 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_createv4()
2682 *tl = txdr_unsigned(NFSV4OP_PUTFH); in nfsrpc_createv4()
2684 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_createv4()
2685 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_createv4()
2692 NFSM_DISSECT(tl, u_int32_t *, NFSX_STATEID + in nfsrpc_createv4()
2694 stateid.seqid = *tl++; in nfsrpc_createv4()
2695 stateid.other[0] = *tl++; in nfsrpc_createv4()
2696 stateid.other[1] = *tl++; in nfsrpc_createv4()
2697 stateid.other[2] = *tl; in nfsrpc_createv4()
2698 rflags = fxdr_unsigned(u_int32_t, *(tl + 6)); in nfsrpc_createv4()
2702 NFSM_DISSECT(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_createv4()
2703 deleg = fxdr_unsigned(int, *tl); in nfsrpc_createv4()
2718 NFSM_DISSECT(tl, u_int32_t *, NFSX_STATEID + in nfsrpc_createv4()
2720 dp->nfsdl_stateid.seqid = *tl++; in nfsrpc_createv4()
2721 dp->nfsdl_stateid.other[0] = *tl++; in nfsrpc_createv4()
2722 dp->nfsdl_stateid.other[1] = *tl++; in nfsrpc_createv4()
2723 dp->nfsdl_stateid.other[2] = *tl++; in nfsrpc_createv4()
2724 ret = fxdr_unsigned(int, *tl); in nfsrpc_createv4()
2730 NFSM_DISSECT(tl, u_int32_t *, in nfsrpc_createv4()
2732 limitby = fxdr_unsigned(int, *tl++); in nfsrpc_createv4()
2735 dp->nfsdl_sizelimit = fxdr_hyper(tl); in nfsrpc_createv4()
2739 fxdr_unsigned(u_int64_t, *tl++); in nfsrpc_createv4()
2741 fxdr_unsigned(u_int64_t, *tl); in nfsrpc_createv4()
2758 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_createv4()
2759 deleg = fxdr_unsigned(uint32_t, *tl); in nfsrpc_createv4()
2762 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_createv4()
2771 NFSM_DISSECT(tl, u_int32_t *, 4 * NFSX_UNSIGNED); in nfsrpc_createv4()
2866 uint32_t *tl; in nfsrpc_remove() local
2887 NFSM_BUILD(tl, u_int32_t *, NFSX_STATEID + in nfsrpc_remove()
2890 *tl++ = 0; in nfsrpc_remove()
2892 *tl++ = dstateid.seqid; in nfsrpc_remove()
2893 *tl++ = dstateid.other[0]; in nfsrpc_remove()
2894 *tl++ = dstateid.other[1]; in nfsrpc_remove()
2895 *tl++ = dstateid.other[2]; in nfsrpc_remove()
2896 *tl = txdr_unsigned(NFSV4OP_PUTFH); in nfsrpc_remove()
2900 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_remove()
2901 *tl = txdr_unsigned(NFSV4OP_REMOVE); in nfsrpc_remove()
2910 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_remove()
2911 *tl = txdr_unsigned(NFSV4OP_PUTFH); in nfsrpc_remove()
2914 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_remove()
2916 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_remove()
2936 NFSM_DISSECT(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_remove()
2937 if (*(tl + 1)) in nfsrpc_remove()
2946 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED + 2 * NFSX_HYPER); in nfsrpc_remove()
2954 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_remove()
2955 if (*(tl + 1) != 0) { in nfsrpc_remove()
2956 i = fxdr_unsigned(int, *(tl + 1)); in nfsrpc_remove()
2960 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_remove()
2961 if (*(tl + 1) != 0) { in nfsrpc_remove()
2962 i = fxdr_unsigned(int, *(tl + 1)); in nfsrpc_remove()
2995 uint32_t *tl; in nfsrpc_rename() local
3023 NFSM_BUILD(tl, u_int32_t *, NFSX_STATEID); in nfsrpc_rename()
3025 *tl++ = 0; in nfsrpc_rename()
3027 *tl++ = fdstateid.seqid; in nfsrpc_rename()
3028 *tl++ = fdstateid.other[0]; in nfsrpc_rename()
3029 *tl++ = fdstateid.other[1]; in nfsrpc_rename()
3030 *tl = fdstateid.other[2]; in nfsrpc_rename()
3032 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_rename()
3033 *tl = txdr_unsigned(NFSV4OP_PUTFH); in nfsrpc_rename()
3037 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_rename()
3038 *tl = txdr_unsigned(NFSV4OP_DELEGRETURN); in nfsrpc_rename()
3042 NFSM_BUILD(tl, u_int32_t *, NFSX_STATEID); in nfsrpc_rename()
3044 *tl++ = 0; in nfsrpc_rename()
3046 *tl++ = tdstateid.seqid; in nfsrpc_rename()
3047 *tl++ = tdstateid.other[0]; in nfsrpc_rename()
3048 *tl++ = tdstateid.other[1]; in nfsrpc_rename()
3049 *tl = tdstateid.other[2]; in nfsrpc_rename()
3052 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_rename()
3053 *tl = txdr_unsigned(NFSV4OP_PUTFH); in nfsrpc_rename()
3057 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_rename()
3058 *tl = txdr_unsigned(NFSV4OP_SAVEFH); in nfsrpc_rename()
3066 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_rename()
3067 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_rename()
3070 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_rename()
3071 *tl = txdr_unsigned(NFSV4OP_PUTFH); in nfsrpc_rename()
3074 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_rename()
3075 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_rename()
3078 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_rename()
3079 *tl = txdr_unsigned(NFSV4OP_RENAME); in nfsrpc_rename()
3087 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_rename()
3089 *tl = txdr_unsigned(NFSV4OP_PUTFH); in nfsrpc_rename()
3096 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_rename()
3097 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_rename()
3118 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_rename()
3119 if (*(tl + 1)) { in nfsrpc_rename()
3138 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_rename()
3139 if (*(tl + 1)) in nfsrpc_rename()
3146 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_rename()
3147 if (*(tl + 1)) in nfsrpc_rename()
3157 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED + in nfsrpc_rename()
3161 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_rename()
3162 if (*(tl + 1) != 0) { in nfsrpc_rename()
3164 i = fxdr_unsigned(int, *(tl + 1)); in nfsrpc_rename()
3169 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_rename()
3170 if (*(tl + 1) != 0) { in nfsrpc_rename()
3172 i = fxdr_unsigned(int, *(tl + 1)); in nfsrpc_rename()
3203 u_int32_t *tl; in nfsrpc_link() local
3214 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_link()
3215 *tl = txdr_unsigned(NFSV4OP_PUTFH); in nfsrpc_link()
3220 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_link()
3221 *tl = txdr_unsigned(NFSV4OP_LINK); in nfsrpc_link()
3225 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_link()
3226 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_link()
3229 NFSM_BUILD(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_link()
3230 *tl++ = txdr_unsigned(NFSV4OP_RESTOREFH); in nfsrpc_link()
3231 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_link()
3246 NFSM_DISSECT(tl, uint32_t *, 5 * NFSX_UNSIGNED + in nfsrpc_link()
3248 if (*(tl + 3)) in nfsrpc_link()
3257 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_link()
3258 if (*(tl + 1)) in nfsrpc_link()
3281 u_int32_t *tl; in nfsrpc_symlink() local
3295 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_symlink()
3296 *tl = txdr_unsigned(NFLNK); in nfsrpc_symlink()
3342 u_int32_t *tl; in nfsrpc_mkdir() local
3358 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_mkdir()
3359 *tl = txdr_unsigned(NFDIR); in nfsrpc_mkdir()
3365 NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_mkdir()
3366 *tl++ = txdr_unsigned(NFSV4OP_GETFH); in nfsrpc_mkdir()
3367 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_mkdir()
3369 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_mkdir()
3370 *tl = txdr_unsigned(NFSV4OP_PUTFH); in nfsrpc_mkdir()
3372 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_mkdir()
3373 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_mkdir()
3383 NFSM_DISSECT(tl, u_int32_t *, 5 * NFSX_UNSIGNED); in nfsrpc_mkdir()
3390 NFSM_DISSECT(tl, u_int32_t *, 4 * NFSX_UNSIGNED); in nfsrpc_mkdir()
3506 u_int32_t *tl; in nfsrpc_readdir() local
3574 NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_readdir()
3575 *tl++ = txdr_unsigned(NFSV4OP_GETFH); in nfsrpc_readdir()
3576 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_readdir()
3589 NFSM_DISSECT(tl, u_int32_t *, 5 * NFSX_UNSIGNED); in nfsrpc_readdir()
3590 len = fxdr_unsigned(int, *(tl + 4)); in nfsrpc_readdir()
3596 NFSM_DISSECT(tl, u_int32_t *, 2*NFSX_UNSIGNED); in nfsrpc_readdir()
3647 tl = (u_int32_t *)&dp->d_name[8]; in nfsrpc_readdir()
3648 *tl++ = 0; in nfsrpc_readdir()
3649 *tl = 0; in nfsrpc_readdir()
3669 tl = (u_int32_t *)&dp->d_name[8]; in nfsrpc_readdir()
3670 *tl++ = 0; in nfsrpc_readdir()
3671 *tl = 0; in nfsrpc_readdir()
3692 NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_readdir()
3693 *tl++ = cookie.lval[1]; in nfsrpc_readdir()
3694 *tl = txdr_unsigned(readsize); in nfsrpc_readdir()
3696 NFSM_BUILD(tl, u_int32_t *, reqsize); in nfsrpc_readdir()
3697 *tl++ = cookie.lval[0]; in nfsrpc_readdir()
3698 *tl++ = cookie.lval[1]; in nfsrpc_readdir()
3700 *tl++ = 0; in nfsrpc_readdir()
3701 *tl++ = 0; in nfsrpc_readdir()
3704 *tl++ = dnp->n_cookieverf.nfsuquad[0]; in nfsrpc_readdir()
3705 *tl++ = dnp->n_cookieverf.nfsuquad[1]; in nfsrpc_readdir()
3709 *tl++ = txdr_unsigned(readsize); in nfsrpc_readdir()
3710 *tl = txdr_unsigned(readsize); in nfsrpc_readdir()
3712 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_readdir()
3713 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_readdir()
3716 *tl = txdr_unsigned(readsize); in nfsrpc_readdir()
3726 NFSM_DISSECT(tl, u_int32_t *, NFSX_HYPER); in nfsrpc_readdir()
3728 dnp->n_cookieverf.nfsuquad[0] = *tl++; in nfsrpc_readdir()
3729 dnp->n_cookieverf.nfsuquad[1] = *tl; in nfsrpc_readdir()
3738 NFSM_DISSECT(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_readdir()
3739 more_dirs = fxdr_unsigned(int, *tl); in nfsrpc_readdir()
3747 NFSM_DISSECT(tl, u_int32_t *, 3*NFSX_UNSIGNED); in nfsrpc_readdir()
3748 ncookie.lval[0] = *tl++; in nfsrpc_readdir()
3749 ncookie.lval[1] = *tl++; in nfsrpc_readdir()
3750 len = fxdr_unsigned(int, *tl); in nfsrpc_readdir()
3752 NFSM_DISSECT(tl, u_int32_t *, 3*NFSX_UNSIGNED); in nfsrpc_readdir()
3753 nfsva.na_fileid = fxdr_hyper(tl); in nfsrpc_readdir()
3754 tl += 2; in nfsrpc_readdir()
3755 len = fxdr_unsigned(int, *tl); in nfsrpc_readdir()
3757 NFSM_DISSECT(tl, u_int32_t *, 2*NFSX_UNSIGNED); in nfsrpc_readdir()
3759 *tl++); in nfsrpc_readdir()
3760 len = fxdr_unsigned(int, *tl); in nfsrpc_readdir()
3853 NFSM_DISSECT(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_readdir()
3855 NFSM_DISSECT(tl, u_int32_t *, 3*NFSX_UNSIGNED); in nfsrpc_readdir()
3856 ncookie.lval[0] = *tl++; in nfsrpc_readdir()
3857 ncookie.lval[1] = *tl++; in nfsrpc_readdir()
3859 NFSM_DISSECT(tl, u_int32_t *, 2*NFSX_UNSIGNED); in nfsrpc_readdir()
3861 ncookie.lval[1] = *tl++; in nfsrpc_readdir()
3895 more_dirs = fxdr_unsigned(int, *tl); in nfsrpc_readdir()
3901 NFSM_DISSECT(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_readdir()
3902 eof = fxdr_unsigned(int, *tl); in nfsrpc_readdir()
3951 tl = (u_int32_t *)&dp->d_name[4]; in nfsrpc_readdir()
3952 *tl++ = cookie.lval[0]; in nfsrpc_readdir()
3953 *tl = cookie.lval[1]; in nfsrpc_readdir()
3980 u_int32_t *tl; in nfsrpc_readdirplus() local
4048 NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_readdirplus()
4049 *tl++ = txdr_unsigned(NFSV4OP_GETFH); in nfsrpc_readdirplus()
4050 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_readdirplus()
4064 NFSM_DISSECT(tl, u_int32_t *, 5 * NFSX_UNSIGNED); in nfsrpc_readdirplus()
4065 len = fxdr_unsigned(int, *(tl + 4)); in nfsrpc_readdirplus()
4071 NFSM_DISSECT(tl, u_int32_t *, 2*NFSX_UNSIGNED); in nfsrpc_readdirplus()
4122 tl = (u_int32_t *)&dp->d_name[8]; in nfsrpc_readdirplus()
4123 *tl++ = 0; in nfsrpc_readdirplus()
4124 *tl = 0; in nfsrpc_readdirplus()
4144 tl = (u_int32_t *)&dp->d_name[8]; in nfsrpc_readdirplus()
4145 *tl++ = 0; in nfsrpc_readdirplus()
4146 *tl = 0; in nfsrpc_readdirplus()
4177 NFSM_BUILD(tl, u_int32_t *, 6 * NFSX_UNSIGNED); in nfsrpc_readdirplus()
4178 *tl++ = cookie.lval[0]; in nfsrpc_readdirplus()
4179 *tl++ = cookie.lval[1]; in nfsrpc_readdirplus()
4181 *tl++ = 0; in nfsrpc_readdirplus()
4182 *tl++ = 0; in nfsrpc_readdirplus()
4185 *tl++ = dnp->n_cookieverf.nfsuquad[0]; in nfsrpc_readdirplus()
4186 *tl++ = dnp->n_cookieverf.nfsuquad[1]; in nfsrpc_readdirplus()
4189 *tl++ = txdr_unsigned(nmp->nm_readdirsize); in nfsrpc_readdirplus()
4190 *tl = txdr_unsigned(nmp->nm_readdirsize); in nfsrpc_readdirplus()
4193 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_readdirplus()
4194 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_readdirplus()
4210 NFSM_DISSECT(tl, u_int32_t *, 3 * NFSX_UNSIGNED); in nfsrpc_readdirplus()
4212 dnp->n_cookieverf.nfsuquad[0] = *tl++; in nfsrpc_readdirplus()
4213 dnp->n_cookieverf.nfsuquad[1] = *tl++; in nfsrpc_readdirplus()
4215 more_dirs = fxdr_unsigned(int, *tl); in nfsrpc_readdirplus()
4222 NFSM_DISSECT(tl, u_int32_t *, 3 * NFSX_UNSIGNED); in nfsrpc_readdirplus()
4224 ncookie.lval[0] = *tl++; in nfsrpc_readdirplus()
4225 ncookie.lval[1] = *tl++; in nfsrpc_readdirplus()
4227 fileno = fxdr_hyper(tl); in nfsrpc_readdirplus()
4228 tl += 2; in nfsrpc_readdirplus()
4230 len = fxdr_unsigned(int, *tl); in nfsrpc_readdirplus()
4325 NFSM_DISSECT(tl, u_int32_t *, 3*NFSX_UNSIGNED); in nfsrpc_readdirplus()
4326 ncookie.lval[0] = *tl++; in nfsrpc_readdirplus()
4327 ncookie.lval[1] = *tl++; in nfsrpc_readdirplus()
4328 attrflag = fxdr_unsigned(int, *tl); in nfsrpc_readdirplus()
4334 NFSM_DISSECT(tl,u_int32_t *,NFSX_UNSIGNED); in nfsrpc_readdirplus()
4335 if (*tl) { in nfsrpc_readdirplus()
4472 NFSM_DISSECT(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_readdirplus()
4473 more_dirs = fxdr_unsigned(int, *tl); in nfsrpc_readdirplus()
4479 NFSM_DISSECT(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_readdirplus()
4480 eof = fxdr_unsigned(int, *tl); in nfsrpc_readdirplus()
4529 tl = (u_int32_t *)&dp->d_name[4]; in nfsrpc_readdirplus()
4530 *tl++ = cookie.lval[0]; in nfsrpc_readdirplus()
4531 *tl = cookie.lval[1]; in nfsrpc_readdirplus()
4553 u_int32_t *tl; in nfsrpc_commit() local
4561 NFSM_BUILD(tl, u_int32_t *, 3 * NFSX_UNSIGNED); in nfsrpc_commit()
4562 txdr_hyper(offset, tl); in nfsrpc_commit()
4563 tl += 2; in nfsrpc_commit()
4564 *tl = txdr_unsigned(cnt); in nfsrpc_commit()
4569 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_commit()
4570 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_commit()
4579 NFSM_DISSECT(tl, u_int32_t *, NFSX_VERF); in nfsrpc_commit()
4581 if (NFSBCMP(nmp->nm_verf, tl, NFSX_VERF)) { in nfsrpc_commit()
4582 NFSBCOPY(tl, nmp->nm_verf, NFSX_VERF); in nfsrpc_commit()
4772 u_int32_t *tl; in nfsrpc_lockt() local
4781 NFSM_BUILD(tl, u_int32_t *, 7 * NFSX_UNSIGNED); in nfsrpc_lockt()
4783 *tl++ = txdr_unsigned(NFSV4LOCKT_READ); in nfsrpc_lockt()
4785 *tl++ = txdr_unsigned(NFSV4LOCKT_WRITE); in nfsrpc_lockt()
4786 txdr_hyper(off, tl); in nfsrpc_lockt()
4787 tl += 2; in nfsrpc_lockt()
4788 txdr_hyper(len, tl); in nfsrpc_lockt()
4789 tl += 2; in nfsrpc_lockt()
4791 *tl++ = tsep->nfsess_clientid.lval[0]; in nfsrpc_lockt()
4792 *tl = tsep->nfsess_clientid.lval[1]; in nfsrpc_lockt()
4806 NFSM_DISSECT(tl, u_int32_t *, 8 * NFSX_UNSIGNED); in nfsrpc_lockt()
4807 fl->l_start = fxdr_hyper(tl); in nfsrpc_lockt()
4808 tl += 2; in nfsrpc_lockt()
4809 len = fxdr_hyper(tl); in nfsrpc_lockt()
4810 tl += 2; in nfsrpc_lockt()
4815 type = fxdr_unsigned(int, *tl++); in nfsrpc_lockt()
4826 tl += 2; in nfsrpc_lockt()
4827 size = fxdr_unsigned(int, *tl); in nfsrpc_lockt()
4847 u_int32_t *tl; in nfsrpc_locku() local
4852 NFSM_BUILD(tl, u_int32_t *, NFSX_STATEID + 6 * NFSX_UNSIGNED); in nfsrpc_locku()
4853 *tl++ = txdr_unsigned(type); in nfsrpc_locku()
4854 *tl = txdr_unsigned(lp->nfsl_seqid); in nfsrpc_locku()
4857 *tl = txdr_unsigned(lp->nfsl_seqid + 1); in nfsrpc_locku()
4858 tl++; in nfsrpc_locku()
4860 *tl++ = 0; in nfsrpc_locku()
4862 *tl++ = lp->nfsl_stateid.seqid; in nfsrpc_locku()
4863 *tl++ = lp->nfsl_stateid.other[0]; in nfsrpc_locku()
4864 *tl++ = lp->nfsl_stateid.other[1]; in nfsrpc_locku()
4865 *tl++ = lp->nfsl_stateid.other[2]; in nfsrpc_locku()
4866 txdr_hyper(off, tl); in nfsrpc_locku()
4867 tl += 2; in nfsrpc_locku()
4868 txdr_hyper(len, tl); in nfsrpc_locku()
4877 NFSM_DISSECT(tl, u_int32_t *, NFSX_STATEID); in nfsrpc_locku()
4878 lp->nfsl_stateid.seqid = *tl++; in nfsrpc_locku()
4879 lp->nfsl_stateid.other[0] = *tl++; in nfsrpc_locku()
4880 lp->nfsl_stateid.other[1] = *tl++; in nfsrpc_locku()
4881 lp->nfsl_stateid.other[2] = *tl; in nfsrpc_locku()
4898 u_int32_t *tl; in nfsrpc_lock() local
4905 NFSM_BUILD(tl, u_int32_t *, 7 * NFSX_UNSIGNED); in nfsrpc_lock()
4907 *tl++ = txdr_unsigned(NFSV4LOCKT_READ); in nfsrpc_lock()
4909 *tl++ = txdr_unsigned(NFSV4LOCKT_WRITE); in nfsrpc_lock()
4910 *tl++ = txdr_unsigned(reclaim); in nfsrpc_lock()
4911 txdr_hyper(off, tl); in nfsrpc_lock()
4912 tl += 2; in nfsrpc_lock()
4913 txdr_hyper(len, tl); in nfsrpc_lock()
4914 tl += 2; in nfsrpc_lock()
4916 *tl = newnfs_true; in nfsrpc_lock()
4917 NFSM_BUILD(tl, u_int32_t *, NFSX_STATEID + in nfsrpc_lock()
4919 *tl++ = txdr_unsigned(lp->nfsl_open->nfso_own->nfsow_seqid); in nfsrpc_lock()
4921 *tl++ = 0; in nfsrpc_lock()
4923 *tl++ = lp->nfsl_open->nfso_stateid.seqid; in nfsrpc_lock()
4924 *tl++ = lp->nfsl_open->nfso_stateid.other[0]; in nfsrpc_lock()
4925 *tl++ = lp->nfsl_open->nfso_stateid.other[1]; in nfsrpc_lock()
4926 *tl++ = lp->nfsl_open->nfso_stateid.other[2]; in nfsrpc_lock()
4927 *tl++ = txdr_unsigned(lp->nfsl_seqid); in nfsrpc_lock()
4929 *tl++ = tsep->nfsess_clientid.lval[0]; in nfsrpc_lock()
4930 *tl = tsep->nfsess_clientid.lval[1]; in nfsrpc_lock()
4935 *tl = newnfs_false; in nfsrpc_lock()
4936 NFSM_BUILD(tl, u_int32_t *, NFSX_STATEID + NFSX_UNSIGNED); in nfsrpc_lock()
4938 *tl++ = 0; in nfsrpc_lock()
4940 *tl++ = lp->nfsl_stateid.seqid; in nfsrpc_lock()
4941 *tl++ = lp->nfsl_stateid.other[0]; in nfsrpc_lock()
4942 *tl++ = lp->nfsl_stateid.other[1]; in nfsrpc_lock()
4943 *tl++ = lp->nfsl_stateid.other[2]; in nfsrpc_lock()
4944 *tl = txdr_unsigned(lp->nfsl_seqid); in nfsrpc_lock()
4947 *tl = txdr_unsigned(lp->nfsl_seqid + 1); in nfsrpc_lock()
4959 NFSM_DISSECT(tl, u_int32_t *, NFSX_STATEID); in nfsrpc_lock()
4960 lp->nfsl_stateid.seqid = *tl++; in nfsrpc_lock()
4961 lp->nfsl_stateid.other[0] = *tl++; in nfsrpc_lock()
4962 lp->nfsl_stateid.other[1] = *tl++; in nfsrpc_lock()
4963 lp->nfsl_stateid.other[2] = *tl; in nfsrpc_lock()
4965 NFSM_DISSECT(tl, u_int32_t *, 8 * NFSX_UNSIGNED); in nfsrpc_lock()
4966 size = fxdr_unsigned(int, *(tl + 7)); in nfsrpc_lock()
4987 u_int32_t *tl = NULL; in nfsrpc_statfs() local
5038 NFSM_DISSECT(tl, u_int32_t *, in nfsrpc_statfs()
5042 sbp->sf_tbytes = fxdr_hyper(tl); tl += 2; in nfsrpc_statfs()
5043 sbp->sf_fbytes = fxdr_hyper(tl); tl += 2; in nfsrpc_statfs()
5044 sbp->sf_abytes = fxdr_hyper(tl); tl += 2; in nfsrpc_statfs()
5045 sbp->sf_tfiles = fxdr_hyper(tl); tl += 2; in nfsrpc_statfs()
5046 sbp->sf_ffiles = fxdr_hyper(tl); tl += 2; in nfsrpc_statfs()
5047 sbp->sf_afiles = fxdr_hyper(tl); tl += 2; in nfsrpc_statfs()
5048 sbp->sf_invarsec = fxdr_unsigned(u_int32_t, *tl); in nfsrpc_statfs()
5050 sbp->sf_tsize = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_statfs()
5051 sbp->sf_bsize = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_statfs()
5052 sbp->sf_blocks = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_statfs()
5053 sbp->sf_bfree = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_statfs()
5054 sbp->sf_bavail = fxdr_unsigned(u_int32_t, *tl); in nfsrpc_statfs()
5070 u_int32_t *tl; in nfsrpc_pathconf() local
5118 NFSM_DISSECT(tl, u_int32_t *, NFSX_V3PATHCONF); in nfsrpc_pathconf()
5119 pc->pc_linkmax = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_pathconf()
5120 pc->pc_namemax = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_pathconf()
5121 pc->pc_notrunc = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_pathconf()
5123 fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_pathconf()
5125 fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_pathconf()
5126 pc->pc_casepreserving = fxdr_unsigned(u_int32_t, *tl); in nfsrpc_pathconf()
5141 u_int32_t *tl; in nfsrpc_fsinfo() local
5154 NFSM_DISSECT(tl, u_int32_t *, NFSX_V3FSINFO); in nfsrpc_fsinfo()
5155 fsp->fs_rtmax = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo()
5156 fsp->fs_rtpref = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo()
5157 fsp->fs_rtmult = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo()
5158 fsp->fs_wtmax = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo()
5159 fsp->fs_wtpref = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo()
5160 fsp->fs_wtmult = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo()
5161 fsp->fs_dtpref = fxdr_unsigned(u_int32_t, *tl++); in nfsrpc_fsinfo()
5162 fsp->fs_maxfilesize = fxdr_hyper(tl); in nfsrpc_fsinfo()
5163 tl += 2; in nfsrpc_fsinfo()
5164 fxdr_nfsv3time(tl, &fsp->fs_timedelta); in nfsrpc_fsinfo()
5165 tl += 2; in nfsrpc_fsinfo()
5166 fsp->fs_properties = fxdr_unsigned(u_int32_t, *tl); in nfsrpc_fsinfo()
5180 u_int32_t *tl; in nfsrpc_renew() local
5199 NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_renew()
5201 *tl++ = tsep->nfsess_clientid.lval[0]; in nfsrpc_renew()
5202 *tl = tsep->nfsess_clientid.lval[1]; in nfsrpc_renew()
5235 u_int32_t *tl; in nfsrpc_rellockown() local
5248 NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_rellockown()
5250 *tl++ = tsep->nfsess_clientid.lval[0]; in nfsrpc_rellockown()
5251 *tl = tsep->nfsess_clientid.lval[1]; in nfsrpc_rellockown()
5273 u_int32_t *tl; in nfsrpc_getdirpath() local
5296 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_getdirpath()
5297 *tl = txdr_unsigned(NFSV4OP_LOOKUP); in nfsrpc_getdirpath()
5310 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_getdirpath()
5311 *tl = txdr_unsigned(NFSV4OP_GETFH); in nfsrpc_getdirpath()
5318 NFSM_DISSECT(tl, u_int32_t *, (3 + 2 * cnt) * NFSX_UNSIGNED); in nfsrpc_getdirpath()
5319 tl += (2 + 2 * cnt); in nfsrpc_getdirpath()
5320 if ((len = fxdr_unsigned(int, *tl)) <= 0 || in nfsrpc_getdirpath()
5350 u_int32_t *tl; in nfsrpc_delegreturn() local
5357 NFSM_BUILD(tl, u_int32_t *, NFSX_STATEID); in nfsrpc_delegreturn()
5359 *tl++ = 0; in nfsrpc_delegreturn()
5361 *tl++ = dp->nfsdl_stateid.seqid; in nfsrpc_delegreturn()
5362 *tl++ = dp->nfsdl_stateid.other[0]; in nfsrpc_delegreturn()
5363 *tl++ = dp->nfsdl_stateid.other[1]; in nfsrpc_delegreturn()
5364 *tl = dp->nfsdl_stateid.other[2]; in nfsrpc_delegreturn()
5456 uint32_t *tl, v41flags; in nfsrpc_exchangeid() local
5468 NFSM_BUILD(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_exchangeid()
5469 *tl++ = txdr_unsigned(nfsboottime.tv_sec); /* Client owner */ in nfsrpc_exchangeid()
5470 *tl = txdr_unsigned(clp->nfsc_rev); in nfsrpc_exchangeid()
5473 NFSM_BUILD(tl, uint32_t *, 3 * NFSX_UNSIGNED); in nfsrpc_exchangeid()
5474 *tl++ = txdr_unsigned(exchflags); in nfsrpc_exchangeid()
5475 *tl++ = txdr_unsigned(NFSV4EXCH_SP4NONE); in nfsrpc_exchangeid()
5478 *tl = txdr_unsigned(1); in nfsrpc_exchangeid()
5481 NFSM_BUILD(tl, uint32_t *, NFSX_V4TIME); in nfsrpc_exchangeid()
5484 txdr_nfsv4time(&verstime, tl); in nfsrpc_exchangeid()
5493 NFSM_DISSECT(tl, uint32_t *, 6 * NFSX_UNSIGNED + NFSX_HYPER); in nfsrpc_exchangeid()
5494 len = fxdr_unsigned(int, *(tl + 7)); in nfsrpc_exchangeid()
5503 dsp->nfsclds_sess.nfsess_clientid.lval[0] = *tl++; in nfsrpc_exchangeid()
5504 dsp->nfsclds_sess.nfsess_clientid.lval[1] = *tl++; in nfsrpc_exchangeid()
5506 fxdr_unsigned(uint32_t, *tl++); in nfsrpc_exchangeid()
5507 v41flags = fxdr_unsigned(uint32_t, *tl); in nfsrpc_exchangeid()
5546 uint32_t crflags, maxval, *tl; in nfsrpc_createsession() local
5564 NFSM_BUILD(tl, uint32_t *, 4 * NFSX_UNSIGNED); in nfsrpc_createsession()
5565 *tl++ = sep->nfsess_clientid.lval[0]; in nfsrpc_createsession()
5566 *tl++ = sep->nfsess_clientid.lval[1]; in nfsrpc_createsession()
5567 *tl++ = txdr_unsigned(sequenceid); in nfsrpc_createsession()
5571 *tl = txdr_unsigned(crflags); in nfsrpc_createsession()
5574 NFSM_BUILD(tl, uint32_t *, 7 * NFSX_UNSIGNED); in nfsrpc_createsession()
5575 *tl++ = 0; /* Header pad size */ in nfsrpc_createsession()
5582 *tl++ = txdr_unsigned(sb_max_adj - NFS_MAXXDR); in nfsrpc_createsession()
5583 *tl++ = txdr_unsigned(sb_max_adj - NFS_MAXXDR); in nfsrpc_createsession()
5585 *tl++ = txdr_unsigned(nmp->nm_wsize + NFS_MAXXDR); in nfsrpc_createsession()
5586 *tl++ = txdr_unsigned(nmp->nm_rsize + NFS_MAXXDR); in nfsrpc_createsession()
5588 *tl++ = txdr_unsigned(4096); /* Max response size cached */ in nfsrpc_createsession()
5589 *tl++ = txdr_unsigned(20); /* Max operations */ in nfsrpc_createsession()
5590 *tl++ = txdr_unsigned(64); /* Max slots */ in nfsrpc_createsession()
5591 *tl = 0; /* No rdma ird */ in nfsrpc_createsession()
5594 NFSM_BUILD(tl, uint32_t *, 7 * NFSX_UNSIGNED); in nfsrpc_createsession()
5595 *tl++ = 0; /* Header pad size */ in nfsrpc_createsession()
5596 *tl++ = txdr_unsigned(10000); /* Max request size */ in nfsrpc_createsession()
5597 *tl++ = txdr_unsigned(10000); /* Max response size */ in nfsrpc_createsession()
5598 *tl++ = txdr_unsigned(4096); /* Max response size cached */ in nfsrpc_createsession()
5599 *tl++ = txdr_unsigned(4); /* Max operations */ in nfsrpc_createsession()
5600 *tl++ = txdr_unsigned(NFSV4_CBSLOTS); /* Max slots */ in nfsrpc_createsession()
5601 *tl = 0; /* No rdma ird */ in nfsrpc_createsession()
5603 NFSM_BUILD(tl, uint32_t *, 8 * NFSX_UNSIGNED); in nfsrpc_createsession()
5604 *tl++ = txdr_unsigned(NFS_CALLBCKPROG); /* Call back prog # */ in nfsrpc_createsession()
5607 *tl++ = txdr_unsigned(1); /* Auth_sys only */ in nfsrpc_createsession()
5608 *tl++ = txdr_unsigned(AUTH_SYS); /* AUTH_SYS type */ in nfsrpc_createsession()
5609 *tl++ = txdr_unsigned(nfsboottime.tv_sec); /* time stamp */ in nfsrpc_createsession()
5610 *tl++ = 0; /* Null machine name */ in nfsrpc_createsession()
5611 *tl++ = 0; /* Uid == 0 */ in nfsrpc_createsession()
5612 *tl++ = 0; /* Gid == 0 */ in nfsrpc_createsession()
5613 *tl = 0; /* No additional gids */ in nfsrpc_createsession()
5620 NFSM_DISSECT(tl, uint32_t *, NFSX_V4SESSIONID + in nfsrpc_createsession()
5622 bcopy(tl, sep->nfsess_sessionid, NFSX_V4SESSIONID); in nfsrpc_createsession()
5623 tl += NFSX_V4SESSIONID / NFSX_UNSIGNED; in nfsrpc_createsession()
5624 sep->nfsess_sequenceid = fxdr_unsigned(uint32_t, *tl++); in nfsrpc_createsession()
5625 crflags = fxdr_unsigned(uint32_t, *tl); in nfsrpc_createsession()
5633 NFSM_DISSECT(tl, uint32_t *, 7 * NFSX_UNSIGNED); in nfsrpc_createsession()
5634 tl++; /* Skip the header pad size. */ in nfsrpc_createsession()
5637 maxval = fxdr_unsigned(uint32_t, *tl++); in nfsrpc_createsession()
5647 maxval = fxdr_unsigned(uint32_t, *tl++); in nfsrpc_createsession()
5656 sep->nfsess_maxcache = fxdr_unsigned(int, *tl++); in nfsrpc_createsession()
5657 tl++; in nfsrpc_createsession()
5658 sep->nfsess_foreslots = fxdr_unsigned(uint16_t, *tl++); in nfsrpc_createsession()
5660 irdcnt = fxdr_unsigned(int, *tl); in nfsrpc_createsession()
5666 NFSM_DISSECT(tl, uint32_t *, irdcnt * NFSX_UNSIGNED); in nfsrpc_createsession()
5669 NFSM_DISSECT(tl, uint32_t *, 7 * NFSX_UNSIGNED); in nfsrpc_createsession()
5670 tl += 5; in nfsrpc_createsession()
5671 sep->nfsess_backslots = fxdr_unsigned(uint16_t, *tl); in nfsrpc_createsession()
5687 uint32_t *tl; in nfsrpc_destroyclient() local
5695 NFSM_BUILD(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_destroyclient()
5697 *tl++ = tsep->nfsess_clientid.lval[0]; in nfsrpc_destroyclient()
5698 *tl = tsep->nfsess_clientid.lval[1]; in nfsrpc_destroyclient()
5748 uint32_t cnt, *tl, vers, minorvers; in nfsrpc_getdeviceinfo() local
5767 NFSM_BUILD(tl, uint32_t *, NFSX_V4DEVICEID + 3 * NFSX_UNSIGNED); in nfsrpc_getdeviceinfo()
5768 NFSBCOPY(deviceid, tl, NFSX_V4DEVICEID); in nfsrpc_getdeviceinfo()
5769 tl += (NFSX_V4DEVICEID / NFSX_UNSIGNED); in nfsrpc_getdeviceinfo()
5770 *tl++ = txdr_unsigned(layouttype); in nfsrpc_getdeviceinfo()
5771 *tl++ = txdr_unsigned(100000); in nfsrpc_getdeviceinfo()
5773 *tl = txdr_unsigned(1); /* One word of bits. */ in nfsrpc_getdeviceinfo()
5774 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_getdeviceinfo()
5775 *tl = txdr_unsigned(*notifybitsp); in nfsrpc_getdeviceinfo()
5777 *tl = txdr_unsigned(0); in nfsrpc_getdeviceinfo()
5784 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_getdeviceinfo()
5785 if (layouttype != fxdr_unsigned(int, *tl)) in nfsrpc_getdeviceinfo()
5788 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_getdeviceinfo()
5789 stripecnt = fxdr_unsigned(int, *tl); in nfsrpc_getdeviceinfo()
5797 NFSM_DISSECT(tl, uint32_t *, (stripecnt + 1) * in nfsrpc_getdeviceinfo()
5799 addrcnt = fxdr_unsigned(int, *(tl + stripecnt)); in nfsrpc_getdeviceinfo()
5826 stripeindex = fxdr_unsigned(uint8_t, *tl++); in nfsrpc_getdeviceinfo()
5851 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_getdeviceinfo()
5852 cnt = fxdr_unsigned(uint32_t, *tl); in nfsrpc_getdeviceinfo()
5894 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_getdeviceinfo()
5895 j = fxdr_unsigned(int, *tl); in nfsrpc_getdeviceinfo()
5904 NFSM_DISSECT(tl, uint32_t *, 5 * NFSX_UNSIGNED); in nfsrpc_getdeviceinfo()
5905 vers = fxdr_unsigned(uint32_t, *tl++); in nfsrpc_getdeviceinfo()
5906 minorvers = fxdr_unsigned(uint32_t, *tl++); in nfsrpc_getdeviceinfo()
5920 uint32_t, *tl++); in nfsrpc_getdeviceinfo()
5922 uint32_t, *tl++); in nfsrpc_getdeviceinfo()
5923 if (*tl == newnfs_true) in nfsrpc_getdeviceinfo()
5939 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_getdeviceinfo()
5940 bitcnt = fxdr_unsigned(int, *tl); in nfsrpc_getdeviceinfo()
5942 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_getdeviceinfo()
5945 fxdr_unsigned(uint32_t, *tl); in nfsrpc_getdeviceinfo()
5982 uint32_t *tl; in nfsrpc_layoutcommit() local
5988 NFSM_BUILD(tl, uint32_t *, 5 * NFSX_UNSIGNED + 3 * NFSX_HYPER + in nfsrpc_layoutcommit()
5990 txdr_hyper(off, tl); in nfsrpc_layoutcommit()
5991 tl += 2; in nfsrpc_layoutcommit()
5992 txdr_hyper(len, tl); in nfsrpc_layoutcommit()
5993 tl += 2; in nfsrpc_layoutcommit()
5995 *tl++ = newnfs_true; in nfsrpc_layoutcommit()
5997 *tl++ = newnfs_false; in nfsrpc_layoutcommit()
5998 *tl++ = txdr_unsigned(stateidp->seqid); in nfsrpc_layoutcommit()
5999 *tl++ = stateidp->other[0]; in nfsrpc_layoutcommit()
6000 *tl++ = stateidp->other[1]; in nfsrpc_layoutcommit()
6001 *tl++ = stateidp->other[2]; in nfsrpc_layoutcommit()
6002 *tl++ = newnfs_true; in nfsrpc_layoutcommit()
6007 txdr_hyper(lastbyte, tl); in nfsrpc_layoutcommit()
6008 tl += 2; in nfsrpc_layoutcommit()
6009 *tl++ = newnfs_false; in nfsrpc_layoutcommit()
6010 *tl++ = txdr_unsigned(layouttype); in nfsrpc_layoutcommit()
6012 *tl = txdr_unsigned(0); in nfsrpc_layoutcommit()
6032 uint32_t *tl; in nfsrpc_layoutreturn() local
6039 NFSM_BUILD(tl, uint32_t *, 4 * NFSX_UNSIGNED); in nfsrpc_layoutreturn()
6041 *tl++ = newnfs_true; in nfsrpc_layoutreturn()
6043 *tl++ = newnfs_false; in nfsrpc_layoutreturn()
6044 *tl++ = txdr_unsigned(layouttype); in nfsrpc_layoutreturn()
6045 *tl++ = txdr_unsigned(iomode); in nfsrpc_layoutreturn()
6046 *tl = txdr_unsigned(layoutreturn); in nfsrpc_layoutreturn()
6048 NFSM_BUILD(tl, uint32_t *, 2 * NFSX_HYPER + NFSX_STATEID + in nfsrpc_layoutreturn()
6050 txdr_hyper(offset, tl); in nfsrpc_layoutreturn()
6051 tl += 2; in nfsrpc_layoutreturn()
6052 txdr_hyper(len, tl); in nfsrpc_layoutreturn()
6053 tl += 2; in nfsrpc_layoutreturn()
6055 *tl++ = txdr_unsigned(stateidp->seqid); in nfsrpc_layoutreturn()
6056 *tl++ = stateidp->other[0]; in nfsrpc_layoutreturn()
6057 *tl++ = stateidp->other[1]; in nfsrpc_layoutreturn()
6058 *tl++ = stateidp->other[2]; in nfsrpc_layoutreturn()
6060 *tl = txdr_unsigned(0); in nfsrpc_layoutreturn()
6063 *tl = txdr_unsigned(2 * NFSX_HYPER + in nfsrpc_layoutreturn()
6066 NFSM_BUILD(tl, uint32_t *, 2 * NFSX_HYPER + in nfsrpc_layoutreturn()
6069 *tl++ = txdr_unsigned(1); /* One error. */ in nfsrpc_layoutreturn()
6071 txdr_hyper(tu64, tl); tl += 2; in nfsrpc_layoutreturn()
6073 txdr_hyper(tu64, tl); tl += 2; in nfsrpc_layoutreturn()
6074 NFSBCOPY(stateidp, tl, NFSX_STATEID); in nfsrpc_layoutreturn()
6075 tl += (NFSX_STATEID / NFSX_UNSIGNED); in nfsrpc_layoutreturn()
6076 *tl++ = txdr_unsigned(1); /* One error. */ in nfsrpc_layoutreturn()
6077 NFSBCOPY(devid, tl, NFSX_V4DEVICEID); in nfsrpc_layoutreturn()
6078 tl += (NFSX_V4DEVICEID / NFSX_UNSIGNED); in nfsrpc_layoutreturn()
6079 *tl++ = txdr_unsigned(stat); in nfsrpc_layoutreturn()
6080 *tl++ = txdr_unsigned(op); in nfsrpc_layoutreturn()
6082 *tl = txdr_unsigned(2 * NFSX_UNSIGNED); in nfsrpc_layoutreturn()
6083 NFSM_BUILD(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_layoutreturn()
6085 *tl++ = 0; in nfsrpc_layoutreturn()
6087 *tl = 0; /* No stats yet. */ in nfsrpc_layoutreturn()
6096 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_layoutreturn()
6097 if (*tl != 0) { in nfsrpc_layoutreturn()
6098 NFSM_DISSECT(tl, uint32_t *, NFSX_STATEID); in nfsrpc_layoutreturn()
6099 stateidp->seqid = fxdr_unsigned(uint32_t, *tl++); in nfsrpc_layoutreturn()
6100 stateidp->other[0] = *tl++; in nfsrpc_layoutreturn()
6101 stateidp->other[1] = *tl++; in nfsrpc_layoutreturn()
6102 stateidp->other[2] = *tl; in nfsrpc_layoutreturn()
6119 uint32_t *tl; in nfsrpc_layouterror() local
6125 NFSM_BUILD(tl, uint32_t *, 2 * NFSX_HYPER + NFSX_STATEID + in nfsrpc_layouterror()
6127 txdr_hyper(offset, tl); tl += 2; in nfsrpc_layouterror()
6128 txdr_hyper(len, tl); tl += 2; in nfsrpc_layouterror()
6129 *tl++ = txdr_unsigned(stateidp->seqid); in nfsrpc_layouterror()
6130 *tl++ = stateidp->other[0]; in nfsrpc_layouterror()
6131 *tl++ = stateidp->other[1]; in nfsrpc_layouterror()
6132 *tl++ = stateidp->other[2]; in nfsrpc_layouterror()
6133 *tl++ = txdr_unsigned(1); in nfsrpc_layouterror()
6134 NFSBCOPY(devid, tl, NFSX_V4DEVICEID); in nfsrpc_layouterror()
6135 tl += (NFSX_V4DEVICEID / NFSX_UNSIGNED); in nfsrpc_layouterror()
6136 *tl++ = txdr_unsigned(stat); in nfsrpc_layouterror()
6137 *tl = txdr_unsigned(op); in nfsrpc_layouterror()
6467 uint32_t *tl; in nfsrpc_reclaimcomplete() local
6474 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_reclaimcomplete()
6475 *tl = newnfs_false; in nfsrpc_reclaimcomplete()
7090 uint32_t *tl; in nfsrpc_readds() local
7117 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED * 3); in nfsrpc_readds()
7118 txdr_hyper(io_off, tl); in nfsrpc_readds()
7119 *(tl + 2) = txdr_unsigned(len); in nfsrpc_readds()
7142 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_readds()
7143 *eofp = fxdr_unsigned(int, *(tl + 1)); in nfsrpc_readds()
7145 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_readds()
7146 *eofp = fxdr_unsigned(int, *tl); in nfsrpc_readds()
7166 uint32_t *tl; in nfsrpc_writeds() local
7187 NFSM_BUILD(tl, uint32_t *, NFSX_HYPER + 2 * NFSX_UNSIGNED); in nfsrpc_writeds()
7195 NFSM_BUILD(tl, uint32_t *, NFSX_HYPER + 3 * NFSX_UNSIGNED); in nfsrpc_writeds()
7197 txdr_hyper(io_off, tl); in nfsrpc_writeds()
7198 tl += 2; in nfsrpc_writeds()
7200 *tl++ = txdr_unsigned(len); in nfsrpc_writeds()
7201 *tl++ = txdr_unsigned(*iomode); in nfsrpc_writeds()
7202 *tl = txdr_unsigned(len); in nfsrpc_writeds()
7237 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED + NFSX_VERF); in nfsrpc_writeds()
7238 rlen = fxdr_unsigned(int, *tl++); in nfsrpc_writeds()
7252 commit = fxdr_unsigned(int, *tl++); in nfsrpc_writeds()
7266 NFSBCOPY(tl, nmp->nm_verf, NFSX_VERF); in nfsrpc_writeds()
7268 } else if (NFSBCMP(tl, nmp->nm_verf, NFSX_VERF) && in nfsrpc_writeds()
7271 NFSBCOPY(tl, nmp->nm_verf, NFSX_VERF); in nfsrpc_writeds()
7277 NFSBCOPY(tl, dsp->nfsclds_verf, NFSX_VERF); in nfsrpc_writeds()
7279 } else if (NFSBCMP(tl, dsp->nfsclds_verf, NFSX_VERF) && in nfsrpc_writeds()
7282 NFSBCOPY(tl, dsp->nfsclds_verf, NFSX_VERF); in nfsrpc_writeds()
7307 uint32_t *tl; in nfsrpc_writedsmir() local
7324 NFSM_BUILD(tl, uint32_t *, NFSX_HYPER + 2 * NFSX_UNSIGNED); in nfsrpc_writedsmir()
7332 NFSM_BUILD(tl, uint32_t *, NFSX_HYPER + 3 * NFSX_UNSIGNED); in nfsrpc_writedsmir()
7334 txdr_hyper(io_off, tl); in nfsrpc_writedsmir()
7335 tl += 2; in nfsrpc_writedsmir()
7337 *tl++ = txdr_unsigned(len); in nfsrpc_writedsmir()
7338 *tl++ = txdr_unsigned(*iomode); in nfsrpc_writedsmir()
7339 *tl = txdr_unsigned(len); in nfsrpc_writedsmir()
7365 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED + NFSX_VERF); in nfsrpc_writedsmir()
7366 rlen = fxdr_unsigned(int, *tl++); in nfsrpc_writedsmir()
7375 commit = fxdr_unsigned(int, *tl++); in nfsrpc_writedsmir()
7388 NFSBCOPY(tl, dsp->nfsclds_verf, NFSX_VERF); in nfsrpc_writedsmir()
7390 } else if (NFSBCMP(tl, dsp->nfsclds_verf, NFSX_VERF) && in nfsrpc_writedsmir()
7393 NFSBCOPY(tl, dsp->nfsclds_verf, NFSX_VERF); in nfsrpc_writedsmir()
7538 uint32_t *tl; in nfsrpc_commitds() local
7560 NFSM_BUILD(tl, uint32_t *, NFSX_HYPER + NFSX_UNSIGNED); in nfsrpc_commitds()
7561 txdr_hyper(offset, tl); in nfsrpc_commitds()
7562 tl += 2; in nfsrpc_commitds()
7563 *tl = txdr_unsigned(cnt); in nfsrpc_commitds()
7582 NFSM_DISSECT(tl, u_int32_t *, NFSX_VERF); in nfsrpc_commitds()
7584 if (NFSBCMP(tl, dsp->nfsclds_verf, NFSX_VERF)) { in nfsrpc_commitds()
7585 NFSBCOPY(tl, dsp->nfsclds_verf, NFSX_VERF); in nfsrpc_commitds()
7657 u_int32_t *tl; in nfsrpc_advise() local
7671 NFSM_BUILD(tl, uint32_t *, 2 * NFSX_HYPER); in nfsrpc_advise()
7672 txdr_hyper(offset, tl); in nfsrpc_advise()
7673 tl += 2; in nfsrpc_advise()
7674 txdr_hyper(cnt, tl); in nfsrpc_advise()
7694 uint32_t *tl; in nfsrpc_adviseds() local
7718 NFSM_BUILD(tl, uint32_t *, NFSX_HYPER + NFSX_UNSIGNED); in nfsrpc_adviseds()
7719 txdr_hyper(offset, tl); in nfsrpc_adviseds()
7720 tl += 2; in nfsrpc_adviseds()
7721 *tl = txdr_unsigned(cnt); in nfsrpc_adviseds()
7877 uint32_t *tl; in nfsrpc_allocaterpc() local
7886 NFSM_BUILD(tl, uint32_t *, 2 * NFSX_HYPER + NFSX_UNSIGNED); in nfsrpc_allocaterpc()
7887 txdr_hyper(off, tl); tl += 2; in nfsrpc_allocaterpc()
7888 txdr_hyper(len, tl); tl += 2; in nfsrpc_allocaterpc()
7889 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_allocaterpc()
7896 NFSM_DISSECT(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_allocaterpc()
7915 uint32_t *tl; in nfsrv_setuplayoutget() local
7917 NFSM_BUILD(tl, uint32_t *, 4 * NFSX_UNSIGNED + 3 * NFSX_HYPER + in nfsrv_setuplayoutget()
7919 *tl++ = newnfs_false; /* Don't signal availability. */ in nfsrv_setuplayoutget()
7920 *tl++ = txdr_unsigned(layouttype); in nfsrv_setuplayoutget()
7921 *tl++ = txdr_unsigned(iomode); in nfsrv_setuplayoutget()
7922 txdr_hyper(offset, tl); in nfsrv_setuplayoutget()
7923 tl += 2; in nfsrv_setuplayoutget()
7924 txdr_hyper(len, tl); in nfsrv_setuplayoutget()
7925 tl += 2; in nfsrv_setuplayoutget()
7926 txdr_hyper(minlen, tl); in nfsrv_setuplayoutget()
7927 tl += 2; in nfsrv_setuplayoutget()
7930 *tl++ = txdr_unsigned(1); in nfsrv_setuplayoutget()
7931 *tl++ = 0; in nfsrv_setuplayoutget()
7932 *tl++ = 0; in nfsrv_setuplayoutget()
7933 *tl++ = 0; in nfsrv_setuplayoutget()
7935 *tl++ = txdr_unsigned(stateidp->seqid); in nfsrv_setuplayoutget()
7937 *tl++ = stateidp->other[0]; in nfsrv_setuplayoutget()
7938 *tl++ = stateidp->other[1]; in nfsrv_setuplayoutget()
7939 *tl++ = stateidp->other[2]; in nfsrv_setuplayoutget()
7941 *tl = txdr_unsigned(layoutlen); in nfsrv_setuplayoutget()
7951 uint32_t *tl; in nfsrv_parselayoutget() local
7965 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED + NFSX_STATEID); in nfsrv_parselayoutget()
7966 if (*tl++ != 0) in nfsrv_parselayoutget()
7970 stateidp->seqid = fxdr_unsigned(uint32_t, *tl++); in nfsrv_parselayoutget()
7973 stateidp->other[0] = *tl++; in nfsrv_parselayoutget()
7974 stateidp->other[1] = *tl++; in nfsrv_parselayoutget()
7975 stateidp->other[2] = *tl++; in nfsrv_parselayoutget()
7976 cnt = fxdr_unsigned(int, *tl); in nfsrv_parselayoutget()
7985 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_HYPER + in nfsrv_parselayoutget()
7987 off = fxdr_hyper(tl); tl += 2; in nfsrv_parselayoutget()
7988 retlen = fxdr_hyper(tl); tl += 2; in nfsrv_parselayoutget()
7989 iomode = fxdr_unsigned(int, *tl++); in nfsrv_parselayoutget()
7990 laytype = fxdr_unsigned(int, *tl); in nfsrv_parselayoutget()
7996 NFSM_DISSECT(tl, uint32_t *, 3 * NFSX_UNSIGNED + in nfsrv_parselayoutget()
7998 fhcnt = fxdr_unsigned(int, *(tl + 4 + in nfsrv_parselayoutget()
8025 NFSBCOPY(tl, flp->nfsfl_dev, NFSX_V4DEVICEID); in nfsrv_parselayoutget()
8026 tl += (NFSX_V4DEVICEID / NFSX_UNSIGNED); in nfsrv_parselayoutget()
8027 flp->nfsfl_util = fxdr_unsigned(uint32_t, *tl++); in nfsrv_parselayoutget()
8034 flp->nfsfl_stripe1 = fxdr_unsigned(uint32_t, *tl++); in nfsrv_parselayoutget()
8035 flp->nfsfl_patoff = fxdr_hyper(tl); tl += 2; in nfsrv_parselayoutget()
8039 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrv_parselayoutget()
8040 nfhlen = fxdr_unsigned(int, *tl); in nfsrv_parselayoutget()
8054 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED + in nfsrv_parselayoutget()
8056 mirrorcnt = fxdr_unsigned(int, *(tl + 2)); in nfsrv_parselayoutget()
8076 flp->nfsfl_stripeunit = fxdr_hyper(tl); in nfsrv_parselayoutget()
8080 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrv_parselayoutget()
8081 k = fxdr_unsigned(int, *tl); in nfsrv_parselayoutget()
8088 NFSM_DISSECT(tl, uint32_t *, in nfsrv_parselayoutget()
8093 NFSBCOPY(tl, in nfsrv_parselayoutget()
8096 tl += (NFSX_V4DEVICEID / in nfsrv_parselayoutget()
8098 tl++; in nfsrv_parselayoutget()
8100 *tl++; in nfsrv_parselayoutget()
8102 *tl++; in nfsrv_parselayoutget()
8104 *tl++; in nfsrv_parselayoutget()
8106 *tl++; in nfsrv_parselayoutget()
8115 tl += ((NFSX_V4DEVICEID + in nfsrv_parselayoutget()
8119 fhcnt = fxdr_unsigned(int, *tl); in nfsrv_parselayoutget()
8127 NFSM_DISSECT(tl, uint32_t *, in nfsrv_parselayoutget()
8130 *tl); in nfsrv_parselayoutget()
8180 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrv_parselayoutget()
8181 flp->nfsfl_fflags = fxdr_unsigned(uint32_t, *tl++); in nfsrv_parselayoutget()
8194 flp->nfsfl_statshint = fxdr_unsigned(uint32_t, *tl); in nfsrv_parselayoutget()
8236 uint32_t *tl; in nfsrv_parseug() local
8241 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrv_parseug()
8242 len = fxdr_unsigned(uint32_t, *tl); in nfsrv_parseug()
8360 uint32_t *tl; in nfsrpc_openlayoutrpc() local
8373 NFSM_BUILD(tl, uint32_t *, 5 * NFSX_UNSIGNED); in nfsrpc_openlayoutrpc()
8374 *tl++ = txdr_unsigned(op->nfso_own->nfsow_seqid); in nfsrpc_openlayoutrpc()
8375 *tl++ = txdr_unsigned(mode & (NFSV4OPEN_ACCESSBOTH | in nfsrpc_openlayoutrpc()
8377 *tl++ = txdr_unsigned((mode >> NFSLCK_SHIFT) & NFSV4OPEN_DENYBOTH); in nfsrpc_openlayoutrpc()
8379 *tl++ = tsep->nfsess_clientid.lval[0]; in nfsrpc_openlayoutrpc()
8380 *tl = tsep->nfsess_clientid.lval[1]; in nfsrpc_openlayoutrpc()
8382 NFSM_BUILD(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_openlayoutrpc()
8383 *tl++ = txdr_unsigned(NFSV4OPEN_NOCREATE); in nfsrpc_openlayoutrpc()
8385 *tl = txdr_unsigned(NFSV4OPEN_CLAIMFH); in nfsrpc_openlayoutrpc()
8387 *tl = txdr_unsigned(NFSV4OPEN_CLAIMNULL); in nfsrpc_openlayoutrpc()
8390 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_openlayoutrpc()
8391 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_openlayoutrpc()
8396 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_openlayoutrpc()
8397 *tl = txdr_unsigned(NFSV4OP_LAYOUTGET); in nfsrpc_openlayoutrpc()
8413 NFSM_DISSECT(tl, u_int32_t *, NFSX_STATEID + in nfsrpc_openlayoutrpc()
8415 op->nfso_stateid.seqid = *tl++; in nfsrpc_openlayoutrpc()
8416 op->nfso_stateid.other[0] = *tl++; in nfsrpc_openlayoutrpc()
8417 op->nfso_stateid.other[1] = *tl++; in nfsrpc_openlayoutrpc()
8418 op->nfso_stateid.other[2] = *tl; in nfsrpc_openlayoutrpc()
8419 rflags = fxdr_unsigned(u_int32_t, *(tl + 6)); in nfsrpc_openlayoutrpc()
8423 NFSM_DISSECT(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_openlayoutrpc()
8424 deleg = fxdr_unsigned(u_int32_t, *tl); in nfsrpc_openlayoutrpc()
8440 NFSM_DISSECT(tl, u_int32_t *, NFSX_STATEID + in nfsrpc_openlayoutrpc()
8442 ndp->nfsdl_stateid.seqid = *tl++; in nfsrpc_openlayoutrpc()
8443 ndp->nfsdl_stateid.other[0] = *tl++; in nfsrpc_openlayoutrpc()
8444 ndp->nfsdl_stateid.other[1] = *tl++; in nfsrpc_openlayoutrpc()
8445 ndp->nfsdl_stateid.other[2] = *tl++; in nfsrpc_openlayoutrpc()
8446 ret = fxdr_unsigned(int, *tl); in nfsrpc_openlayoutrpc()
8452 NFSM_DISSECT(tl, u_int32_t *, in nfsrpc_openlayoutrpc()
8454 limitby = fxdr_unsigned(int, *tl++); in nfsrpc_openlayoutrpc()
8457 ndp->nfsdl_sizelimit = fxdr_hyper(tl); in nfsrpc_openlayoutrpc()
8461 fxdr_unsigned(u_int64_t, *tl++); in nfsrpc_openlayoutrpc()
8463 fxdr_unsigned(u_int64_t, *tl); in nfsrpc_openlayoutrpc()
8479 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_openlayoutrpc()
8480 deleg = fxdr_unsigned(uint32_t, *tl); in nfsrpc_openlayoutrpc()
8483 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_openlayoutrpc()
8493 NFSM_DISSECT(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_openlayoutrpc()
8495 if (*++tl == 0) { in nfsrpc_openlayoutrpc()
8514 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_openlayoutrpc()
8515 *laystatp = fxdr_unsigned(int, *++tl); in nfsrpc_openlayoutrpc()
8547 uint32_t *tl; in nfsrpc_createlayout() local
8573 NFSM_BUILD(tl, u_int32_t *, 5 * NFSX_UNSIGNED); in nfsrpc_createlayout()
8574 *tl++ = txdr_unsigned(owp->nfsow_seqid); in nfsrpc_createlayout()
8578 *tl++ = txdr_unsigned(NFSV4OPEN_ACCESSWRITE | in nfsrpc_createlayout()
8581 *tl++ = txdr_unsigned(NFSV4OPEN_ACCESSWRITE | in nfsrpc_createlayout()
8584 *tl++ = txdr_unsigned(NFSV4OPEN_ACCESSWRITE | in nfsrpc_createlayout()
8586 *tl++ = txdr_unsigned(NFSV4OPEN_DENYNONE); in nfsrpc_createlayout()
8588 *tl++ = tsep->nfsess_clientid.lval[0]; in nfsrpc_createlayout()
8589 *tl = tsep->nfsess_clientid.lval[1]; in nfsrpc_createlayout()
8591 NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_createlayout()
8592 *tl++ = txdr_unsigned(NFSV4OPEN_CREATE); in nfsrpc_createlayout()
8596 *tl = txdr_unsigned(NFSCREATE_GUARDED); in nfsrpc_createlayout()
8600 *tl = txdr_unsigned(NFSCREATE_EXCLUSIVE41); in nfsrpc_createlayout()
8601 NFSM_BUILD(tl, u_int32_t *, NFSX_VERF); in nfsrpc_createlayout()
8602 *tl++ = cverf.lval[0]; in nfsrpc_createlayout()
8603 *tl = cverf.lval[1]; in nfsrpc_createlayout()
8607 *tl = txdr_unsigned(NFSCREATE_UNCHECKED); in nfsrpc_createlayout()
8610 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_createlayout()
8611 *tl = txdr_unsigned(NFSV4OPEN_CLAIMNULL); in nfsrpc_createlayout()
8614 NFSM_BUILD(tl, u_int32_t *, 3 * NFSX_UNSIGNED); in nfsrpc_createlayout()
8615 *tl++ = txdr_unsigned(NFSV4OP_SAVEFH); in nfsrpc_createlayout()
8616 *tl++ = txdr_unsigned(NFSV4OP_GETFH); in nfsrpc_createlayout()
8617 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_createlayout()
8621 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_createlayout()
8622 *tl = txdr_unsigned(NFSV4OP_PUTFH); in nfsrpc_createlayout()
8624 NFSM_BUILD(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_createlayout()
8625 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_createlayout()
8627 NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_createlayout()
8628 *tl++ = txdr_unsigned(NFSV4OP_RESTOREFH); in nfsrpc_createlayout()
8629 *tl = txdr_unsigned(NFSV4OP_LAYOUTGET); in nfsrpc_createlayout()
8642 NFSM_DISSECT(tl, u_int32_t *, NFSX_STATEID + in nfsrpc_createlayout()
8644 stateid.seqid = *tl++; in nfsrpc_createlayout()
8645 stateid.other[0] = *tl++; in nfsrpc_createlayout()
8646 stateid.other[1] = *tl++; in nfsrpc_createlayout()
8647 stateid.other[2] = *tl; in nfsrpc_createlayout()
8651 NFSM_DISSECT(tl, u_int32_t *, NFSX_UNSIGNED); in nfsrpc_createlayout()
8652 deleg = fxdr_unsigned(int, *tl); in nfsrpc_createlayout()
8666 NFSM_DISSECT(tl, u_int32_t *, NFSX_STATEID + in nfsrpc_createlayout()
8668 dp->nfsdl_stateid.seqid = *tl++; in nfsrpc_createlayout()
8669 dp->nfsdl_stateid.other[0] = *tl++; in nfsrpc_createlayout()
8670 dp->nfsdl_stateid.other[1] = *tl++; in nfsrpc_createlayout()
8671 dp->nfsdl_stateid.other[2] = *tl++; in nfsrpc_createlayout()
8672 ret = fxdr_unsigned(int, *tl); in nfsrpc_createlayout()
8678 NFSM_DISSECT(tl, u_int32_t *, in nfsrpc_createlayout()
8680 limitby = fxdr_unsigned(int, *tl++); in nfsrpc_createlayout()
8683 dp->nfsdl_sizelimit = fxdr_hyper(tl); in nfsrpc_createlayout()
8687 fxdr_unsigned(u_int64_t, *tl++); in nfsrpc_createlayout()
8689 fxdr_unsigned(u_int64_t, *tl); in nfsrpc_createlayout()
8706 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_createlayout()
8707 deleg = fxdr_unsigned(uint32_t, *tl); in nfsrpc_createlayout()
8710 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_createlayout()
8717 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_createlayout()
8718 if (*++tl == 0) { in nfsrpc_createlayout()
8733 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_createlayout()
8734 if (*++tl != 0) in nfsrpc_createlayout()
8737 NFSM_DISSECT(tl, uint32_t *, 2 * in nfsrpc_createlayout()
8739 if (*++tl != 0) in nfsrpc_createlayout()
8781 NFSM_DISSECT(tl, uint32_t *, 4 * NFSX_UNSIGNED); in nfsrpc_createlayout()
8782 *laystatp = fxdr_unsigned(int, *(tl + 3)); in nfsrpc_createlayout()
9013 uint32_t *tl, *opcntp; in nfsrpc_copyrpc() local
9040 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_copyrpc()
9041 *tl = txdr_unsigned(NFSV4OP_SETATTR); in nfsrpc_copyrpc()
9052 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_copyrpc()
9053 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_copyrpc()
9058 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_copyrpc()
9059 *tl = txdr_unsigned(NFSV4OP_PUTFH); in nfsrpc_copyrpc()
9064 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_copyrpc()
9065 *tl = txdr_unsigned(NFSV4OP_COPY); in nfsrpc_copyrpc()
9068 NFSM_BUILD(tl, uint32_t *, 3 * NFSX_HYPER + 4 * NFSX_UNSIGNED); in nfsrpc_copyrpc()
9069 txdr_hyper(inoff, tl); tl += 2; in nfsrpc_copyrpc()
9070 txdr_hyper(outoff, tl); tl += 2; in nfsrpc_copyrpc()
9071 txdr_hyper(len, tl); tl += 2; in nfsrpc_copyrpc()
9073 *tl++ = newnfs_true; in nfsrpc_copyrpc()
9075 *tl++ = newnfs_false; in nfsrpc_copyrpc()
9076 *tl++ = newnfs_true; in nfsrpc_copyrpc()
9077 *tl++ = 0; in nfsrpc_copyrpc()
9080 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_copyrpc()
9090 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_copyrpc()
9091 if (*(tl + 1) == 0) { in nfsrpc_copyrpc()
9100 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_copyrpc()
9101 if (*(tl + 1) == 0) { in nfsrpc_copyrpc()
9111 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_copyrpc()
9112 if (*++tl != 0) in nfsrpc_copyrpc()
9117 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_copyrpc()
9119 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_copyrpc()
9120 if (*tl != 0) { in nfsrpc_copyrpc()
9125 NFSM_DISSECT(tl, uint32_t *, NFSX_HYPER + 3 * NFSX_UNSIGNED + in nfsrpc_copyrpc()
9127 len = fxdr_hyper(tl); tl += 2; in nfsrpc_copyrpc()
9128 *commitp = fxdr_unsigned(int, *tl++); in nfsrpc_copyrpc()
9131 NFSBCOPY(tl, nmp->nm_verf, NFSX_VERF); in nfsrpc_copyrpc()
9133 } else if (NFSBCMP(tl, nmp->nm_verf, NFSX_VERF)) { in nfsrpc_copyrpc()
9134 NFSBCOPY(tl, nmp->nm_verf, NFSX_VERF); in nfsrpc_copyrpc()
9138 tl += (NFSX_VERF / NFSX_UNSIGNED); in nfsrpc_copyrpc()
9139 if (nd->nd_repstat == 0 && *++tl != newnfs_true) in nfsrpc_copyrpc()
9142 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_copyrpc()
9156 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_copyrpc()
9157 if (!consecutive || *++tl == newnfs_false) in nfsrpc_copyrpc()
9229 uint32_t *tl; in nfsrpc_seekrpc() local
9238 NFSM_BUILD(tl, uint32_t *, NFSX_HYPER + 2 * NFSX_UNSIGNED); in nfsrpc_seekrpc()
9239 txdr_hyper(*offp, tl); tl += 2; in nfsrpc_seekrpc()
9240 *tl++ = txdr_unsigned(content); in nfsrpc_seekrpc()
9241 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_seekrpc()
9248 NFSM_DISSECT(tl, uint32_t *, 3 * NFSX_UNSIGNED + NFSX_HYPER); in nfsrpc_seekrpc()
9249 if (*tl++ == newnfs_true) in nfsrpc_seekrpc()
9253 *offp = fxdr_hyper(tl); in nfsrpc_seekrpc()
9272 uint32_t *tl; in nfsrpc_getextattr() local
9282 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_getextattr()
9283 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_getextattr()
9290 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_getextattr()
9291 len = fxdr_unsigned(uint32_t, *tl); in nfsrpc_getextattr()
9324 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_getextattr()
9343 uint32_t *tl; in nfsrpc_setextattr() local
9356 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_setextattr()
9357 *tl = txdr_unsigned(NFSV4SXATTR_EITHER); in nfsrpc_setextattr()
9359 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_setextattr()
9360 *tl = txdr_unsigned(uiop->uio_resid); in nfsrpc_setextattr()
9366 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_setextattr()
9367 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_setextattr()
9375 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_HYPER + 3 * in nfsrpc_setextattr()
9395 uint32_t *tl; in nfsrpc_rmextattr() local
9404 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_rmextattr()
9405 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_rmextattr()
9413 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_HYPER + 3 * in nfsrpc_rmextattr()
9434 uint32_t *tl; in nfsrpc_listextattr() local
9443 NFSM_BUILD(tl, uint32_t *, NFSX_HYPER + 2 * NFSX_UNSIGNED); in nfsrpc_listextattr()
9444 txdr_hyper(*cookiep, tl); tl += 2; in nfsrpc_listextattr()
9445 *tl++ = txdr_unsigned(*lenp); in nfsrpc_listextattr()
9446 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_listextattr()
9455 NFSM_DISSECT(tl, uint32_t *, NFSX_HYPER + NFSX_UNSIGNED); in nfsrpc_listextattr()
9456 *cookiep = fxdr_hyper(tl); tl += 2; in nfsrpc_listextattr()
9457 cnt = fxdr_unsigned(int, *tl); in nfsrpc_listextattr()
9463 NFSM_DISSECT(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_listextattr()
9464 len = fxdr_unsigned(int, *tl); in nfsrpc_listextattr()
9485 NFSM_DISSECT(tl, uint32_t *, 3 * NFSX_UNSIGNED); in nfsrpc_listextattr()
9490 if (*eofp && *tl == 0) in nfsrpc_listextattr()
9607 uint32_t res, *tl; in nfsrpc_bindconnsess() local
9617 NFSM_BUILD(tl, uint32_t *, NFSX_V4SESSIONID + 2 * NFSX_UNSIGNED); in nfsrpc_bindconnsess()
9618 memcpy(tl, rcp->sessionid, NFSX_V4SESSIONID); in nfsrpc_bindconnsess()
9619 tl += NFSX_V4SESSIONID / NFSX_UNSIGNED; in nfsrpc_bindconnsess()
9620 *tl++ = txdr_unsigned(NFSCDFC4_FORE_OR_BOTH); in nfsrpc_bindconnsess()
9621 *tl = newnfs_false; in nfsrpc_bindconnsess()
9643 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_bindconnsess()
9644 nd->nd_repstat = fxdr_unsigned(uint32_t, *tl++); in nfsrpc_bindconnsess()
9646 res = fxdr_unsigned(uint32_t, *tl); in nfsrpc_bindconnsess()
9650 NFSM_DISSECT(tl, uint32_t *, NFSX_V4SESSIONID + in nfsrpc_bindconnsess()
9652 tl += 3; in nfsrpc_bindconnsess()
9653 if (!NFSBCMP(tl, rcp->sessionid, NFSX_V4SESSIONID)) { in nfsrpc_bindconnsess()
9654 tl += NFSX_V4SESSIONID / NFSX_UNSIGNED; in nfsrpc_bindconnsess()
9655 res = fxdr_unsigned(uint32_t, *tl); in nfsrpc_bindconnsess()
9678 uint32_t *tl; in nfsrpc_openattr() local
9686 NFSM_BUILD(tl, uint32_t *, NFSX_UNSIGNED); in nfsrpc_openattr()
9688 *tl = newnfs_true; in nfsrpc_openattr()
9690 *tl = newnfs_false; in nfsrpc_openattr()
9692 NFSM_BUILD(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_openattr()
9693 *tl++ = txdr_unsigned(NFSV4OP_GETFH); in nfsrpc_openattr()
9694 *tl = txdr_unsigned(NFSV4OP_GETATTR); in nfsrpc_openattr()
9701 NFSM_DISSECT(tl, uint32_t *, 2 * NFSX_UNSIGNED); in nfsrpc_openattr()