Lines Matching refs:wpos
646 int wpos = pipe->pos + pipe->count; in pingPongPipe_sendBuffers() local
650 if (wpos > pipe->size) { in pingPongPipe_sendBuffers()
651 wpos -= pipe->size; in pingPongPipe_sendBuffers()
652 memcpy(newbuff + pipe->size, newbuff, wpos); in pingPongPipe_sendBuffers()
670 int wpos = pipe->pos + pipe->count; in pingPongPipe_sendBuffers() local
671 if (wpos >= pipe->size) { in pingPongPipe_sendBuffers()
672 wpos -= pipe->size; in pingPongPipe_sendBuffers()
674 if (wpos + avail <= pipe->size) { in pingPongPipe_sendBuffers()
675 memcpy(pipe->buffer + wpos, buff->data, avail); in pingPongPipe_sendBuffers()
677 int avail2 = pipe->size - wpos; in pingPongPipe_sendBuffers()
678 memcpy(pipe->buffer + wpos, buff->data, avail2); in pingPongPipe_sendBuffers()