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