Lines Matching refs:lencopy
462 int linesdone, currlinedone, offset, lencopy, remain;
485 lencopy = bytesperline - currlinedone;
486 lencopy = lencopy > remain ? remain : lencopy;
488 if ((char *)startwrite + lencopy > (char *)buf->vb_buf + buf->length) {
490 ((char *)startwrite + lencopy) -
494 lencopy = remain;
496 if (lencopy <= 0)
498 memcpy(startwrite, startread, lencopy);
500 remain -= lencopy;
504 startwrite += lencopy;
506 startwrite += lencopy + bytesperline;
507 startread += lencopy;
509 lencopy = remain;
511 lencopy = bytesperline;
513 if ((char *)startwrite + lencopy > (char *)buf->vb_buf +
516 ((char *)startwrite + lencopy) -
520 lencopy = remain;
522 if (lencopy <= 0)
525 memcpy(startwrite, startread, lencopy);
527 remain -= lencopy;