Lines Matching refs:msg
88 struct rpc_msg msg;
185 memmove ( out, &ctx->msg.data[ctx->pos], length );
192 ctx->msg.channel = 'R';
193 ctx->msg.function = 'G';
194 ctx->msg.length = sizeof(ctx->msg.data);
195 status = put ( b->num, (char *) &ctx->msg, RPC_HDR_SIZE );
203 status = get ( b->num, (char *) &ctx->msg, sizeof(ctx->msg), &length );
205 if ( ctx->msg.channel != 'R' || ctx->msg.function != 'C' ) {
213 memmove ( out, ctx->msg.data, length );
226 * Output data, send in chunks no larger that sizeof(ctx->msg.data).
231 if ( segment > sizeof(ctx->msg.data) ) segment = sizeof(ctx->msg.data);
232 ctx->msg.channel = 'R';
233 ctx->msg.function = 'P';
234 ctx->msg.length = segment;
235 memmove ( ctx->msg.data, &in[i], segment );
236 status = put ( b->num, (char *) &ctx->msg, segment + RPC_HDR_SIZE );
239 status = get ( b->num, (char *) &ctx->msg, sizeof(ctx->msg), &length );
241 if ( (ctx->msg.channel != 'R') || (ctx->msg.function != 'C') ) {
243 ctx->msg.channel, ctx->msg.function );