/titanic_50/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_attr.c | 343 xdr_size -= 3 * BYTES_PER_XDR_UNIT; in vattr_to_fattr4() 355 xdr_size += BYTES_PER_XDR_UNIT; /* length */ in vattr_to_fattr4() 360 xdr_size += BYTES_PER_XDR_UNIT; /* length */ in vattr_to_fattr4() 369 xdr_size += BYTES_PER_XDR_UNIT; in vattr_to_fattr4() 377 xdr_size += BYTES_PER_XDR_UNIT; in vattr_to_fattr4() 549 FATTR4_SUPPORTED_ATTRS, 2 * BYTES_PER_XDR_UNIT, xdr_bitmap4, 553 FATTR4_TYPE, BYTES_PER_XDR_UNIT, xdr_int, 557 FATTR4_FH_EXPIRE_TYPE, BYTES_PER_XDR_UNIT, xdr_u_int, 561 FATTR4_CHANGE, 2 * BYTES_PER_XDR_UNIT, xdr_u_longlong_t, 565 FATTR4_SIZE, 2 * BYTES_PER_XDR_UNIT, xdr_u_longlong_t, [all …]
|
H A D | nfs_xdr.c | 133 3 * BYTES_PER_XDR_UNIT); in xdr_writeargs() 215 3 * BYTES_PER_XDR_UNIT); in xdr_writeargs() 266 ptr = XDR_INLINE(xdrs, 17 * BYTES_PER_XDR_UNIT); in xdr_fattr() 392 RNDUP(sizeof (fhandle_t)) + 3 * BYTES_PER_XDR_UNIT); in xdr_readargs() 522 BYTES_PER_XDR_UNIT)) { in xdr_rrok() 544 rndup = BYTES_PER_XDR_UNIT - in xdr_rrok() 545 (rrok->rrok_count % BYTES_PER_XDR_UNIT); in xdr_rrok() 546 if (rndup != BYTES_PER_XDR_UNIT) in xdr_rrok() 682 RNDUP(sizeof (fhandle_t)) + 2 * BYTES_PER_XDR_UNIT); in xdr_rddirargs() 792 bufsize = 1 * BYTES_PER_XDR_UNIT; in xdr_putrddirres() [all …]
|
H A D | nfs3_xdr.c | 183 bp += BYTES_PER_XDR_UNIT; in xdr_inline_decode_nfs_fh3() 185 bp += BYTES_PER_XDR_UNIT; in xdr_inline_decode_nfs_fh3() 194 fhsize -= 2 * BYTES_PER_XDR_UNIT + sizeof (ushort_t); in xdr_inline_decode_nfs_fh3() 232 resid = (uintptr_t)bp % BYTES_PER_XDR_UNIT; in xdr_inline_decode_nfs_fh3() 234 if (fhsize < (BYTES_PER_XDR_UNIT - resid)) in xdr_inline_decode_nfs_fh3() 236 bp += BYTES_PER_XDR_UNIT - resid; in xdr_inline_decode_nfs_fh3() 237 fhsize -= BYTES_PER_XDR_UNIT - resid; in xdr_inline_decode_nfs_fh3() 339 padword = (otw_len / BYTES_PER_XDR_UNIT); /* includes fhlen */ in xdr_inline_encode_nfs_fh3() 344 if ((ptr + (otw_len / BYTES_PER_XDR_UNIT) + 1) > ptr_redzone) in xdr_inline_encode_nfs_fh3() 382 ASSERT(((uintptr_t)ptr % BYTES_PER_XDR_UNIT) == 0); in xdr_inline_encode_nfs_fh3() [all …]
|
H A D | nfs4_xdr.c | 85 BYTES_PER_XDR_UNIT)) == TRUE) { in xdr_bitmap4() 91 BYTES_PER_XDR_UNIT))); in xdr_bitmap4() 106 BYTES_PER_XDR_UNIT)) == TRUE) { in xdr_bitmap4() 112 BYTES_PER_XDR_UNIT))); in xdr_bitmap4() 126 if (!XDR_GETINT32(xdrs, (int32_t *)((char *)objp + BYTES_PER_XDR_UNIT))) in xdr_bitmap4() 137 if (!XDR_GETINT32(xdrs, (int32_t *)((char *)objp + BYTES_PER_XDR_UNIT))) in xdr_bitmap4() 146 size = len * BYTES_PER_XDR_UNIT; in xdr_bitmap4() 257 buf = XDR_INLINE(xdrs, (8) * BYTES_PER_XDR_UNIT); in xdr_knetconfig() 276 buf = XDR_INLINE(xdrs, (8) * BYTES_PER_XDR_UNIT); in xdr_knetconfig() 331 bp += BYTES_PER_XDR_UNIT; in xdr_inline_decode_nfs_fh4() [all …]
|
/titanic_50/usr/src/uts/common/rpc/sec/ |
H A D | auth_loopb.c | 155 CTASSERT(NFIELDS * BYTES_PER_XDR_UNIT + RNDUP(MAX_MACHINE_NAME) <= in authloopback_marshal() 157 maxgidlen = (MAX_AUTH_BYTES - NFIELDS * BYTES_PER_XDR_UNIT - in authloopback_marshal() 158 rounded_namelen) / BYTES_PER_XDR_UNIT; in authloopback_marshal() 164 credsize = NFIELDS * BYTES_PER_XDR_UNIT + rounded_namelen + in authloopback_marshal() 165 gidlen * BYTES_PER_XDR_UNIT; in authloopback_marshal() 176 ptr = XDR_INLINE(xdrs, 2 * BYTES_PER_XDR_UNIT + credsize + in authloopback_marshal() 177 2 * BYTES_PER_XDR_UNIT); in authloopback_marshal() 192 ptr += rounded_namelen / BYTES_PER_XDR_UNIT; in authloopback_marshal()
|
H A D | auth_kern.c | 152 CTASSERT((NFIELDS + NGRPS) * BYTES_PER_XDR_UNIT + in authkern_marshal() 159 credsize = NFIELDS * BYTES_PER_XDR_UNIT + rounded_namelen + in authkern_marshal() 160 gidlen * BYTES_PER_XDR_UNIT; in authkern_marshal() 171 ptr = XDR_INLINE(xdrs, 2 * BYTES_PER_XDR_UNIT + credsize + in authkern_marshal() 172 2 * BYTES_PER_XDR_UNIT); in authkern_marshal() 187 ptr += rounded_namelen / BYTES_PER_XDR_UNIT; in authkern_marshal()
|
H A D | auth_des.c | 284 len = ((1 + 1 + 2 + 1) * BYTES_PER_XDR_UNIT + in authdes_marshal() 287 len = (1 + 1) * BYTES_PER_XDR_UNIT; in authdes_marshal() 289 if (ixdr = xdr_inline(xdrs, 2 * BYTES_PER_XDR_UNIT)) { in authdes_marshal() 299 len = (2 + 1) * BYTES_PER_XDR_UNIT; in authdes_marshal() 300 if (ixdr = xdr_inline(xdrs, 2 * BYTES_PER_XDR_UNIT)) { in authdes_marshal() 325 if (rverf->oa_length != (2 + 1) * BYTES_PER_XDR_UNIT) in authdes_validate()
|
H A D | svc_authu.c | 119 if ((5 + gid_len) * BYTES_PER_XDR_UNIT + str_len > auth_len) in _svcauth_unix()
|
/titanic_50/usr/src/uts/common/rpc/ |
H A D | xdr.c | 71 static char xdr_zero[BYTES_PER_XDR_UNIT] = { 0, 0, 0, 0 }; 171 BYTES_PER_XDR_UNIT)) == TRUE) { in xdr_longlong_t() 177 BYTES_PER_XDR_UNIT))); in xdr_longlong_t() 186 BYTES_PER_XDR_UNIT)) == TRUE) { in xdr_longlong_t() 192 BYTES_PER_XDR_UNIT))); in xdr_longlong_t() 210 BYTES_PER_XDR_UNIT)) == TRUE) { in xdr_u_longlong_t() 216 BYTES_PER_XDR_UNIT))); in xdr_u_longlong_t() 225 BYTES_PER_XDR_UNIT)) == TRUE) { in xdr_u_longlong_t() 231 BYTES_PER_XDR_UNIT))); in xdr_u_longlong_t() 410 static char crud[BYTES_PER_XDR_UNIT]; in xdr_opaque() [all …]
|
H A D | rpc_calmsg.c | 66 buf = XDR_INLINE(xdrs, 8 * BYTES_PER_XDR_UNIT + in xdr_callmsg() 68 2 * BYTES_PER_XDR_UNIT + in xdr_callmsg() 97 buf = XDR_INLINE(xdrs, 8 * BYTES_PER_XDR_UNIT); in xdr_callmsg() 128 buf = XDR_INLINE(xdrs, 2 * BYTES_PER_XDR_UNIT); in xdr_callmsg()
|
H A D | xdr.h | 98 #define BYTES_PER_XDR_UNIT (4) macro 99 #define RNDUP(x) ((((x) + BYTES_PER_XDR_UNIT - 1) / BYTES_PER_XDR_UNIT) \ 100 * BYTES_PER_XDR_UNIT) 372 *((int32_t *)(((char *)&v) + BYTES_PER_XDR_UNIT)) \ 380 + BYTES_PER_XDR_UNIT)); \ 386 BYTES_PER_XDR_UNIT)) \ 395 BYTES_PER_XDR_UNIT)); \
|
H A D | rpc_prot.c | 151 (buf = XDR_INLINE(xdrs, 6 * BYTES_PER_XDR_UNIT + (rndup = in xdr_replymsg() 185 (buf = XDR_INLINE(xdrs, 3 * BYTES_PER_XDR_UNIT)) != NULL) { in xdr_replymsg() 199 buf = XDR_INLINE(xdrs, 2 * BYTES_PER_XDR_UNIT); in xdr_replymsg() 268 if ((buf = XDR_INLINE(xdrs, 6 * BYTES_PER_XDR_UNIT + (rndup = in xdr_replymsg_hdr()
|
/titanic_50/usr/src/lib/libnsl/rpc/ |
H A D | xdr.c | 86 static const char xdr_zero[BYTES_PER_XDR_UNIT] = { 0 }; 381 char crud[BYTES_PER_XDR_UNIT]; in xdr_opaque() 386 rndup = cnt % BYTES_PER_XDR_UNIT; in xdr_opaque() 388 rndup = BYTES_PER_XDR_UNIT - rndup; in xdr_opaque() 618 BYTES_PER_XDR_UNIT))); in xdr_hyper() 622 BYTES_PER_XDR_UNIT)) == TRUE) in xdr_hyper() 631 BYTES_PER_XDR_UNIT)) == FALSE)) in xdr_hyper() 636 BYTES_PER_XDR_UNIT)) == FALSE) || in xdr_hyper()
|
H A D | rpc_callmsg.c | 61 buf = XDR_INLINE(xdrs, 8 * BYTES_PER_XDR_UNIT in xdr_callmsg() 63 + 2 * BYTES_PER_XDR_UNIT in xdr_callmsg() 98 buf = XDR_INLINE(xdrs, 8 * BYTES_PER_XDR_UNIT); in xdr_callmsg() 141 buf = XDR_INLINE(xdrs, 2 * BYTES_PER_XDR_UNIT); in xdr_callmsg()
|
H A D | auth_des.c | 307 len = ((1 + 1 + 2 + 1)*BYTES_PER_XDR_UNIT + ad->ad_fullnamelen); in authdes_marshal() 309 len = (1 + 1)*BYTES_PER_XDR_UNIT; in authdes_marshal() 312 if (ixdr = xdr_inline(xdrs, 2*BYTES_PER_XDR_UNIT)) { in authdes_marshal() 324 len = (2 + 1)*BYTES_PER_XDR_UNIT; in authdes_marshal() 325 if (ixdr = xdr_inline(xdrs, 2*BYTES_PER_XDR_UNIT)) { in authdes_marshal() 351 if (rverf->oa_length != (2 + 1) * BYTES_PER_XDR_UNIT) in authdes_validate()
|
H A D | pmap_prot.c | 56 buf = XDR_INLINE(xdrs, 4 * BYTES_PER_XDR_UNIT); in xdr_pmap() 74 buf = XDR_INLINE(xdrs, 4 * BYTES_PER_XDR_UNIT); in xdr_pmap() 184 buf = XDR_INLINE(xdrs, 3 * BYTES_PER_XDR_UNIT); in xdr_rmtcallargs()
|
H A D | xdr_sizeof.c | 44 xdrs->x_handy += BYTES_PER_XDR_UNIT; in x_putlong() 53 xdrs->x_handy += BYTES_PER_XDR_UNIT; in x_putint32_t()
|
H A D | clnt_door.c | 386 4 * BYTES_PER_XDR_UNIT)); in clnt_door_control() 391 *(uint32_t *)(cu->cu_header + 4 * BYTES_PER_XDR_UNIT) = in clnt_door_control() 405 3 * BYTES_PER_XDR_UNIT)); in clnt_door_control() 410 *(uint32_t *)(cu->cu_header + 3 * BYTES_PER_XDR_UNIT) = in clnt_door_control()
|
H A D | rpc_prot.c | 139 (buf = XDR_INLINE(xdrs, 6 * BYTES_PER_XDR_UNIT + (rndup = in xdr_replymsg() 174 (buf = XDR_INLINE(xdrs, 3 * BYTES_PER_XDR_UNIT)) != NULL) { in xdr_replymsg() 188 buf = XDR_INLINE(xdrs, 2 * BYTES_PER_XDR_UNIT); in xdr_replymsg()
|
H A D | rpcb_st_xdr.c | 63 buf = XDR_INLINE(xdrs, 6 * BYTES_PER_XDR_UNIT); in xdr_rpcbs_rmtcalllist() 91 buf = XDR_INLINE(xdrs, 6 * BYTES_PER_XDR_UNIT); in xdr_rpcbs_rmtcalllist()
|
H A D | svc_auth_loopb.c | 96 if ((5 + gid_len) * BYTES_PER_XDR_UNIT + str_len > auth_len) in __svcauth_loopback()
|
/titanic_50/usr/src/lib/libbc/inc/include/rpc/ |
H A D | xdr.h | 81 #define BYTES_PER_XDR_UNIT (4) macro 82 #define RNDUP(x) ((((x) + BYTES_PER_XDR_UNIT - 1) / BYTES_PER_XDR_UNIT) \ 83 * BYTES_PER_XDR_UNIT)
|
/titanic_50/usr/src/uts/common/fs/autofs/ |
H A D | auto_xdr.c | 411 bufsize = 1 * BYTES_PER_XDR_UNIT; in xdr_autofs_putrddirres() 424 entrysz = (1 + 1 + 1 + 1) * BYTES_PER_XDR_UNIT + in xdr_autofs_putrddirres() 425 roundup(namlen, BYTES_PER_XDR_UNIT); in xdr_autofs_putrddirres() 426 tofit = entrysz + 2 * BYTES_PER_XDR_UNIT; in xdr_autofs_putrddirres()
|
/titanic_50/usr/src/cmd/fs.d/autofs/ |
H A D | autod_xdr.c | 402 bufsize = 1 * BYTES_PER_XDR_UNIT; 417 entrysz = (1 + 1 + 1 + 1) * BYTES_PER_XDR_UNIT + 418 roundup(namlen, BYTES_PER_XDR_UNIT); 419 tofit = entrysz + 2 * BYTES_PER_XDR_UNIT;
|
/titanic_50/usr/src/stand/lib/fs/nfs/ |
H A D | xdr_rec.c | 148 rstrm->the_buffer = mem_alloc(sendsize + recvsize + BYTES_PER_XDR_UNIT); in xdrrec_create() 154 (uintptr_t)rstrm->out_base % BYTES_PER_XDR_UNIT != 0; in xdrrec_create() 375 rstrm->sendsize + rstrm->recvsize + BYTES_PER_XDR_UNIT); in xdrrec_destroy() 486 i = (uintptr_t)rstrm->in_boundry % BYTES_PER_XDR_UNIT; in fill_input_buf()
|