Home | History | Annotate | Download | only in hw

Lines Matching full:buffers

349 pipeConnector_sendBuffers( void* opaque, const GoldfishPipeBuffer* buffers, int numBuffers )
352 const GoldfishPipeBuffer* buffers_limit = buffers + numBuffers;
359 while (buffers < buffers_limit) {
363 buffers[0].size, buffers[0].size, buffers[0].data);
365 if (buffers[0].size == 0) {
366 buffers++;
371 if (avail > buffers[0].size)
372 avail = buffers[0].size;
375 memcpy(pcon->buffer + pcon->buffpos, buffers[0].data, avail);
379 buffers++;
434 pipeConnector_recvBuffers( void* opaque, GoldfishPipeBuffer* buffers, int numBuffers )
526 zeroPipe_sendBuffers( void* opaque, const GoldfishPipeBuffer* buffers, int numBuffers )
530 ret += buffers[0].size;
531 buffers++;
538 zeroPipe_recvBuffers( void* opaque, GoldfishPipeBuffer* buffers, int numBuffers )
542 ret += buffers[0].size;
543 memset(buffers[0].data, 0, buffers[0].size);
544 buffers++;
630 pingPongPipe_sendBuffers( void* opaque, const GoldfishPipeBuffer* buffers, int numBuffers )
635 const GoldfishPipeBuffer* buff = buffers;
659 for ( buff = buffers
694 pingPongPipe_recvBuffers( void* opaque, GoldfishPipeBuffer* buffers, int numBuffers )
706 if (avail > buffers[0].size) {
707 avail = buffers[0].size;
713 memcpy(buffers[0].data, pipe->buffer + rpos, avail);
716 memcpy(buffers[0].data, pipe->buffer + rpos, avail2);
717 memcpy(buffers[0].data + avail2, pipe->buffer, avail - avail2);
726 buffers++;
872 throttlePipe_sendBuffers( void* opaque, const GoldfishPipeBuffer* buffers, int numBuffers )
881 ret = pingPongPipe_sendBuffers(&pipe->pingpong, buffers, numBuffers);
891 throttlePipe_recvBuffers( void* opaque, GoldfishPipeBuffer* buffers, int numBuffers )
900 ret = pingPongPipe_recvBuffers(&pipe->pingpong, buffers, numBuffers);