/drivers/media/platform/omap3isp/ |
D | ispqueue.c | 72 if (buf->vbuf.m.userptr == 0 || buf->npages == 0 || in isp_video_buffer_cache_sync() 76 dmac_map_area((void *)buf->vbuf.m.userptr, buf->vbuf.length, in isp_video_buffer_cache_sync() 78 outer_inv_range(buf->vbuf.m.userptr, in isp_video_buffer_cache_sync() 79 buf->vbuf.m.userptr + buf->vbuf.length); in isp_video_buffer_cache_sync() 104 if (buf->vbuf.memory == V4L2_MEMORY_MMAP) in isp_video_buffer_lock_vma() 115 start = buf->vbuf.m.userptr; in isp_video_buffer_lock_vma() 116 end = buf->vbuf.m.userptr + buf->vbuf.length - 1; in isp_video_buffer_lock_vma() 161 npages = PAGE_ALIGN(buf->vbuf.length) >> PAGE_SHIFT; in isp_video_buffer_sglist_kernel() 270 direction = buf->vbuf.type == V4L2_BUF_TYPE_VIDEO_CAPTURE in isp_video_buffer_cleanup() 324 data = buf->vbuf.m.userptr; in isp_video_buffer_prepare_user() [all …]
|
D | ispqueue.h | 104 struct v4l2_buffer vbuf; member 174 struct v4l2_buffer *vbuf); 176 struct v4l2_buffer *vbuf); 178 struct v4l2_buffer *vbuf, int nonblocking);
|
D | ispvideo.c | 477 buf->vbuf.bytesused = vfh->format.fmt.pix.sizeimage; in isp_video_buffer_prepare() 571 buf->vbuf.timestamp.tv_sec = ts.tv_sec; in omap3isp_video_buffer_next() 572 buf->vbuf.timestamp.tv_usec = ts.tv_nsec / NSEC_PER_USEC; in omap3isp_video_buffer_next() 581 buf->vbuf.sequence = atomic_inc_return(&pipe->frame_number); in omap3isp_video_buffer_next() 583 buf->vbuf.sequence = atomic_read(&pipe->frame_number); in omap3isp_video_buffer_next()
|
/drivers/net/ethernet/8390/ |
D | mcf8390.c | 80 void ei_insb(u32 addr, void *vbuf, int len) in ei_insb() argument 85 buf = (u8 *) vbuf; in ei_insb() 93 void ei_insw(u32 addr, void *vbuf, int len) in ei_insw() argument 98 buf = (u16 *) vbuf; in ei_insw() 106 void ei_outsb(u32 addr, const void *vbuf, int len) in ei_outsb() argument 111 buf = (u8 *) vbuf; in ei_outsb() 119 void ei_outsw(u32 addr, const void *vbuf, int len) in ei_outsw() argument 124 buf = (u16 *) vbuf; in ei_outsw()
|
/drivers/staging/media/solo6x10/ |
D | solo6x10-v4l2-enc.c | 349 struct vb2_dma_sg_desc *vbuf, int off, int size, in solo_send_desc() argument 362 for_each_sg(vbuf->sglist, sg, vbuf->num_pages, i) { in solo_send_desc() 437 struct vb2_dma_sg_desc *vbuf = vb2_dma_sg_plane_desc(vb, 0); in solo_fill_jpeg() local 446 sg_copy_from_buffer(vbuf->sglist, vbuf->num_pages, in solo_fill_jpeg() 454 dma_map_sg(&solo_dev->pdev->dev, vbuf->sglist, vbuf->num_pages, in solo_fill_jpeg() 456 ret = solo_send_desc(solo_enc, solo_enc->jpeg_len, vbuf, vh->jpeg_off, in solo_fill_jpeg() 459 dma_unmap_sg(&solo_dev->pdev->dev, vbuf->sglist, vbuf->num_pages, in solo_fill_jpeg() 468 struct vb2_dma_sg_desc *vbuf = vb2_dma_sg_plane_desc(vb, 0); in solo_fill_mpeg() local 478 sg_copy_from_buffer(vbuf->sglist, vbuf->num_pages, in solo_fill_mpeg() 497 dma_map_sg(&solo_dev->pdev->dev, vbuf->sglist, vbuf->num_pages, in solo_fill_mpeg() [all …]
|
D | solo6x10-v4l2.c | 197 dma_addr_t vbuf; in solo_fillbuf() local 202 vbuf = vb2_dma_contig_plane_dma_addr(vb, 0); in solo_fillbuf() 203 if (!vbuf) in solo_fillbuf() 218 error = solo_p2m_dma_t(solo_dev, 0, vbuf, fdma_addr, in solo_fillbuf()
|
/drivers/media/pci/ddbridge/ |
D | ddbridge-core.c | 261 static void io_free(struct pci_dev *pdev, u8 **vbuf, in io_free() argument 267 if (vbuf[i]) { in io_free() 268 pci_free_consistent(pdev, size, vbuf[i], pbuf[i]); in io_free() 269 vbuf[i] = 0; in io_free() 274 static int io_alloc(struct pci_dev *pdev, u8 **vbuf, in io_alloc() argument 280 vbuf[i] = pci_alloc_consistent(pdev, size, &pbuf[i]); in io_alloc() 281 if (!vbuf[i]) in io_alloc() 296 if (io_alloc(dev->pdev, port->input[0]->vbuf, in ddb_buffers_alloc() 301 if (io_alloc(dev->pdev, port->input[1]->vbuf, in ddb_buffers_alloc() 308 if (io_alloc(dev->pdev, port->input[0]->vbuf, in ddb_buffers_alloc() [all …]
|
D | ddbridge.h | 79 u8 *vbuf[INPUT_DMA_MAX_BUFS]; member 108 u8 *vbuf[OUTPUT_DMA_MAX_BUFS]; member
|
/drivers/media/platform/ |
D | vivi.c | 609 void *vbuf = vb2_plane_vaddr(&buf->vb, 0); in vivi_fillbuff() local 616 if (!vbuf) in vivi_fillbuff() 622 memcpy(vbuf + h * stride, linestart, stride); in vivi_fillbuff() 637 gen_text(dev, vbuf, line++ * 16, 16, str); in vivi_fillbuff() 640 gen_text(dev, vbuf, line++ * 16, 16, str); in vivi_fillbuff() 649 gen_text(dev, vbuf, line++ * 16, 16, str); in vivi_fillbuff() 653 gen_text(dev, vbuf, line++ * 16, 16, str); in vivi_fillbuff() 658 gen_text(dev, vbuf, line++ * 16, 16, str); in vivi_fillbuff() 663 gen_text(dev, vbuf, line++ * 16, 16, str); in vivi_fillbuff() 667 gen_text(dev, vbuf, line++ * 16, 16, str); in vivi_fillbuff() [all …]
|
/drivers/media/usb/tm6000/ |
D | tm6000-video.c | 141 struct tm6000_buffer *vbuf = NULL; in copy_streams() local 147 get_next_buf(dma_q, &vbuf); in copy_streams() 149 if (!vbuf) in copy_streams() 151 voutp = videobuf_to_vmalloc(&vbuf->vb); in copy_streams() 213 buffer_filled(dev, dma_q, vbuf); in copy_streams() 216 get_next_buf(dma_q, &vbuf); in copy_streams() 217 if (!vbuf) in copy_streams() 219 voutp = videobuf_to_vmalloc(&vbuf->vb); in copy_streams() 222 memset(voutp, 0, vbuf->vb.size); in copy_streams() 224 linewidth = vbuf->vb.width << 1; in copy_streams() [all …]
|
/drivers/media/platform/s3c-camif/ |
D | camif-capture.c | 330 struct camif_buffer *vbuf; in s3c_camif_irq_handler() local 341 vbuf = camif_active_queue_peek(vp, index); in s3c_camif_irq_handler() 343 if (!WARN_ON(vbuf == NULL)) { in s3c_camif_irq_handler() 345 tv = &vbuf->vb.v4l2_buf.timestamp; in s3c_camif_irq_handler() 348 vbuf->vb.v4l2_buf.sequence = vp->frame_sequence++; in s3c_camif_irq_handler() 349 vb2_buffer_done(&vbuf->vb, VB2_BUF_STATE_DONE); in s3c_camif_irq_handler() 352 vbuf = camif_pending_queue_pop(vp); in s3c_camif_irq_handler() 353 vbuf->index = index; in s3c_camif_irq_handler() 354 camif_hw_set_output_addr(vp, &vbuf->paddr, index); in s3c_camif_irq_handler() 355 camif_hw_set_output_addr(vp, &vbuf->paddr, index + 2); in s3c_camif_irq_handler() [all …]
|
/drivers/media/usb/cx231xx/ |
D | cx231xx-417.c | 1263 void *vbuf; in buffer_copy() local 1279 vbuf = videobuf_to_vmalloc(&buf->vb); in buffer_copy() 1285 memcpy(vbuf+dma_q->mpeg_buffer_completed, in buffer_copy() 1292 memcpy(vbuf+dma_q->mpeg_buffer_completed, data, len); in buffer_copy() 1300 memcpy(vbuf+dma_q->mpeg_buffer_completed, in buffer_copy() 1322 void *vbuf; in buffer_filled() local 1332 vbuf = videobuf_to_vmalloc(&buf->vb); in buffer_filled() 1333 memcpy(vbuf, data, len); in buffer_filled()
|
/drivers/media/platform/exynos4-is/ |
D | fimc-lite.c | 270 struct flite_buffer *vbuf; in flite_irq_handler() local 304 vbuf = fimc_lite_active_queue_pop(fimc); in flite_irq_handler() 306 tv = &vbuf->vb.v4l2_buf.timestamp; in flite_irq_handler() 309 vbuf->vb.v4l2_buf.sequence = fimc->frame_count++; in flite_irq_handler() 310 vb2_buffer_done(&vbuf->vb, VB2_BUF_STATE_DONE); in flite_irq_handler() 312 vbuf = fimc_lite_pending_queue_pop(fimc); in flite_irq_handler() 313 flite_hw_set_output_addr(fimc, vbuf->paddr); in flite_irq_handler() 314 fimc_lite_active_queue_add(fimc, vbuf); in flite_irq_handler()
|
/drivers/media/platform/marvell-ccic/ |
D | mcam-core.c | 194 struct vb2_buffer *vbuf) in mcam_buffer_done() argument 196 vbuf->v4l2_buf.bytesused = cam->pix_format.sizeimage; in mcam_buffer_done() 197 vbuf->v4l2_buf.sequence = cam->buf_seq[frame]; in mcam_buffer_done() 198 vb2_set_plane_payload(vbuf, 0, cam->pix_format.sizeimage); in mcam_buffer_done() 199 vb2_buffer_done(vbuf, VB2_BUF_STATE_DONE); in mcam_buffer_done()
|
/drivers/media/platform/soc_camera/ |
D | mx1_camera.c | 222 struct videobuf_buffer *vbuf = &pcdev->active->vb; in mx1_camera_setup_dma() local 233 videobuf_to_dma_contig(vbuf), in mx1_camera_setup_dma() 234 vbuf->size, pcdev->res->start + in mx1_camera_setup_dma()
|
/drivers/media/usb/zr364xx/ |
D | zr364xx.c | 505 char *vbuf = videobuf_to_vmalloc(&buf->vb); in zr364xx_fillbuff() local 508 if (!vbuf) in zr364xx_fillbuff() 517 memcpy(vbuf, tmpbuf, buf->vb.size); in zr364xx_fillbuff() 528 (unsigned long)vbuf, pos); in zr364xx_fillbuff()
|
/drivers/media/usb/s2255/ |
D | s2255drv.c | 640 char *vbuf = videobuf_to_vmalloc(&buf->vb); in s2255_fillbuff() local 643 if (!vbuf) in s2255_fillbuff() 653 vbuf, buf->vb.width, in s2255_fillbuff() 658 memcpy(vbuf, tmpbuf, buf->vb.width * buf->vb.height); in s2255_fillbuff() 663 memcpy(vbuf, tmpbuf, buf->vb.size); in s2255_fillbuff() 666 memcpy(vbuf, tmpbuf, in s2255_fillbuff() 679 (unsigned long)vbuf, pos); in s2255_fillbuff()
|
/drivers/media/parport/ |
D | bw-qcam.c | 673 void *vbuf = vb2_plane_vaddr(vb, 0); in buffer_finish() local 686 len = qc_capture(qcam, vbuf, size); in buffer_finish()
|