Home
last modified time | relevance | path

Searched refs:lencopy (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/media/usb/em28xx/
H A Dem28xx-video.c452 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()
[all …]