Home
last modified time | relevance | path

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

12345678910>>...13

/drivers/virtio/
Dvirtio_balloon.c149 static void start_wakeup_event(struct virtio_balloon *vb, u32 mask) in start_wakeup_event() argument
153 spin_lock_irqsave(&vb->wakeup_lock, flags); in start_wakeup_event()
154 vb->wakeup_signal_mask |= mask; in start_wakeup_event()
155 if (!vb->processing_wakeup_event) { in start_wakeup_event()
156 vb->processing_wakeup_event = true; in start_wakeup_event()
157 pm_stay_awake(&vb->vdev->dev); in start_wakeup_event()
159 spin_unlock_irqrestore(&vb->wakeup_lock, flags); in start_wakeup_event()
162 static void process_wakeup_event(struct virtio_balloon *vb, u32 mask) in process_wakeup_event() argument
164 spin_lock_irq(&vb->wakeup_lock); in process_wakeup_event()
165 vb->wakeup_signal_mask &= ~mask; in process_wakeup_event()
[all …]
/drivers/media/common/videobuf2/
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 …]
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 …]
/drivers/media/platform/chips-media/wave5/
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 …]
/drivers/gpio/
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()
145 mutex_lock(&vb->lock); in vprbrd_gpioa_set()
[all …]
/drivers/media/usb/go7007/
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 …]
/drivers/mfd/
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 …]
/drivers/media/test-drivers/vivid/
Dvivid-meta-cap.c37 static int meta_cap_buf_prepare(struct vb2_buffer *vb) in meta_cap_buf_prepare() argument
39 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in meta_cap_buf_prepare()
52 if (vb2_plane_size(vb, 0) < size) { in meta_cap_buf_prepare()
54 __func__, vb2_plane_size(vb, 0), size); in meta_cap_buf_prepare()
57 vb2_set_plane_payload(vb, 0, size); in meta_cap_buf_prepare()
62 static void meta_cap_buf_queue(struct vb2_buffer *vb) in meta_cap_buf_queue() argument
64 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in meta_cap_buf_queue()
65 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in meta_cap_buf_queue()
66 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in meta_cap_buf_queue()
95 vb2_buffer_done(&buf->vb.vb2_buf, in meta_cap_start_streaming()
[all …]
Dvivid-kthread-out.c86 v4l2_ctrl_request_setup(vid_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick()
88 v4l2_ctrl_request_complete(vid_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick()
90 vid_out_buf->vb.sequence = dev->vid_out_seq_count; in vivid_thread_vid_out_tick()
96 vid_out_buf->vb.sequence /= 2; in vivid_thread_vid_out_tick()
98 vid_out_buf->vb.vb2_buf.timestamp = in vivid_thread_vid_out_tick()
100 vb2_buffer_done(&vid_out_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_vid_out_tick()
103 vid_out_buf->vb.vb2_buf.index); in vivid_thread_vid_out_tick()
107 v4l2_ctrl_request_setup(vbi_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick()
109 v4l2_ctrl_request_complete(vbi_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick()
114 vbi_out_buf->vb.sequence = dev->vbi_out_seq_count; in vivid_thread_vid_out_tick()
[all …]
Dvivid-vbi-cap.c86 u8 *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_raw_vbi_cap_process()
89 buf->vb.sequence = dev->vbi_cap_seq_count; in vivid_raw_vbi_cap_process()
91 buf->vb.sequence /= 2; in vivid_raw_vbi_cap_process()
93 vivid_sliced_vbi_cap_fill(dev, buf->vb.sequence); in vivid_raw_vbi_cap_process()
95 memset(vbuf, 0x10, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_raw_vbi_cap_process()
106 vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_sliced_vbi_cap_process()
108 buf->vb.sequence = dev->vbi_cap_seq_count; in vivid_sliced_vbi_cap_process()
110 buf->vb.sequence /= 2; in vivid_sliced_vbi_cap_process()
112 vivid_sliced_vbi_cap_fill(dev, buf->vb.sequence); in vivid_sliced_vbi_cap_process()
114 memset(vbuf, 0, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_sliced_vbi_cap_process()
[all …]
Dvivid-meta-out.c37 static int meta_out_buf_prepare(struct vb2_buffer *vb) in meta_out_buf_prepare() argument
39 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in meta_out_buf_prepare()
52 if (vb2_plane_size(vb, 0) < size) { in meta_out_buf_prepare()
54 __func__, vb2_plane_size(vb, 0), size); in meta_out_buf_prepare()
57 vb2_set_plane_payload(vb, 0, size); in meta_out_buf_prepare()
62 static void meta_out_buf_queue(struct vb2_buffer *vb) in meta_out_buf_queue() argument
64 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in meta_out_buf_queue()
65 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in meta_out_buf_queue()
66 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in meta_out_buf_queue()
95 vb2_buffer_done(&buf->vb.vb2_buf, in meta_out_start_streaming()
[all …]
Dvivid-vbi-out.c39 static int vbi_out_buf_prepare(struct vb2_buffer *vb) in vbi_out_buf_prepare() argument
41 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_out_buf_prepare()
43 unsigned size = vb->vb2_queue->type == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT ? in vbi_out_buf_prepare()
57 if (vb2_plane_size(vb, 0) < size) { in vbi_out_buf_prepare()
59 __func__, vb2_plane_size(vb, 0), size); in vbi_out_buf_prepare()
62 vb2_set_plane_payload(vb, 0, size); in vbi_out_buf_prepare()
67 static void vbi_out_buf_queue(struct vb2_buffer *vb) in vbi_out_buf_queue() argument
69 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_out_buf_queue()
70 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_out_buf_queue()
71 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in vbi_out_buf_queue()
[all …]
/drivers/media/pci/intel/ipu6/
Dipu6-isys-queue.c25 static int ipu6_isys_buf_init(struct vb2_buffer *vb) in ipu6_isys_buf_init() argument
27 struct ipu6_isys *isys = vb2_get_drv_priv(vb->vb2_queue); in ipu6_isys_buf_init()
28 struct sg_table *sg = vb2_dma_sg_plane_desc(vb, 0); in ipu6_isys_buf_init()
29 struct vb2_v4l2_buffer *vvb = to_vb2_v4l2_buffer(vb); in ipu6_isys_buf_init()
43 static void ipu6_isys_buf_cleanup(struct vb2_buffer *vb) in ipu6_isys_buf_cleanup() argument
45 struct ipu6_isys *isys = vb2_get_drv_priv(vb->vb2_queue); in ipu6_isys_buf_cleanup()
46 struct sg_table *sg = vb2_dma_sg_plane_desc(vb, 0); in ipu6_isys_buf_cleanup()
47 struct vb2_v4l2_buffer *vvb = to_vb2_v4l2_buffer(vb); in ipu6_isys_buf_cleanup()
78 static int ipu6_isys_buf_prepare(struct vb2_buffer *vb) in ipu6_isys_buf_prepare() argument
80 struct ipu6_isys_queue *aq = vb2_queue_to_isys_queue(vb->vb2_queue); in ipu6_isys_buf_prepare()
[all …]
/drivers/iio/adc/
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()
77 ret = usb_control_msg(vb->usb_dev, in vprbrd_iio_read_raw()
78 usb_rcvctrlpipe(vb->usb_dev, 0), VPRBRD_USB_REQUEST_ADC, in vprbrd_iio_read_raw()
84 mutex_unlock(&vb->lock); in vprbrd_iio_read_raw()
109 struct vprbrd *vb = dev_get_drvdata(pdev->dev.parent); in vprbrd_adc_probe() local
[all …]
/drivers/media/usb/au0828/
Dau0828-vbi.c35 static int vbi_buffer_prepare(struct vb2_buffer *vb) in vbi_buffer_prepare() argument
37 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_prepare()
42 if (vb2_plane_size(vb, 0) < size) { in vbi_buffer_prepare()
44 __func__, vb2_plane_size(vb, 0), size); in vbi_buffer_prepare()
47 vb2_set_plane_payload(vb, 0, size); in vbi_buffer_prepare()
53 vbi_buffer_queue(struct vb2_buffer *vb) in vbi_buffer_queue() argument
55 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue()
56 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_buffer_queue()
58 container_of(vbuf, struct au0828_buffer, vb); in vbi_buffer_queue()
62 buf->mem = vb2_plane_vaddr(vb, 0); in vbi_buffer_queue()
[all …]
/drivers/i2c/busses/
Di2c-viperboard.c40 struct vprbrd *vb = (struct vprbrd *)i2c->algo_data; in vprbrd_i2c_status() local
45 ret = usb_control_msg(vb->usb_dev, usb_rcvctrlpipe(vb->usb_dev, 0), in vprbrd_i2c_status()
113 static int vprbrd_i2c_read(struct vprbrd *vb, struct i2c_msg *msg) in vprbrd_i2c_read() argument
118 (struct vprbrd_i2c_read_msg *)vb->buf; in vprbrd_i2c_read()
200 ret = vprbrd_i2c_receive(vb->usb_dev, rmsg, len1); in vprbrd_i2c_read()
208 ret = vprbrd_i2c_receive(vb->usb_dev, rmsg, len2); in vprbrd_i2c_read()
218 static int vprbrd_i2c_write(struct vprbrd *vb, struct i2c_msg *msg) in vprbrd_i2c_write() argument
224 (struct vprbrd_i2c_write_msg *)vb->buf; in vprbrd_i2c_write()
255 ret = usb_bulk_msg(vb->usb_dev, in vprbrd_i2c_write()
256 usb_sndbulkpipe(vb->usb_dev, in vprbrd_i2c_write()
[all …]
/drivers/media/usb/em28xx/
Dem28xx-vbi.c44 static int vbi_buffer_prepare(struct vb2_buffer *vb) in vbi_buffer_prepare() argument
46 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_prepare()
52 if (vb2_plane_size(vb, 0) < size) { in vbi_buffer_prepare()
55 __func__, vb2_plane_size(vb, 0), size); in vbi_buffer_prepare()
58 vb2_set_plane_payload(vb, 0, size); in vbi_buffer_prepare()
64 vbi_buffer_queue(struct vb2_buffer *vb) in vbi_buffer_queue() argument
66 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_buffer_queue()
67 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue()
69 container_of(vbuf, struct em28xx_buffer, vb); in vbi_buffer_queue()
73 buf->mem = vb2_plane_vaddr(vb, 0); in vbi_buffer_queue()
[all …]
/drivers/media/v4l2-core/
Dv4l2-compat-ioctl32.c400 static int get_v4l2_buffer32(struct v4l2_buffer *vb, in get_v4l2_buffer32() argument
408 memset(vb, 0, sizeof(*vb)); in get_v4l2_buffer32()
409 *vb = (struct v4l2_buffer) { in get_v4l2_buffer32()
425 switch (vb->memory) { in get_v4l2_buffer32()
428 vb->m.offset = vb32.m.offset; in get_v4l2_buffer32()
431 vb->m.userptr = (unsigned long)compat_ptr(vb32.m.userptr); in get_v4l2_buffer32()
434 vb->m.fd = vb32.m.fd; in get_v4l2_buffer32()
438 if (V4L2_TYPE_IS_MULTIPLANAR(vb->type)) in get_v4l2_buffer32()
439 vb->m.planes = (void __force *) in get_v4l2_buffer32()
446 static int get_v4l2_buffer32_time32(struct v4l2_buffer *vb, in get_v4l2_buffer32_time32() argument
[all …]
/drivers/media/pci/cx88/
Dcx88-vbi.c108 buf, buf->vb.vb2_buf.index); in cx8800_restart_vbi_queue()
129 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument
131 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare()
132 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare()
133 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_prepare()
134 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare()
143 if (vb2_plane_size(vb, 0) < size) in buffer_prepare()
145 vb2_set_plane_payload(vb, 0, size); in buffer_prepare()
153 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument
155 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish()
[all …]
/drivers/media/pci/cx23885/
Dcx23885-vbi.c128 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument
130 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare()
131 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare()
133 struct cx23885_buffer, vb); in buffer_prepare()
134 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare()
140 if (vb2_plane_size(vb, 0) < lines * VBI_LINE_LENGTH * 2) in buffer_prepare()
142 vb2_set_plane_payload(vb, 0, lines * VBI_LINE_LENGTH * 2); in buffer_prepare()
152 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument
154 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish()
156 struct cx23885_buffer, vb); in buffer_finish()
[all …]
/drivers/media/platform/rockchip/rga/
Drga-buf.c74 static int rga_buf_init(struct vb2_buffer *vb) in rga_buf_init() argument
76 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in rga_buf_init()
78 struct rga_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in rga_buf_init()
80 struct rga_frame *f = rga_get_frame(ctx, vb->vb2_queue->type); in rga_buf_init()
107 static int rga_buf_prepare(struct vb2_buffer *vb) in rga_buf_prepare() argument
109 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in rga_buf_prepare()
111 struct rga_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in rga_buf_prepare()
112 struct rga_frame *f = rga_get_frame(ctx, vb->vb2_queue->type); in rga_buf_prepare()
122 for (i = 0; i < vb->num_planes; i++) { in rga_buf_prepare()
123 vb2_set_plane_payload(vb, i, f->pix.plane_fmt[i].sizeimage); in rga_buf_prepare()
[all …]
/drivers/media/dvb-core/
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 …]
/drivers/media/platform/mediatek/vcodec/decoder/
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 …]
/drivers/gpu/drm/i915/gt/
Dselftest_tlb.c34 struct i915_vma *vb, in pte_tlbinv() argument
75 if (vb != va) { in pte_tlbinv()
76 vb_node = vb->node; in pte_tlbinv()
77 vb->node = va->node; /* overwrites the _same_ PTE */ in pte_tlbinv()
93 if (va != vb) in pte_tlbinv()
115 vma_set_qw(vb, addr, 0); in pte_tlbinv()
148 if (va == vb) { in pte_tlbinv()
158 .bi.pages = vb->obj->mm.pages, in pte_tlbinv()
159 .bi.page_sizes = vb->obj->mm.page_sizes, in pte_tlbinv()
160 .start = i915_vma_offset(vb), in pte_tlbinv()
[all …]
/drivers/media/usb/uvc/
Duvc_queue.c98 static int uvc_buffer_prepare(struct vb2_buffer *vb) in uvc_buffer_prepare() argument
100 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_prepare()
101 struct uvc_video_queue *queue = vb2_get_drv_priv(vb->vb2_queue); in uvc_buffer_prepare()
104 if (vb->type == V4L2_BUF_TYPE_VIDEO_OUTPUT && in uvc_buffer_prepare()
105 vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) { in uvc_buffer_prepare()
116 buf->mem = vb2_plane_vaddr(vb, 0); in uvc_buffer_prepare()
117 buf->length = vb2_plane_size(vb, 0); in uvc_buffer_prepare()
118 if (vb->type != V4L2_BUF_TYPE_VIDEO_OUTPUT) in uvc_buffer_prepare()
121 buf->bytesused = vb2_get_plane_payload(vb, 0); in uvc_buffer_prepare()
126 static void uvc_buffer_queue(struct vb2_buffer *vb) in uvc_buffer_queue() argument
[all …]

12345678910>>...13