Home
last modified time | relevance | path

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

123456

/linux/drivers/virtio/
H A Dvirtio_balloon.c147 static void start_wakeup_event(struct virtio_balloon *vb, u32 mask) in start_wakeup_event() argument
151 spin_lock_irqsave(&vb->wakeup_lock, flags); in start_wakeup_event()
152 vb->wakeup_signal_mask |= mask; in start_wakeup_event()
153 if (!vb->processing_wakeup_event) { in start_wakeup_event()
154 vb->processing_wakeup_event = true; in start_wakeup_event()
155 pm_stay_awake(&vb->vdev->dev); in start_wakeup_event()
157 spin_unlock_irqrestore(&vb->wakeup_lock, flags); in start_wakeup_event()
160 static void process_wakeup_event(struct virtio_balloon *vb, u32 mask) in process_wakeup_event() argument
162 spin_lock_irq(&vb->wakeup_lock); in process_wakeup_event()
163 vb in process_wakeup_event()
167 finish_wakeup_event(struct virtio_balloon * vb) finish_wakeup_event() argument
179 struct virtio_balloon *vb = vq->vdev->priv; balloon_ack() local
184 tell_host(struct virtio_balloon * vb,struct virtqueue * vq) tell_host() argument
205 struct virtio_balloon *vb = virtballoon_free_page_report() local
229 set_page_pfns(struct virtio_balloon * vb,__virtio32 pfns[],struct page * page) set_page_pfns() argument
245 fill_balloon(struct virtio_balloon * vb,size_t num) fill_balloon() argument
293 release_pages_balloon(struct virtio_balloon * vb,struct list_head * pages) release_pages_balloon() argument
304 leak_balloon(struct virtio_balloon * vb,size_t num) leak_balloon() argument
340 update_stat(struct virtio_balloon * vb,int idx,u16 tag,u64 val) update_stat() argument
352 update_balloon_vm_stats(struct virtio_balloon * vb) update_balloon_vm_stats() argument
393 update_balloon_vm_stats(struct virtio_balloon * vb) update_balloon_vm_stats() argument
399 update_balloon_stats(struct virtio_balloon * vb) update_balloon_stats() argument
434 struct virtio_balloon *vb = vq->vdev->priv; stats_request() local
444 stats_handle_request(struct virtio_balloon * vb) stats_handle_request() argument
463 towards_target(struct virtio_balloon * vb) towards_target() argument
481 return_free_pages_to_mm(struct virtio_balloon * vb,unsigned long num_to_return) return_free_pages_to_mm() argument
504 virtio_balloon_queue_free_page_work(struct virtio_balloon * vb) virtio_balloon_queue_free_page_work() argument
517 start_update_balloon_size(struct virtio_balloon * vb) start_update_balloon_size() argument
525 struct virtio_balloon *vb = vdev->priv; virtballoon_changed() local
536 update_balloon_size(struct virtio_balloon * vb) update_balloon_size() argument
547 struct virtio_balloon *vb; update_balloon_stats_func() local
559 struct virtio_balloon *vb; update_balloon_size_func() local
583 init_vqs(struct virtio_balloon * vb) init_vqs() argument
650 virtio_balloon_cmd_id_received(struct virtio_balloon * vb) virtio_balloon_cmd_id_received() argument
663 send_cmd_id_start(struct virtio_balloon * vb) send_cmd_id_start() argument
682 send_cmd_id_stop(struct virtio_balloon * vb) send_cmd_id_stop() argument
699 get_free_page_and_send(struct virtio_balloon * vb) get_free_page_and_send() argument
745 send_free_pages(struct virtio_balloon * vb) send_free_pages() argument
774 virtio_balloon_report_free_page(struct virtio_balloon * vb) virtio_balloon_report_free_page() argument
796 struct virtio_balloon *vb = container_of(work, struct virtio_balloon, report_free_page_func() local
833 struct virtio_balloon *vb = container_of(vb_dev_info, virtballoon_migratepage() local
862 shrink_free_pages(struct virtio_balloon * vb,unsigned long pages_to_free) shrink_free_pages() argument
878 struct virtio_balloon *vb = shrinker->private_data; virtio_balloon_shrinker_scan() local
886 struct virtio_balloon *vb = shrinker->private_data; virtio_balloon_shrinker_count() local
894 struct virtio_balloon *vb = container_of(nb, virtio_balloon_oom_notify() local
905 virtio_balloon_unregister_shrinker(struct virtio_balloon * vb) virtio_balloon_unregister_shrinker() argument
910 virtio_balloon_register_shrinker(struct virtio_balloon * vb) virtio_balloon_register_shrinker() argument
927 struct virtio_balloon *vb; virtballoon_probe() local
1087 remove_common(struct virtio_balloon * vb) remove_common() argument
1108 virtballoon_quiesce(struct virtio_balloon * vb) virtballoon_quiesce() argument
1131 struct virtio_balloon *vb = vdev->priv; virtballoon_remove() local
1152 struct virtio_balloon *vb = vdev->priv; virtballoon_freeze() local
1164 struct virtio_balloon *vb = vdev->priv; virtballoon_restore() local
[all...]
/linux/drivers/mfd/
H A Dviperboard.c50 struct vprbrd *vb; in vprbrd_probe() local
56 vb = kzalloc_obj(*vb); in vprbrd_probe()
57 if (!vb) in vprbrd_probe()
60 mutex_init(&vb->lock); in vprbrd_probe()
62 vb->usb_dev = interface_to_usbdev(interface); in vprbrd_probe()
65 usb_set_intfdata(interface, vb); in vprbrd_probe()
66 dev_set_drvdata(&vb->pdev.dev, vb); in vprbrd_probe()
69 pipe = usb_rcvctrlpipe(vb->usb_dev, 0); in vprbrd_probe()
70 ret = usb_control_msg(vb->usb_dev, pipe, VPRBRD_USB_REQUEST_MAJOR, in vprbrd_probe()
71 VPRBRD_USB_TYPE_IN, 0x0000, 0x0000, vb->buf, 1, in vprbrd_probe()
[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/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 …]
/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/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/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/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/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()
582 static void buf_queue(struct vb2_buffer *vb) in buf_queue()
584 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
585 struct vb2_queue *vq = vb->vb2_queue; in buf_init() argument
587 struct saa7146_buf *buf = container_of(vbuf, struct saa7146_buf, vb); in buf_init()
596 static int buf_init(struct vb2_buffer *vb) in buf_init()
598 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buf_init()
599 struct saa7146_buf *buf = container_of(vbuf, struct saa7146_buf, vb); in buf_init()
600 struct vb2_queue *vq = vb->vb2_queue; in buf_init()
623 static int buf_prepare(struct vb2_buffer *vb) in buf_prepare()
571 buf_queue(struct vb2_buffer * vb) buf_queue() argument
612 buf_prepare(struct vb2_buffer * vb) buf_prepare() argument
625 buf_cleanup(struct vb2_buffer * vb) buf_cleanup() 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/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/mm/
H A Dvmalloc.c2634 * regular operations: Purge if vb->free is less than 1/4 of the capacity.
2755 struct vmap_block *vb; in new_vmap_block()
2764 vb = kmalloc_node(sizeof(struct vmap_block), gfp_mask, node); in new_vmap_block()
2765 if (unlikely(!vb)) in new_vmap_block()
2773 kfree(vb); in new_vmap_block()
2778 spin_lock_init(&vb->lock); in new_vmap_block()
2779 vb->va = va; in new_vmap_block()
2782 bitmap_zero(vb->used_map, VMAP_BBMAP_BITS); in free_vmap_block()
2783 vb->free = VMAP_BBMAP_BITS - (1UL << order); in free_vmap_block()
2784 vb in free_vmap_block()
2722 struct vmap_block *vb; new_vmap_block() local
2781 free_vmap_block(struct vmap_block * vb) free_vmap_block() argument
2800 purge_fragmented_block(struct vmap_block * vb,struct list_head * purge_list,bool force_purge) purge_fragmented_block() argument
2828 struct vmap_block *vb, *n_vb; free_purged_blocks() local
2839 struct vmap_block *vb; purge_fragmented_blocks() local
2870 struct vmap_block *vb; vb_alloc() local
2927 struct vmap_block *vb; vb_free() local
2977 struct vmap_block *vb; _vm_unmap_aliases() local
4587 struct vmap_block *vb; vmap_ram_vread_iter() local
[all...]
/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, in jpu_buf_prepare()
1056 jpu_buf_queue(struct vb2_buffer * vb) jpu_buf_queue() argument
1105 jpu_buf_finish(struct vb2_buffer * vb) jpu_buf_finish() argument
1143 struct vb2_v4l2_buffer *vb; jpu_stop_streaming() local
[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/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()
65 * @vb: ptr to vb2_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, in vpif_buffer_prepare()
144 vpif_buffer_queue(struct vb2_buffer * vb) vpif_buffer_queue() argument
[all...]
/linux/drivers/media/platform/via/
H A Dvia-camera.c334 struct via_buffer *vb; in viacam_irq() local
343 vb = viacam_next_buffer(cam); in viacam_irq()
344 if (vb == NULL) in viacam_irq()
356 sgt = vb2_dma_sg_plane_desc(&vb->vbuf.vb2_buf, 0); in viacam_irq()
357 vb->vbuf.vb2_buf.timestamp = ktime_get_ns(); in viacam_irq()
359 vb->vbuf.sequence = cam->sequence++; in viacam_irq()
360 vb->vbuf.field = V4L2_FIELD_NONE; in viacam_irq()
361 list_del(&vb->queue); in viacam_irq()
362 vb2_buffer_done(&vb->vbuf.vb2_buf, VB2_BUF_STATE_DONE); in viacam_irq()
562 static struct via_buffer *vb2_to_via_buffer(struct vb2_buffer *vb) in vb2_to_via_buffer() argument
569 viacam_vb2_queue(struct vb2_buffer * vb) viacam_vb2_queue() argument
577 viacam_vb2_prepare(struct vb2_buffer * vb) viacam_vb2_prepare() argument
[all...]
/linux/drivers/media/platform/dreamchip/rppx1/
H A Drpp_params.c40 int rppx1_params(struct rppx1 *rpp, struct vb2_buffer *vb, size_t max_size, in rppx1_params() argument
43 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in rppx1_params()
48 ret = v4l2_isp_params_validate_buffer_size(rpp->dev, vb, max_size); in rppx1_params()
54 ret = v4l2_isp_params_validate_buffer(rpp->dev, vb, cfg, in rppx1_params()

123456