Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/gpu/drm/virtio/
Dvirtgpu_vq.c77 struct virtio_gpu_vbuffer *vbuf; in virtio_gpu_alloc_vbufs() local
96 vbuf = ptr; in virtio_gpu_alloc_vbufs()
97 list_add(&vbuf->list, &vgdev->free_vbufs); in virtio_gpu_alloc_vbufs()
104 struct virtio_gpu_vbuffer *vbuf; in virtio_gpu_free_vbufs() local
114 vbuf = list_first_entry(&vgdev->free_vbufs, in virtio_gpu_free_vbufs()
116 list_del(&vbuf->list); in virtio_gpu_free_vbufs()
127 struct virtio_gpu_vbuffer *vbuf; in virtio_gpu_get_vbuf() local
131 vbuf = list_first_entry(&vgdev->free_vbufs, in virtio_gpu_get_vbuf()
133 list_del(&vbuf->list); in virtio_gpu_get_vbuf()
135 memset(vbuf, 0, VBUFFER_SIZE); in virtio_gpu_get_vbuf()
[all …]
Dvirtgpu_drv.h73 struct virtio_gpu_vbuffer *vbuf);
/linux-4.4.14/include/trace/events/
Dv4l2.h202 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
206 __entry->flags = vbuf->flags;
207 __entry->field = vbuf->field;
208 __entry->timestamp = timeval_to_ns(&vbuf->timestamp);
209 __entry->timecode_type = vbuf->timecode.type;
210 __entry->timecode_flags = vbuf->timecode.flags;
211 __entry->timecode_frames = vbuf->timecode.frames;
212 __entry->timecode_seconds = vbuf->timecode.seconds;
213 __entry->timecode_minutes = vbuf->timecode.minutes;
214 __entry->timecode_hours = vbuf->timecode.hours;
[all …]
/linux-4.4.14/drivers/staging/unisys/visornic/
Dvisornic_main.c1404 char *vbuf; in info_debugfs_read() local
1408 vbuf = kzalloc(len, GFP_KERNEL); in info_debugfs_read()
1409 if (!vbuf) in info_debugfs_read()
1425 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
1430 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
1432 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
1435 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
1438 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
1441 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
1444 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
[all …]
/linux-4.4.14/drivers/media/pci/cx23885/
Dcx23885-vbi.c141 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() local
143 struct cx23885_buffer *buf = container_of(vbuf, in buffer_prepare()
165 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() local
166 struct cx23885_buffer *buf = container_of(vbuf, in buffer_finish()
195 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local
197 struct cx23885_buffer *buf = container_of(vbuf, in buffer_queue()
Dcx23885-video.c332 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() local
335 container_of(vbuf, struct cx23885_buffer, vb); in buffer_prepare()
413 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() local
414 struct cx23885_buffer *buf = container_of(vbuf, in buffer_finish()
443 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local
445 struct cx23885_buffer *buf = container_of(vbuf, in buffer_queue()
Dcx23885-417.c1158 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() local
1161 container_of(vbuf, struct cx23885_buffer, vb); in buffer_prepare()
1168 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() local
1170 struct cx23885_buffer *buf = container_of(vbuf, in buffer_finish()
1178 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local
1180 struct cx23885_buffer *buf = container_of(vbuf, in buffer_queue()
Dcx23885-dvb.c113 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() local
116 container_of(vbuf, struct cx23885_buffer, vb); in buffer_prepare()
123 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() local
126 struct cx23885_buffer *buf = container_of(vbuf, in buffer_finish()
134 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local
136 struct cx23885_buffer *buf = container_of(vbuf, in buffer_queue()
/linux-4.4.14/drivers/media/platform/vivid/
Dvivid-vbi-cap.c97 u8 *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_raw_vbi_cap_process() local
106 memset(vbuf, 0x10, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_raw_vbi_cap_process()
109 vivid_vbi_gen_raw(&dev->vbi_gen, &vbi, vbuf); in vivid_raw_vbi_cap_process()
119 struct v4l2_sliced_vbi_data *vbuf = in vivid_sliced_vbi_cap_process() local
128 memset(vbuf, 0, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_sliced_vbi_cap_process()
133 vbuf[i] = dev->vbi_gen.data[i]; in vivid_sliced_vbi_cap_process()
192 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_cap_buf_queue() local
194 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in vbi_cap_buf_queue()
Dvivid-kthread-cap.c236 void *vbuf; in plane_vaddr() local
240 vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in plane_vaddr()
242 vbuf += bpl[i] * h / tpg->vdownsampling[i]; in plane_vaddr()
243 return vbuf; in plane_vaddr()
469 void *vbuf = plane_vaddr(tpg, buf, p, in vivid_fillbuff() local
478 memset(vbuf, dev->fmt_cap->data_offset[p] & 0xff, in vivid_fillbuff()
480 vbuf += dev->fmt_cap->data_offset[p]; in vivid_fillbuff()
482 tpg_calc_text_basep(tpg, basep, p, vbuf); in vivid_fillbuff()
483 if (!is_loop || vivid_copy_buffer(dev, p, vbuf, buf)) in vivid_fillbuff()
485 p, vbuf); in vivid_fillbuff()
[all …]
Dvivid-tpg.c1816 u8 *basep[TPG_MAX_PLANES][2], unsigned p, u8 *vbuf) in tpg_calc_text_basep() argument
1823 basep[p][0] = vbuf; in tpg_calc_text_basep()
1824 basep[p][1] = vbuf; in tpg_calc_text_basep()
1831 tpg_calc_text_basep(tpg, basep, 1, vbuf); in tpg_calc_text_basep()
1945 unsigned p, unsigned h, u8 *vbuf) in tpg_fill_plane_extras() argument
1962 memcpy(vbuf, wss, params->wss_width); in tpg_fill_plane_extras()
1973 memcpy(vbuf + left, tpg->contrast_line[p], in tpg_fill_plane_extras()
1978 memcpy(vbuf + left, in tpg_fill_plane_extras()
1982 memcpy(vbuf + right - twopixsize, in tpg_fill_plane_extras()
1988 memcpy(vbuf, tpg->black_line[p], params->left_pillar_width); in tpg_fill_plane_extras()
[all …]
Dvivid-sdr-cap.c253 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in sdr_cap_buf_queue() local
255 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in sdr_cap_buf_queue()
506 u8 *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_sdr_cap_process() local
553 *vbuf++ = DIV_ROUND_CLOSEST(fixp_i, FIXP_FRAC * 10); in vivid_sdr_cap_process()
554 *vbuf++ = DIV_ROUND_CLOSEST(fixp_q, FIXP_FRAC * 10); in vivid_sdr_cap_process()
561 *vbuf++ = DIV_ROUND_CLOSEST(fixp_i, FIXP_FRAC * 10); in vivid_sdr_cap_process()
562 *vbuf++ = DIV_ROUND_CLOSEST(fixp_q, FIXP_FRAC * 10); in vivid_sdr_cap_process()
Dvivid-vbi-out.c82 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_out_buf_queue() local
84 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in vbi_out_buf_queue()
Dvivid-tpg.h207 u8 *basep[TPG_MAX_PLANES][2], unsigned p, u8 *vbuf);
210 unsigned p, u8 *vbuf);
212 unsigned p, u8 *vbuf);
Dvivid-vid-out.c113 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vid_out_buf_prepare() local
136 vbuf->field = dev->field_out; in vid_out_buf_prepare()
137 else if (vbuf->field != V4L2_FIELD_TOP && in vid_out_buf_prepare()
138 vbuf->field != V4L2_FIELD_BOTTOM) in vid_out_buf_prepare()
157 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vid_out_buf_queue() local
159 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in vid_out_buf_queue()
Dvivid-vid-cap.c210 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vid_cap_buf_finish() local
212 struct v4l2_timecode *tc = &vbuf->timecode; in vid_cap_buf_finish()
214 unsigned seq = vbuf->sequence; in vid_cap_buf_finish()
223 vbuf->flags |= V4L2_BUF_FLAG_TIMECODE; in vid_cap_buf_finish()
236 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vid_cap_buf_queue() local
238 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in vid_cap_buf_queue()
/linux-4.4.14/drivers/media/pci/cx88/
Dcx88-vbi.c128 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() local
130 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_prepare()
153 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() local
155 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_finish()
165 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local
167 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_queue()
Dcx88-blackbird.c656 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() local
658 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_prepare()
665 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() local
667 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_finish()
677 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local
679 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_queue()
Dcx88-video.c447 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() local
450 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_prepare()
501 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() local
503 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_finish()
513 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local
515 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_queue()
Dcx88-dvb.c102 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() local
104 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_prepare()
111 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() local
113 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_finish()
123 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local
125 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_queue()
/linux-4.4.14/drivers/media/usb/uvc/
Duvc_queue.c94 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_prepare() local
96 struct uvc_buffer *buf = container_of(vbuf, struct uvc_buffer, buf); in uvc_buffer_prepare()
121 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_queue() local
123 struct uvc_buffer *buf = container_of(vbuf, struct uvc_buffer, buf); in uvc_buffer_queue()
142 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_finish() local
145 struct uvc_buffer *buf = container_of(vbuf, struct uvc_buffer, buf); in uvc_buffer_finish()
148 uvc_video_clock_update(stream, vbuf, buf); in uvc_buffer_finish()
Duvc_video.c609 struct vb2_v4l2_buffer *vbuf, in uvc_video_clock_update() argument
702 vbuf->timestamp.tv_sec, in uvc_video_clock_update()
703 (unsigned long)vbuf->timestamp.tv_usec, in uvc_video_clock_update()
708 vbuf->timestamp.tv_sec = ts.tv_sec; in uvc_video_clock_update()
709 vbuf->timestamp.tv_usec = ts.tv_nsec / NSEC_PER_USEC; in uvc_video_clock_update()
Duvcvideo.h677 struct vb2_v4l2_buffer *vbuf,
/linux-4.4.14/drivers/net/ethernet/8390/
Dmcf8390.c80 void ei_insb(u32 addr, void *vbuf, int len) in ei_insb() argument
85 buf = (u8 *) vbuf; in ei_insb()
93 void ei_insw(u32 addr, void *vbuf, int len) in ei_insw() argument
98 buf = (u16 *) vbuf; in ei_insw()
106 void ei_outsb(u32 addr, const void *vbuf, int len) in ei_outsb() argument
111 buf = (u8 *) vbuf; in ei_outsb()
119 void ei_outsw(u32 addr, const void *vbuf, int len) in ei_outsw() argument
124 buf = (u16 *) vbuf; in ei_outsw()
/linux-4.4.14/drivers/media/v4l2-core/
Dvideobuf2-v4l2.c113 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __set_timestamp() local
123 vbuf->timestamp = b->timestamp; in __set_timestamp()
124 vbuf->flags |= b->flags & V4L2_BUF_FLAG_TIMECODE; in __set_timestamp()
126 vbuf->timecode = b->timecode; in __set_timestamp()
182 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __fill_v4l2_buffer() local
192 b->flags = vbuf->flags; in __fill_v4l2_buffer()
193 b->field = vbuf->field; in __fill_v4l2_buffer()
194 b->timestamp = vbuf->timestamp; in __fill_v4l2_buffer()
195 b->timecode = vbuf->timecode; in __fill_v4l2_buffer()
196 b->sequence = vbuf->sequence; in __fill_v4l2_buffer()
[all …]
Dv4l2-mem2mem.c770 struct vb2_v4l2_buffer *vbuf) in v4l2_m2m_buf_queue() argument
772 struct v4l2_m2m_buffer *b = container_of(vbuf, in v4l2_m2m_buf_queue()
777 q_ctx = get_queue_ctx(m2m_ctx, vbuf->vb2_buf.vb2_queue->type); in v4l2_m2m_buf_queue()
/linux-4.4.14/drivers/media/pci/solo6x10/
Dsolo6x10-v4l2-enc.c318 struct sg_table *vbuf, int off, int size, in solo_send_desc() argument
331 for_each_sg(vbuf->sgl, sg, vbuf->nents, i) { in solo_send_desc()
461 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in solo_fill_jpeg() local
466 vbuf->flags |= V4L2_BUF_FLAG_KEYFRAME; in solo_fill_jpeg()
483 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in solo_fill_mpeg() local
493 vbuf->flags &= ~(V4L2_BUF_FLAG_KEYFRAME | V4L2_BUF_FLAG_PFRAME | in solo_fill_mpeg()
497 vbuf->flags |= V4L2_BUF_FLAG_KEYFRAME; in solo_fill_mpeg()
501 vbuf->flags |= V4L2_BUF_FLAG_PFRAME; in solo_fill_mpeg()
518 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in solo_enc_fillbuf() local
533 vbuf->sequence = solo_enc->sequence++; in solo_enc_fillbuf()
[all …]
Dsolo6x10-v4l2.c195 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in solo_fillbuf() local
227 vbuf->sequence = solo_dev->sequence++; in solo_fillbuf()
228 v4l2_get_timestamp(&vbuf->timestamp); in solo_fillbuf()
350 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in solo_buf_queue() local
354 container_of(vbuf, struct solo_vb2_buf, vb); in solo_buf_queue()
/linux-4.4.14/drivers/media/pci/saa7134/
Dsaa7134-ts.c82 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in saa7134_ts_buffer_init() local
84 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in saa7134_ts_buffer_init()
95 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in saa7134_ts_buffer_prepare() local
98 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in saa7134_ts_buffer_prepare()
112 vbuf->field = dev->field; in saa7134_ts_buffer_prepare()
Dsaa7134-vbi.c122 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in buffer_prepare() local
123 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in buffer_prepare()
165 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in buffer_init() local
166 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in buffer_init()
Dsaa7134-video.c875 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in buffer_init() local
876 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in buffer_init()
887 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in buffer_prepare() local
888 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in buffer_prepare()
901 vbuf->field = dev->field; in buffer_prepare()
937 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in saa7134_vb2_buffer_queue() local
938 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in saa7134_vb2_buffer_queue()
/linux-4.4.14/drivers/usb/gadget/function/
Duvc_queue.c64 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_prepare() local
65 struct uvc_buffer *buf = container_of(vbuf, struct uvc_buffer, buf); in uvc_buffer_prepare()
90 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_queue() local
91 struct uvc_buffer *buf = container_of(vbuf, struct uvc_buffer, buf); in uvc_buffer_queue()
/linux-4.4.14/drivers/staging/unisys/visorhba/
Dvisorhba_main.c628 char *vbuf; in info_debugfs_read() local
632 vbuf = kzalloc(len, GFP_KERNEL); in info_debugfs_read()
633 if (!vbuf) in info_debugfs_read()
642 str_pos += scnprintf(vbuf + str_pos, in info_debugfs_read()
646 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
650 str_pos += scnprintf(vbuf + str_pos, in info_debugfs_read()
655 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read()
659 str_pos += scnprintf(vbuf + str_pos, in info_debugfs_read()
662 str_pos += scnprintf(vbuf + str_pos, len - str_pos, "\n"); in info_debugfs_read()
665 bytes_read = simple_read_from_buffer(buf, len, offset, vbuf, str_pos); in info_debugfs_read()
[all …]
/linux-4.4.14/drivers/media/usb/em28xx/
Dem28xx-vbi.c82 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_buffer_queue() local
85 container_of(vbuf, struct em28xx_buffer, vb); in vbi_buffer_queue()
Dem28xx-video.c904 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() local
909 em28xx_videodbg("%s, field=%d\n", __func__, vbuf->field); in buffer_prepare()
1050 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local
1053 container_of(vbuf, struct em28xx_buffer, vb); in buffer_queue()
/linux-4.4.14/drivers/media/usb/au0828/
Dau0828-vbi.c74 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_buffer_queue() local
76 container_of(vbuf, struct au0828_buffer, vb); in vbi_buffer_queue()
Dau0828-video.c662 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() local
663 struct au0828_buffer *buf = container_of(vbuf, in buffer_prepare()
681 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local
682 struct au0828_buffer *buf = container_of(vbuf, in buffer_queue()
/linux-4.4.14/drivers/media/platform/soc_camera/
Dsh_mobile_ceu_camera.c155 static struct sh_mobile_ceu_buffer *to_ceu_vb(struct vb2_v4l2_buffer *vbuf) in to_ceu_vb() argument
157 return container_of(vbuf, struct sh_mobile_ceu_buffer, vb); in to_ceu_vb()
375 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in sh_mobile_ceu_videobuf_prepare() local
376 struct sh_mobile_ceu_buffer *buf = to_ceu_vb(vbuf); in sh_mobile_ceu_videobuf_prepare()
386 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in sh_mobile_ceu_videobuf_queue() local
391 struct sh_mobile_ceu_buffer *buf = to_ceu_vb(vbuf); in sh_mobile_ceu_videobuf_queue()
425 pcdev->active = vbuf; in sh_mobile_ceu_videobuf_queue()
438 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in sh_mobile_ceu_videobuf_release() local
442 struct sh_mobile_ceu_buffer *buf = to_ceu_vb(vbuf); in sh_mobile_ceu_videobuf_release()
447 if (pcdev->active == vbuf) { in sh_mobile_ceu_videobuf_release()
[all …]
Datmel-isi.c164 struct vb2_v4l2_buffer *vbuf = &isi->active->vb; in atmel_isi_handle_streaming() local
168 v4l2_get_timestamp(&vbuf->timestamp); in atmel_isi_handle_streaming()
169 vbuf->sequence = isi->sequence++; in atmel_isi_handle_streaming()
170 vb2_buffer_done(&vbuf->vb2_buf, VB2_BUF_STATE_DONE); in atmel_isi_handle_streaming()
280 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_init() local
281 struct frame_buffer *buf = container_of(vbuf, struct frame_buffer, vb); in buffer_init()
291 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() local
293 struct frame_buffer *buf = container_of(vbuf, struct frame_buffer, vb); in buffer_prepare()
334 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_cleanup() local
338 struct frame_buffer *buf = container_of(vbuf, struct frame_buffer, vb); in buffer_cleanup()
[all …]
Drcar_vin.c752 struct vb2_v4l2_buffer *vbuf; in rcar_vin_fill_hw_slot() local
764 vbuf = &list_entry(priv->capture.next, in rcar_vin_fill_hw_slot()
766 list_del_init(to_buf_list(vbuf)); in rcar_vin_fill_hw_slot()
767 priv->queue_buf[slot] = vbuf; in rcar_vin_fill_hw_slot()
768 phys_addr_top = vb2_dma_contig_plane_dma_addr(&vbuf->vb2_buf, 0); in rcar_vin_fill_hw_slot()
776 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in rcar_vin_videobuf_queue() local
797 list_add_tail(to_buf_list(vbuf), &priv->capture); in rcar_vin_videobuf_queue()
804 list_del_init(to_buf_list(vbuf)); in rcar_vin_videobuf_queue()
971 struct vb2_v4l2_buffer *vbuf; in rcar_vin_remove_device() local
985 vbuf = priv->queue_buf[i]; in rcar_vin_remove_device()
[all …]
Dmx3_camera.c261 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in mx3_videobuf_queue() local
265 struct mx3_camera_buffer *buf = to_mx3_vb(vbuf); in mx3_videobuf_queue()
278 vbuf->vb2_buf.index, vb2_plane_size(vb, 0), new_size); in mx3_videobuf_queue()
362 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in mx3_videobuf_release() local
366 struct mx3_camera_buffer *buf = to_mx3_vb(vbuf); in mx3_videobuf_release()
396 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in mx3_videobuf_init() local
400 struct mx3_camera_buffer *buf = to_mx3_vb(vbuf); in mx3_videobuf_init()
Dmx2_camera.c534 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in mx2_videobuf_queue() local
539 struct mx2_buffer *buf = container_of(vbuf, struct mx2_buffer, vb); in mx2_videobuf_queue()
1312 struct vb2_v4l2_buffer *vbuf; in mx27_camera_frame_done_emma() local
1330 vbuf = to_vb2_v4l2_buffer(vb); in mx27_camera_frame_done_emma()
1354 v4l2_get_timestamp(&vbuf->timestamp); in mx27_camera_frame_done_emma()
1355 vbuf->sequence = pcdev->frame_count; in mx27_camera_frame_done_emma()
/linux-4.4.14/drivers/media/platform/vsp1/
Dvsp1_video.h105 to_vsp1_video_buffer(struct vb2_v4l2_buffer *vbuf) in to_vsp1_video_buffer() argument
107 return container_of(vbuf, struct vsp1_video_buffer, buf); in to_vsp1_video_buffer()
Dvsp1_video.c824 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vsp1_video_buffer_prepare() local
826 struct vsp1_video_buffer *buf = to_vsp1_video_buffer(vbuf); in vsp1_video_buffer_prepare()
846 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vsp1_video_buffer_queue() local
849 struct vsp1_video_buffer *buf = to_vsp1_video_buffer(vbuf); in vsp1_video_buffer_queue()
/linux-4.4.14/drivers/media/platform/
Dvim2m.c751 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vim2m_buf_prepare() local
759 if (vbuf->field == V4L2_FIELD_ANY) in vim2m_buf_prepare()
760 vbuf->field = V4L2_FIELD_NONE; in vim2m_buf_prepare()
761 if (vbuf->field != V4L2_FIELD_NONE) { in vim2m_buf_prepare()
781 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vim2m_buf_queue() local
784 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in vim2m_buf_queue()
799 struct vb2_v4l2_buffer *vbuf; in vim2m_stop_streaming() local
804 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in vim2m_stop_streaming()
806 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in vim2m_stop_streaming()
807 if (vbuf == NULL) in vim2m_stop_streaming()
[all …]
Drcar_jpu.c1048 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in jpu_buf_prepare() local
1056 if (vbuf->field == V4L2_FIELD_ANY) in jpu_buf_prepare()
1057 vbuf->field = V4L2_FIELD_NONE; in jpu_buf_prepare()
1058 if (vbuf->field != V4L2_FIELD_NONE) { in jpu_buf_prepare()
1085 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in jpu_buf_queue() local
1089 struct jpu_buffer *jpu_buf = vb2_to_jpu_buffer(vbuf); in jpu_buf_queue()
1123 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in jpu_buf_queue()
1134 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in jpu_buf_finish() local
1135 struct jpu_buffer *jpu_buf = vb2_to_jpu_buffer(vbuf); in jpu_buf_finish()
1142 vbuf->sequence = jpu_get_q_data(ctx, type)->sequence++; in jpu_buf_finish()
Dsh_vou.c198 struct vb2_v4l2_buffer *vbuf) in sh_vou_schedule_next() argument
202 addr1 = vb2_dma_contig_plane_dma_addr(&vbuf->vb2_buf, 0); in sh_vou_schedule_next()
288 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in sh_vou_buf_queue() local
290 struct sh_vou_buffer *shbuf = to_sh_vou_buffer(vbuf); in sh_vou_buf_queue()
Dmx2_emmaprp.c745 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in emmaprp_buf_queue() local
747 v4l2_m2m_buf_queue(ctx->m2m_ctx, vbuf); in emmaprp_buf_queue()
Dm2m-deinterlace.c853 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in deinterlace_buf_queue() local
856 v4l2_m2m_buf_queue(ctx->m2m_ctx, vbuf); in deinterlace_buf_queue()
Dsh_veu.c935 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in sh_veu_buf_queue() local
938 v4l2_m2m_buf_queue(veu->m2m_ctx, vbuf); in sh_veu_buf_queue()
/linux-4.4.14/drivers/media/platform/marvell-ccic/
Dmcam-core.c224 struct vb2_v4l2_buffer *vbuf) in mcam_buffer_done() argument
226 vbuf->vb2_buf.planes[0].bytesused = cam->pix_format.sizeimage; in mcam_buffer_done()
227 vbuf->sequence = cam->buf_seq[frame]; in mcam_buffer_done()
228 vbuf->field = V4L2_FIELD_NONE; in mcam_buffer_done()
229 v4l2_get_timestamp(&vbuf->timestamp); in mcam_buffer_done()
230 vb2_set_plane_payload(&vbuf->vb2_buf, 0, cam->pix_format.sizeimage); in mcam_buffer_done()
231 vb2_buffer_done(&vbuf->vb2_buf, VB2_BUF_STATE_DONE); in mcam_buffer_done()
1076 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in mcam_vb_buf_queue() local
1077 struct mcam_vb_buffer *mvb = vb_to_mvb(vbuf); in mcam_vb_buf_queue()
1204 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in mcam_vb_sg_buf_init() local
[all …]
/linux-4.4.14/drivers/media/platform/blackfin/
Dbfin_capture.c227 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in bcap_buffer_prepare() local
238 vbuf->field = bcap_dev->fmt.field; in bcap_buffer_prepare()
245 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in bcap_buffer_queue() local
247 struct bcap_buffer *buf = to_bcap_vb(vbuf); in bcap_buffer_queue()
257 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in bcap_buffer_cleanup() local
259 struct bcap_buffer *buf = to_bcap_vb(vbuf); in bcap_buffer_cleanup()
402 struct vb2_v4l2_buffer *vbuf = &bcap_dev->cur_frm->vb; in bcap_isr() local
403 struct vb2_buffer *vb = &vbuf->vb2_buf; in bcap_isr()
409 v4l2_get_timestamp(&vbuf->timestamp); in bcap_isr()
414 vbuf->sequence = bcap_dev->sequence++; in bcap_isr()
/linux-4.4.14/drivers/media/pci/ddbridge/
Dddbridge-core.c261 static void io_free(struct pci_dev *pdev, u8 **vbuf, in io_free() argument
267 if (vbuf[i]) { in io_free()
268 pci_free_consistent(pdev, size, vbuf[i], pbuf[i]); in io_free()
269 vbuf[i] = NULL; in io_free()
274 static int io_alloc(struct pci_dev *pdev, u8 **vbuf, in io_alloc() argument
280 vbuf[i] = pci_alloc_consistent(pdev, size, &pbuf[i]); in io_alloc()
281 if (!vbuf[i]) in io_alloc()
296 if (io_alloc(dev->pdev, port->input[0]->vbuf, in ddb_buffers_alloc()
301 if (io_alloc(dev->pdev, port->input[1]->vbuf, in ddb_buffers_alloc()
308 if (io_alloc(dev->pdev, port->input[0]->vbuf, in ddb_buffers_alloc()
[all …]
Dddbridge.h79 u8 *vbuf[INPUT_DMA_MAX_BUFS]; member
108 u8 *vbuf[OUTPUT_DMA_MAX_BUFS]; member
/linux-4.4.14/drivers/media/usb/pwc/
Dpwc-if.c598 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_init() local
600 container_of(vbuf, struct pwc_frame_buf, vb); in buffer_init()
624 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() local
626 container_of(vbuf, struct pwc_frame_buf, vb); in buffer_finish()
641 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_cleanup() local
643 container_of(vbuf, struct pwc_frame_buf, vb); in buffer_cleanup()
651 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local
653 container_of(vbuf, struct pwc_frame_buf, vb); in buffer_queue()
/linux-4.4.14/drivers/media/platform/exynos4-is/
Dfimc-isp-video.c198 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in isp_video_capture_buffer_queue() local
202 struct isp_video_buf *ivb = to_isp_video_buf(vbuf); in isp_video_capture_buffer_queue()
247 struct vb2_v4l2_buffer *vbuf; in fimc_isp_video_irq_handler() local
255 vbuf = &video->buffers[buf_index]->vb; in fimc_isp_video_irq_handler()
257 v4l2_get_timestamp(&vbuf->timestamp); in fimc_isp_video_irq_handler()
258 vb2_buffer_done(&vbuf->vb2_buf, VB2_BUF_STATE_DONE); in fimc_isp_video_irq_handler()
Dfimc-lite.c255 struct flite_buffer *vbuf; in flite_irq_handler() local
286 vbuf = fimc_lite_pending_queue_pop(fimc); in flite_irq_handler()
287 flite_hw_set_dma_buffer(fimc, vbuf); in flite_irq_handler()
288 fimc_lite_active_queue_add(fimc, vbuf); in flite_irq_handler()
294 vbuf = fimc_lite_active_queue_pop(fimc); in flite_irq_handler()
295 v4l2_get_timestamp(&vbuf->vb.timestamp); in flite_irq_handler()
296 vbuf->vb.sequence = fimc->frame_count++; in flite_irq_handler()
297 flite_hw_mask_dma_buffer(fimc, vbuf->index); in flite_irq_handler()
298 vb2_buffer_done(&vbuf->vb.vb2_buf, VB2_BUF_STATE_DONE); in flite_irq_handler()
421 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local
[all …]
Dfimc-m2m.c223 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in fimc_buf_queue() local
225 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in fimc_buf_queue()
Dfimc-capture.c408 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local
410 = container_of(vbuf, struct fimc_vid_buffer, vb); in buffer_queue()
/linux-4.4.14/drivers/media/usb/go7007/
Dgo7007-v4l2.c389 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in go7007_buf_queue() local
391 container_of(vbuf, struct go7007_buffer, vb); in go7007_buf_queue()
401 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in go7007_buf_prepare() local
403 container_of(vbuf, struct go7007_buffer, vb); in go7007_buf_prepare()
415 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in go7007_buf_finish() local
417 container_of(vbuf, struct go7007_buffer, vb); in go7007_buf_finish()
420 vbuf->flags &= ~(V4L2_BUF_FLAG_KEYFRAME | V4L2_BUF_FLAG_BFRAME | in go7007_buf_finish()
422 vbuf->flags |= frame_type_flag; in go7007_buf_finish()
423 vbuf->field = V4L2_FIELD_NONE; in go7007_buf_finish()
/linux-4.4.14/drivers/media/pci/sta2x11/
Dsta2x11_vip.c290 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_init() local
291 struct vip_buffer *vip_buf = to_vip_buffer(vbuf); in buffer_init()
300 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() local
302 struct vip_buffer *vip_buf = to_vip_buffer(vbuf); in buffer_prepare()
318 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local
320 struct vip_buffer *vip_buf = to_vip_buffer(vbuf); in buffer_queue()
335 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() local
337 struct vip_buffer *vip_buf = to_vip_buffer(vbuf); in buffer_finish()
/linux-4.4.14/drivers/media/usb/tm6000/
Dtm6000-video.c141 struct tm6000_buffer *vbuf = NULL; in copy_streams() local
147 get_next_buf(dma_q, &vbuf); in copy_streams()
149 if (!vbuf) in copy_streams()
151 voutp = videobuf_to_vmalloc(&vbuf->vb); in copy_streams()
213 buffer_filled(dev, dma_q, vbuf); in copy_streams()
216 get_next_buf(dma_q, &vbuf); in copy_streams()
217 if (!vbuf) in copy_streams()
219 voutp = videobuf_to_vmalloc(&vbuf->vb); in copy_streams()
222 memset(voutp, 0, vbuf->vb.size); in copy_streams()
224 linewidth = vbuf->vb.width << 1; in copy_streams()
[all …]
/linux-4.4.14/drivers/media/platform/s3c-camif/
Dcamif-capture.c330 struct camif_buffer *vbuf; in s3c_camif_irq_handler() local
337 vbuf = camif_active_queue_peek(vp, index); in s3c_camif_irq_handler()
339 if (!WARN_ON(vbuf == NULL)) { in s3c_camif_irq_handler()
341 v4l2_get_timestamp(&vbuf->vb.timestamp); in s3c_camif_irq_handler()
342 vbuf->vb.sequence = vp->frame_sequence++; in s3c_camif_irq_handler()
343 vb2_buffer_done(&vbuf->vb.vb2_buf, VB2_BUF_STATE_DONE); in s3c_camif_irq_handler()
346 vbuf = camif_pending_queue_pop(vp); in s3c_camif_irq_handler()
347 vbuf->index = index; in s3c_camif_irq_handler()
348 camif_hw_set_output_addr(vp, &vbuf->paddr, index); in s3c_camif_irq_handler()
349 camif_hw_set_output_addr(vp, &vbuf->paddr, index + 2); in s3c_camif_irq_handler()
[all …]
/linux-4.4.14/drivers/media/pci/cx25821/
Dcx25821-video.c163 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in cx25821_buffer_prepare() local
167 container_of(vbuf, struct cx25821_buffer, vb); in cx25821_buffer_prepare()
245 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in cx25821_buffer_finish() local
247 container_of(vbuf, struct cx25821_buffer, vb); in cx25821_buffer_finish()
256 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in cx25821_buffer_queue() local
258 container_of(vbuf, struct cx25821_buffer, vb); in cx25821_buffer_queue()
/linux-4.4.14/drivers/media/pci/tw68/
Dtw68-video.c427 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in tw68_buf_queue() local
430 struct tw68_buf *buf = container_of(vbuf, struct tw68_buf, vb); in tw68_buf_queue()
462 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in tw68_buf_prepare() local
465 struct tw68_buf *buf = container_of(vbuf, struct tw68_buf, vb); in tw68_buf_prepare()
505 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in tw68_buf_finish() local
508 struct tw68_buf *buf = container_of(vbuf, struct tw68_buf, vb); in tw68_buf_finish()
/linux-4.4.14/drivers/staging/media/omap4iss/
Diss_video.c313 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in iss_video_buf_cleanup() local
314 struct iss_buffer *buffer = container_of(vbuf, struct iss_buffer, vb); in iss_video_buf_cleanup()
322 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in iss_video_buf_prepare() local
324 struct iss_buffer *buffer = container_of(vbuf, struct iss_buffer, vb); in iss_video_buf_prepare()
346 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in iss_video_buf_queue() local
349 struct iss_buffer *buffer = container_of(vbuf, struct iss_buffer, vb); in iss_video_buf_queue()
/linux-4.4.14/drivers/media/platform/xilinx/
Dxilinx-dma.c333 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in xvip_dma_buffer_prepare() local
335 struct xvip_dma_buffer *buf = to_xvip_dma_buffer(vbuf); in xvip_dma_buffer_prepare()
344 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in xvip_dma_buffer_queue() local
346 struct xvip_dma_buffer *buf = to_xvip_dma_buffer(vbuf); in xvip_dma_buffer_queue()
/linux-4.4.14/drivers/media/usb/cx231xx/
Dcx231xx-417.c1271 void *vbuf; in buffer_copy() local
1287 vbuf = videobuf_to_vmalloc(&buf->vb); in buffer_copy()
1293 memcpy(vbuf+dma_q->mpeg_buffer_completed, in buffer_copy()
1300 memcpy(vbuf+dma_q->mpeg_buffer_completed, data, len); in buffer_copy()
1308 memcpy(vbuf+dma_q->mpeg_buffer_completed, in buffer_copy()
1330 void *vbuf; in buffer_filled() local
1340 vbuf = videobuf_to_vmalloc(&buf->vb); in buffer_filled()
1341 memcpy(vbuf, data, len); in buffer_filled()
/linux-4.4.14/drivers/media/usb/s2255/
Ds2255drv.c616 char *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in s2255_fillbuff() local
620 if (!vbuf) in s2255_fillbuff()
630 vbuf, vc->width, in s2255_fillbuff()
635 memcpy(vbuf, tmpbuf, vc->width * vc->height); in s2255_fillbuff()
640 memcpy(vbuf, tmpbuf, jpgsize); in s2255_fillbuff()
643 memcpy(vbuf, tmpbuf, in s2255_fillbuff()
655 (unsigned long)vbuf, pos); in s2255_fillbuff()
678 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() local
679 struct s2255_buffer *buf = container_of(vbuf, struct s2255_buffer, vb); in buffer_prepare()
707 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local
[all …]
/linux-4.4.14/drivers/staging/media/davinci_vpfe/
Dvpfe_video.c1141 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpfe_buffer_queue() local
1147 struct vpfe_cap_buffer *buf = container_of(vbuf, in vpfe_buffer_queue()
1240 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpfe_buffer_init() local
1241 struct vpfe_cap_buffer *buf = container_of(vbuf, in vpfe_buffer_init()
1278 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpfe_buf_cleanup() local
1282 struct vpfe_cap_buffer *buf = container_of(vbuf, in vpfe_buf_cleanup()
/linux-4.4.14/drivers/media/platform/ti-vpe/
Dvpe.c1029 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in add_in_dtd() local
1033 int field = vbuf->field == V4L2_FIELD_BOTTOM; in add_in_dtd()
1826 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpe_buf_prepare() local
1838 vbuf->field = V4L2_FIELD_NONE; in vpe_buf_prepare()
1840 if (vbuf->field != V4L2_FIELD_TOP && in vpe_buf_prepare()
1841 vbuf->field != V4L2_FIELD_BOTTOM) in vpe_buf_prepare()
1864 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpe_buf_queue() local
1867 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in vpe_buf_queue()
/linux-4.4.14/include/media/
Dv4l2-mem2mem.h164 struct vb2_v4l2_buffer *vbuf);
/linux-4.4.14/drivers/media/pci/netup_unidvb/
Dnetup_unidvb_core.c302 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in netup_unidvb_buf_prepare() local
303 struct netup_unidvb_buffer *buf = container_of(vbuf, in netup_unidvb_buf_prepare()
315 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in netup_unidvb_buf_queue() local
316 struct netup_unidvb_buffer *buf = container_of(vbuf, in netup_unidvb_buf_queue()
/linux-4.4.14/drivers/media/platform/davinci/
Dvpif_display.c72 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpif_buffer_prepare() local
82 vbuf->field = common->fmt.fmt.pix.field; in vpif_buffer_prepare()
144 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpif_buffer_queue() local
145 struct vpif_disp_buffer *buf = to_vpif_buffer(vbuf); in vpif_buffer_queue()
Dvpif_capture.c76 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpif_buffer_prepare() local
90 vbuf->field = common->fmt.fmt.pix.field; in vpif_buffer_prepare()
151 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpif_buffer_queue() local
153 struct vpif_cap_buffer *buf = to_vpif_buffer(vbuf); in vpif_buffer_queue()
Dvpbe_display.c263 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpbe_buffer_queue() local
265 struct vpbe_disp_buffer *buf = container_of(vbuf, in vpbe_buffer_queue()
/linux-4.4.14/drivers/media/usb/zr364xx/
Dzr364xx.c504 char *vbuf = videobuf_to_vmalloc(&buf->vb); in zr364xx_fillbuff() local
507 if (!vbuf) in zr364xx_fillbuff()
516 memcpy(vbuf, tmpbuf, buf->vb.size); in zr364xx_fillbuff()
527 (unsigned long)vbuf, pos); in zr364xx_fillbuff()
/linux-4.4.14/drivers/media/platform/omap3isp/
Dispvideo.c345 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(buf); in isp_video_buffer_prepare() local
347 struct isp_buffer *buffer = to_isp_buffer(vbuf); in isp_video_buffer_prepare()
385 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(buf); in isp_video_buffer_queue() local
387 struct isp_buffer *buffer = to_isp_buffer(vbuf); in isp_video_buffer_queue()
/linux-4.4.14/drivers/media/pci/cobalt/
Dcobalt-v4l2.c115 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in cobalt_buf_prepare() local
119 vbuf->field = V4L2_FIELD_NONE; in cobalt_buf_prepare()
141 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in cobalt_buf_queue() local
144 struct cobalt_buffer *cb = to_cobalt_buffer(vbuf); in cobalt_buf_queue()
/linux-4.4.14/drivers/media/pci/dt3155/
Ddt3155.c226 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in dt3155_buf_queue() local
234 pd->curr_buf = vbuf; in dt3155_buf_queue()
/linux-4.4.14/drivers/media/usb/stk1160/
Dstk1160-v4l.c698 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local
700 container_of(vbuf, struct stk1160_buffer, vb); in buffer_queue()
/linux-4.4.14/drivers/media/usb/usbtv/
Dusbtv-video.c621 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in usbtv_buf_queue() local
623 struct usbtv_buf *buf = container_of(vbuf, struct usbtv_buf, vb); in usbtv_buf_queue()
/linux-4.4.14/drivers/media/platform/s5p-mfc/
Ds5p_mfc_dec.c953 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in s5p_mfc_buf_init() local
974 ctx->dst_bufs[i].b = vbuf; in s5p_mfc_buf_init()
992 ctx->src_bufs[i].b = vbuf; in s5p_mfc_buf_init()
Ds5p_mfc_enc.c1878 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in s5p_mfc_buf_init() local
1889 ctx->dst_bufs[i].b = vbuf; in s5p_mfc_buf_init()
1898 ctx->src_bufs[i].b = vbuf; in s5p_mfc_buf_init()
/linux-4.4.14/drivers/media/platform/exynos-gsc/
Dgsc-m2m.c258 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in gsc_m2m_buf_queue() local
264 v4l2_m2m_buf_queue(ctx->m2m_ctx, vbuf); in gsc_m2m_buf_queue()
/linux-4.4.14/drivers/media/platform/s5p-g2d/
Dg2d.c137 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in g2d_buf_queue() local
139 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in g2d_buf_queue()
/linux-4.4.14/drivers/media/usb/airspy/
Dairspy.c510 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in airspy_buf_queue() local
513 container_of(vbuf, struct airspy_frame_buf, vb); in airspy_buf_queue()
/linux-4.4.14/drivers/media/usb/msi2500/
Dmsi2500.c638 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in msi2500_buf_queue() local
640 struct msi2500_frame_buf *buf = container_of(vbuf, in msi2500_buf_queue()
/linux-4.4.14/drivers/media/platform/s5p-tv/
Dmixer_video.c917 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buf_queue() local
918 struct mxr_buffer *buffer = container_of(vbuf, struct mxr_buffer, vb); in buf_queue()
/linux-4.4.14/drivers/media/platform/am437x/
Dam437x-vpfe.c1947 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpfe_buffer_prepare() local
1955 vbuf->field = vpfe->fmt.fmt.pix.field; in vpfe_buffer_prepare()
1966 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpfe_buffer_queue() local
1968 struct vpfe_cap_buffer *buf = to_vpfe_buffer(vbuf); in vpfe_buffer_queue()
/linux-4.4.14/drivers/media/platform/sti/bdisp/
Dbdisp-v4l2.c487 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in bdisp_buf_queue() local
498 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in bdisp_buf_queue()
/linux-4.4.14/drivers/media/platform/coda/
Dcoda-common.c1177 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in coda_buf_queue() local
1196 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in coda_buf_queue()
1201 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in coda_buf_queue()
/linux-4.4.14/drivers/media/usb/hackrf/
Dhackrf.c781 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in hackrf_buf_queue() local
784 struct hackrf_buffer *buffer = container_of(vbuf, struct hackrf_buffer, vb); in hackrf_buf_queue()
/linux-4.4.14/drivers/media/dvb-frontends/
Drtl2832_sdr.c523 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in rtl2832_sdr_buf_queue() local
526 container_of(vbuf, struct rtl2832_sdr_frame_buf, vb); in rtl2832_sdr_buf_queue()
/linux-4.4.14/drivers/media/platform/s5p-jpeg/
Djpeg-core.c2483 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in s5p_jpeg_buf_queue() local
2518 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in s5p_jpeg_buf_queue()