Home | History | Annotate | Download | only in hw

Lines Matching refs:wpos

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