Lines Matching refs:xdrs
115 xdr_rmtcall_args(XDR *xdrs, struct rmtcallargs *cap) in xdr_rmtcall_args() argument
119 assert(xdrs != NULL); in xdr_rmtcall_args()
122 if (xdr_u_long(xdrs, &(cap->prog)) && in xdr_rmtcall_args()
123 xdr_u_long(xdrs, &(cap->vers)) && in xdr_rmtcall_args()
124 xdr_u_long(xdrs, &(cap->proc))) { in xdr_rmtcall_args()
125 lenposition = XDR_GETPOS(xdrs); in xdr_rmtcall_args()
126 if (! xdr_u_long(xdrs, &(cap->arglen))) in xdr_rmtcall_args()
128 argposition = XDR_GETPOS(xdrs); in xdr_rmtcall_args()
129 if (! (*(cap->xdr_args))(xdrs, cap->args_ptr)) in xdr_rmtcall_args()
131 position = XDR_GETPOS(xdrs); in xdr_rmtcall_args()
133 XDR_SETPOS(xdrs, lenposition); in xdr_rmtcall_args()
134 if (! xdr_u_long(xdrs, &(cap->arglen))) in xdr_rmtcall_args()
136 XDR_SETPOS(xdrs, position); in xdr_rmtcall_args()
147 xdr_rmtcallres(XDR *xdrs, struct rmtcallres *crp) in xdr_rmtcallres() argument
151 assert(xdrs != NULL); in xdr_rmtcallres()
155 if (xdr_reference(xdrs, &port_ptr, sizeof (u_long), in xdr_rmtcallres()
156 (xdrproc_t)xdr_u_long) && xdr_u_long(xdrs, &crp->resultslen)) { in xdr_rmtcallres()
158 return ((*(crp->xdr_results))(xdrs, crp->results_ptr)); in xdr_rmtcallres()