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