Home
last modified time | relevance | path

Searched refs:vb (Results 1 – 25 of 145) sorted by relevance

123456

/linux/drivers/media/usb/go7007/
H A Dgo7007-driver.c381 static inline void store_byte(struct go7007_buffer *vb, u8 byte) in store_byte() argument
383 if (vb && vb->vb.vb2_buf.planes[0].bytesused < GO7007_BUF_SIZE) { in store_byte()
384 u8 *ptr = vb2_plane_vaddr(&vb->vb.vb2_buf, 0); in store_byte()
386 ptr[vb->vb.vb2_buf.planes[0].bytesused++] = byte; in store_byte()
390 static void go7007_set_motion_regions(struct go7007 *go, struct go7007_buffer *vb, in go7007_set_motion_regions() argument
398 .frame_sequence = vb->vb.sequence, in go7007_set_motion_regions()
412 static void go7007_motion_regions(struct go7007 *go, struct go7007_buffer *vb) in go7007_motion_regions() argument
414 u32 *bytesused = &vb->vb.vb2_buf.planes[0].bytesused; in go7007_motion_regions()
422 store_byte(vb, go->active_map[i]); in go7007_motion_regions()
435 go7007_set_motion_regions(go, vb, motion_regions); in go7007_motion_regions()
[all …]
/linux/include/trace/events/
H A Dvb2.h12 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
13 TP_ARGS(q, vb),
30 __entry->index = vb->index;
31 __entry->type = vb->type;
32 __entry->bytesused = vb->planes[0].bytesused;
33 __entry->timestamp = vb->timestamp;
47 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
48 TP_ARGS(q, vb)
52 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
53 TP_ARGS(q, vb)
[all …]
H A Dv4l2.h182 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
183 TP_ARGS(q, vb),
204 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
210 __entry->timestamp = vb->timestamp;
246 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
247 TP_ARGS(q, vb)
251 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
252 TP_ARGS(q, vb)
256 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
257 TP_ARGS(q, vb)
[all …]
/linux/drivers/iio/adc/
H A Dviperboard_adc.c32 struct vprbrd *vb; member
57 struct vprbrd *vb = adc->vb; in vprbrd_iio_read_raw() local
58 struct vprbrd_adc_msg *admsg = (struct vprbrd_adc_msg *)vb->buf; in vprbrd_iio_read_raw()
62 mutex_lock(&vb->lock); in vprbrd_iio_read_raw()
68 ret = usb_control_msg(vb->usb_dev, in vprbrd_iio_read_raw()
69 usb_sndctrlpipe(vb->usb_dev, 0), VPRBRD_USB_REQUEST_ADC, in vprbrd_iio_read_raw()
73 mutex_unlock(&vb->lock); in vprbrd_iio_read_raw()
79 ret = usb_control_msg(vb->usb_dev, in vprbrd_iio_read_raw()
80 usb_rcvctrlpipe(vb->usb_dev, 0), VPRBRD_USB_REQUEST_ADC, in vprbrd_iio_read_raw()
86 mutex_unlock(&vb->lock); in vprbrd_iio_read_raw()
[all …]
/linux/fs/ceph/
H A Dceph_frag.c11 unsigned vb = ceph_frag_value(b); in ceph_frag_compare() local
12 if (va < vb) in ceph_frag_compare()
14 if (va > vb) in ceph_frag_compare()
17 vb = ceph_frag_bits(b); in ceph_frag_compare()
18 if (va < vb) in ceph_frag_compare()
20 if (va > vb) in ceph_frag_compare()
/linux/arch/powerpc/kernel/
H A Dvecemu.c266 unsigned int va, vb, vc, vd; in emulate_altivec() local
277 vb = (word >> 11) & 0x1f; in emulate_altivec()
285 vaddfp(&vrs[vd], &vrs[va], &vrs[vb]); in emulate_altivec()
288 vsubfp(&vrs[vd], &vrs[va], &vrs[vb]); in emulate_altivec()
291 vrefp(&vrs[vd], &vrs[vb]); in emulate_altivec()
294 vrsqrtefp(&vrs[vd], &vrs[vb]); in emulate_altivec()
298 vrs[vd].u[i] = eexp2(vrs[vb].u[i]); in emulate_altivec()
302 vrs[vd].u[i] = elog2(vrs[vb].u[i]); in emulate_altivec()
306 vrs[vd].u[i] = rfin(vrs[vb].u[i]); in emulate_altivec()
310 vrs[vd].u[i] = rfiz(vrs[vb].u[i]); in emulate_altivec()
[all …]
/linux/drivers/media/platform/mediatek/vcodec/decoder/
H A Dmtk_vcodec_dec_stateful.c59 struct vb2_v4l2_buffer *vb; in get_display_buffer() local
76 vb = &dstbuf->m2m_buf.vb; in get_display_buffer()
81 vb->vb2_buf.index, dstbuf->queued_in_vb2); in get_display_buffer()
83 v4l2_m2m_buf_done(vb, VB2_BUF_STATE_DONE); in get_display_buffer()
87 return &vb->vb2_buf; in get_display_buffer()
102 struct vb2_v4l2_buffer *vb; in get_free_buffer() local
119 vb = &dstbuf->m2m_buf.vb; in get_free_buffer()
134 vb->vb2_buf.index, dstbuf->queued_in_vb2); in get_free_buffer()
135 v4l2_m2m_buf_queue(ctx->m2m_ctx, vb); in get_free_buffer()
150 vb->vb2_buf.index); in get_free_buffer()
[all …]
H A Dmtk_vcodec_dec.h95 int vb2ops_vdec_buf_prepare(struct vb2_buffer *vb);
96 void vb2ops_vdec_buf_finish(struct vb2_buffer *vb);
97 int vb2ops_vdec_buf_init(struct vb2_buffer *vb);
/linux/drivers/usb/gadget/function/
H A Duvc_queue.c61 static int uvc_buffer_prepare(struct vb2_buffer *vb) in uvc_buffer_prepare() argument
63 struct uvc_video_queue *queue = vb2_get_drv_priv(vb->vb2_queue); in uvc_buffer_prepare()
65 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_prepare()
68 if (vb->type == V4L2_BUF_TYPE_VIDEO_OUTPUT && in uvc_buffer_prepare()
69 vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) { in uvc_buffer_prepare()
79 buf->sgt = vb2_dma_sg_plane_desc(vb, 0); in uvc_buffer_prepare()
82 buf->mem = vb2_plane_vaddr(vb, 0); in uvc_buffer_prepare()
84 buf->length = vb2_plane_size(vb, 0); in uvc_buffer_prepare()
85 if (vb->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) { in uvc_buffer_prepare()
88 buf->bytesused = vb2_get_plane_payload(vb, 0); in uvc_buffer_prepare()
[all …]
/linux/arch/alpha/math-emu/
H A Dmath.c105 unsigned long res, va, vb, vc, swcr, fpcr; in alpha_fp_emul() local
128 vb = alpha_read_fp_reg_s(fb); in alpha_fp_emul()
131 FP_UNPACK_SP(SB, &vb); in alpha_fp_emul()
158 vb = alpha_read_fp_reg(fb); in alpha_fp_emul()
162 FP_UNPACK_RAW_DP(DB, &vb); in alpha_fp_emul()
193 FP_UNPACK_DP(DB, &vb); in alpha_fp_emul()
224 vb = alpha_read_fp_reg_s(fb); in alpha_fp_emul()
225 FP_UNPACK_SP(SB, &vb); in alpha_fp_emul()
245 vb = alpha_read_fp_reg(fb); in alpha_fp_emul()
253 vc = ((vb & 0xc0000000) << 32 | /* sign and msb */ in alpha_fp_emul()
[all …]
/linux/drivers/staging/media/meson/vdec/
H A Dcodec_hevc_common.c72 struct vb2_buffer *vb = &buf->vb.vb2_buf; in codec_hevc_setup_buffers_gxbb() local
74 idx = vb->index; in codec_hevc_setup_buffers_gxbb()
79 buf_y_paddr = vb2_dma_contig_plane_dma_addr(vb, 0); in codec_hevc_setup_buffers_gxbb()
86 buf_uv_paddr = vb2_dma_contig_plane_dma_addr(vb, 1); in codec_hevc_setup_buffers_gxbb()
125 struct vb2_buffer *vb = &buf->vb.vb2_buf; in codec_hevc_setup_buffers_gxl() local
128 u32 idx = vb->index; in codec_hevc_setup_buffers_gxl()
135 buf_y_paddr = vb2_dma_contig_plane_dma_addr(vb, 0); in codec_hevc_setup_buffers_gxl()
141 buf_uv_paddr = vb2_dma_contig_plane_dma_addr(vb, 1); in codec_hevc_setup_buffers_gxl()
179 u32 idx = buf->vb.vb2_buf.index; in codec_hevc_alloc_fbc_buffers()
232 u32 idx = buf->vb.vb2_buf.index; in codec_hevc_alloc_mmu_headers()
[all …]
H A Desparser.c189 struct vb2_buffer *vb, in esparser_pad_start_code() argument
193 u8 *vaddr = vb2_plane_vaddr(vb, 0); in esparser_pad_start_code()
201 vb2_plane_size(vb, 0)) { in esparser_pad_start_code()
294 struct vb2_buffer *vb = &vbuf->vb2_buf; in esparser_queue() local
297 u32 payload_size = vb2_get_plane_payload(vb, 0); in esparser_queue()
298 dma_addr_t phy = vb2_dma_contig_plane_dma_addr(vb, 0); in esparser_queue()
329 ret = amvdec_add_ts(sess, vb->timestamp, vbuf->timecode, offset, vbuf->flags); in esparser_queue()
336 vb->timestamp, payload_size, offset, vbuf->flags); in esparser_queue()
343 payload_size = vp9_update_header(core, vb); in esparser_queue()
347 amvdec_remove_ts(sess, vb->timestamp); in esparser_queue()
[all …]
/linux/drivers/media/common/saa7146/
H A Dsaa7146_vbi.c234 static void buf_queue(struct vb2_buffer *vb) in buf_queue() argument
236 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buf_queue()
237 struct vb2_queue *vq = vb->vb2_queue; in buf_queue()
239 struct saa7146_buf *buf = container_of(vbuf, struct saa7146_buf, vb); in buf_queue()
248 static int buf_init(struct vb2_buffer *vb) in buf_init() argument
250 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buf_init()
251 struct saa7146_buf *buf = container_of(vbuf, struct saa7146_buf, vb); in buf_init()
252 struct sg_table *sgt = vb2_dma_sg_plane_desc(&buf->vb.vb2_buf, 0); in buf_init()
255 struct vb2_queue *vq = vb->vb2_queue; in buf_init()
270 static int buf_prepare(struct vb2_buffer *vb) in buf_prepare() argument
[all …]
H A Dsaa7146_video.c90 struct sg_table *sgt = vb2_dma_sg_plane_desc(&buf->vb.vb2_buf, 0); in saa7146_pgtable_build()
571 static void buf_queue(struct vb2_buffer *vb) in buf_queue() argument
573 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buf_queue()
574 struct vb2_queue *vq = vb->vb2_queue; in buf_queue()
576 struct saa7146_buf *buf = container_of(vbuf, struct saa7146_buf, vb); in buf_queue()
585 static int buf_init(struct vb2_buffer *vb) in buf_init() argument
587 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buf_init()
588 struct saa7146_buf *buf = container_of(vbuf, struct saa7146_buf, vb); in buf_init()
589 struct vb2_queue *vq = vb->vb2_queue; in buf_init()
612 static int buf_prepare(struct vb2_buffer *vb) in buf_prepare() argument
[all …]
/linux/arch/arm64/crypto/
H A Daes-ce-ccm-core.S26 .macro dround, va, vb, vk
29 aese \vb\().16b, \vk\().16b
30 aesmc \vb\().16b, \vb\().16b
33 .macro aes_encrypt, va, vb, nr
35 dround \va, \vb, v10
36 dround \va, \vb, v11
38 dround \va, \vb, v12
39 dround \va, \vb, v13
41 dround \va, \vb, \v
44 aese \vb\().16b, v4.16b
/linux/drivers/media/platform/nvidia/tegra-vde/
H A Dv4l2.c116 static int tegra_buf_out_validate(struct vb2_buffer *vb) in tegra_buf_out_validate() argument
118 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in tegra_buf_out_validate()
124 static void __tegra_buf_cleanup(struct vb2_buffer *vb, unsigned int i) in __tegra_buf_cleanup() argument
126 struct vb2_queue *vq = vb->vb2_queue; in __tegra_buf_cleanup()
128 struct tegra_m2m_buffer *tb = vb_to_tegra_buf(vb); in __tegra_buf_cleanup()
148 static int tegra_buf_init(struct vb2_buffer *vb) in tegra_buf_init() argument
150 struct vb2_queue *vq = vb->vb2_queue; in tegra_buf_init()
152 struct tegra_m2m_buffer *tb = vb_to_tegra_buf(vb); in tegra_buf_init()
159 if (V4L2_TYPE_IS_CAPTURE(vq->type) && vb->num_planes > 1) { in tegra_buf_init()
165 vb2_plane_size(vb, 1)); in tegra_buf_init()
[all …]
/linux/drivers/media/common/videobuf2/
H A Dvideobuf2-dma-contig.c45 struct vb2_buffer *vb; member
73 static void *vb2_dc_cookie(struct vb2_buffer *vb, void *buf_priv) in vb2_dc_cookie() argument
94 static void *vb2_dc_vaddr(struct vb2_buffer *vb, void *buf_priv) in vb2_dc_vaddr() argument
129 if (buf->vb->skip_cache_sync_on_prepare) in vb2_dc_prepare()
149 if (buf->vb->skip_cache_sync_on_finish) in vb2_dc_finish()
193 struct vb2_queue *q = buf->vb->vb2_queue; in vb2_dc_alloc_coherent()
212 struct vb2_queue *q = buf->vb->vb2_queue; in vb2_dc_alloc_non_coherent()
231 static void *vb2_dc_alloc(struct vb2_buffer *vb, in vb2_dc_alloc() argument
245 buf->attrs = vb->vb2_queue->dma_attrs; in vb2_dc_alloc()
246 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_dc_alloc()
[all …]
H A Dvideobuf2-vmalloc.c37 static void *vb2_vmalloc_alloc(struct vb2_buffer *vb, struct device *dev, in vb2_vmalloc_alloc() argument
42 buf = kzalloc_obj(*buf, GFP_KERNEL | vb->vb2_queue->gfp_flags); in vb2_vmalloc_alloc()
54 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_vmalloc_alloc()
73 static void *vb2_vmalloc_get_userptr(struct vb2_buffer *vb, struct device *dev, in vb2_vmalloc_get_userptr() argument
85 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_vmalloc_get_userptr()
152 static void *vb2_vmalloc_vaddr(struct vb2_buffer *vb, void *buf_priv) in vb2_vmalloc_vaddr() argument
336 static struct dma_buf *vb2_vmalloc_get_dmabuf(struct vb2_buffer *vb, in vb2_vmalloc_get_dmabuf() argument
402 static void *vb2_vmalloc_attach_dmabuf(struct vb2_buffer *vb, in vb2_vmalloc_attach_dmabuf() argument
417 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_vmalloc_attach_dmabuf()
/linux/drivers/media/pci/solo6x10/
H A Dsolo6x10-v4l2-enc.c450 struct vb2_buffer *vb, const vop_header *vh) in solo_fill_jpeg() argument
452 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in solo_fill_jpeg()
454 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in solo_fill_jpeg()
459 if (vb2_plane_size(vb, 0) < vop_jpeg_size(vh) + solo_enc->jpeg_len) in solo_fill_jpeg()
463 vb2_set_plane_payload(vb, 0, vop_jpeg_size(vh) + solo_enc->jpeg_len); in solo_fill_jpeg()
472 struct vb2_buffer *vb, const vop_header *vh) in solo_fill_mpeg() argument
474 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in solo_fill_mpeg()
476 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in solo_fill_mpeg()
480 if (vb2_plane_size(vb, 0) < vop_mpeg_size(vh)) in solo_fill_mpeg()
489 vb2_set_plane_payload(vb, 0, vop_mpeg_size(vh) + in solo_fill_mpeg()
[all …]
/linux/drivers/media/platform/rockchip/rkisp1/
H A Drkisp1-stats.c107 static void rkisp1_stats_vb2_buf_queue(struct vb2_buffer *vb) in rkisp1_stats_vb2_buf_queue() argument
109 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in rkisp1_stats_vb2_buf_queue()
111 container_of(vbuf, struct rkisp1_buffer, vb); in rkisp1_stats_vb2_buf_queue()
112 struct vb2_queue *vq = vb->vb2_queue; in rkisp1_stats_vb2_buf_queue()
121 static int rkisp1_stats_vb2_buf_prepare(struct vb2_buffer *vb) in rkisp1_stats_vb2_buf_prepare() argument
123 if (vb2_plane_size(vb, 0) < sizeof(struct rkisp1_stat_buffer)) in rkisp1_stats_vb2_buf_prepare()
126 vb2_set_plane_payload(vb, 0, sizeof(struct rkisp1_stat_buffer)); in rkisp1_stats_vb2_buf_prepare()
144 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in rkisp1_stats_vb2_stop_streaming()
357 vb2_plane_vaddr(&cur_buf->vb.vb2_buf, 0); in rkisp1_stats_send_measurement()
372 vb2_set_plane_payload(&cur_buf->vb.vb2_buf, 0, in rkisp1_stats_send_measurement()
[all …]
/linux/drivers/media/platform/renesas/
H A Drcar_jpu.c460 static struct jpu_buffer *vb2_to_jpu_buffer(struct vb2_v4l2_buffer *vb) in vb2_to_jpu_buffer() argument
463 container_of(vb, struct v4l2_m2m_buffer, vb); in vb2_to_jpu_buffer()
1019 static int jpu_buf_prepare(struct vb2_buffer *vb) in jpu_buf_prepare() argument
1021 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in jpu_buf_prepare()
1022 struct jpu_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in jpu_buf_prepare()
1026 q_data = jpu_get_q_data(ctx, vb->vb2_queue->type); in jpu_buf_prepare()
1028 if (V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) { in jpu_buf_prepare()
1041 if (vb2_plane_size(vb, i) < size) { in jpu_buf_prepare()
1044 __func__, vb2_plane_size(vb, i), size); in jpu_buf_prepare()
1049 if (!ctx->encoder && V4L2_TYPE_IS_CAPTURE(vb->vb2_queue->type)) in jpu_buf_prepare()
[all …]
/linux/drivers/media/platform/mediatek/mdp3/
H A Dmtk-mdp3-m2m.c193 struct vb2_v4l2_buffer *vb; in mdp_m2m_stop_streaming() local
195 vb = mdp_m2m_buf_remove(ctx, q->type); in mdp_m2m_stop_streaming()
196 while (vb) { in mdp_m2m_stop_streaming()
197 v4l2_m2m_buf_done(vb, VB2_BUF_STATE_ERROR); in mdp_m2m_stop_streaming()
198 vb = mdp_m2m_buf_remove(ctx, q->type); in mdp_m2m_stop_streaming()
229 static int mdp_m2m_buf_prepare(struct vb2_buffer *vb) in mdp_m2m_buf_prepare() argument
231 struct mdp_m2m_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in mdp_m2m_buf_prepare()
233 struct vb2_v4l2_buffer *v4l2_buf = to_vb2_v4l2_buffer(vb); in mdp_m2m_buf_prepare()
238 if (V4L2_TYPE_IS_CAPTURE(vb->type)) { in mdp_m2m_buf_prepare()
239 pix_mp = &ctx_get_frame(ctx, vb->type)->format.fmt.pix_mp; in mdp_m2m_buf_prepare()
[all …]
/linux/include/media/
H A Dvideobuf2-dma-sg.h19 struct vb2_buffer *vb, unsigned int plane_no) in vb2_dma_sg_plane_desc() argument
21 return (struct sg_table *)vb2_plane_cookie(vb, plane_no); in vb2_dma_sg_plane_desc()
/linux/drivers/media/usb/pwc/
H A Dpwc-uncompress.c28 image = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0); in pwc_decompress()
43 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, in pwc_decompress()
48 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, in pwc_decompress()
/linux/drivers/media/platform/ti/davinci/
H A Dvpif_display.c58 struct vpif_disp_buffer *to_vpif_buffer(struct vb2_v4l2_buffer *vb) in to_vpif_buffer() argument
60 return container_of(vb, struct vpif_disp_buffer, vb); in to_vpif_buffer()
71 static int vpif_buffer_prepare(struct vb2_buffer *vb) in vpif_buffer_prepare() argument
73 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpif_buffer_prepare()
74 struct channel_obj *ch = vb2_get_drv_priv(vb->vb2_queue); in vpif_buffer_prepare()
79 vb2_set_plane_payload(vb, 0, common->fmt.fmt.pix.sizeimage); in vpif_buffer_prepare()
80 if (vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) in vpif_buffer_prepare()
85 if (vb->vb2_queue->type != V4L2_BUF_TYPE_SLICED_VBI_OUTPUT) { in vpif_buffer_prepare()
86 unsigned long addr = vb2_dma_contig_plane_dma_addr(vb, 0); in vpif_buffer_prepare()
144 static void vpif_buffer_queue(struct vb2_buffer *vb) in vpif_buffer_queue() argument
[all …]

123456