Searched refs:vb (Results 26 - 50 of 328) sorted by relevance

1234567891011>>

/linux-master/drivers/media/v4l2-core/
H A Dv4l2-compat-ioctl32.c400 static int get_v4l2_buffer32(struct v4l2_buffer *vb, argument
408 memset(vb, 0, sizeof(*vb));
409 *vb = (struct v4l2_buffer) {
425 switch (vb->memory) {
428 vb->m.offset = vb32.m.offset;
431 vb->m.userptr = (unsigned long)compat_ptr(vb32.m.userptr);
434 vb->m.fd = vb32.m.fd;
438 if (V4L2_TYPE_IS_MULTIPLANAR(vb->type))
439 vb
446 get_v4l2_buffer32_time32(struct v4l2_buffer *vb, struct v4l2_buffer32_time32 __user *arg) argument
490 put_v4l2_buffer32(struct v4l2_buffer *vb, struct v4l2_buffer32 __user *arg) argument
535 put_v4l2_buffer32_time32(struct v4l2_buffer *vb, struct v4l2_buffer32_time32 __user *arg) argument
[all...]
/linux-master/drivers/media/dvb-core/
H A Ddvb_vb2.c50 static int _buffer_prepare(struct vb2_buffer *vb) argument
52 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
55 if (vb2_plane_size(vb, 0) < size) {
57 ctx->name, vb2_plane_size(vb, 0), size);
61 vb2_set_plane_payload(vb, 0, size);
67 static void _buffer_queue(struct vb2_buffer *vb) argument
69 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
70 struct dvb_buffer *buf = container_of(vb, struct dvb_buffer, vb);
100 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERRO
133 _fill_dmx_buffer(struct vb2_buffer *vb, void *pb) argument
145 _fill_vb2_buffer(struct vb2_buffer *vb, struct vb2_plane *planes) argument
[all...]
/linux-master/drivers/media/test-drivers/vivid/
H A Dvivid-vbi-cap.c85 u8 *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0);
88 buf->vb.sequence = dev->vbi_cap_seq_count;
90 buf->vb.sequence /= 2;
92 vivid_sliced_vbi_cap_fill(dev, buf->vb.sequence);
94 memset(vbuf, 0x10, vb2_plane_size(&buf->vb.vb2_buf, 0));
105 vb2_plane_vaddr(&buf->vb.vb2_buf, 0);
107 buf->vb.sequence = dev->vbi_cap_seq_count;
109 buf->vb.sequence /= 2;
111 vivid_sliced_vbi_cap_fill(dev, buf->vb.sequence);
113 memset(vbuf, 0, vb2_plane_size(&buf->vb
141 vbi_cap_buf_prepare(struct vb2_buffer *vb) argument
169 vbi_cap_buf_queue(struct vb2_buffer *vb) argument
216 vbi_cap_buf_request_complete(struct vb2_buffer *vb) argument
[all...]
H A Dvivid-kthread-touch.c28 v4l2_ctrl_request_setup(tch_cap_buf->vb.vb2_buf.req_obj.req,
32 v4l2_ctrl_request_complete(tch_cap_buf->vb.vb2_buf.req_obj.req,
34 vb2_buffer_done(&tch_cap_buf->vb.vb2_buf, dev->dqbuf_error ?
37 tch_cap_buf->vb.vb2_buf.index);
39 tch_cap_buf->vb.vb2_buf.timestamp = ktime_get_ns() + dev->time_wrap_offset;
182 v4l2_ctrl_request_complete(buf->vb.vb2_buf.req_obj.req,
184 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR);
186 buf->vb.vb2_buf.index);
H A Dvivid-kthread-cap.c209 return vb2_plane_vaddr(&buf->vb.vb2_buf, p);
210 vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0);
219 bool blank = dev->must_blank[vid_cap_buf->vb.vb2_buf.index];
256 vid_cap_buf->vb.field = vid_out_buf->vb.field;
261 voutbuf += vid_out_buf->vb.vb2_buf.planes[p].data_offset;
408 buf->vb.sequence = dev->vid_cap_seq_count;
409 v4l2_ctrl_s_ctrl(dev->ro_int32, buf->vb.sequence & 0xff);
417 buf->vb.field = ((dev->vid_cap_seq_count & 1) ^ is_60hz) ?
423 buf->vb
[all...]
H A Dvivid-touch-cap.c34 static int touch_cap_buf_prepare(struct vb2_buffer *vb) argument
36 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
48 if (vb2_plane_size(vb, 0) < size) {
50 __func__, vb2_plane_size(vb, 0), size);
53 vb2_set_plane_payload(vb, 0, size);
58 static void touch_cap_buf_queue(struct vb2_buffer *vb) argument
60 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
61 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
62 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb);
88 vb2_buffer_done(&buf->vb
103 touch_cap_buf_request_complete(struct vb2_buffer *vb) argument
[all...]
H A Dvivid-sdr-cap.c105 sdr_cap_buf->vb.sequence = dev->sdr_cap_with_seq_wrap_count;
106 v4l2_ctrl_request_setup(sdr_cap_buf->vb.vb2_buf.req_obj.req,
108 v4l2_ctrl_request_complete(sdr_cap_buf->vb.vb2_buf.req_obj.req,
111 sdr_cap_buf->vb.vb2_buf.timestamp =
113 vb2_buffer_done(&sdr_cap_buf->vb.vb2_buf, dev->dqbuf_error ?
227 static int sdr_cap_buf_prepare(struct vb2_buffer *vb) argument
229 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue);
242 if (vb2_plane_size(vb, 0) < size) {
244 __func__, vb2_plane_size(vb, 0), size);
247 vb2_set_plane_payload(vb,
252 sdr_cap_buf_queue(struct vb2_buffer *vb) argument
321 sdr_cap_buf_request_complete(struct vb2_buffer *vb) argument
[all...]
/linux-master/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, \
[all...]
/linux-master/arch/powerpc/kernel/
H A Dvecemu.c266 unsigned int va, vb, vc, vd; local
277 vb = (word >> 11) & 0x1f;
285 vaddfp(&vrs[vd], &vrs[va], &vrs[vb]);
288 vsubfp(&vrs[vd], &vrs[va], &vrs[vb]);
291 vrefp(&vrs[vd], &vrs[vb]);
294 vrsqrtefp(&vrs[vd], &vrs[vb]);
298 vrs[vd].u[i] = eexp2(vrs[vb].u[i]);
302 vrs[vd].u[i] = elog2(vrs[vb].u[i]);
306 vrs[vd].u[i] = rfin(vrs[vb].u[i]);
310 vrs[vd].u[i] = rfiz(vrs[vb]
[all...]
/linux-master/drivers/media/usb/pwc/
H A Dpwc-uncompress.c28 image = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0);
43 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0,
48 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0,
/linux-master/drivers/media/platform/mediatek/vcodec/decoder/
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);
H A Dmtk_vcodec_dec_stateful.c59 struct vb2_v4l2_buffer *vb; local
76 vb = &dstbuf->m2m_buf.vb;
81 vb->vb2_buf.index, dstbuf->queued_in_vb2);
83 v4l2_m2m_buf_done(vb, VB2_BUF_STATE_DONE);
87 return &vb->vb2_buf;
102 struct vb2_v4l2_buffer *vb; local
119 vb = &dstbuf->m2m_buf.vb;
134 vb
413 vb2ops_vdec_stateful_buf_queue(struct vb2_buffer *vb) argument
[all...]
/linux-master/drivers/staging/media/meson/vdec/
H A Dcodec_hevc_common.c72 struct vb2_buffer *vb = &buf->vb.vb2_buf; local
74 idx = vb->index;
79 buf_y_paddr = vb2_dma_contig_plane_dma_addr(vb, 0);
86 buf_uv_paddr = vb2_dma_contig_plane_dma_addr(vb, 1);
125 struct vb2_buffer *vb = &buf->vb.vb2_buf; local
128 u32 idx = vb->index;
135 buf_y_paddr = vb2_dma_contig_plane_dma_addr(vb, 0);
141 buf_uv_paddr = vb2_dma_contig_plane_dma_addr(vb,
279 codec_hevc_fill_mmu_map(struct amvdec_session *sess, struct codec_hevc_common *comm, struct vb2_buffer *vb) argument
[all...]
/linux-master/drivers/usb/gadget/function/
H A Duvc_queue.c71 static int uvc_buffer_prepare(struct vb2_buffer *vb) argument
73 struct uvc_video_queue *queue = vb2_get_drv_priv(vb->vb2_queue);
74 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
77 if (vb->type == V4L2_BUF_TYPE_VIDEO_OUTPUT &&
78 vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) {
88 buf->sgt = vb2_dma_sg_plane_desc(vb, 0);
91 buf->mem = vb2_plane_vaddr(vb, 0);
93 buf->length = vb2_plane_size(vb, 0);
94 if (vb
102 uvc_buffer_queue(struct vb2_buffer *vb) argument
[all...]
/linux-master/drivers/media/usb/uvc/
H A Duvc_queue.c98 static int uvc_buffer_prepare(struct vb2_buffer *vb) argument
100 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
101 struct uvc_video_queue *queue = vb2_get_drv_priv(vb->vb2_queue);
104 if (vb->type == V4L2_BUF_TYPE_VIDEO_OUTPUT &&
105 vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) {
116 buf->mem = vb2_plane_vaddr(vb, 0);
117 buf->length = vb2_plane_size(vb, 0);
118 if (vb->type != V4L2_BUF_TYPE_VIDEO_OUTPUT)
121 buf->bytesused = vb2_get_plane_payload(vb,
126 uvc_buffer_queue(struct vb2_buffer *vb) argument
149 uvc_buffer_finish(struct vb2_buffer *vb) argument
476 struct vb2_buffer *vb = &buf->buf.vb2_buf; local
[all...]
/linux-master/block/partitions/
H A Dldm.c574 struct vblk *vb; local
591 vb = list_entry (item, struct vblk, list);
592 part = &vb->vblk.part;
713 * @vb: In-memory vblk in which to return information
717 * Return: 'true' @vb contains a Component VBLK
718 * 'false' @vb contents are not defined
720 static bool ldm_parse_cmp3 (const u8 *buffer, int buflen, struct vblk *vb) argument
725 BUG_ON (!buffer || !vb);
748 comp = &vb->vblk.comp;
763 * @vb
770 ldm_parse_dgr3(const u8 *buffer, int buflen, struct vblk *vb) argument
811 ldm_parse_dgr4(const u8 *buffer, int buflen, struct vblk *vb) argument
849 ldm_parse_dsk3(const u8 *buffer, int buflen, struct vblk *vb) argument
888 ldm_parse_dsk4(const u8 *buffer, int buflen, struct vblk *vb) argument
921 ldm_parse_prt3(const u8 *buffer, int buflen, struct vblk *vb) argument
995 ldm_parse_vol5(const u8 *buffer, int buflen, struct vblk *vb) argument
1104 ldm_parse_vblk(const u8 *buf, int len, struct vblk *vb) argument
1158 struct vblk *vb; local
[all...]
/linux-master/drivers/gpu/drm/i915/gt/
H A Dselftest_tlb.c34 struct i915_vma *vb,
75 if (vb != va) {
76 vb_node = vb->node;
77 vb->node = va->node; /* overwrites the _same_ PTE */
93 if (va != vb)
115 vma_set_qw(vb, addr, 0);
148 if (va == vb) {
158 .bi.pages = vb->obj->mm.pages,
159 .bi.page_sizes = vb->obj->mm.page_sizes,
160 .start = i915_vma_offset(vb),
32 pte_tlbinv(struct intel_context *ce, struct i915_vma *va, struct i915_vma *vb, u64 align, void (*tlbinv)(struct i915_address_space *vm, u64 addr, u64 length), u64 length, struct rnd_state *prng) argument
236 struct i915_vma *va, *vb; local
[all...]
/linux-master/drivers/media/common/saa7146/
H A Dsaa7146_vbi.c234 static void buf_queue(struct vb2_buffer *vb) argument
236 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
237 struct vb2_queue *vq = vb->vb2_queue;
239 struct saa7146_buf *buf = container_of(vbuf, struct saa7146_buf, vb);
248 static int buf_init(struct vb2_buffer *vb) argument
250 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
251 struct saa7146_buf *buf = container_of(vbuf, struct saa7146_buf, vb);
252 struct sg_table *sgt = vb2_dma_sg_plane_desc(&buf->vb.vb2_buf, 0);
255 struct vb2_queue *vq = vb->vb2_queue;
270 static int buf_prepare(struct vb2_buffer *vb) argument
280 buf_cleanup(struct vb2_buffer *vb) argument
[all...]
/linux-master/arch/alpha/math-emu/
H A Dmath.c110 unsigned long res, va, vb, vc, swcr, fpcr; local
133 vb = alpha_read_fp_reg_s(fb);
136 FP_UNPACK_SP(SB, &vb);
163 vb = alpha_read_fp_reg(fb);
167 FP_UNPACK_RAW_DP(DB, &vb);
198 FP_UNPACK_DP(DB, &vb);
229 vb = alpha_read_fp_reg_s(fb);
230 FP_UNPACK_SP(SB, &vb);
250 vb = alpha_read_fp_reg(fb);
258 vc = ((vb
[all...]
/linux-master/include/trace/events/
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-master/drivers/staging/vc04_services/vchiq-mmal/
H A Dmmal-common.h43 struct vb2_v4l2_buffer vb; member in struct:mmal_buffer
/linux-master/drivers/media/platform/nvidia/tegra-vde/
H A Dv4l2.c116 static int tegra_buf_out_validate(struct vb2_buffer *vb) argument
118 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
124 static void __tegra_buf_cleanup(struct vb2_buffer *vb, unsigned int i) argument
126 struct vb2_queue *vq = vb->vb2_queue;
128 struct tegra_m2m_buffer *tb = vb_to_tegra_buf(vb);
148 static int tegra_buf_init(struct vb2_buffer *vb) argument
150 struct vb2_queue *vq = vb->vb2_queue;
152 struct tegra_m2m_buffer *tb = vb_to_tegra_buf(vb);
159 if (V4L2_TYPE_IS_CAPTURE(vq->type) && vb->num_planes > 1) {
165 vb2_plane_size(vb,
212 tegra_buf_cleanup(struct vb2_buffer *vb) argument
217 tegra_buf_prepare(struct vb2_buffer *vb) argument
281 tegra_buf_queue(struct vb2_buffer *vb) argument
289 tegra_buf_request_complete(struct vb2_buffer *vb) argument
[all...]
/linux-master/drivers/media/common/videobuf2/
H A Dvideobuf2-dma-contig.c45 struct vb2_buffer *vb; member in struct:vb2_dc_buf
73 static void *vb2_dc_cookie(struct vb2_buffer *vb, void *buf_priv) argument
94 static void *vb2_dc_vaddr(struct vb2_buffer *vb, void *buf_priv) argument
129 if (buf->vb->skip_cache_sync_on_prepare)
149 if (buf->vb->skip_cache_sync_on_finish)
193 struct vb2_queue *q = buf->vb->vb2_queue;
212 struct vb2_queue *q = buf->vb->vb2_queue;
231 static void *vb2_dc_alloc(struct vb2_buffer *vb, argument
245 buf->attrs = vb->vb2_queue->dma_attrs;
246 buf->dma_dir = vb
498 vb2_dc_get_dmabuf(struct vb2_buffer *vb, void *buf_priv, unsigned long flags) argument
563 vb2_dc_get_userptr(struct vb2_buffer *vb, struct device *dev, unsigned long vaddr, unsigned long size) argument
769 vb2_dc_attach_dmabuf(struct vb2_buffer *vb, struct device *dev, struct dma_buf *dbuf, unsigned long size) argument
[all...]
/linux-master/drivers/media/platform/amphion/
H A Dvpu_v4l2.c37 dma_addr_t vpu_get_vb_phy_addr(struct vb2_buffer *vb, u32 plane_no) argument
39 if (plane_no >= vb->num_planes)
41 return vb2_dma_contig_plane_dma_addr(vb, plane_no) +
42 vb->planes[plane_no].data_offset;
45 unsigned int vpu_get_vb_length(struct vb2_buffer *vb, u32 plane_no) argument
47 if (plane_no >= vb->num_planes)
49 return vb2_plane_size(vb, plane_no) - vb->planes[plane_no].data_offset;
131 if (vpu_get_buffer_state(&buf->vb) == VPU_BUF_STATE_IDLE)
292 vbuf = &buf->vb;
500 vpu_vb2_buf_init(struct vb2_buffer *vb) argument
508 vpu_vb2_buf_out_validate(struct vb2_buffer *vb) argument
517 vpu_vb2_buf_prepare(struct vb2_buffer *vb) argument
536 vpu_vb2_buf_finish(struct vb2_buffer *vb) argument
611 vpu_vb2_buf_queue(struct vb2_buffer *vb) argument
[all...]
/linux-master/drivers/media/platform/chips-media/wave5/
H A Dwave5-vpu.h59 return container_of(vbuf, struct vpu_src_buffer, v4l2_m2m_buf.vb);
64 return container_of(vbuf, struct vpu_dst_buffer, v4l2_m2m_buf.vb);

Completed in 232 milliseconds

1234567891011>>