Home
last modified time | relevance | path

Searched refs:vbuf (Results 1 – 25 of 158) sorted by relevance

1234567

/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/
Dvirtgpu_vq.c92 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 …]
/kernel/linux/linux-5.10/drivers/staging/media/meson/vdec/
Dvdec_helpers.c274 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 …]
Desparser.c292 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 …]
/kernel/linux/linux-5.10/drivers/media/platform/sti/delta/
Ddelta-v4l2.c28 #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 …]
/kernel/linux/linux-5.10/include/trace/events/
Dv4l2.h204 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 …]
/kernel/linux/linux-5.10/drivers/media/platform/rockchip/rga/
Drga-buf.c53 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()
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/
Dvideobuf2-v4l2.c136 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 …]
/kernel/linux/linux-5.10/drivers/staging/unisys/visornic/
Dvisornic_main.c1432 char *vbuf; in info_debugfs_read() local
1436 vbuf = kzalloc(len, GFP_KERNEL); in info_debugfs_read()
1437 if (!vbuf) in info_debugfs_read()
1449 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()
1456 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
1459 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
1462 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
1465 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
1468 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/
Dhelpers.c372 struct vb2_v4l2_buffer *vbuf) in return_buf_error() argument
376 if (vbuf->vb2_buf.type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) in return_buf_error()
377 v4l2_m2m_src_buf_remove_by_buf(m2m_ctx, vbuf); in return_buf_error()
379 v4l2_m2m_dst_buf_remove_by_buf(m2m_ctx, vbuf); in return_buf_error()
381 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR); in return_buf_error()
385 put_ts_metadata(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) in put_ts_metadata() argument
387 struct vb2_buffer *vb = &vbuf->vb2_buf; in put_ts_metadata()
407 inst->tss[slot].flags = vbuf->flags; in put_ts_metadata()
408 inst->tss[slot].tc = vbuf->timecode; in put_ts_metadata()
414 struct vb2_v4l2_buffer *vbuf) in venus_helper_get_ts_metadata() argument
[all …]
/kernel/linux/linux-5.10/include/media/
Dv4l2-mem2mem.h293 struct vb2_v4l2_buffer *vbuf) in v4l2_m2m_is_last_draining_src_buf() argument
295 return m2m_ctx->is_draining && vbuf == m2m_ctx->last_src_buf; in v4l2_m2m_is_last_draining_src_buf()
305 struct vb2_v4l2_buffer *vbuf);
580 struct vb2_v4l2_buffer *vbuf);
771 struct vb2_v4l2_buffer *vbuf);
781 struct vb2_v4l2_buffer *vbuf) in v4l2_m2m_src_buf_remove_by_buf() argument
783 v4l2_m2m_buf_remove_by_buf(&m2m_ctx->out_q_ctx, vbuf); in v4l2_m2m_src_buf_remove_by_buf()
794 struct vb2_v4l2_buffer *vbuf) in v4l2_m2m_dst_buf_remove_by_buf() argument
796 v4l2_m2m_buf_remove_by_buf(&m2m_ctx->cap_q_ctx, vbuf); in v4l2_m2m_dst_buf_remove_by_buf()
/kernel/linux/linux-5.10/drivers/media/platform/omap/
Domap_voutdef.h120 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()
/kernel/linux/linux-5.10/drivers/staging/media/sunxi/cedrus/
Dcedrus_video.c413 struct vb2_v4l2_buffer *vbuf; in cedrus_queue_cleanup() local
417 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in cedrus_queue_cleanup()
419 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in cedrus_queue_cleanup()
421 if (!vbuf) in cedrus_queue_cleanup()
424 v4l2_ctrl_request_complete(vbuf->vb2_buf.req_obj.req, in cedrus_queue_cleanup()
426 v4l2_m2m_buf_done(vbuf, state); in cedrus_queue_cleanup()
432 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in cedrus_buf_out_validate() local
434 vbuf->field = V4L2_FIELD_NONE; in cedrus_buf_out_validate()
527 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in cedrus_buf_queue() local
530 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in cedrus_buf_queue()
/kernel/linux/linux-5.10/drivers/media/pci/cx88/
Dcx88-vbi.c131 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()
167 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local
169 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_queue()
/kernel/linux/linux-5.10/drivers/media/pci/cx23885/
Dcx23885-vbi.c130 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()
/kernel/linux/linux-5.10/drivers/media/test-drivers/vivid/
Dvivid-vbi-cap.c85 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()
/kernel/linux/linux-5.10/drivers/media/platform/sti/hva/
Dhva-v4l2.c826 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 …]
Dhva.h116 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)
/kernel/linux/linux-5.10/drivers/media/platform/
Drcar_fdp1.c1182 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()
1790 struct vb2_v4l2_buffer *vbuf, in fdp1_buf_prepare_field() argument
1793 struct fdp1_buffer *buf = to_fdp1_buffer(vbuf); in fdp1_buf_prepare_field()
1798 num_fields = V4L2_FIELD_HAS_BOTH(vbuf->field) ? 2 : 1; in fdp1_buf_prepare_field()
1800 fbuf->vb = vbuf; in fdp1_buf_prepare_field()
1803 for (i = 0; i < vbuf->vb2_buf.num_planes; ++i) in fdp1_buf_prepare_field()
1804 fbuf->addrs[i] = vb2_dma_contig_plane_dma_addr(&vbuf->vb2_buf, i); in fdp1_buf_prepare_field()
1806 switch (vbuf->field) { in fdp1_buf_prepare_field()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/8390/
Dmcf8390.c79 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()
/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun6i-csi/
Dsun6i_video.c111 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()
/kernel/linux/linux-5.10/drivers/staging/media/zoran/
Dzoran.h33 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()
Dzoran_driver.c857 struct vb2_v4l2_buffer *vbuf; in zr_set_buf() local
867 buf->vbuf.vb2_buf.timestamp = ktime_get_ns(); in zr_set_buf()
868 buf->vbuf.sequence = zr->vbseq++; in zr_set_buf()
869 vbuf = &buf->vbuf; in zr_set_buf()
871 buf->vbuf.field = V4L2_FIELD_INTERLACED; in zr_set_buf()
873 buf->vbuf.field = V4L2_FIELD_INTERLACED; in zr_set_buf()
875 buf->vbuf.field = V4L2_FIELD_TOP; in zr_set_buf()
876 vb2_set_plane_payload(&buf->vbuf.vb2_buf, 0, zr->buffer_size); in zr_set_buf()
877 vb2_buffer_done(&buf->vbuf.vb2_buf, VB2_BUF_STATE_DONE); in zr_set_buf()
898 vbuf = &buf->vbuf; in zr_set_buf()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/uvc/
Duvc_queue.c106 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_prepare() local
108 struct uvc_buffer *buf = uvc_vbuf_to_buffer(vbuf); in uvc_buffer_prepare()
133 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_queue() local
135 struct uvc_buffer *buf = uvc_vbuf_to_buffer(vbuf); in uvc_buffer_queue()
155 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_finish() local
158 struct uvc_buffer *buf = uvc_vbuf_to_buffer(vbuf); in uvc_buffer_finish()
161 uvc_video_clock_update(stream, vbuf, buf); in uvc_buffer_finish()
/kernel/linux/linux-5.10/drivers/media/platform/vsp1/
Dvsp1_video.h26 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()
/kernel/linux/linux-5.10/drivers/media/pci/saa7134/
Dsaa7134-ts.c69 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()

1234567