Lines Matching refs:wpos
651 int wpos = pipe->pos + pipe->count; in pingPongPipe_sendBuffers() local
655 if (wpos > pipe->size) { in pingPongPipe_sendBuffers()
656 wpos -= pipe->size; in pingPongPipe_sendBuffers()
657 memcpy(newbuff + pipe->size, newbuff, wpos); in pingPongPipe_sendBuffers()
675 int wpos = pipe->pos + pipe->count; in pingPongPipe_sendBuffers() local
676 if (wpos >= pipe->size) { in pingPongPipe_sendBuffers()
677 wpos -= pipe->size; in pingPongPipe_sendBuffers()
679 if (wpos + avail <= pipe->size) { in pingPongPipe_sendBuffers()
680 memcpy(pipe->buffer + wpos, buff->data, avail); in pingPongPipe_sendBuffers()
682 int avail2 = pipe->size - wpos; in pingPongPipe_sendBuffers()
683 memcpy(pipe->buffer + wpos, buff->data, avail2); in pingPongPipe_sendBuffers()