Home
last modified time | relevance | path

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

12

/linux/drivers/staging/media/meson/vdec/
H A Dvdec_helpers.c274 struct vb2_v4l2_buffer *vbuf, in dst_buf_done() argument
283 vb2_set_plane_payload(&vbuf->vb2_buf, 0, output_size); in dst_buf_done()
284 vb2_set_plane_payload(&vbuf->vb2_buf, 1, output_size / 2); in dst_buf_done()
287 vb2_set_plane_payload(&vbuf->vb2_buf, 0, output_size); in dst_buf_done()
288 vb2_set_plane_payload(&vbuf->vb2_buf, 1, output_size / 4); in dst_buf_done()
289 vb2_set_plane_payload(&vbuf->vb2_buf, 2, 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 …]
H A Desparser.c291 esparser_queue(struct amvdec_session *sess, struct vb2_v4l2_buffer *vbuf) in esparser_queue() argument
294 struct vb2_buffer *vb = &vbuf->vb2_buf; in esparser_queue()
325 v4l2_m2m_src_buf_remove_by_buf(sess->m2m_ctx, vbuf); in esparser_queue()
329 ret = amvdec_add_ts(sess, vb->timestamp, vbuf->timecode, offset, vbuf->flags); in esparser_queue()
331 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR); in esparser_queue()
336 vb->timestamp, payload_size, offset, vbuf->flags); in esparser_queue()
338 vbuf->flags = 0; in esparser_queue()
339 vbuf->field = V4L2_FIELD_NONE; in esparser_queue()
340 vbuf->sequence = sess->sequence_out++; in esparser_queue()
348 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR); in esparser_queue()
[all …]
H A Dvdec_helpers.h45 struct vb2_v4l2_buffer *vbuf, u32 field);
47 struct vb2_v4l2_buffer *vbuf,
H A Dcodec_vp9.c427 struct vb2_v4l2_buffer *vbuf; member
673 amvdec_dst_buf_done(sess, tmp->vbuf, in codec_vp9_flush_output()
676 v4l2_m2m_buf_queue(sess->m2m_ctx, tmp->vbuf); in codec_vp9_flush_output()
1192 struct vb2_v4l2_buffer *vbuf; in codec_vp9_get_new_frame() local
1199 vbuf = v4l2_m2m_dst_buf_remove(sess->m2m_ctx); in codec_vp9_get_new_frame()
1200 if (!vbuf) { in codec_vp9_get_new_frame()
1206 while (codec_vp9_get_frame_by_idx(vp9, vbuf->vb2_buf.index)) { in codec_vp9_get_new_frame()
1207 struct vb2_v4l2_buffer *old_vbuf = vbuf; in codec_vp9_get_new_frame()
1209 vbuf = v4l2_m2m_dst_buf_remove(sess->m2m_ctx); in codec_vp9_get_new_frame()
1211 if (!vbuf) { in codec_vp9_get_new_frame()
[all …]
/linux/include/trace/events/
H A 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/drivers/media/common/videobuf2/
H A 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 …]
/linux/drivers/media/pci/zoran/
H A Dzoran_device.c736 struct vb2_v4l2_buffer *vbuf; in zoran_feed_stat_com() local
755 vbuf = &buf->vbuf; in zoran_feed_stat_com()
756 vbuf->vb2_buf.state = VB2_BUF_STATE_ACTIVE; in zoran_feed_stat_com()
757 phys_addr = vb2_dma_contig_plane_dma_addr(&vbuf->vb2_buf, 0); in zoran_feed_stat_com()
758 payload = vb2_get_plane_payload(&vbuf->vb2_buf, 0); in zoran_feed_stat_com()
837 buf->vbuf.vb2_buf.timestamp = ktime_get_ns(); in zoran_reap_stat_com()
840 vb2_set_plane_payload(&buf->vbuf.vb2_buf, 0, size); in zoran_reap_stat_com()
847 buf->vbuf.sequence = zr->jpg_settings.tmp_dcm == in zoran_reap_stat_com()
851 buf->vbuf.field = zr->jpg_settings.odd_even ? in zoran_reap_stat_com()
854 buf->vbuf.field = zr->jpg_settings.odd_even ? in zoran_reap_stat_com()
[all …]
/linux/drivers/media/pci/saa7134/
H A 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()
H A Dsaa7134-vbi.c109 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in buffer_prepare() local
110 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in buffer_prepare()
151 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in buffer_init() local
152 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in buffer_init()
/linux/drivers/media/platform/qcom/venus/
H A Dhelpers.h18 struct vb2_v4l2_buffer *vbuf, unsigned int type,
52 void venus_helper_acquire_buf_ref(struct vb2_v4l2_buffer *vbuf);
69 struct vb2_v4l2_buffer *vbuf);
/linux/drivers/staging/media/imx/
H A Dimx-media.h100 struct vb2_v4l2_buffer vbuf; /* v4l buffer must be first */ member
119 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in to_imx_media_vb() local
121 return container_of(vbuf, struct imx_media_buffer, vbuf); in to_imx_media_vb()
H A Dimx-ic-prpencvf.c207 done->vbuf.field = vdev->fmt.field; in prp_vb2_buf_done()
208 done->vbuf.sequence = priv->frame_sequence; in prp_vb2_buf_done()
209 vb = &done->vbuf.vb2_buf; in prp_vb2_buf_done()
221 phys = vb2_dma_contig_plane_dma_addr(&next->vbuf.vb2_buf, 0); in prp_vb2_buf_done()
319 &buf->vbuf.vb2_buf, 0); in prp_setup_vb2_buf()
337 struct vb2_buffer *vb = &buf->vbuf.vb2_buf; in prp_unsetup_vb2_buf()
/linux/drivers/media/platform/renesas/vsp1/
H A 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/drivers/media/common/saa7146/
H A Dsaa7146_vbi.c236 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buf_queue() local
239 struct saa7146_buf *buf = container_of(vbuf, struct saa7146_buf, vb); in buf_queue()
250 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buf_init() local
251 struct saa7146_buf *buf = container_of(vbuf, struct saa7146_buf, vb); in buf_init()
282 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buf_cleanup() local
283 struct saa7146_buf *buf = container_of(vbuf, struct saa7146_buf, vb); in buf_cleanup()
H A Dsaa7146_video.c573 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buf_queue() local
576 struct saa7146_buf *buf = container_of(vbuf, struct saa7146_buf, vb); in buf_queue()
587 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buf_init() local
588 struct saa7146_buf *buf = container_of(vbuf, struct saa7146_buf, vb); in buf_init()
627 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buf_cleanup() local
628 struct saa7146_buf *buf = container_of(vbuf, struct saa7146_buf, vb); in buf_cleanup()
/linux/drivers/media/pci/mgb4/
H A Dmgb4_io.h29 static inline struct mgb4_frame_buffer *to_frame_buffer(struct vb2_v4l2_buffer *vbuf) in to_frame_buffer() argument
31 return container_of(vbuf, struct mgb4_frame_buffer, vb); in to_frame_buffer()
/linux/mm/kmsan/
H A Dkmsan_test.c321 void *vbuf; in test_init_kmsan_vmap_vunmap() local
328 vbuf = vmap(pages, npages, VM_MAP, PAGE_KERNEL); in test_init_kmsan_vmap_vunmap()
329 memset(vbuf, 0xfe, npages * PAGE_SIZE); in test_init_kmsan_vmap_vunmap()
333 if (vbuf) in test_init_kmsan_vmap_vunmap()
334 vunmap(vbuf); in test_init_kmsan_vmap_vunmap()
/linux/drivers/media/i2c/
H A Dvideo-i2c.c413 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() local
420 vbuf->field = V4L2_FIELD_NONE; in buffer_prepare()
428 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local
431 container_of(vbuf, struct video_i2c_buffer, vb); in buffer_queue()
466 void *vbuf = vb2_plane_vaddr(vb2_buf, 0); in video_i2c_thread_vid_cap() local
469 ret = data->chip->xfer(data, vbuf); in video_i2c_thread_vid_cap()
/linux/drivers/media/platform/st/sti/hva/
H A Dhva-debugfs.c186 bytesused = vb2_get_plane_payload(&stream->vbuf.vb2_buf, 0); in hva_dbg_perf_end()
187 div = stream->vbuf.vb2_buf.timestamp; in hva_dbg_perf_end()
197 stream->vbuf.sequence, in hva_dbg_perf_end()
H A Dhva-h264.c818 stream->vbuf.flags |= V4L2_BUF_FLAG_KEYFRAME; in hva_h264_prepare_task()
821 stream->vbuf.flags &= ~V4L2_BUF_FLAG_KEYFRAME; in hva_h264_prepare_task()
843 if ((stream->vbuf.flags == V4L2_BUF_FLAG_KEYFRAME) && in hva_h264_prepare_task()
851 if (stream->vbuf.flags != V4L2_BUF_FLAG_KEYFRAME) in hva_h264_prepare_task()
/linux/drivers/media/platform/st/sti/delta/
H A Ddelta.h100 struct vb2_v4l2_buffer vbuf; /* keep first */ member
169 struct vb2_v4l2_buffer vbuf; /* keep first */ member
/linux/drivers/media/pci/bt8xx/
H A Dbttv-risc.c518 struct sg_table *sgt = vb2_dma_sg_plane_desc(&buf->vbuf.vb2_buf, 0); in bttv_buffer_risc_vbi()
664 struct sg_table *sgt = vb2_dma_sg_plane_desc(&buf->vbuf.vb2_buf, 0); in bttv_buffer_risc()
674 V4L2_FIELD_HAS_BOTH(buf->vbuf.field), tvnorm, in bttv_buffer_risc()
676 switch (buf->vbuf.field) { in bttv_buffer_risc()
721 switch (buf->vbuf.field) { in bttv_buffer_risc()
790 buf->vbuf.field = V4L2_FIELD_SEQ_TB; in bttv_buffer_risc()
/linux/sound/soc/codecs/
H A Drtq9124.c400 u8 reg = *(u8 *)data, *vbuf; in rtq9124_regmap_write() local
405 vbuf = size == 4 ? (u8 *)&val32 : (u8 *)&val16; in rtq9124_regmap_write()
406 return i2c_smbus_write_i2c_block_data(i2c, reg, size, vbuf); in rtq9124_regmap_write()
/linux/drivers/media/dvb-core/
H A Ddvb_vb2.c255 void *vbuf = NULL; in dvb_vb2_fill_buffer() local
294 vbuf = vb2_plane_vaddr(&ctx->buf->vb, 0); in dvb_vb2_fill_buffer()
295 memcpy(vbuf + ctx->offset, psrc, ll); in dvb_vb2_fill_buffer()
/linux/include/media/tpg/
H A Dv4l2-tpg.h247 u8 *basep[TPG_MAX_PLANES][2], unsigned p, u8 *vbuf);
250 unsigned p, u8 *vbuf);
252 unsigned p, u8 *vbuf);

12