Home
last modified time | relevance | path

Searched refs:BYTES_PER_XDR_UNIT (Results 1 – 25 of 51) sorted by relevance

123

/titanic_50/usr/src/uts/common/fs/nfs/
H A Dnfs4_attr.c343 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 Dnfs_xdr.c133 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 Dnfs3_xdr.c183 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 Dnfs4_xdr.c85 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 Dauth_loopb.c155 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 Dauth_kern.c152 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 Dauth_des.c284 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 Dsvc_authu.c119 if ((5 + gid_len) * BYTES_PER_XDR_UNIT + str_len > auth_len) in _svcauth_unix()
/titanic_50/usr/src/uts/common/rpc/
H A Dxdr.c71 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 Drpc_calmsg.c66 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 Dxdr.h98 #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 Drpc_prot.c151 (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 Dxdr.c86 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 Drpc_callmsg.c61 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 Dauth_des.c307 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 Dpmap_prot.c56 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 Dxdr_sizeof.c44 xdrs->x_handy += BYTES_PER_XDR_UNIT; in x_putlong()
53 xdrs->x_handy += BYTES_PER_XDR_UNIT; in x_putint32_t()
H A Dclnt_door.c386 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 Drpc_prot.c139 (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 Drpcb_st_xdr.c63 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 Dsvc_auth_loopb.c96 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 Dxdr.h81 #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 Dauto_xdr.c411 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 Dautod_xdr.c402 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 Dxdr_rec.c148 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()

123