Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/media/usb/au0828/
Dau0828-video.c316 int linesdone, currlinedone, offset, lencopy, remain; in au0828_copy_video() local
338 lencopy = bytesperline - currlinedone; in au0828_copy_video()
339 lencopy = lencopy > remain ? remain : lencopy; in au0828_copy_video()
341 if ((char *)startwrite + lencopy > (char *)outp + buf->length) { in au0828_copy_video()
343 ((char *)startwrite + lencopy) - in au0828_copy_video()
346 lencopy = remain; in au0828_copy_video()
348 if (lencopy <= 0) in au0828_copy_video()
350 memcpy(startwrite, startread, lencopy); in au0828_copy_video()
352 remain -= lencopy; in au0828_copy_video()
355 startwrite += lencopy + bytesperline; in au0828_copy_video()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/em28xx/
Dem28xx-video.c462 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()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/cx231xx/
Dcx231xx-vbi.c618 int offset, lencopy; in cx231xx_do_vbi_copy() local
643 lencopy = dma_q->bytes_left_in_line > bytes_to_copy ? in cx231xx_do_vbi_copy()
646 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()