Lines Matching refs:lencopy
456 int linesdone, currlinedone, offset, lencopy, remain; in em28xx_copy_video() local
479 lencopy = bytesperline - currlinedone; in em28xx_copy_video()
480 lencopy = lencopy > remain ? remain : lencopy; in em28xx_copy_video()
482 if ((char *)startwrite + lencopy > (char *)buf->vb_buf + buf->length) { in em28xx_copy_video()
484 ((char *)startwrite + lencopy) - in em28xx_copy_video()
488 lencopy = remain; in em28xx_copy_video()
490 if (lencopy <= 0) in em28xx_copy_video()
492 memcpy(startwrite, startread, lencopy); in em28xx_copy_video()
494 remain -= lencopy; in em28xx_copy_video()
498 startwrite += lencopy; in em28xx_copy_video()
500 startwrite += lencopy + bytesperline; in em28xx_copy_video()
501 startread += lencopy; in em28xx_copy_video()
503 lencopy = remain; in em28xx_copy_video()
505 lencopy = bytesperline; in em28xx_copy_video()
507 if ((char *)startwrite + lencopy > (char *)buf->vb_buf + in em28xx_copy_video()
511 ((char *)startwrite + lencopy) - in em28xx_copy_video()
513 lencopy = remain = (char *)buf->vb_buf + buf->length - in em28xx_copy_video()
516 if (lencopy <= 0) in em28xx_copy_video()
519 memcpy(startwrite, startread, lencopy); in em28xx_copy_video()
521 remain -= lencopy; in em28xx_copy_video()