/Linux-v4.19/drivers/gpu/drm/virtio/ |
D | virtgpu_vq.c | 99 struct virtio_gpu_vbuffer *vbuf; in virtio_gpu_get_vbuf() local 101 vbuf = kmem_cache_alloc(vgdev->vbufs, GFP_KERNEL); in virtio_gpu_get_vbuf() 102 if (!vbuf) in virtio_gpu_get_vbuf() 104 memset(vbuf, 0, VBUFFER_SIZE); in virtio_gpu_get_vbuf() 107 vbuf->buf = (void *)vbuf + sizeof(*vbuf); in virtio_gpu_get_vbuf() 108 vbuf->size = size; in virtio_gpu_get_vbuf() 110 vbuf->resp_cb = resp_cb; in virtio_gpu_get_vbuf() 111 vbuf->resp_size = resp_size; in virtio_gpu_get_vbuf() 113 vbuf->resp_buf = (void *)vbuf->buf + size; in virtio_gpu_get_vbuf() 115 vbuf->resp_buf = resp_buf; in virtio_gpu_get_vbuf() [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/include/trace/events/ |
D | v4l2.h | 204 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); 208 __entry->flags = vbuf->flags; 209 __entry->field = vbuf->field; 211 __entry->timecode_type = vbuf->timecode.type; 212 __entry->timecode_flags = vbuf->timecode.flags; 213 __entry->timecode_frames = vbuf->timecode.frames; 214 __entry->timecode_seconds = vbuf->timecode.seconds; 215 __entry->timecode_minutes = vbuf->timecode.minutes; 216 __entry->timecode_hours = vbuf->timecode.hours; 217 __entry->timecode_userbits0 = vbuf->timecode.userbits[0]; [all …]
|
/Linux-v4.19/drivers/media/platform/rockchip/rga/ |
D | rga-buf.c | 61 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in rga_buf_queue() local 64 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in rga_buf_queue() 71 struct vb2_v4l2_buffer *vbuf; in rga_buf_return_buffers() local 75 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in rga_buf_return_buffers() 77 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in rga_buf_return_buffers() 78 if (!vbuf) in rga_buf_return_buffers() 80 v4l2_m2m_buf_done(vbuf, state); in rga_buf_return_buffers()
|
/Linux-v4.19/drivers/staging/unisys/visornic/ |
D | visornic_main.c | 1434 char *vbuf; in info_debugfs_read() local 1438 vbuf = kzalloc(len, GFP_KERNEL); in info_debugfs_read() 1439 if (!vbuf) in info_debugfs_read() 1451 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() 1456 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() 1458 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() 1461 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() 1464 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() 1467 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() 1470 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() [all …]
|
/Linux-v4.19/drivers/media/platform/qcom/venus/ |
D | helpers.c | 413 struct vb2_v4l2_buffer *vbuf) in return_buf_error() argument 417 if (vbuf->vb2_buf.type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) in return_buf_error() 418 v4l2_m2m_src_buf_remove_by_buf(m2m_ctx, vbuf); in return_buf_error() 420 v4l2_m2m_dst_buf_remove_by_buf(m2m_ctx, vbuf); in return_buf_error() 422 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR); in return_buf_error() 426 session_process_buf(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) in session_process_buf() argument 428 struct venus_buffer *buf = to_venus_buffer(vbuf); in session_process_buf() 429 struct vb2_buffer *vb = &vbuf->vb2_buf; in session_process_buf() 440 fdata.clnt_data = vbuf->vb2_buf.index; in session_process_buf() 450 if (vbuf->flags & V4L2_BUF_FLAG_LAST || !fdata.filled_len) in session_process_buf() [all …]
|
/Linux-v4.19/include/media/ |
D | v4l2-mem2mem.h | 397 struct vb2_v4l2_buffer *vbuf); 582 struct vb2_v4l2_buffer *vbuf); 592 struct vb2_v4l2_buffer *vbuf) in v4l2_m2m_src_buf_remove_by_buf() argument 594 v4l2_m2m_buf_remove_by_buf(&m2m_ctx->out_q_ctx, vbuf); in v4l2_m2m_src_buf_remove_by_buf() 605 struct vb2_v4l2_buffer *vbuf) in v4l2_m2m_dst_buf_remove_by_buf() argument 607 v4l2_m2m_buf_remove_by_buf(&m2m_ctx->cap_q_ctx, vbuf); in v4l2_m2m_dst_buf_remove_by_buf()
|
/Linux-v4.19/drivers/media/pci/cx23885/ |
D | cx23885-vbi.c | 140 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() local 142 struct cx23885_buffer *buf = container_of(vbuf, in buffer_prepare() 164 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() local 165 struct cx23885_buffer *buf = container_of(vbuf, in buffer_finish() 194 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local 196 struct cx23885_buffer *buf = container_of(vbuf, in buffer_queue()
|
/Linux-v4.19/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() 156 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() local 158 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()
|
/Linux-v4.19/drivers/media/platform/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() 106 struct v4l2_sliced_vbi_data *vbuf = in vivid_sliced_vbi_cap_process() local 115 memset(vbuf, 0, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_sliced_vbi_cap_process() 120 vbuf[i] = dev->vbi_gen.data[i]; in vivid_sliced_vbi_cap_process() 178 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_cap_buf_queue() local 180 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in vbi_cap_buf_queue()
|
D | vivid-kthread-cap.c | 225 void *vbuf; in plane_vaddr() local 229 vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in plane_vaddr() 231 vbuf += bpl[i] * h / tpg->vdownsampling[i]; in plane_vaddr() 232 return vbuf; in plane_vaddr() 458 void *vbuf = plane_vaddr(tpg, buf, p, in vivid_fillbuff() local 467 memset(vbuf, dev->fmt_cap->data_offset[p] & 0xff, in vivid_fillbuff() 469 vbuf += dev->fmt_cap->data_offset[p]; in vivid_fillbuff() 471 tpg_calc_text_basep(tpg, basep, p, vbuf); in vivid_fillbuff() 472 if (!is_loop || vivid_copy_buffer(dev, p, vbuf, buf)) in vivid_fillbuff() 474 p, vbuf); in vivid_fillbuff() [all …]
|
D | vivid-sdr-cap.c | 239 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in sdr_cap_buf_queue() local 241 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in sdr_cap_buf_queue() 492 u8 *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_sdr_cap_process() local 539 *vbuf++ = DIV_ROUND_CLOSEST(fixp_i, FIXP_FRAC * 10); in vivid_sdr_cap_process() 540 *vbuf++ = DIV_ROUND_CLOSEST(fixp_q, FIXP_FRAC * 10); in vivid_sdr_cap_process() 547 *vbuf++ = DIV_ROUND_CLOSEST(fixp_i, FIXP_FRAC * 10); in vivid_sdr_cap_process() 548 *vbuf++ = DIV_ROUND_CLOSEST(fixp_q, FIXP_FRAC * 10); in vivid_sdr_cap_process()
|
/Linux-v4.19/drivers/media/common/videobuf2/ |
D | videobuf2-v4l2.c | 124 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __copy_timestamp() local 134 vbuf->flags |= b->flags & V4L2_BUF_FLAG_TIMECODE; in __copy_timestamp() 136 vbuf->timecode = b->timecode; in __copy_timestamp() 191 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __fill_v4l2_buffer() local 201 b->flags = vbuf->flags; in __fill_v4l2_buffer() 202 b->field = vbuf->field; in __fill_v4l2_buffer() 204 b->timecode = vbuf->timecode; in __fill_v4l2_buffer() 205 b->sequence = vbuf->sequence; in __fill_v4l2_buffer() 299 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __fill_vb2_buffer() local 322 vbuf->sequence = 0; in __fill_vb2_buffer() [all …]
|
/Linux-v4.19/drivers/media/platform/sti/hva/ |
D | hva-v4l2.c | 824 frame->vbuf.sequence = ctx->frame_num++; in hva_run_work() 935 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in hva_buf_prepare() local 938 struct hva_frame *frame = to_hva_frame(vbuf); in hva_buf_prepare() 940 if (vbuf->field == V4L2_FIELD_ANY) in hva_buf_prepare() 941 vbuf->field = V4L2_FIELD_NONE; in hva_buf_prepare() 942 if (vbuf->field != V4L2_FIELD_NONE) { in hva_buf_prepare() 945 ctx->name, vb->index, vbuf->field); in hva_buf_prepare() 951 frame->vaddr = vb2_plane_vaddr(&vbuf->vb2_buf, 0); in hva_buf_prepare() 953 &vbuf->vb2_buf, 0); in hva_buf_prepare() 963 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)
|
/Linux-v4.19/drivers/media/platform/ |
D | rcar_fdp1.c | 1180 struct vb2_v4l2_buffer *vbuf; in fdp1_prepare_job() local 1214 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in fdp1_prepare_job() 1215 fbuf = to_fdp1_buffer(vbuf); in fdp1_prepare_job() 1788 struct vb2_v4l2_buffer *vbuf, in fdp1_buf_prepare_field() argument 1791 struct fdp1_buffer *buf = to_fdp1_buffer(vbuf); in fdp1_buf_prepare_field() 1796 num_fields = V4L2_FIELD_HAS_BOTH(vbuf->field) ? 2 : 1; in fdp1_buf_prepare_field() 1798 fbuf->vb = vbuf; in fdp1_buf_prepare_field() 1801 for (i = 0; i < vbuf->vb2_buf.num_planes; ++i) in fdp1_buf_prepare_field() 1802 fbuf->addrs[i] = vb2_dma_contig_plane_dma_addr(&vbuf->vb2_buf, i); in fdp1_buf_prepare_field() 1804 switch (vbuf->field) { in fdp1_buf_prepare_field() [all …]
|
/Linux-v4.19/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()
|
/Linux-v4.19/drivers/media/usb/uvc/ |
D | uvc_queue.c | 111 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_prepare() local 113 struct uvc_buffer *buf = uvc_vbuf_to_buffer(vbuf); in uvc_buffer_prepare() 138 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_queue() local 140 struct uvc_buffer *buf = uvc_vbuf_to_buffer(vbuf); in uvc_buffer_queue() 159 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_finish() local 162 struct uvc_buffer *buf = uvc_vbuf_to_buffer(vbuf); in uvc_buffer_finish() 165 uvc_video_clock_update(stream, vbuf, buf); in uvc_buffer_finish()
|
/Linux-v4.19/drivers/media/platform/soc_camera/ |
D | sh_mobile_ceu_camera.c | 144 static struct sh_mobile_ceu_buffer *to_ceu_vb(struct vb2_v4l2_buffer *vbuf) in to_ceu_vb() argument 146 return container_of(vbuf, struct sh_mobile_ceu_buffer, vb); in to_ceu_vb() 338 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in sh_mobile_ceu_videobuf_prepare() local 339 struct sh_mobile_ceu_buffer *buf = to_ceu_vb(vbuf); in sh_mobile_ceu_videobuf_prepare() 349 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in sh_mobile_ceu_videobuf_queue() local 353 struct sh_mobile_ceu_buffer *buf = to_ceu_vb(vbuf); in sh_mobile_ceu_videobuf_queue() 387 pcdev->active = vbuf; in sh_mobile_ceu_videobuf_queue() 400 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in sh_mobile_ceu_videobuf_release() local 403 struct sh_mobile_ceu_buffer *buf = to_ceu_vb(vbuf); in sh_mobile_ceu_videobuf_release() 408 if (pcdev->active == vbuf) { in sh_mobile_ceu_videobuf_release() [all …]
|
/Linux-v4.19/drivers/media/platform/vsp1/ |
D | vsp1_video.h | 26 to_vsp1_vb2_buffer(struct vb2_v4l2_buffer *vbuf) in to_vsp1_vb2_buffer() argument 28 return container_of(vbuf, struct vsp1_vb2_buffer, buf); in to_vsp1_vb2_buffer()
|
/Linux-v4.19/drivers/staging/media/imx/ |
D | imx-media.h | 74 struct vb2_v4l2_buffer vbuf; /* v4l buffer must be first */ member 91 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in to_imx_media_vb() local 93 return container_of(vbuf, struct imx_media_buffer, vbuf); in to_imx_media_vb()
|
/Linux-v4.19/drivers/media/pci/saa7134/ |
D | saa7134-ts.c | 78 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in saa7134_ts_buffer_init() local 80 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in saa7134_ts_buffer_init() 91 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in saa7134_ts_buffer_prepare() local 94 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in saa7134_ts_buffer_prepare() 108 vbuf->field = dev->field; in saa7134_ts_buffer_prepare()
|
D | saa7134-vbi.c | 118 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in buffer_prepare() local 119 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in buffer_prepare() 160 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in buffer_init() local 161 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in buffer_init()
|
/Linux-v4.19/drivers/media/platform/vimc/ |
D | vimc-capture.c | 230 struct vimc_cap_buffer *vbuf, *node; in vimc_cap_return_all_buffers() local 234 list_for_each_entry_safe(vbuf, node, &vcap->buf_list, list) { in vimc_cap_return_all_buffers() 235 list_del(&vbuf->list); in vimc_cap_return_all_buffers() 236 vb2_buffer_done(&vbuf->vb2.vb2_buf, state); in vimc_cap_return_all_buffers() 364 void *vbuf; in vimc_cap_process_frame() local 386 vbuf = vb2_plane_vaddr(&vimc_buf->vb2.vb2_buf, 0); in vimc_cap_process_frame() 388 memcpy(vbuf, frame, vcap->format.sizeimage); in vimc_cap_process_frame()
|
/Linux-v4.19/drivers/media/usb/au0828/ |
D | au0828-vbi.c | 68 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_buffer_queue() local 70 container_of(vbuf, struct au0828_buffer, vb); in vbi_buffer_queue()
|