Lines Matching refs:su
97 struct svc_dg_data *su = xprt ? get_svc_dg_data(xprt) : NULL;
110 if (su != NULL) {
111 XDR_DESTROY(&(su->su_xdrs));
112 free(su);
123 struct svc_dg_data *su = NULL;
153 su = malloc(sizeof (*su) + ucred_sz);
154 if (su == NULL)
156 su->su_iosz = ((MAX(sendsize, recvsize) + 3) / 4) * 4;
157 if ((rpc_buffer(xprt) = malloc(su->su_iosz)) == NULL)
159 xdrmem_create(&(su->su_xdrs), rpc_buffer(xprt), su->su_iosz,
161 su->su_cache = NULL;
163 xprt->xp_p2 = (caddr_t)su;
164 xprt->xp_verf.oa_base = su->su_verfbody;
167 su->su_tudata.addr.maxlen = 0; /* Fill in later */
169 su->su_tudata.udata.buf = (char *)rpc_buffer(xprt);
170 su->su_tudata.opt.buf = (char *)su->opts;
171 su->su_tudata.udata.maxlen = su->su_iosz;
172 su->su_tudata.opt.maxlen = MAX_OPT_WORDS * sizeof (int) + ucred_sz;
199 struct svc_dg_data *su;
243 if ((su = malloc(sizeof (struct svc_dg_data) + ucred_sz)) == NULL) {
248 su->su_iosz = get_svc_dg_data(parent)->su_iosz;
249 if ((rpc_buffer(xprt) = malloc(su->su_iosz)) == NULL) {
251 free(su);
254 xdrmem_create(&(su->su_xdrs), rpc_buffer(xprt), su->su_iosz,
256 su->su_cache = NULL;
257 su->su_tudata.addr.maxlen = 0; /* Fill in later */
258 su->su_tudata.udata.buf = (char *)rpc_buffer(xprt);
259 su->su_tudata.opt.buf = (char *)su->opts;
260 su->su_tudata.udata.maxlen = su->su_iosz;
261 su->su_tudata.opt.maxlen = MAX_OPT_WORDS * sizeof (int) + ucred_sz;
262 xprt->xp_p2 = (caddr_t)su; /* get_svc_dg_data(xprt) = su */
263 xprt->xp_verf.oa_base = su->su_verfbody;
363 struct svc_dg_data *su = get_svc_dg_data(xprt);
364 XDR *xdrs = &(su->su_xdrs);
365 struct t_unitdata *tu_data = &(su->su_tudata);
414 su->optbuf = tu_data->opt;
420 su->su_xid = msg->rm_xid;
421 if (su->su_cache != NULL) {
477 struct svc_dg_data *su = get_svc_dg_data(xprt);
478 XDR *xdrs = &(su->su_xdrs);
496 msg->rm_xid = su->su_xid;
502 struct t_unitdata *tu_data = &(su->su_tudata);
506 extract_cred(&su->optbuf, &tu_data->opt);
511 if (su->su_cache && slen >= 0) {
688 struct svc_dg_data *su;
698 su = get_svc_dg_data(transp);
701 if (su->su_cache != NULL) {
731 su->su_cache = (char *)uc;
755 struct svc_dg_data *su;
772 su = get_svc_dg_data(xprt);
803 newbuf = malloc(su->su_iosz);
822 su->su_xid, uc->uc_prog, uc->uc_vers, uc->uc_proc, uaddr);
839 xdrmem_create(&(su->su_xdrs), rpc_buffer(xprt), su->su_iosz,
841 su->su_tudata.udata.buf = (char *)rpc_buffer(xprt);
842 victim->cache_xid = su->su_xid;
870 struct svc_dg_data *su;
884 su = get_svc_dg_data(xprt);
890 loc = CACHE_LOC(parent, su->su_xid);
892 if (ent->cache_xid == su->su_xid &&
905 su->su_xid, msg->rm_call.cb_prog,