Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/media/usb/stk1160/
Dstk1160-video.c102 int linesdone, lineoff, lencopy; in stk1160_copy_video() local
135 lencopy = remain; in stk1160_copy_video()
137 lencopy = bytesperline - lineoff; in stk1160_copy_video()
143 if (lencopy > buf->bytesused - buf->length) { in stk1160_copy_video()
144 lencopy = buf->bytesused - buf->length; in stk1160_copy_video()
145 remain = lencopy; in stk1160_copy_video()
149 if (lencopy == 0 || remain == 0) in stk1160_copy_video()
153 if (lencopy < 0) { in stk1160_copy_video()
158 if ((unsigned long)dst + lencopy > in stk1160_copy_video()
164 memcpy(dst, src, lencopy); in stk1160_copy_video()
[all …]
/Linux-v6.6/drivers/media/usb/au0828/
Dau0828-video.c315 int linesdone, currlinedone, offset, lencopy, remain; in au0828_copy_video() local
337 lencopy = bytesperline - currlinedone; in au0828_copy_video()
338 lencopy = lencopy > remain ? remain : lencopy; in au0828_copy_video()
340 if ((char *)startwrite + lencopy > (char *)outp + buf->length) { in au0828_copy_video()
342 ((char *)startwrite + lencopy) - in au0828_copy_video()
345 lencopy = remain; in au0828_copy_video()
347 if (lencopy <= 0) in au0828_copy_video()
349 memcpy(startwrite, startread, lencopy); in au0828_copy_video()
351 remain -= lencopy; in au0828_copy_video()
354 startwrite += lencopy + bytesperline; in au0828_copy_video()
[all …]
/Linux-v6.6/drivers/media/usb/em28xx/
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 …]
/Linux-v6.6/drivers/media/usb/cx231xx/
Dcx231xx-vbi.c617 int offset, lencopy; in cx231xx_do_vbi_copy() local
642 lencopy = dma_q->bytes_left_in_line > bytes_to_copy ? in cx231xx_do_vbi_copy()
645 memcpy(startwrite, p_buffer, lencopy); in cx231xx_do_vbi_copy()
Dcx231xx-video.c647 int offset, lencopy; in cx231xx_do_copy() local
673 lencopy = dma_q->bytes_left_in_line > bytes_to_copy ? in cx231xx_do_copy()
676 if ((u8 *)(startwrite + lencopy) > (u8 *)(p_out_buffer + dev->size)) in cx231xx_do_copy()
680 cx231xx_swab((u16 *) p_buffer, (u16 *) startwrite, (u16) lencopy); in cx231xx_do_copy()