Lines Matching refs:lencopy
452 int linesdone, currlinedone, offset, lencopy, remain;
475 lencopy = bytesperline - currlinedone;
476 lencopy = lencopy > remain ? remain : lencopy;
478 if ((char *)startwrite + lencopy > (char *)buf->vb_buf + buf->length) {
480 ((char *)startwrite + lencopy) -
484 lencopy = remain;
486 if (lencopy <= 0)
488 memcpy(startwrite, startread, lencopy);
490 remain -= lencopy;
494 startwrite += lencopy;
496 startwrite += lencopy + bytesperline;
497 startread += lencopy;
499 lencopy = remain;
501 lencopy = bytesperline;
503 if ((char *)startwrite + lencopy > (char *)buf->vb_buf +
506 ((char *)startwrite + lencopy) -
510 lencopy = remain;
512 if (lencopy <= 0)
515 memcpy(startwrite, startread, lencopy);
517 remain -= lencopy;