Lines Matching refs:srp

75 	struct svc_raw_private *srp;  in svc_raw_create()  local
80 srp = svc_raw_private; in svc_raw_create()
81 if (srp == NULL) { in svc_raw_create()
82 srp = calloc(1, sizeof (*srp)); in svc_raw_create()
83 if (srp == NULL) { in svc_raw_create()
92 free(srp); in svc_raw_create()
100 srp->raw_buf = _rawcombuf; /* Share it with the client */ in svc_raw_create()
101 svc_raw_private = srp; in svc_raw_create()
103 if ((srp->server = svc_xprt_alloc()) == NULL) { in svc_raw_create()
114 srp->server->xp_fd = FD_SETSIZE; in svc_raw_create()
115 srp->server->xp_port = 0; in svc_raw_create()
116 srp->server->xp_ops = svc_raw_ops(); in svc_raw_create()
117 srp->server->xp_verf.oa_base = srp->verf_body; in svc_raw_create()
118 xdrmem_create(&srp->xdr_stream, srp->raw_buf, UDPMSGSIZE, XDR_DECODE); in svc_raw_create()
119 xprt_register(srp->server); in svc_raw_create()
121 return (srp->server); in svc_raw_create()
135 struct svc_raw_private *srp; in svc_raw_recv() local
139 srp = svc_raw_private; in svc_raw_recv()
140 if (srp == NULL) { in svc_raw_recv()
146 xdrs = &srp->xdr_stream; in svc_raw_recv()
156 struct svc_raw_private *srp; in svc_raw_reply() local
160 srp = svc_raw_private; in svc_raw_reply()
161 if (srp == NULL) { in svc_raw_reply()
167 xdrs = &srp->xdr_stream; in svc_raw_reply()
177 struct svc_raw_private *srp; in svc_raw_getargs() local
180 srp = svc_raw_private; in svc_raw_getargs()
181 if (srp == NULL) { in svc_raw_getargs()
186 return ((*xdr_args)(&srp->xdr_stream, args_ptr)); in svc_raw_getargs()
193 struct svc_raw_private *srp; in svc_raw_freeargs() local
197 srp = svc_raw_private; in svc_raw_freeargs()
198 if (srp == NULL) { in svc_raw_freeargs()
204 xdrs = &srp->xdr_stream; in svc_raw_freeargs()