Lines Matching refs:wpos
644 int wpos = pipe->pos + pipe->count; in pingPongPipe_sendBuffers() local
648 if (wpos > pipe->size) { in pingPongPipe_sendBuffers()
649 wpos -= pipe->size; in pingPongPipe_sendBuffers()
650 memcpy(newbuff + pipe->size, newbuff, wpos); in pingPongPipe_sendBuffers()
668 int wpos = pipe->pos + pipe->count; in pingPongPipe_sendBuffers() local
669 if (wpos >= pipe->size) { in pingPongPipe_sendBuffers()
670 wpos -= pipe->size; in pingPongPipe_sendBuffers()
672 if (wpos + avail <= pipe->size) { in pingPongPipe_sendBuffers()
673 memcpy(pipe->buffer + wpos, buff->data, avail); in pingPongPipe_sendBuffers()
675 int avail2 = pipe->size - wpos; in pingPongPipe_sendBuffers()
676 memcpy(pipe->buffer + wpos, buff->data, avail2); in pingPongPipe_sendBuffers()