Home
last modified time | relevance | path

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

12345

/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-v4l2.c64 static int __verify_planes_array(struct vb2_buffer *vb, const struct v4l2_buffer *b) in __verify_planes_array() argument
71 dprintk(vb->vb2_queue, 1, in __verify_planes_array()
76 if (b->length < vb->num_planes || b->length > VB2_MAX_PLANES) { in __verify_planes_array()
77 dprintk(vb->vb2_queue, 1, in __verify_planes_array()
79 vb->num_planes, b->length); in __verify_planes_array()
86 static int __verify_planes_array_core(struct vb2_buffer *vb, const void *pb) in __verify_planes_array_core() argument
88 return __verify_planes_array(vb, pb); in __verify_planes_array_core()
95 static int __verify_length(struct vb2_buffer *vb, const struct v4l2_buffer *b) in __verify_length() argument
105 for (plane = 0; plane < vb->num_planes; ++plane) { in __verify_length()
109 : vb->planes[plane].length; in __verify_length()
[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(sizeof(*buf), GFP_KERNEL | vb->vb2_queue->gfp_flags); in vb2_vmalloc_alloc()
54 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_vmalloc_alloc()
73 static void *vb2_vmalloc_get_userptr(struct vb2_buffer *vb, struct device *dev, in vb2_vmalloc_get_userptr() argument
85 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_vmalloc_get_userptr()
152 static void *vb2_vmalloc_vaddr(struct vb2_buffer *vb, void *buf_priv) in vb2_vmalloc_vaddr() argument
336 static struct dma_buf *vb2_vmalloc_get_dmabuf(struct vb2_buffer *vb, in vb2_vmalloc_get_dmabuf() argument
402 static void *vb2_vmalloc_attach_dmabuf(struct vb2_buffer *vb, in vb2_vmalloc_attach_dmabuf() argument
417 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_vmalloc_attach_dmabuf()
/linux/drivers/media/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(sizeof(*vb), GFP_KERNEL); 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);
442 int (*buf_out_validate)(struct vb2_buffer *vb);
443 int (*buf_init)(struct vb2_buffer *vb);
444 int (*buf_prepare)(struct vb2_buffer *vb);
445 void (*buf_finish)(struct vb2_buffer *vb);
[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/media/dvb-core/
H A Ddvb_vb2.c50 static int _buffer_prepare(struct vb2_buffer *vb) in _buffer_prepare() argument
52 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _buffer_prepare()
55 if (vb2_plane_size(vb, 0) < size) { in _buffer_prepare()
57 ctx->name, vb2_plane_size(vb, 0), size); in _buffer_prepare()
61 vb2_set_plane_payload(vb, 0, size); in _buffer_prepare()
67 static void _buffer_queue(struct vb2_buffer *vb) in _buffer_queue() argument
69 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _buffer_queue()
70 struct dvb_buffer *buf = container_of(vb, struct dvb_buffer, vb); in _buffer_queue()
100 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in _stop_streaming()
133 static void _fill_dmx_buffer(struct vb2_buffer *vb, void *pb) in _fill_dmx_buffer() 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 …]
H A Dmtk_vcodec_dec.h95 int vb2ops_vdec_buf_prepare(struct vb2_buffer *vb);
96 void vb2ops_vdec_buf_finish(struct vb2_buffer *vb);
97 int vb2ops_vdec_buf_init(struct vb2_buffer *vb);
/linux/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/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/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 …]
H A Dsaa7146_video.c90 struct sg_table *sgt = vb2_dma_sg_plane_desc(&buf->vb.vb2_buf, 0); in saa7146_pgtable_build()
571 static void buf_queue(struct vb2_buffer *vb) in buf_queue() argument
573 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buf_queue()
574 struct vb2_queue *vq = vb->vb2_queue; in buf_queue()
576 struct saa7146_buf *buf = container_of(vbuf, struct saa7146_buf, vb); in buf_queue()
585 static int buf_init(struct vb2_buffer *vb) in buf_init() argument
587 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buf_init()
588 struct saa7146_buf *buf = container_of(vbuf, struct saa7146_buf, vb); in buf_init()
589 struct vb2_queue *vq = vb->vb2_queue; in buf_init()
612 static int buf_prepare(struct vb2_buffer *vb) in buf_prepare() argument
[all …]
/linux/arch/arm64/crypto/
H A Daes-ce-ccm-core.S26 .macro dround, va, vb, vk
29 aese \vb\().16b, \vk\().16b
30 aesmc \vb\().16b, \vb\().16b
33 .macro aes_encrypt, va, vb, nr
35 dround \va, \vb, v10
36 dround \va, \vb, v11
38 dround \va, \vb, v12
39 dround \va, \vb, v13
41 dround \va, \vb, \v
44 aese \vb\().16b, v4.16b
/linux/mm/
H A Dvmalloc.c2693 struct vmap_block *vb; in new_vmap_block() local
2702 vb = kmalloc_node(sizeof(struct vmap_block), gfp_mask, node); in new_vmap_block()
2703 if (unlikely(!vb)) in new_vmap_block()
2711 kfree(vb); in new_vmap_block()
2716 spin_lock_init(&vb->lock); in new_vmap_block()
2717 vb->va = va; in new_vmap_block()
2720 bitmap_zero(vb->used_map, VMAP_BBMAP_BITS); in new_vmap_block()
2721 vb->free = VMAP_BBMAP_BITS - (1UL << order); in new_vmap_block()
2722 vb->dirty = 0; in new_vmap_block()
2723 vb->dirty_min = VMAP_BBMAP_BITS; in new_vmap_block()
[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/usb/stk1160/
H A Dstk1160-v4l.c680 static void buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument
683 struct stk1160 *dev = vb2_get_drv_priv(vb->vb2_queue); in buffer_queue()
684 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue()
686 container_of(vbuf, struct stk1160_buffer, vb); in buffer_queue()
694 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in buffer_queue()
697 buf->mem = vb2_plane_vaddr(vb, 0); in buffer_queue()
698 buf->length = vb2_plane_size(vb, 0); in buffer_queue()
707 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in buffer_queue()
757 vb2_buffer_done(&buf->vb.vb2_buf, vb2_state); in stk1160_clear_queue()
759 buf, buf->vb.vb2_buf.index); in stk1160_clear_queue()
[all …]

12345