Home
last modified time | relevance | path

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

123456

/Linux-v5.4/drivers/gpu/drm/virtio/
Dvirtgpu_vq.c81 struct virtio_gpu_vbuffer *vbuf; in virtio_gpu_get_vbuf() local
83 vbuf = kmem_cache_zalloc(vgdev->vbufs, GFP_KERNEL); in virtio_gpu_get_vbuf()
84 if (!vbuf) in virtio_gpu_get_vbuf()
88 vbuf->buf = (void *)vbuf + sizeof(*vbuf); in virtio_gpu_get_vbuf()
89 vbuf->size = size; in virtio_gpu_get_vbuf()
91 vbuf->resp_cb = resp_cb; in virtio_gpu_get_vbuf()
92 vbuf->resp_size = resp_size; in virtio_gpu_get_vbuf()
94 vbuf->resp_buf = (void *)vbuf->buf + size; in virtio_gpu_get_vbuf()
96 vbuf->resp_buf = resp_buf; in virtio_gpu_get_vbuf()
97 BUG_ON(!vbuf->resp_buf); in virtio_gpu_get_vbuf()
[all …]
/Linux-v5.4/drivers/staging/media/meson/vdec/
Dvdec_helpers.c253 struct vb2_v4l2_buffer *vbuf, in dst_buf_done() argument
262 vbuf->vb2_buf.planes[0].bytesused = output_size; in dst_buf_done()
263 vbuf->vb2_buf.planes[1].bytesused = output_size / 2; in dst_buf_done()
266 vbuf->vb2_buf.planes[0].bytesused = output_size; in dst_buf_done()
267 vbuf->vb2_buf.planes[1].bytesused = output_size / 4; in dst_buf_done()
268 vbuf->vb2_buf.planes[2].bytesused = output_size / 4; in dst_buf_done()
272 vbuf->vb2_buf.timestamp = timestamp; in dst_buf_done()
273 vbuf->sequence = sess->sequence_cap++; in dst_buf_done()
281 vbuf->flags |= V4L2_BUF_FLAG_LAST; in dst_buf_done()
286 dev_dbg(dev, "Buffer %u done\n", vbuf->vb2_buf.index); in dst_buf_done()
[all …]
Desparser.c178 esparser_queue(struct amvdec_session *sess, struct vb2_v4l2_buffer *vbuf) in esparser_queue() argument
181 struct vb2_buffer *vb = &vbuf->vb2_buf; in esparser_queue()
199 v4l2_m2m_src_buf_remove_by_buf(sess->m2m_ctx, vbuf); in esparser_queue()
213 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR); in esparser_queue()
230 vbuf->flags = 0; in esparser_queue()
231 vbuf->field = V4L2_FIELD_NONE; in esparser_queue()
232 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_DONE); in esparser_queue()
/Linux-v5.4/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 …]
/Linux-v5.4/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 …]
/Linux-v5.4/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()
/Linux-v5.4/drivers/media/platform/qcom/venus/
Dhelpers.c454 struct vb2_v4l2_buffer *vbuf) in return_buf_error() argument
458 if (vbuf->vb2_buf.type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) in return_buf_error()
459 v4l2_m2m_src_buf_remove_by_buf(m2m_ctx, vbuf); in return_buf_error()
461 v4l2_m2m_dst_buf_remove_by_buf(m2m_ctx, vbuf); in return_buf_error()
463 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR); in return_buf_error()
467 put_ts_metadata(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) in put_ts_metadata() argument
469 struct vb2_buffer *vb = &vbuf->vb2_buf; in put_ts_metadata()
489 inst->tss[slot].flags = vbuf->flags; in put_ts_metadata()
490 inst->tss[slot].tc = vbuf->timecode; in put_ts_metadata()
496 struct vb2_v4l2_buffer *vbuf) in venus_helper_get_ts_metadata() argument
[all …]
/Linux-v5.4/drivers/media/common/videobuf2/
Dvideobuf2-v4l2.c129 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __init_vb2_v4l2_buffer() local
131 vbuf->request_fd = -1; in __init_vb2_v4l2_buffer()
137 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __copy_timestamp() local
147 vbuf->flags |= b->flags & V4L2_BUF_FLAG_TIMECODE; in __copy_timestamp()
149 vbuf->timecode = b->timecode; in __copy_timestamp()
172 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vb2_fill_vb2_v4l2_buffer() local
173 struct vb2_plane *planes = vbuf->planes; in vb2_fill_vb2_v4l2_buffer()
195 vbuf->sequence = 0; in vb2_fill_vb2_v4l2_buffer()
196 vbuf->request_fd = -1; in vb2_fill_vb2_v4l2_buffer()
305 vbuf->flags = b->flags & ~V4L2_BUFFER_MASK_FLAGS; in vb2_fill_vb2_v4l2_buffer()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/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()
/Linux-v5.4/drivers/staging/media/sunxi/cedrus/
Dcedrus_video.c397 struct vb2_v4l2_buffer *vbuf; in cedrus_queue_cleanup() local
401 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in cedrus_queue_cleanup()
403 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in cedrus_queue_cleanup()
405 if (!vbuf) in cedrus_queue_cleanup()
408 v4l2_ctrl_request_complete(vbuf->vb2_buf.req_obj.req, in cedrus_queue_cleanup()
410 v4l2_m2m_buf_done(vbuf, state); in cedrus_queue_cleanup()
416 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in cedrus_buf_out_validate() local
418 vbuf->field = V4L2_FIELD_NONE; in cedrus_buf_out_validate()
484 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in cedrus_buf_queue() local
487 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in cedrus_buf_queue()
/Linux-v5.4/include/media/
Dv4l2-mem2mem.h393 struct vb2_v4l2_buffer *vbuf);
584 struct vb2_v4l2_buffer *vbuf);
594 struct vb2_v4l2_buffer *vbuf) in v4l2_m2m_src_buf_remove_by_buf() argument
596 v4l2_m2m_buf_remove_by_buf(&m2m_ctx->out_q_ctx, vbuf); in v4l2_m2m_src_buf_remove_by_buf()
607 struct vb2_v4l2_buffer *vbuf) in v4l2_m2m_dst_buf_remove_by_buf() argument
609 v4l2_m2m_buf_remove_by_buf(&m2m_ctx->cap_q_ctx, vbuf); in v4l2_m2m_dst_buf_remove_by_buf()
/Linux-v5.4/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()
/Linux-v5.4/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()
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-v5.4/drivers/media/platform/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()
/Linux-v5.4/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)
/Linux-v5.4/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 …]
/Linux-v5.4/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()
/Linux-v5.4/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()
244 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in sun6i_video_buffer_queue() local
246 container_of(vbuf, struct sun6i_csi_buffer, vb); in sun6i_video_buffer_queue()
260 struct vb2_v4l2_buffer *vbuf; in sun6i_video_frame_done() local
285 vbuf = &buf->vb; in sun6i_video_frame_done()
286 vbuf->vb2_buf.timestamp = ktime_get_ns(); in sun6i_video_frame_done()
287 vbuf->sequence = video->sequence; in sun6i_video_frame_done()
288 vb2_buffer_done(&vbuf->vb2_buf, VB2_BUF_STATE_DONE); in sun6i_video_frame_done()
/Linux-v5.4/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()
/Linux-v5.4/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()
/Linux-v5.4/drivers/staging/media/hantro/
Dhantro_v4l2.c595 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in hantro_buf_queue() local
597 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in hantro_buf_queue()
641 struct vb2_v4l2_buffer *vbuf; in hantro_return_bufs() local
643 vbuf = buf_remove(ctx->fh.m2m_ctx); in hantro_return_bufs()
644 if (!vbuf) in hantro_return_bufs()
646 v4l2_ctrl_request_complete(vbuf->vb2_buf.req_obj.req, in hantro_return_bufs()
648 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR); in hantro_return_bufs()
681 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in hantro_buf_out_validate() local
683 vbuf->field = V4L2_FIELD_NONE; in hantro_buf_out_validate()
/Linux-v5.4/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()
/Linux-v5.4/drivers/media/usb/dvb-usb/
Dcxusb-analog.c457 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 …]

123456