Home
last modified time | relevance | path

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

123456789

/linux/drivers/virtio/
H A Dvirtio_balloon.c146 static void start_wakeup_event(struct virtio_balloon *vb, u32 mask) in start_wakeup_event() argument
150 spin_lock_irqsave(&vb->wakeup_lock, flags); in start_wakeup_event()
151 vb->wakeup_signal_mask |= mask; in start_wakeup_event()
152 if (!vb->processing_wakeup_event) { in start_wakeup_event()
153 vb->processing_wakeup_event = true; in start_wakeup_event()
154 pm_stay_awake(&vb->vdev->dev); in start_wakeup_event()
156 spin_unlock_irqrestore(&vb->wakeup_lock, flags); in start_wakeup_event()
159 static void process_wakeup_event(struct virtio_balloon *vb, u32 mask) in process_wakeup_event() argument
161 spin_lock_irq(&vb->wakeup_lock); in process_wakeup_event()
162 vb->wakeup_signal_mask &= ~mask; in process_wakeup_event()
[all …]
/linux/drivers/media/common/videobuf2/
H A Dvideobuf2-core.c64 #define log_memop(vb, op) \ argument
65 dprintk((vb)->vb2_queue, 2, "call_memop(%d, %s)%s\n", \
66 (vb)->index, #op, \
67 (vb)->vb2_queue->mem_ops->op ? "" : " (nop)")
69 #define call_memop(vb, op, args...) \ argument
71 struct vb2_queue *_q = (vb)->vb2_queue; \
74 log_memop(vb, op); \
77 (vb)->cnt_mem_ ## op++; \
81 #define call_ptr_memop(op, vb, args...) \ argument
83 struct vb2_queue *_q = (vb)->vb2_queue; \
[all …]
H A Dvideobuf2-dma-sg.c55 struct vb2_buffer *vb; member
101 static void *vb2_dma_sg_alloc(struct vb2_buffer *vb, struct device *dev, in vb2_dma_sg_alloc() argument
117 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_dma_sg_alloc()
133 ret = vb2_dma_sg_alloc_compacted(buf, vb->vb2_queue->gfp_flags); in vb2_dma_sg_alloc()
157 buf->vb = vb; in vb2_dma_sg_alloc()
206 if (buf->vb->skip_cache_sync_on_prepare) in vb2_dma_sg_prepare()
217 if (buf->vb->skip_cache_sync_on_finish) in vb2_dma_sg_finish()
223 static void *vb2_dma_sg_get_userptr(struct vb2_buffer *vb, struct device *dev, in vb2_dma_sg_get_userptr() argument
239 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_dma_sg_get_userptr()
243 buf->vb = vb; in vb2_dma_sg_get_userptr()
[all …]
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 …]
/linux/drivers/media/platform/chips-media/wave5/
H A Dwave5-vdi.c88 int wave5_vdi_clear_memory(struct vpu_device *vpu_dev, struct vpu_buf *vb) in wave5_vdi_clear_memory() argument
90 if (!vb || !vb->vaddr) { in wave5_vdi_clear_memory()
95 memset(vb->vaddr, 0, vb->size); in wave5_vdi_clear_memory()
96 return vb->size; in wave5_vdi_clear_memory()
99 int wave5_vdi_write_memory(struct vpu_device *vpu_dev, struct vpu_buf *vb, size_t offset, in wave5_vdi_write_memory() argument
102 if (!vb || !vb->vaddr) { in wave5_vdi_write_memory()
107 if (offset > vb->size || len > vb->size || offset + len > vb->size) { in wave5_vdi_write_memory()
112 memcpy(vb->vaddr + offset, data, len); in wave5_vdi_write_memory()
117 int wave5_vdi_allocate_dma_memory(struct vpu_device *vpu_dev, struct vpu_buf *vb) in wave5_vdi_allocate_dma_memory() argument
122 if (!vb->size) { in wave5_vdi_allocate_dma_memory()
[all …]
/linux/drivers/gpio/
H A Dgpio-viperboard.c69 struct vprbrd *vb; member
86 struct vprbrd *vb = gpio->vb; in vprbrd_gpioa_get() local
87 struct vprbrd_gpioa_msg *gamsg = (struct vprbrd_gpioa_msg *)vb->buf; in vprbrd_gpioa_get()
93 mutex_lock(&vb->lock); in vprbrd_gpioa_get()
107 ret = usb_control_msg(vb->usb_dev, usb_sndctrlpipe(vb->usb_dev, 0), in vprbrd_gpioa_get()
114 ret = usb_control_msg(vb->usb_dev, usb_rcvctrlpipe(vb->usb_dev, 0), in vprbrd_gpioa_get()
120 mutex_unlock(&vb->lock); in vprbrd_gpioa_get()
136 struct vprbrd *vb = gpio->vb; in vprbrd_gpioa_set() local
137 struct vprbrd_gpioa_msg *gamsg = (struct vprbrd_gpioa_msg *)vb->buf; in vprbrd_gpioa_set()
147 mutex_lock(&vb->lock); in vprbrd_gpioa_set()
[all …]
/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/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 = usb_get_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/media/
H A Dvideobuf2-core.h119 void *(*alloc)(struct vb2_buffer *vb,
123 struct dma_buf *(*get_dmabuf)(struct vb2_buffer *vb,
127 void *(*get_userptr)(struct vb2_buffer *vb,
136 void *(*attach_dmabuf)(struct vb2_buffer *vb,
144 void *(*vaddr)(struct vb2_buffer *vb, void *buf_priv);
145 void *(*cookie)(struct vb2_buffer *vb, void *buf_priv);
414 * @buf_queue: passes buffer vb to the driver; driver may start
432 int (*buf_out_validate)(struct vb2_buffer *vb);
433 int (*buf_init)(struct vb2_buffer *vb);
434 int (*buf_prepare)(struct vb2_buffer *vb);
1223 vb2_set_plane_payload(struct vb2_buffer * vb,unsigned int plane_no,unsigned long size) vb2_set_plane_payload() argument
1243 vb2_get_plane_payload(struct vb2_buffer * vb,unsigned int plane_no) vb2_get_plane_payload() argument
1258 vb2_plane_size(struct vb2_buffer * vb,unsigned int plane_no) vb2_plane_size() argument
[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/block/partitions/
H A Dldm.c572 struct vblk *vb; in ldm_create_data_partitions() local
589 vb = list_entry (item, struct vblk, list); in ldm_create_data_partitions()
590 part = &vb->vblk.part; in ldm_create_data_partitions()
718 static bool ldm_parse_cmp3 (const u8 *buffer, int buflen, struct vblk *vb) in ldm_parse_cmp3() argument
723 BUG_ON (!buffer || !vb); in ldm_parse_cmp3()
746 comp = &vb->vblk.comp; in ldm_parse_cmp3()
768 static int ldm_parse_dgr3 (const u8 *buffer, int buflen, struct vblk *vb) in ldm_parse_dgr3() argument
773 BUG_ON (!buffer || !vb); in ldm_parse_dgr3()
792 dgrp = &vb->vblk.dgrp; in ldm_parse_dgr3()
809 static bool ldm_parse_dgr4 (const u8 *buffer, int buflen, struct vblk *vb) in ldm_parse_dgr4() argument
[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/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/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 …]
/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/mm/
H A Dvmalloc.c2706 struct vmap_block *vb; in new_vmap_block() local
2715 vb = kmalloc_node(sizeof(struct vmap_block), gfp_mask, node); in new_vmap_block()
2716 if (unlikely(!vb)) in new_vmap_block()
2724 kfree(vb); in new_vmap_block()
2729 spin_lock_init(&vb->lock); in new_vmap_block()
2730 vb->va = va; in new_vmap_block()
2733 bitmap_zero(vb->used_map, VMAP_BBMAP_BITS); in new_vmap_block()
2734 vb->free = VMAP_BBMAP_BITS - (1UL << order); in new_vmap_block()
2735 vb->dirty = 0; in new_vmap_block()
2736 vb->dirty_min = VMAP_BBMAP_BITS; in new_vmap_block()
[all …]
/linux/drivers/media/usb/pwc/
H A Dpwc-if.c271 fbuf->vb.field = V4L2_FIELD_NONE; in pwc_frame_complete()
272 fbuf->vb.sequence = pdev->vframe_count; in pwc_frame_complete()
273 vb2_buffer_done(&fbuf->vb.vb2_buf, VB2_BUF_STATE_DONE); in pwc_frame_complete()
322 vb2_buffer_done(&pdev->fill_buf->vb.vb2_buf, in pwc_isoc_handler()
356 fbuf->vb.vb2_buf.timestamp = ktime_get_ns(); in pwc_isoc_handler()
565 vb2_buffer_done(&buf->vb.vb2_buf, state); in pwc_cleanup_queued_bufs()
637 static int buffer_init(struct vb2_buffer *vb) in buffer_init() argument
639 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_init()
641 container_of(vbuf, struct pwc_frame_buf, vb); in buffer_init()
651 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument
[all …]
/linux/drivers/media/platform/qcom/venus/
H A Dhelpers.c450 struct vb2_buffer *vb = &vbuf->vb2_buf; in put_ts_metadata() local
453 u64 ts_us = vb->timestamp; in put_ts_metadata()
473 inst->tss[slot].ts_ns = vb->timestamp; in put_ts_metadata()
479 struct vb2_buffer *vb = &vbuf->vb2_buf; in venus_helper_get_ts_metadata() local
492 vb->timestamp = inst->tss[i].ts_ns; in venus_helper_get_ts_metadata()
502 struct vb2_buffer *vb = &vbuf->vb2_buf; in session_process_buf() local
503 unsigned int type = vb->type; in session_process_buf()
509 fdata.timestamp = vb->timestamp; in session_process_buf()
516 fdata.filled_len = vb2_get_plane_payload(vb, 0); in session_process_buf()
517 fdata.offset = vb->planes[0].data_offset; in session_process_buf()
[all …]

123456789