/drivers/gpu/drm/virtio/ |
D | virtgpu_vq.c | 92 struct virtio_gpu_vbuffer *vbuf; in virtio_gpu_get_vbuf() local 94 vbuf = kmem_cache_zalloc(vgdev->vbufs, GFP_KERNEL | __GFP_NOFAIL); in virtio_gpu_get_vbuf() 98 vbuf->buf = (void *)vbuf + sizeof(*vbuf); in virtio_gpu_get_vbuf() 99 vbuf->size = size; in virtio_gpu_get_vbuf() 101 vbuf->resp_cb = resp_cb; in virtio_gpu_get_vbuf() 102 vbuf->resp_size = resp_size; in virtio_gpu_get_vbuf() 104 vbuf->resp_buf = (void *)vbuf->buf + size; in virtio_gpu_get_vbuf() 106 vbuf->resp_buf = resp_buf; in virtio_gpu_get_vbuf() 107 BUG_ON(!vbuf->resp_buf); in virtio_gpu_get_vbuf() 108 return vbuf; in virtio_gpu_get_vbuf() [all …]
|
/drivers/staging/media/meson/vdec/ |
D | vdec_helpers.c | 274 struct vb2_v4l2_buffer *vbuf, in dst_buf_done() argument 283 vbuf->vb2_buf.planes[0].bytesused = output_size; in dst_buf_done() 284 vbuf->vb2_buf.planes[1].bytesused = output_size / 2; in dst_buf_done() 287 vbuf->vb2_buf.planes[0].bytesused = output_size; in dst_buf_done() 288 vbuf->vb2_buf.planes[1].bytesused = output_size / 4; in dst_buf_done() 289 vbuf->vb2_buf.planes[2].bytesused = output_size / 4; in dst_buf_done() 293 vbuf->vb2_buf.timestamp = timestamp; in dst_buf_done() 294 vbuf->sequence = sess->sequence_cap++; in dst_buf_done() 295 vbuf->flags = flags; in dst_buf_done() 296 vbuf->timecode = timecode; in dst_buf_done() [all …]
|
D | esparser.c | 292 esparser_queue(struct amvdec_session *sess, struct vb2_v4l2_buffer *vbuf) in esparser_queue() argument 295 struct vb2_buffer *vb = &vbuf->vb2_buf; in esparser_queue() 327 v4l2_m2m_src_buf_remove_by_buf(sess->m2m_ctx, vbuf); in esparser_queue() 331 ret = amvdec_add_ts(sess, vb->timestamp, vbuf->timecode, offset, vbuf->flags); in esparser_queue() 333 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR); in esparser_queue() 338 vb->timestamp, payload_size, offset, vbuf->flags); in esparser_queue() 340 vbuf->flags = 0; in esparser_queue() 341 vbuf->field = V4L2_FIELD_NONE; in esparser_queue() 342 vbuf->sequence = sess->sequence_out++; in esparser_queue() 350 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR); in esparser_queue() [all …]
|
/drivers/media/platform/sti/delta/ |
D | delta-v4l2.c | 28 #define to_au(__vbuf) container_of(__vbuf, struct delta_au, vbuf) 29 #define to_frame(__vbuf) container_of(__vbuf, struct delta_frame, vbuf) 69 ctx->name, au->vbuf.vb2_buf.index, au->dts, au->size, in dump_au() 73 ctx->name, au->vbuf.vb2_buf.index, au->dts, au->size, in dump_au() 92 struct vb2_v4l2_buffer *vbuf; in delta_au_done() local 94 vbuf = &au->vbuf; in delta_au_done() 95 vbuf->sequence = ctx->au_num++; in delta_au_done() 96 v4l2_m2m_buf_done(vbuf, err ? VB2_BUF_STATE_ERROR : VB2_BUF_STATE_DONE); in delta_au_done() 102 struct vb2_v4l2_buffer *vbuf; in delta_frame_done() local 109 vbuf = &frame->vbuf; in delta_frame_done() [all …]
|
/drivers/media/common/videobuf2/ |
D | videobuf2-v4l2.c | 136 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __init_vb2_v4l2_buffer() local 138 vbuf->request_fd = -1; in __init_vb2_v4l2_buffer() 144 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __copy_timestamp() local 154 vbuf->flags |= b->flags & V4L2_BUF_FLAG_TIMECODE; in __copy_timestamp() 156 vbuf->timecode = b->timecode; in __copy_timestamp() 179 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vb2_fill_vb2_v4l2_buffer() local 180 struct vb2_plane *planes = vbuf->planes; in vb2_fill_vb2_v4l2_buffer() 202 vbuf->sequence = 0; in vb2_fill_vb2_v4l2_buffer() 203 vbuf->request_fd = -1; in vb2_fill_vb2_v4l2_buffer() 204 vbuf->is_held = false; in vb2_fill_vb2_v4l2_buffer() [all …]
|
/drivers/staging/unisys/visornic/ |
D | visornic_main.c | 1430 char *vbuf; in info_debugfs_read() local 1434 vbuf = kzalloc(len, GFP_KERNEL); in info_debugfs_read() 1435 if (!vbuf) in info_debugfs_read() 1447 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() 1452 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() 1454 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() 1457 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() 1460 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() 1463 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() 1466 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() [all …]
|
/drivers/media/platform/rockchip/rga/ |
D | rga-buf.c | 53 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in rga_buf_queue() local 56 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in rga_buf_queue() 63 struct vb2_v4l2_buffer *vbuf; in rga_buf_return_buffers() local 67 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in rga_buf_return_buffers() 69 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in rga_buf_return_buffers() 70 if (!vbuf) in rga_buf_return_buffers() 72 v4l2_m2m_buf_done(vbuf, state); in rga_buf_return_buffers()
|
/drivers/media/platform/qcom/venus/ |
D | helpers.c | 388 struct vb2_v4l2_buffer *vbuf) in return_buf_error() argument 392 if (vbuf->vb2_buf.type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) in return_buf_error() 393 v4l2_m2m_src_buf_remove_by_buf(m2m_ctx, vbuf); in return_buf_error() 395 v4l2_m2m_dst_buf_remove_by_buf(m2m_ctx, vbuf); in return_buf_error() 397 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR); in return_buf_error() 401 put_ts_metadata(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) in put_ts_metadata() argument 403 struct vb2_buffer *vb = &vbuf->vb2_buf; in put_ts_metadata() 423 inst->tss[slot].flags = vbuf->flags; in put_ts_metadata() 424 inst->tss[slot].tc = vbuf->timecode; in put_ts_metadata() 430 struct vb2_v4l2_buffer *vbuf) in venus_helper_get_ts_metadata() argument [all …]
|
/drivers/media/platform/sti/hva/ |
D | hva-v4l2.c | 826 frame->vbuf.sequence = ctx->frame_num++; in hva_run_work() 937 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in hva_buf_prepare() local 940 struct hva_frame *frame = to_hva_frame(vbuf); in hva_buf_prepare() 942 if (vbuf->field == V4L2_FIELD_ANY) in hva_buf_prepare() 943 vbuf->field = V4L2_FIELD_NONE; in hva_buf_prepare() 944 if (vbuf->field != V4L2_FIELD_NONE) { in hva_buf_prepare() 947 ctx->name, vb->index, vbuf->field); in hva_buf_prepare() 953 frame->vaddr = vb2_plane_vaddr(&vbuf->vb2_buf, 0); in hva_buf_prepare() 955 &vbuf->vb2_buf, 0); in hva_buf_prepare() 965 struct hva_stream *stream = to_hva_stream(vbuf); in hva_buf_prepare() [all …]
|
D | hva.h | 116 struct vb2_v4l2_buffer vbuf; member 128 container_of(vb, struct hva_frame, vbuf) 142 struct vb2_v4l2_buffer vbuf; member 155 container_of(vb, struct hva_stream, vbuf)
|
/drivers/media/platform/ |
D | rcar_fdp1.c | 1182 struct vb2_v4l2_buffer *vbuf; in fdp1_prepare_job() local 1216 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in fdp1_prepare_job() 1217 fbuf = to_fdp1_buffer(vbuf); in fdp1_prepare_job() 1786 struct vb2_v4l2_buffer *vbuf, in fdp1_buf_prepare_field() argument 1789 struct fdp1_buffer *buf = to_fdp1_buffer(vbuf); in fdp1_buf_prepare_field() 1794 num_fields = V4L2_FIELD_HAS_BOTH(vbuf->field) ? 2 : 1; in fdp1_buf_prepare_field() 1796 fbuf->vb = vbuf; in fdp1_buf_prepare_field() 1799 for (i = 0; i < vbuf->vb2_buf.num_planes; ++i) in fdp1_buf_prepare_field() 1800 fbuf->addrs[i] = vb2_dma_contig_plane_dma_addr(&vbuf->vb2_buf, i); in fdp1_buf_prepare_field() 1802 switch (vbuf->field) { in fdp1_buf_prepare_field() [all …]
|
/drivers/media/platform/omap/ |
D | omap_voutdef.h | 120 struct vb2_v4l2_buffer vbuf; member 126 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vb2_to_omap_vout_buffer() local 128 return container_of(vbuf, struct omap_vout_buffer, vbuf); in vb2_to_omap_vout_buffer()
|
/drivers/media/test-drivers/vivid/ |
D | vivid-vbi-cap.c | 85 u8 *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_raw_vbi_cap_process() local 94 memset(vbuf, 0x10, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_raw_vbi_cap_process() 97 vivid_vbi_gen_raw(&dev->vbi_gen, &vbi, vbuf); in vivid_raw_vbi_cap_process() 104 struct v4l2_sliced_vbi_data *vbuf = in vivid_sliced_vbi_cap_process() local 113 memset(vbuf, 0, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_sliced_vbi_cap_process() 118 vbuf[i] = dev->vbi_gen.data[i]; in vivid_sliced_vbi_cap_process() 174 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_cap_buf_queue() local 176 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in vbi_cap_buf_queue()
|
D | vivid-kthread-cap.c | 226 void *vbuf; in plane_vaddr() local 230 vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in plane_vaddr() 232 vbuf += bpl[i] * h / tpg->vdownsampling[i]; in plane_vaddr() 233 return vbuf; in plane_vaddr() 454 void *vbuf = plane_vaddr(tpg, buf, p, in vivid_fillbuff() local 463 memset(vbuf, dev->fmt_cap->data_offset[p] & 0xff, in vivid_fillbuff() 465 vbuf += dev->fmt_cap->data_offset[p]; in vivid_fillbuff() 467 tpg_calc_text_basep(tpg, basep, p, vbuf); in vivid_fillbuff() 468 if (!is_loop || vivid_copy_buffer(dev, p, vbuf, buf)) in vivid_fillbuff() 470 p, vbuf); in vivid_fillbuff() [all …]
|
/drivers/staging/media/sunxi/cedrus/ |
D | cedrus_video.c | 422 struct vb2_v4l2_buffer *vbuf; in cedrus_queue_cleanup() local 426 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in cedrus_queue_cleanup() 428 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in cedrus_queue_cleanup() 430 if (!vbuf) in cedrus_queue_cleanup() 433 v4l2_ctrl_request_complete(vbuf->vb2_buf.req_obj.req, in cedrus_queue_cleanup() 435 v4l2_m2m_buf_done(vbuf, state); in cedrus_queue_cleanup() 441 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in cedrus_buf_out_validate() local 443 vbuf->field = V4L2_FIELD_NONE; in cedrus_buf_out_validate() 538 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in cedrus_buf_queue() local 541 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in cedrus_buf_queue()
|
/drivers/media/pci/cx23885/ |
D | cx23885-vbi.c | 130 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() local 132 struct cx23885_buffer *buf = container_of(vbuf, in buffer_prepare() 154 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() local 155 struct cx23885_buffer *buf = container_of(vbuf, in buffer_finish() 184 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local 186 struct cx23885_buffer *buf = container_of(vbuf, in buffer_queue()
|
/drivers/media/pci/cx88/ |
D | cx88-vbi.c | 131 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() local 133 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_prepare() 155 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() local 157 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_finish() 168 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local 170 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_queue()
|
/drivers/net/ethernet/8390/ |
D | mcf8390.c | 79 void ei_insb(u32 addr, void *vbuf, int len) in ei_insb() argument 84 buf = (u8 *) vbuf; in ei_insb() 92 void ei_insw(u32 addr, void *vbuf, int len) in ei_insw() argument 97 buf = (u16 *) vbuf; in ei_insw() 105 void ei_outsb(u32 addr, const void *vbuf, int len) in ei_outsb() argument 110 buf = (u8 *) vbuf; in ei_outsb() 118 void ei_outsw(u32 addr, const void *vbuf, int len) in ei_outsw() argument 123 buf = (u16 *) vbuf; in ei_outsw()
|
/drivers/media/platform/sunxi/sun6i-csi/ |
D | sun6i_video.c | 111 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in sun6i_video_buffer_prepare() local 113 container_of(vbuf, struct sun6i_csi_buffer, vb); in sun6i_video_buffer_prepare() 127 vbuf->field = video->fmt.fmt.pix.field; in sun6i_video_buffer_prepare() 246 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in sun6i_video_buffer_queue() local 248 container_of(vbuf, struct sun6i_csi_buffer, vb); in sun6i_video_buffer_queue() 262 struct vb2_v4l2_buffer *vbuf; in sun6i_video_frame_done() local 287 vbuf = &buf->vb; in sun6i_video_frame_done() 288 vbuf->vb2_buf.timestamp = ktime_get_ns(); in sun6i_video_frame_done() 289 vbuf->sequence = video->sequence; in sun6i_video_frame_done() 290 vb2_buffer_done(&vbuf->vb2_buf, VB2_BUF_STATE_DONE); in sun6i_video_frame_done()
|
/drivers/media/usb/uvc/ |
D | uvc_queue.c | 100 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_prepare() local 102 struct uvc_buffer *buf = uvc_vbuf_to_buffer(vbuf); in uvc_buffer_prepare() 128 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_queue() local 130 struct uvc_buffer *buf = uvc_vbuf_to_buffer(vbuf); in uvc_buffer_queue() 150 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_finish() local 153 struct uvc_buffer *buf = uvc_vbuf_to_buffer(vbuf); in uvc_buffer_finish() 156 uvc_video_clock_update(stream, vbuf, buf); in uvc_buffer_finish()
|
/drivers/staging/media/zoran/ |
D | zoran_driver.c | 859 struct vb2_v4l2_buffer *vbuf; in zr_set_buf() local 869 buf->vbuf.vb2_buf.timestamp = ktime_get_ns(); in zr_set_buf() 870 buf->vbuf.sequence = zr->vbseq++; in zr_set_buf() 871 vbuf = &buf->vbuf; in zr_set_buf() 873 buf->vbuf.field = V4L2_FIELD_INTERLACED; in zr_set_buf() 875 buf->vbuf.field = V4L2_FIELD_INTERLACED; in zr_set_buf() 877 buf->vbuf.field = V4L2_FIELD_TOP; in zr_set_buf() 878 vb2_set_plane_payload(&buf->vbuf.vb2_buf, 0, zr->buffer_size); in zr_set_buf() 879 vb2_buffer_done(&buf->vbuf.vb2_buf, VB2_BUF_STATE_DONE); in zr_set_buf() 900 vbuf = &buf->vbuf; in zr_set_buf() [all …]
|
D | zoran_device.c | 735 struct vb2_v4l2_buffer *vbuf; in zoran_feed_stat_com() local 754 vbuf = &buf->vbuf; in zoran_feed_stat_com() 755 vbuf->vb2_buf.state = VB2_BUF_STATE_ACTIVE; in zoran_feed_stat_com() 756 phys_addr = vb2_dma_contig_plane_dma_addr(&vbuf->vb2_buf, 0); in zoran_feed_stat_com() 757 payload = vb2_get_plane_payload(&vbuf->vb2_buf, 0); in zoran_feed_stat_com() 834 buf->vbuf.vb2_buf.timestamp = ktime_get_ns(); in zoran_reap_stat_com() 837 vb2_set_plane_payload(&buf->vbuf.vb2_buf, 0, size); in zoran_reap_stat_com() 844 buf->vbuf.sequence = zr->jpg_settings.tmp_dcm == in zoran_reap_stat_com() 848 buf->vbuf.field = zr->jpg_settings.odd_even ? in zoran_reap_stat_com() 851 buf->vbuf.field = zr->jpg_settings.odd_even ? in zoran_reap_stat_com() [all …]
|
D | zoran.h | 33 struct vb2_v4l2_buffer vbuf; member 39 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vb2_to_zr_buffer() local 41 return container_of(vbuf, struct zr_buffer, vbuf); in vb2_to_zr_buffer()
|
/drivers/media/usb/dvb-usb/ |
D | cxusb-analog.c | 457 cxdev->vbuf = in cxusb_medion_v_process_auxbuf() 461 list_del(&cxdev->vbuf->list); in cxusb_medion_v_process_auxbuf() 474 if (cxdev->vbuf) { in cxusb_medion_v_process_auxbuf() 475 cxdev->vbuf->vb2.vb2_buf.timestamp = ktime_get_ns(); in cxusb_medion_v_process_auxbuf() 476 bt656->buf = vb2_plane_vaddr(&cxdev->vbuf->vb2.vb2_buf, in cxusb_medion_v_process_auxbuf() 508 if (cxdev->vbuf) { in cxusb_medion_v_process_auxbuf() 509 vb2_set_plane_payload(&cxdev->vbuf->vb2.vb2_buf, 0, in cxusb_medion_v_process_auxbuf() 512 cxdev->vbuf->vb2.field = cxdev->field_order; in cxusb_medion_v_process_auxbuf() 513 cxdev->vbuf->vb2.sequence = cxdev->vbuf_sequence++; in cxusb_medion_v_process_auxbuf() 515 vb2_buffer_done(&cxdev->vbuf->vb2.vb2_buf, in cxusb_medion_v_process_auxbuf() [all …]
|
/drivers/media/pci/saa7134/ |
D | saa7134-ts.c | 69 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in saa7134_ts_buffer_init() local 71 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in saa7134_ts_buffer_init() 82 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in saa7134_ts_buffer_prepare() local 85 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in saa7134_ts_buffer_prepare() 99 vbuf->field = dev->field; in saa7134_ts_buffer_prepare()
|