Home
last modified time | relevance | path

Searched refs:xdr (Results 1 – 10 of 10) sorted by relevance

/hardware/msm7k/librpc/
Dsvc_clnt_common.c12 static void xdr_std_destroy(xdr_s_type *xdr) in xdr_std_destroy() argument
17 static bool_t xdr_std_control(xdr_s_type *xdr, int request, void *info) in xdr_std_control() argument
19 return r_control(xdr->fd, request, info); in xdr_std_control()
22 static bool_t xdr_std_msg_done(xdr_s_type *xdr) in xdr_std_msg_done() argument
29 static bool_t xdr_std_msg_start(xdr_s_type *xdr, in xdr_std_msg_start() argument
58 if (rpc_msg_type == RPC_MSG_CALL) xdr->xid++; in xdr_std_msg_start()
65 xdr->out_next = (RPC_OFFSET+2)*sizeof(uint32); in xdr_std_msg_start()
68 ((uint32 *)xdr->out_msg)[RPC_OFFSET] = htonl(xdr->xid); in xdr_std_msg_start()
70 ((uint32 *)xdr->out_msg)[RPC_OFFSET+1] = htonl(rpc_msg_type); in xdr_std_msg_start()
75 static bool_t xdr_std_msg_abort(xdr_s_type *xdr) in xdr_std_msg_abort() argument
[all …]
Dclnt.c14 xdr_s_type *xdr; member
47 extern void xdr_destroy_common(xdr_s_type *xdr);
48 extern bool_t xdr_recv_reply_header (xdr_s_type *xdr, rpc_reply_header *reply);
64 (client->xdr->x_prog | 0x01000000), in cb_context()
65 client->xdr->x_vers); in cb_context()
77 (client->xdr->x_prog | 0x01000000), in cb_context()
78 client->xdr->x_vers); in cb_context()
89 ntohl(((uint32 *)(client->xdr->in_msg))[RPC_OFFSET+3]); in cb_context()
91 ntohl(((uint32 *)(client->xdr->in_msg))[RPC_OFFSET+4]); in cb_context()
98 client->xdr->x_prog, in cb_context()
[all …]
Drpc.c8 xdr_s_type *xdr, in xdr_call_msg_start() argument
17 xdr->x_prog = prog; in xdr_call_msg_start()
18 xdr->x_proc = proc; in xdr_call_msg_start()
20 return (XDR_MSG_START(xdr, RPC_MSG_CALL) && in xdr_call_msg_start()
21 XDR_SEND_UINT32(xdr, &vers) && in xdr_call_msg_start()
22 XDR_SEND_UINT32(xdr, &prog) && in xdr_call_msg_start()
23 XDR_SEND_UINT32(xdr, &ver) && in xdr_call_msg_start()
24 XDR_SEND_UINT32(xdr, &proc) && in xdr_call_msg_start()
25 xdr_send_auth(xdr, cred) && in xdr_call_msg_start()
26 xdr_send_auth(xdr, verf)); in xdr_call_msg_start()
[all …]
Dxdr.c10 bool_t xdr_bytes (XDR *xdr, char **cpp, u_int *sizep, u_int maxsize) in xdr_bytes() argument
12 switch(xdr->x_op) { in xdr_bytes()
14 if(!XDR_RECV_UINT(xdr, sizep) || *sizep > maxsize) in xdr_bytes()
21 return XDR_RECV_BYTES(xdr, (uint8 *) *cpp, *sizep); in xdr_bytes()
23 return (XDR_SEND_UINT(xdr, sizep) && in xdr_bytes()
25 XDR_SEND_BYTES(xdr, (uint8 *) *cpp, *sizep)); in xdr_bytes()
38 bool_t xdr_send_enum (xdr_s_type *xdr, const void *value, uint32 size) in xdr_send_enum() argument
42 return XDR_SEND_INT32(xdr, (int32 *) value); in xdr_send_enum()
44 return XDR_SEND_INT16(xdr, (int16 *) value); in xdr_send_enum()
46 return XDR_SEND_INT8(xdr, (int8 *) value); in xdr_send_enum()
[all …]
Dsvc.c52 extern void xdr_destroy_common(XDR *xdr);
64 XDR *xdr; member
127 if (trav->xdr->fd == n) { in svc_context()
129 trav->xdr->xops->read(trav->xdr); in svc_context()
228 svc->xdr = NULL; in svc_register()
233 svc->xdr = xdr_init_common("/dev/oncrpc/00000000:0", in svc_register()
235 if (svc->xdr == NULL) { in svc_register()
246 if (r_control(svc->xdr->fd, in svc_register()
251 xdr_destroy_common(svc->xdr); in svc_register()
257 FD_SET(svc->xdr->fd, &xprt->fdset); in svc_register()
[all …]
DAndroid.mk5 LOCAL_SRC_FILES:= xdr.c rpc.c svc.c clnt.c ops.c svc_clnt_common.c
22 rpc/xdr.h
/hardware/msm7k/librpc/rpc/
Dtypes.h344 typedef void (*rpc_reply_cb_type)(xdr_s_type *xdr, void *data);
349 void (*xdr_destroy) (xdr_s_type *xdr);
350 bool_t (*xdr_control) (xdr_s_type *xdr, int request, void *info);
353 bool_t (*read) (xdr_s_type *xdr);
354 bool_t (*msg_done) (xdr_s_type *xdr);
357 bool_t (*msg_start) (xdr_s_type *xdr, rpc_msg_e_type rpc_msg_type);
358 bool_t (*msg_abort) (xdr_s_type *xdr);
359 bool_t (*msg_send) (xdr_s_type *xdr);
362 bool_t (*send_int8) (xdr_s_type *xdr, const int8 *value);
363 bool_t (*send_uint8) (xdr_s_type *xdr, const uint8 *value);
[all …]
Dxdr.h69 extern bool_t xdr_call_msg_start (XDR *xdr, uint32 prog, uint32 ver, uint32 proc, opaque_auth *cred…
70 extern bool_t xdr_reply_msg_start (XDR *xdr, opaque_auth *verf);
71 extern bool_t xdr_send_auth (XDR *xdr, const opaque_auth *auth);
72 extern bool_t xdr_send_reply_header (XDR *xdr, rpc_reply_header const *reply);
81 extern bool_t xdr_send_enum (XDR *xdr, const void *value, uint32 size);
82 extern bool_t xdr_recv_enum (XDR *xdr, void *value, uint32 size);
84 extern bool_t xdr_bytes (XDR *xdr, char **cpp, u_int *sizep, u_int maxsize);
85 extern bool_t xdr_enum (XDR *xdr, enum_t *ep);
87 extern bool_t xdr_int (XDR *xdr, int *ip);
88 extern bool_t xdr_char (XDR *xdr, char *cp);
[all …]
Dclnt.h204 extern bool_t clnt_freeres( CLIENT *xdr, xdrproc_t xdr_res, caddr_t res_ptr );
205 extern void clnt_destroy( CLIENT *xdr );
Dsvc.h192 extern bool_t svc_getargs(SVCXPRT *xdr, xdrproc_t xdr_args, caddr_t args_ptr);
193 extern bool_t svc_freeargs(SVCXPRT *xdr, xdrproc_t xdr_args, caddr_t args_ptr);