/linux-4.1.27/drivers/virtio/ |
D | virtio_balloon.c | 108 struct virtio_balloon *vb = vq->vdev->priv; in balloon_ack() local 110 wake_up(&vb->acked); in balloon_ack() 113 static void tell_host(struct virtio_balloon *vb, struct virtqueue *vq) in tell_host() argument 118 sg_init_one(&sg, vb->pfns, sizeof(vb->pfns[0]) * vb->num_pfns); in tell_host() 121 virtqueue_add_outbuf(vq, &sg, 1, vb, GFP_KERNEL); in tell_host() 125 wait_event(vb->acked, virtqueue_get_buf(vq, &len)); in tell_host() 138 static void fill_balloon(struct virtio_balloon *vb, size_t num) in fill_balloon() argument 140 struct balloon_dev_info *vb_dev_info = &vb->vb_dev_info; in fill_balloon() 143 num = min(num, ARRAY_SIZE(vb->pfns)); in fill_balloon() 145 mutex_lock(&vb->balloon_lock); in fill_balloon() [all …]
|
/linux-4.1.27/drivers/media/v4l2-core/ |
D | videobuf2-core.c | 52 #define log_memop(vb, op) \ argument 54 (vb)->vb2_queue, (vb)->v4l2_buf.index, #op, \ 55 (vb)->vb2_queue->mem_ops->op ? "" : " (nop)") 57 #define call_memop(vb, op, args...) \ argument 59 struct vb2_queue *_q = (vb)->vb2_queue; \ 62 log_memop(vb, op); \ 65 (vb)->cnt_mem_ ## op++; \ 69 #define call_ptr_memop(vb, op, args...) \ argument 71 struct vb2_queue *_q = (vb)->vb2_queue; \ 74 log_memop(vb, op); \ [all …]
|
D | videobuf-vmalloc.c | 141 struct videobuf_buffer *vb; in __videobuf_alloc_vb() local 143 vb = kzalloc(size + sizeof(*mem), GFP_KERNEL); in __videobuf_alloc_vb() 144 if (!vb) in __videobuf_alloc_vb() 145 return vb; in __videobuf_alloc_vb() 147 mem = vb->priv = ((char *)vb) + size; in __videobuf_alloc_vb() 151 __func__, vb, (long)sizeof(*vb), (long)size - sizeof(*vb), in __videobuf_alloc_vb() 154 return vb; in __videobuf_alloc_vb() 158 struct videobuf_buffer *vb, in __videobuf_iolock() argument 161 struct videobuf_vmalloc_memory *mem = vb->priv; in __videobuf_iolock() 168 switch (vb->memory) { in __videobuf_iolock() [all …]
|
D | videobuf-dma-contig.c | 161 struct videobuf_buffer *vb) in videobuf_dma_contig_user_get() argument 170 offset = vb->baddr & ~PAGE_MASK; in videobuf_dma_contig_user_get() 171 mem->size = PAGE_ALIGN(vb->size + offset); in videobuf_dma_contig_user_get() 176 vma = find_vma(mm, vb->baddr); in videobuf_dma_contig_user_get() 180 if ((vb->baddr + mem->size) > vma->vm_end) in videobuf_dma_contig_user_get() 185 user_address = vb->baddr; in videobuf_dma_contig_user_get() 214 struct videobuf_buffer *vb; in __videobuf_alloc() local 216 vb = kzalloc(size + sizeof(*mem), GFP_KERNEL); in __videobuf_alloc() 217 if (vb) { in __videobuf_alloc() 218 vb->priv = ((char *)vb) + size; in __videobuf_alloc() [all …]
|
D | videobuf-dma-sg.c | 471 struct videobuf_buffer *vb; in __videobuf_alloc_vb() local 473 vb = kzalloc(size + sizeof(*mem), GFP_KERNEL); in __videobuf_alloc_vb() 474 if (!vb) in __videobuf_alloc_vb() 475 return vb; in __videobuf_alloc_vb() 477 mem = vb->priv = ((char *)vb) + size; in __videobuf_alloc_vb() 483 __func__, vb, (long)sizeof(*vb), (long)size - sizeof(*vb), in __videobuf_alloc_vb() 486 return vb; in __videobuf_alloc_vb() 500 struct videobuf_buffer *vb, in __videobuf_iolock() argument 505 struct videobuf_dma_sg_memory *mem = vb->priv; in __videobuf_iolock() 515 switch (vb->memory) { in __videobuf_iolock() [all …]
|
D | videobuf-core.c | 59 struct videobuf_buffer *vb; in videobuf_alloc_vb() local 61 BUG_ON(q->msize < sizeof(*vb)); in videobuf_alloc_vb() 68 vb = q->int_ops->alloc_vb(q->msize); in videobuf_alloc_vb() 69 if (NULL != vb) { in videobuf_alloc_vb() 70 init_waitqueue_head(&vb->done); in videobuf_alloc_vb() 71 vb->magic = MAGIC_BUFFER; in videobuf_alloc_vb() 74 return vb; in videobuf_alloc_vb() 78 static int is_state_active_or_queued(struct videobuf_queue *q, struct videobuf_buffer *vb) in is_state_active_or_queued() argument 84 rc = vb->state != VIDEOBUF_ACTIVE && vb->state != VIDEOBUF_QUEUED; in is_state_active_or_queued() 89 int videobuf_waiton(struct videobuf_queue *q, struct videobuf_buffer *vb, in videobuf_waiton() argument [all …]
|
D | v4l2-mem2mem.c | 112 return &b->vb; in v4l2_m2m_next_buf() 135 return &b->vb; in v4l2_m2m_buf_remove() 742 void v4l2_m2m_buf_queue(struct v4l2_m2m_ctx *m2m_ctx, struct vb2_buffer *vb) in v4l2_m2m_buf_queue() argument 744 struct v4l2_m2m_buffer *b = container_of(vb, struct v4l2_m2m_buffer, vb); in v4l2_m2m_buf_queue() 748 q_ctx = get_queue_ctx(m2m_ctx, vb->vb2_queue->type); in v4l2_m2m_buf_queue()
|
D | videobuf2-dvb.c | 30 static int dvb_fnc(struct vb2_buffer *vb, void *priv) in dvb_fnc() argument 34 dvb_dmx_swfilter(&dvb->demux, vb2_plane_vaddr(vb, 0), in dvb_fnc() 35 vb2_get_plane_payload(vb, 0)); in dvb_fnc()
|
/linux-4.1.27/drivers/mfd/ |
D | viperboard.c | 55 struct vprbrd *vb; in vprbrd_probe() local 61 vb = kzalloc(sizeof(*vb), GFP_KERNEL); in vprbrd_probe() 62 if (vb == NULL) { in vprbrd_probe() 67 mutex_init(&vb->lock); in vprbrd_probe() 69 vb->usb_dev = usb_get_dev(interface_to_usbdev(interface)); in vprbrd_probe() 72 usb_set_intfdata(interface, vb); in vprbrd_probe() 73 dev_set_drvdata(&vb->pdev.dev, vb); in vprbrd_probe() 76 pipe = usb_rcvctrlpipe(vb->usb_dev, 0); in vprbrd_probe() 77 ret = usb_control_msg(vb->usb_dev, pipe, VPRBRD_USB_REQUEST_MAJOR, in vprbrd_probe() 78 VPRBRD_USB_TYPE_IN, 0x0000, 0x0000, vb->buf, 1, in vprbrd_probe() [all …]
|
/linux-4.1.27/drivers/gpio/ |
D | gpio-viperboard.c | 75 struct vprbrd *vb; member 93 struct vprbrd *vb = gpio->vb; in vprbrd_gpioa_get() local 94 struct vprbrd_gpioa_msg *gamsg = (struct vprbrd_gpioa_msg *)vb->buf; in vprbrd_gpioa_get() 100 mutex_lock(&vb->lock); in vprbrd_gpioa_get() 114 ret = usb_control_msg(vb->usb_dev, usb_sndctrlpipe(vb->usb_dev, 0), in vprbrd_gpioa_get() 121 ret = usb_control_msg(vb->usb_dev, usb_rcvctrlpipe(vb->usb_dev, 0), in vprbrd_gpioa_get() 127 mutex_unlock(&vb->lock); in vprbrd_gpioa_get() 144 struct vprbrd *vb = gpio->vb; in vprbrd_gpioa_set() local 145 struct vprbrd_gpioa_msg *gamsg = (struct vprbrd_gpioa_msg *)vb->buf; in vprbrd_gpioa_set() 153 mutex_lock(&vb->lock); in vprbrd_gpioa_set() [all …]
|
/linux-4.1.27/drivers/media/usb/go7007/ |
D | go7007-driver.c | 387 static inline void store_byte(struct go7007_buffer *vb, u8 byte) in store_byte() argument 389 if (vb && vb->vb.v4l2_planes[0].bytesused < GO7007_BUF_SIZE) { in store_byte() 390 u8 *ptr = vb2_plane_vaddr(&vb->vb, 0); in store_byte() 392 ptr[vb->vb.v4l2_planes[0].bytesused++] = byte; in store_byte() 396 static void go7007_set_motion_regions(struct go7007 *go, struct go7007_buffer *vb, in go7007_set_motion_regions() argument 404 .frame_sequence = vb->vb.v4l2_buf.sequence, in go7007_set_motion_regions() 418 static void go7007_motion_regions(struct go7007 *go, struct go7007_buffer *vb) in go7007_motion_regions() argument 420 u32 *bytesused = &vb->vb.v4l2_planes[0].bytesused; in go7007_motion_regions() 428 store_byte(vb, go->active_map[i]); in go7007_motion_regions() 441 go7007_set_motion_regions(go, vb, motion_regions); in go7007_motion_regions() [all …]
|
D | go7007-v4l2.c | 53 static u32 get_frame_type_flag(struct go7007_buffer *vb, int format) in get_frame_type_flag() argument 55 u8 *ptr = vb2_plane_vaddr(&vb->vb, 0); in get_frame_type_flag() 61 switch ((ptr[vb->frame_offset + 4] >> 6) & 0x3) { in get_frame_type_flag() 73 switch ((ptr[vb->frame_offset + 5] >> 3) & 0x7) { in get_frame_type_flag() 383 static void go7007_buf_queue(struct vb2_buffer *vb) in go7007_buf_queue() argument 385 struct vb2_queue *vq = vb->vb2_queue; in go7007_buf_queue() 388 container_of(vb, struct go7007_buffer, vb); in go7007_buf_queue() 396 static int go7007_buf_prepare(struct vb2_buffer *vb) in go7007_buf_prepare() argument 399 container_of(vb, struct go7007_buffer, vb); in go7007_buf_prepare() 403 vb->v4l2_planes[0].bytesused = 0; in go7007_buf_prepare() [all …]
|
D | go7007-priv.h | 139 struct vb2_buffer vb; member
|
/linux-4.1.27/drivers/media/usb/em28xx/ |
D | em28xx-vbi.c | 60 static int vbi_buffer_prepare(struct vb2_buffer *vb) in vbi_buffer_prepare() argument 62 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_prepare() 64 struct em28xx_buffer *buf = container_of(vb, struct em28xx_buffer, vb); in vbi_buffer_prepare() 69 if (vb2_plane_size(vb, 0) < size) { in vbi_buffer_prepare() 71 __func__, vb2_plane_size(vb, 0), size); in vbi_buffer_prepare() 74 vb2_set_plane_payload(&buf->vb, 0, size); in vbi_buffer_prepare() 80 vbi_buffer_queue(struct vb2_buffer *vb) in vbi_buffer_queue() argument 82 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue() 83 struct em28xx_buffer *buf = container_of(vb, struct em28xx_buffer, vb); in vbi_buffer_queue() 87 buf->mem = vb2_plane_vaddr(vb, 0); in vbi_buffer_queue() [all …]
|
D | em28xx-video.c | 436 buf->vb.v4l2_buf.sequence = dev->v4l2->field_count++; in finish_buffer() 438 buf->vb.v4l2_buf.field = V4L2_FIELD_NONE; in finish_buffer() 440 buf->vb.v4l2_buf.field = V4L2_FIELD_INTERLACED; in finish_buffer() 441 v4l2_get_timestamp(&buf->vb.v4l2_buf.timestamp); in finish_buffer() 443 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_DONE); in finish_buffer() 902 buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 904 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in buffer_prepare() 906 struct em28xx_buffer *buf = container_of(vb, struct em28xx_buffer, vb); in buffer_prepare() 909 em28xx_videodbg("%s, field=%d\n", __func__, vb->v4l2_buf.field); in buffer_prepare() 913 if (vb2_plane_size(vb, 0) < size) { in buffer_prepare() [all …]
|
D | em28xx.h | 267 struct vb2_buffer vb; member
|
/linux-4.1.27/drivers/media/usb/au0828/ |
D | au0828-vbi.c | 52 static int vbi_buffer_prepare(struct vb2_buffer *vb) in vbi_buffer_prepare() argument 54 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_prepare() 55 struct au0828_buffer *buf = container_of(vb, struct au0828_buffer, vb); in vbi_buffer_prepare() 60 if (vb2_plane_size(vb, 0) < size) { in vbi_buffer_prepare() 62 __func__, vb2_plane_size(vb, 0), size); in vbi_buffer_prepare() 65 vb2_set_plane_payload(&buf->vb, 0, size); in vbi_buffer_prepare() 71 vbi_buffer_queue(struct vb2_buffer *vb) in vbi_buffer_queue() argument 73 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue() 74 struct au0828_buffer *buf = container_of(vb, struct au0828_buffer, vb); in vbi_buffer_queue() 78 buf->mem = vb2_plane_vaddr(vb, 0); in vbi_buffer_queue() [all …]
|
D | au0828-video.c | 304 struct vb2_buffer *vb = &buf->vb; in buffer_filled() local 305 struct vb2_queue *q = vb->vb2_queue; in buffer_filled() 311 vb->v4l2_buf.sequence = dev->frame_count++; in buffer_filled() 313 vb->v4l2_buf.sequence = dev->vbi_frame_count++; in buffer_filled() 315 vb->v4l2_buf.field = V4L2_FIELD_INTERLACED; in buffer_filled() 316 v4l2_get_timestamp(&vb->v4l2_buf.timestamp); in buffer_filled() 317 vb2_buffer_done(vb, VB2_BUF_STATE_DONE); in buffer_filled() 533 outp = vb2_plane_vaddr(&buf->vb, 0); in au0828_isoc_copy() 537 vbioutp = vb2_plane_vaddr(&vbi_buf->vb, 0); in au0828_isoc_copy() 576 &vbi_buf->vb, 0); in au0828_isoc_copy() [all …]
|
D | au0828.h | 171 struct vb2_buffer vb; member
|
/linux-4.1.27/drivers/iio/adc/ |
D | viperboard_adc.c | 37 struct vprbrd *vb; member 62 struct vprbrd *vb = adc->vb; in vprbrd_iio_read_raw() local 63 struct vprbrd_adc_msg *admsg = (struct vprbrd_adc_msg *)vb->buf; in vprbrd_iio_read_raw() 67 mutex_lock(&vb->lock); in vprbrd_iio_read_raw() 73 ret = usb_control_msg(vb->usb_dev, in vprbrd_iio_read_raw() 74 usb_sndctrlpipe(vb->usb_dev, 0), VPRBRD_USB_REQUEST_ADC, in vprbrd_iio_read_raw() 82 ret = usb_control_msg(vb->usb_dev, in vprbrd_iio_read_raw() 83 usb_rcvctrlpipe(vb->usb_dev, 0), VPRBRD_USB_REQUEST_ADC, in vprbrd_iio_read_raw() 89 mutex_unlock(&vb->lock); in vprbrd_iio_read_raw() 115 struct vprbrd *vb = dev_get_drvdata(pdev->dev.parent); in vprbrd_adc_probe() local [all …]
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
D | r600_blit.c | 599 u32 *vb; in r600_blit_copy() local 601 vb = r600_nomm_get_vb_ptr(dev); in r600_blit_copy() 638 vb = r600_nomm_get_vb_ptr(dev); in r600_blit_copy() 641 vb[0] = int2float(dst_x); in r600_blit_copy() 642 vb[1] = 0; in r600_blit_copy() 643 vb[2] = int2float(src_x); in r600_blit_copy() 644 vb[3] = 0; in r600_blit_copy() 646 vb[4] = int2float(dst_x); in r600_blit_copy() 647 vb[5] = int2float(h); in r600_blit_copy() 648 vb[6] = int2float(src_x); in r600_blit_copy() [all …]
|
/linux-4.1.27/drivers/media/platform/ |
D | fsl-viu.c | 124 struct videobuf_buffer vb; member 335 buf = list_entry(vidq->active.next, struct viu_buf, vb.queue); in restart_video_queue() 337 buf, buf->vb.i); in restart_video_queue() 342 list_for_each_entry_safe(buf, prev, &vidq->active, vb.queue) { in restart_video_queue() 343 list_del(&buf->vb.queue); in restart_video_queue() 344 buf->vb.state = VIDEOBUF_ERROR; in restart_video_queue() 345 wake_up(&buf->vb.done); in restart_video_queue() 355 buf = list_entry(vidq->queued.next, struct viu_buf, vb.queue); in restart_video_queue() 357 list_move_tail(&buf->vb.queue, &vidq->active); in restart_video_queue() 363 buf->vb.state = VIDEOBUF_ACTIVE; in restart_video_queue() [all …]
|
D | timblogiw.c | 75 struct videobuf_buffer vb; member 122 struct videobuf_buffer *vb = &buf->vb; in timblogiw_dma_cb() local 131 if (vb->state != VIDEOBUF_ERROR) { in timblogiw_dma_cb() 132 list_del(&vb->queue); in timblogiw_dma_cb() 133 v4l2_get_timestamp(&vb->ts); in timblogiw_dma_cb() 134 vb->field_count = fh->frame_count * 2; in timblogiw_dma_cb() 135 vb->state = VIDEOBUF_DONE; in timblogiw_dma_cb() 137 wake_up(&vb->done); in timblogiw_dma_cb() 141 vb = list_entry(fh->capture.next, struct videobuf_buffer, in timblogiw_dma_cb() 143 vb->state = VIDEOBUF_ACTIVE; in timblogiw_dma_cb() [all …]
|
D | sh_vou.c | 181 struct videobuf_buffer *vb) in sh_vou_schedule_next() argument 185 addr1 = videobuf_to_dma_contig(vb); in sh_vou_schedule_next() 200 struct videobuf_buffer *vb) in sh_vou_stream_start() argument 227 sh_vou_schedule_next(vou_dev, vb); in sh_vou_stream_start() 230 static void free_buffer(struct videobuf_queue *vq, struct videobuf_buffer *vb) in free_buffer() argument 235 videobuf_waiton(vq, vb, 0, 0); in free_buffer() 236 videobuf_dma_contig_free(vq, vb); in free_buffer() 237 vb->state = VIDEOBUF_NEEDS_INIT; in free_buffer() 265 struct videobuf_buffer *vb, in sh_vou_buf_prepare() argument 276 if (vb->width != pix->width || in sh_vou_buf_prepare() [all …]
|
D | via-camera.c | 353 struct videobuf_buffer *vb; in viacam_irq() local 361 vb = viacam_next_buffer(cam); in viacam_irq() 362 if (vb == NULL) in viacam_irq() 374 vdma = videobuf_to_dma(vb); in viacam_irq() 376 vb->state = VIDEOBUF_DONE; in viacam_irq() 377 vb->size = cam->user_format.sizeimage; in viacam_irq() 378 wake_up(&vb->done); in viacam_irq() 598 struct videobuf_buffer *vb, enum v4l2_field field) in viacam_vb_buf_prepare() argument 602 vb->size = cam->user_format.sizeimage; in viacam_vb_buf_prepare() 603 vb->width = cam->user_format.width; /* bytesperline???? */ in viacam_vb_buf_prepare() [all …]
|
D | vim2m.c | 744 static int vim2m_buf_prepare(struct vb2_buffer *vb) in vim2m_buf_prepare() argument 746 struct vim2m_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vim2m_buf_prepare() 749 dprintk(ctx->dev, "type: %d\n", vb->vb2_queue->type); in vim2m_buf_prepare() 751 q_data = get_q_data(ctx, vb->vb2_queue->type); in vim2m_buf_prepare() 752 if (V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) { in vim2m_buf_prepare() 753 if (vb->v4l2_buf.field == V4L2_FIELD_ANY) in vim2m_buf_prepare() 754 vb->v4l2_buf.field = V4L2_FIELD_NONE; in vim2m_buf_prepare() 755 if (vb->v4l2_buf.field != V4L2_FIELD_NONE) { in vim2m_buf_prepare() 762 if (vb2_plane_size(vb, 0) < q_data->sizeimage) { in vim2m_buf_prepare() 764 __func__, vb2_plane_size(vb, 0), (long)q_data->sizeimage); in vim2m_buf_prepare() [all …]
|
D | mx2_emmaprp.c | 721 static int emmaprp_buf_prepare(struct vb2_buffer *vb) in emmaprp_buf_prepare() argument 723 struct emmaprp_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in emmaprp_buf_prepare() 726 dprintk(ctx->dev, "type: %d\n", vb->vb2_queue->type); in emmaprp_buf_prepare() 728 q_data = get_q_data(ctx, vb->vb2_queue->type); in emmaprp_buf_prepare() 730 if (vb2_plane_size(vb, 0) < q_data->sizeimage) { in emmaprp_buf_prepare() 733 vb2_plane_size(vb, 0), in emmaprp_buf_prepare() 738 vb2_set_plane_payload(vb, 0, q_data->sizeimage); in emmaprp_buf_prepare() 743 static void emmaprp_buf_queue(struct vb2_buffer *vb) in emmaprp_buf_queue() argument 745 struct emmaprp_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in emmaprp_buf_queue() 746 v4l2_m2m_buf_queue(ctx->m2m_ctx, vb); in emmaprp_buf_queue()
|
D | sh_veu.c | 911 static int sh_veu_buf_prepare(struct vb2_buffer *vb) in sh_veu_buf_prepare() argument 913 struct sh_veu_dev *veu = vb2_get_drv_priv(vb->vb2_queue); in sh_veu_buf_prepare() 917 vfmt = sh_veu_get_vfmt(veu, vb->vb2_queue->type); in sh_veu_buf_prepare() 921 if (vb2_plane_size(vb, 0) < sizeimage) { in sh_veu_buf_prepare() 923 __func__, vb2_plane_size(vb, 0), sizeimage); in sh_veu_buf_prepare() 927 vb2_set_plane_payload(vb, 0, sizeimage); in sh_veu_buf_prepare() 932 static void sh_veu_buf_queue(struct vb2_buffer *vb) in sh_veu_buf_queue() argument 934 struct sh_veu_dev *veu = vb2_get_drv_priv(vb->vb2_queue); in sh_veu_buf_queue() 935 dev_dbg(veu->dev, "%s(%d)\n", __func__, vb->v4l2_buf.type); in sh_veu_buf_queue() 936 v4l2_m2m_buf_queue(veu->m2m_ctx, vb); in sh_veu_buf_queue()
|
D | m2m-deinterlace.c | 830 static int deinterlace_buf_prepare(struct vb2_buffer *vb) in deinterlace_buf_prepare() argument 832 struct deinterlace_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in deinterlace_buf_prepare() 835 dprintk(ctx->dev, "type: %d\n", vb->vb2_queue->type); in deinterlace_buf_prepare() 837 q_data = get_q_data(vb->vb2_queue->type); in deinterlace_buf_prepare() 839 if (vb2_plane_size(vb, 0) < q_data->sizeimage) { in deinterlace_buf_prepare() 841 __func__, vb2_plane_size(vb, 0), (long)q_data->sizeimage); in deinterlace_buf_prepare() 845 vb2_set_plane_payload(vb, 0, q_data->sizeimage); in deinterlace_buf_prepare() 850 static void deinterlace_buf_queue(struct vb2_buffer *vb) in deinterlace_buf_queue() argument 852 struct deinterlace_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in deinterlace_buf_queue() 853 v4l2_m2m_buf_queue(ctx->m2m_ctx, vb); in deinterlace_buf_queue()
|
/linux-4.1.27/drivers/media/pci/bt8xx/ |
D | bttv-risc.c | 583 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); in bttv_dma_free() 586 videobuf_waiton(q, &buf->vb, 0, 0); in bttv_dma_free() 591 buf->vb.state = VIDEOBUF_NEEDS_INIT; in bttv_dma_free() 611 vbi->vb.state = VIDEOBUF_ACTIVE; in bttv_buffer_activate_vbi() 612 list_del(&vbi->vb.queue); in bttv_buffer_activate_vbi() 653 set->top->vb.state = VIDEOBUF_ACTIVE; in bttv_buffer_activate_video() 654 if (set->top->vb.queue.next) in bttv_buffer_activate_video() 655 list_del(&set->top->vb.queue); in bttv_buffer_activate_video() 657 set->top->vb.state = VIDEOBUF_ACTIVE; in bttv_buffer_activate_video() 658 set->bottom->vb.state = VIDEOBUF_ACTIVE; in bttv_buffer_activate_video() [all …]
|
D | bttv-vbi.c | 104 struct videobuf_buffer *vb, in vbi_buffer_prepare() argument 109 struct bttv_buffer *buf = container_of(vb,struct bttv_buffer,vb); in vbi_buffer_prepare() 115 buf->vb.size = IMAGE_SIZE(&fh->vbi_fmt.fmt); in vbi_buffer_prepare() 116 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) in vbi_buffer_prepare() 151 if (VIDEOBUF_NEEDS_INIT == buf->vb.state) { in vbi_buffer_prepare() 153 if (0 != (rc = videobuf_iolock(q, &buf->vb, NULL))) in vbi_buffer_prepare() 159 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); in vbi_buffer_prepare() 198 buf->vb.state = VIDEOBUF_PREPARED; in vbi_buffer_prepare() 199 buf->vb.field = field; in vbi_buffer_prepare() 201 vb, &buf->top, &buf->bottom, in vbi_buffer_prepare() [all …]
|
D | bttv-driver.c | 1537 new->vb.state = VIDEOBUF_DONE; in bttv_switch_overlay() 1546 old, old->vb.state); in bttv_switch_overlay() 1577 if (width*height > buf->vb.bsize) in bttv_prepare_buffer() 1579 buf->vb.size = buf->vb.bsize; in bttv_prepare_buffer() 1618 buf->vb.size = (width * height * fmt->depth) >> 3; in bttv_prepare_buffer() 1619 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) in bttv_prepare_buffer() 1624 if (buf->vb.width != width || buf->vb.height != height || in bttv_prepare_buffer() 1625 buf->vb.field != field || in bttv_prepare_buffer() 1631 buf->vb.width = width; in bttv_prepare_buffer() 1632 buf->vb.height = height; in bttv_prepare_buffer() [all …]
|
D | bttvp.h | 158 struct videobuf_buffer vb; member
|
/linux-4.1.27/drivers/media/pci/cx23885/ |
D | cx23885-vbi.c | 139 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 141 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare() 142 struct cx23885_buffer *buf = container_of(vb, in buffer_prepare() 143 struct cx23885_buffer, vb); in buffer_prepare() 144 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare() 150 if (vb2_plane_size(vb, 0) < lines * VBI_LINE_LENGTH * 2) in buffer_prepare() 152 vb2_set_plane_payload(vb, 0, lines * VBI_LINE_LENGTH * 2); in buffer_prepare() 162 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument 164 struct cx23885_buffer *buf = container_of(vb, in buffer_finish() 165 struct cx23885_buffer, vb); in buffer_finish() [all …]
|
D | cx23885-video.c | 107 buf->vb.v4l2_buf.sequence = q->count++; in cx23885_video_wakeup() 108 v4l2_get_timestamp(&buf->vb.v4l2_buf.timestamp); in cx23885_video_wakeup() 109 dprintk(2, "[%p/%d] wakeup reg=%d buf=%d\n", buf, buf->vb.v4l2_buf.index, in cx23885_video_wakeup() 112 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_DONE); in cx23885_video_wakeup() 330 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 332 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare() 334 container_of(vb, struct cx23885_buffer, vb); in buffer_prepare() 336 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare() 341 if (vb2_plane_size(vb, 0) < dev->height * buf->bpl) in buffer_prepare() 343 vb2_set_plane_payload(vb, 0, dev->height * buf->bpl); in buffer_prepare() [all …]
|
D | cx23885-417.c | 1156 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 1158 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare() 1160 container_of(vb, struct cx23885_buffer, vb); in buffer_prepare() 1165 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument 1167 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_finish() 1168 struct cx23885_buffer *buf = container_of(vb, in buffer_finish() 1169 struct cx23885_buffer, vb); in buffer_finish() 1174 static void buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument 1176 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_queue() 1177 struct cx23885_buffer *buf = container_of(vb, in buffer_queue() [all …]
|
D | cx23885-dvb.c | 111 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 113 struct cx23885_tsport *port = vb->vb2_queue->drv_priv; in buffer_prepare() 115 container_of(vb, struct cx23885_buffer, vb); in buffer_prepare() 120 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument 122 struct cx23885_tsport *port = vb->vb2_queue->drv_priv; in buffer_finish() 124 struct cx23885_buffer *buf = container_of(vb, in buffer_finish() 125 struct cx23885_buffer, vb); in buffer_finish() 130 static void buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument 132 struct cx23885_tsport *port = vb->vb2_queue->drv_priv; in buffer_queue() 133 struct cx23885_buffer *buf = container_of(vb, in buffer_queue() [all …]
|
D | cx23885-core.c | 430 v4l2_get_timestamp(&buf->vb.v4l2_buf.timestamp); in cx23885_wakeup() 431 buf->vb.v4l2_buf.sequence = q->count++; in cx23885_wakeup() 432 dprintk(1, "[%p/%d] wakeup reg=%d buf=%d\n", buf, buf->vb.v4l2_buf.index, in cx23885_wakeup() 435 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_DONE); in cx23885_wakeup() 1456 struct sg_table *sgt = vb2_dma_sg_plane_desc(&buf->vb, 0); in cx23885_buf_prepare() 1459 if (vb2_plane_size(&buf->vb, 0) < size) in cx23885_buf_prepare() 1461 vb2_set_plane_payload(&buf->vb, 0, size); in cx23885_buf_prepare() 1506 buf, buf->vb.v4l2_buf.index, __func__); in cx23885_buf_queue() 1514 buf, buf->vb.v4l2_buf.index, __func__); in cx23885_buf_queue() 1533 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in do_cancel_buffers() [all …]
|
D | cx23885.h | 173 struct vb2_buffer vb; member
|
/linux-4.1.27/drivers/i2c/busses/ |
D | i2c-viperboard.c | 45 struct vprbrd *vb = (struct vprbrd *)i2c->algo_data; in vprbrd_i2c_status() local 50 ret = usb_control_msg(vb->usb_dev, usb_rcvctrlpipe(vb->usb_dev, 0), in vprbrd_i2c_status() 118 static int vprbrd_i2c_read(struct vprbrd *vb, struct i2c_msg *msg) in vprbrd_i2c_read() argument 123 (struct vprbrd_i2c_read_msg *)vb->buf; in vprbrd_i2c_read() 205 ret = vprbrd_i2c_receive(vb->usb_dev, rmsg, len1); in vprbrd_i2c_read() 213 ret = vprbrd_i2c_receive(vb->usb_dev, rmsg, len2); in vprbrd_i2c_read() 223 static int vprbrd_i2c_write(struct vprbrd *vb, struct i2c_msg *msg) in vprbrd_i2c_write() argument 229 (struct vprbrd_i2c_write_msg *)vb->buf; in vprbrd_i2c_write() 260 ret = usb_bulk_msg(vb->usb_dev, in vprbrd_i2c_write() 261 usb_sndbulkpipe(vb->usb_dev, in vprbrd_i2c_write() [all …]
|
/linux-4.1.27/drivers/media/platform/vivid/ |
D | vivid-vbi-cap.c | 97 u8 *vbuf = vb2_plane_vaddr(&buf->vb, 0); in vivid_raw_vbi_cap_process() 100 buf->vb.v4l2_buf.sequence = dev->vbi_cap_seq_count; in vivid_raw_vbi_cap_process() 102 buf->vb.v4l2_buf.sequence /= 2; in vivid_raw_vbi_cap_process() 104 vivid_sliced_vbi_cap_fill(dev, buf->vb.v4l2_buf.sequence); in vivid_raw_vbi_cap_process() 106 memset(vbuf, 0x10, vb2_plane_size(&buf->vb, 0)); in vivid_raw_vbi_cap_process() 111 v4l2_get_timestamp(&buf->vb.v4l2_buf.timestamp); in vivid_raw_vbi_cap_process() 112 buf->vb.v4l2_buf.timestamp.tv_sec += dev->time_wrap_offset; in vivid_raw_vbi_cap_process() 118 struct v4l2_sliced_vbi_data *vbuf = vb2_plane_vaddr(&buf->vb, 0); in vivid_sliced_vbi_cap_process() 120 buf->vb.v4l2_buf.sequence = dev->vbi_cap_seq_count; in vivid_sliced_vbi_cap_process() 122 buf->vb.v4l2_buf.sequence /= 2; in vivid_sliced_vbi_cap_process() [all …]
|
D | vivid-kthread-out.c | 90 vid_out_buf->vb.v4l2_buf.sequence = dev->vid_out_seq_count; in vivid_thread_vid_out_tick() 96 vid_out_buf->vb.v4l2_buf.sequence /= 2; in vivid_thread_vid_out_tick() 98 v4l2_get_timestamp(&vid_out_buf->vb.v4l2_buf.timestamp); in vivid_thread_vid_out_tick() 99 vid_out_buf->vb.v4l2_buf.timestamp.tv_sec += dev->time_wrap_offset; in vivid_thread_vid_out_tick() 100 vb2_buffer_done(&vid_out_buf->vb, dev->dqbuf_error ? in vivid_thread_vid_out_tick() 103 vid_out_buf->vb.v4l2_buf.index); in vivid_thread_vid_out_tick() 110 vbi_out_buf->vb.v4l2_buf.sequence = dev->vbi_out_seq_count; in vivid_thread_vid_out_tick() 111 v4l2_get_timestamp(&vbi_out_buf->vb.v4l2_buf.timestamp); in vivid_thread_vid_out_tick() 112 vbi_out_buf->vb.v4l2_buf.timestamp.tv_sec += dev->time_wrap_offset; in vivid_thread_vid_out_tick() 113 vb2_buffer_done(&vbi_out_buf->vb, dev->dqbuf_error ? in vivid_thread_vid_out_tick() [all …]
|
D | vivid-vbi-out.c | 52 static int vbi_out_buf_prepare(struct vb2_buffer *vb) in vbi_out_buf_prepare() argument 54 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_out_buf_prepare() 56 unsigned size = vb->vb2_queue->type == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT ? in vbi_out_buf_prepare() 70 if (vb2_plane_size(vb, 0) < size) { in vbi_out_buf_prepare() 72 __func__, vb2_plane_size(vb, 0), size); in vbi_out_buf_prepare() 75 vb2_set_plane_payload(vb, 0, size); in vbi_out_buf_prepare() 80 static void vbi_out_buf_queue(struct vb2_buffer *vb) in vbi_out_buf_queue() argument 82 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_out_buf_queue() 83 struct vivid_buffer *buf = container_of(vb, struct vivid_buffer, vb); in vbi_out_buf_queue() 110 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_QUEUED); in vbi_out_start_streaming() [all …]
|
D | vivid-sdr-cap.c | 98 sdr_cap_buf->vb.v4l2_buf.sequence = dev->sdr_cap_seq_count; in vivid_thread_sdr_cap_tick() 100 v4l2_get_timestamp(&sdr_cap_buf->vb.v4l2_buf.timestamp); in vivid_thread_sdr_cap_tick() 101 sdr_cap_buf->vb.v4l2_buf.timestamp.tv_sec += dev->time_wrap_offset; in vivid_thread_sdr_cap_tick() 102 vb2_buffer_done(&sdr_cap_buf->vb, dev->dqbuf_error ? in vivid_thread_sdr_cap_tick() 204 static int sdr_cap_buf_prepare(struct vb2_buffer *vb) in sdr_cap_buf_prepare() argument 206 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in sdr_cap_buf_prepare() 219 if (vb2_plane_size(vb, 0) < size) { in sdr_cap_buf_prepare() 221 __func__, vb2_plane_size(vb, 0), size); in sdr_cap_buf_prepare() 224 vb2_set_plane_payload(vb, 0, size); in sdr_cap_buf_prepare() 229 static void sdr_cap_buf_queue(struct vb2_buffer *vb) in sdr_cap_buf_queue() argument [all …]
|
D | vivid-kthread-cap.c | 239 return vb2_plane_vaddr(&buf->vb, p); in plane_vaddr() 240 vbuf = vb2_plane_vaddr(&buf->vb, 0); in plane_vaddr() 249 bool blank = dev->must_blank[vid_cap_buf->vb.v4l2_buf.index]; in vivid_copy_buffer() 286 vid_cap_buf->vb.v4l2_buf.field = vid_out_buf->vb.v4l2_buf.field; in vivid_copy_buffer() 291 voutbuf += vid_out_buf->vb.v4l2_planes[p].data_offset; in vivid_copy_buffer() 436 buf->vb.v4l2_buf.sequence = dev->vid_cap_seq_count; in vivid_fillbuff() 442 v4l2_get_timestamp(&buf->vb.v4l2_buf.timestamp); in vivid_fillbuff() 450 buf->vb.v4l2_buf.field = ((dev->vid_cap_seq_count & 1) ^ is_60hz) ? in vivid_fillbuff() 456 buf->vb.v4l2_buf.sequence /= 2; in vivid_fillbuff() 458 buf->vb.v4l2_buf.field = dev->field_cap; in vivid_fillbuff() [all …]
|
D | vivid-vid-out.c | 110 static int vid_out_buf_prepare(struct vb2_buffer *vb) in vid_out_buf_prepare() argument 112 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vid_out_buf_prepare() 134 vb->v4l2_buf.field = dev->field_out; in vid_out_buf_prepare() 135 else if (vb->v4l2_buf.field != V4L2_FIELD_TOP && in vid_out_buf_prepare() 136 vb->v4l2_buf.field != V4L2_FIELD_BOTTOM) in vid_out_buf_prepare() 141 vb->v4l2_planes[p].data_offset; in vid_out_buf_prepare() 143 if (vb2_get_plane_payload(vb, p) < size) { in vid_out_buf_prepare() 145 __func__, p, vb2_get_plane_payload(vb, p), size); in vid_out_buf_prepare() 153 static void vid_out_buf_queue(struct vb2_buffer *vb) in vid_out_buf_queue() argument 155 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vid_out_buf_queue() [all …]
|
D | vivid-vid-cap.c | 170 static int vid_cap_buf_prepare(struct vb2_buffer *vb) in vid_cap_buf_prepare() argument 172 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vid_cap_buf_prepare() 194 if (vb2_plane_size(vb, p) < size) { in vid_cap_buf_prepare() 196 __func__, p, vb2_plane_size(vb, p), size); in vid_cap_buf_prepare() 200 vb2_set_plane_payload(vb, p, size); in vid_cap_buf_prepare() 201 vb->v4l2_planes[p].data_offset = dev->fmt_cap->data_offset[p]; in vid_cap_buf_prepare() 207 static void vid_cap_buf_finish(struct vb2_buffer *vb) in vid_cap_buf_finish() argument 209 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vid_cap_buf_finish() 210 struct v4l2_timecode *tc = &vb->v4l2_buf.timecode; in vid_cap_buf_finish() 212 unsigned seq = vb->v4l2_buf.sequence; in vid_cap_buf_finish() [all …]
|
D | vivid-core.h | 97 struct vb2_buffer vb; member
|
/linux-4.1.27/drivers/media/pci/cx88/ |
D | cx88-vbi.c | 103 buf, buf->vb.v4l2_buf.index); in cx8800_restart_vbi_queue() 128 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 130 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare() 131 struct cx88_buffer *buf = container_of(vb, struct cx88_buffer, vb); in buffer_prepare() 132 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare() 141 if (vb2_plane_size(vb, 0) < size) in buffer_prepare() 143 vb2_set_plane_payload(vb, 0, size); in buffer_prepare() 152 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument 154 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_finish() 155 struct cx88_buffer *buf = container_of(vb, struct cx88_buffer, vb); in buffer_finish() [all …]
|
D | cx88-blackbird.c | 654 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 656 struct cx8802_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare() 657 struct cx88_buffer *buf = container_of(vb, struct cx88_buffer, vb); in buffer_prepare() 659 return cx8802_buf_prepare(vb->vb2_queue, dev, buf); in buffer_prepare() 662 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument 664 struct cx8802_dev *dev = vb->vb2_queue->drv_priv; in buffer_finish() 665 struct cx88_buffer *buf = container_of(vb, struct cx88_buffer, vb); in buffer_finish() 673 static void buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument 675 struct cx8802_dev *dev = vb->vb2_queue->drv_priv; in buffer_queue() 676 struct cx88_buffer *buf = container_of(vb, struct cx88_buffer, vb); in buffer_queue() [all …]
|
D | cx88-video.c | 424 buf, buf->vb.v4l2_buf.index); in restart_video_queue() 447 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 449 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare() 451 struct cx88_buffer *buf = container_of(vb, struct cx88_buffer, vb); in buffer_prepare() 452 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare() 456 if (vb2_plane_size(vb, 0) < core->height * buf->bpl) in buffer_prepare() 458 vb2_set_plane_payload(vb, 0, core->height * buf->bpl); in buffer_prepare() 494 buf, buf->vb.v4l2_buf.index, in buffer_prepare() 500 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument 502 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_finish() [all …]
|
D | cx88-mpeg.c | 217 buf, buf->vb.v4l2_buf.index); in cx8802_restart_queue() 230 struct sg_table *sgt = vb2_dma_sg_plane_desc(&buf->vb, 0); in cx8802_buf_prepare() 234 if (vb2_plane_size(&buf->vb, 0) < size) in cx8802_buf_prepare() 236 vb2_set_plane_payload(&buf->vb, 0, size); in cx8802_buf_prepare() 265 buf, buf->vb.v4l2_buf.index, __func__); in cx8802_buf_queue() 275 buf, buf->vb.v4l2_buf.index, __func__); in cx8802_buf_queue() 291 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in do_cancel_buffers()
|
D | cx88-dvb.c | 100 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 102 struct cx8802_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare() 103 struct cx88_buffer *buf = container_of(vb, struct cx88_buffer, vb); in buffer_prepare() 105 return cx8802_buf_prepare(vb->vb2_queue, dev, buf); in buffer_prepare() 108 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument 110 struct cx8802_dev *dev = vb->vb2_queue->drv_priv; in buffer_finish() 111 struct cx88_buffer *buf = container_of(vb, struct cx88_buffer, vb); in buffer_finish() 119 static void buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument 121 struct cx8802_dev *dev = vb->vb2_queue->drv_priv; in buffer_queue() 122 struct cx88_buffer *buf = container_of(vb, struct cx88_buffer, vb); in buffer_queue() [all …]
|
D | cx88-core.c | 521 v4l2_get_timestamp(&buf->vb.v4l2_buf.timestamp); in cx88_wakeup() 523 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_DONE); in cx88_wakeup()
|
D | cx88.h | 324 struct vb2_buffer vb; member
|
/linux-4.1.27/block/partitions/ |
D | ldm.c | 640 struct vblk *vb; in ldm_create_data_partitions() local 657 vb = list_entry (item, struct vblk, list); in ldm_create_data_partitions() 658 part = &vb->vblk.part; in ldm_create_data_partitions() 786 static bool ldm_parse_cmp3 (const u8 *buffer, int buflen, struct vblk *vb) in ldm_parse_cmp3() argument 791 BUG_ON (!buffer || !vb); in ldm_parse_cmp3() 815 comp = &vb->vblk.comp; in ldm_parse_cmp3() 837 static int ldm_parse_dgr3 (const u8 *buffer, int buflen, struct vblk *vb) in ldm_parse_dgr3() argument 842 BUG_ON (!buffer || !vb); in ldm_parse_dgr3() 864 dgrp = &vb->vblk.dgrp; in ldm_parse_dgr3() 881 static bool ldm_parse_dgr4 (const u8 *buffer, int buflen, struct vblk *vb) in ldm_parse_dgr4() argument [all …]
|
/linux-4.1.27/fs/ceph/ |
D | ceph_frag.c | 10 unsigned vb = ceph_frag_value(b); in ceph_frag_compare() local 11 if (va < vb) in ceph_frag_compare() 13 if (va > vb) in ceph_frag_compare() 16 vb = ceph_frag_bits(b); in ceph_frag_compare() 17 if (va < vb) in ceph_frag_compare() 19 if (va > vb) in ceph_frag_compare()
|
/linux-4.1.27/drivers/media/usb/cx231xx/ |
D | cx231xx-vbi.c | 212 videobuf_vmalloc_free(&buf->vb); in free_buffer() 213 buf->vb.state = VIDEOBUF_NEEDS_INIT; in free_buffer() 217 vbi_buffer_prepare(struct videobuf_queue *vq, struct videobuf_buffer *vb, in vbi_buffer_prepare() argument 222 container_of(vb, struct cx231xx_buffer, vb); in vbi_buffer_prepare() 229 buf->vb.size = ((dev->width << 1) * height * 2); in vbi_buffer_prepare() 231 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) in vbi_buffer_prepare() 234 buf->vb.width = dev->width; in vbi_buffer_prepare() 235 buf->vb.height = height; in vbi_buffer_prepare() 236 buf->vb.field = field; in vbi_buffer_prepare() 237 buf->vb.field = V4L2_FIELD_SEQ_TB; in vbi_buffer_prepare() [all …]
|
D | cx231xx-417.c | 1264 videobuf_waiton(vq, &buf->vb, 0, 0); in free_buffer() 1265 videobuf_vmalloc_free(&buf->vb); in free_buffer() 1266 buf->vb.state = VIDEOBUF_NEEDS_INIT; in free_buffer() 1282 struct cx231xx_buffer, vb.queue); in buffer_copy() 1288 vbuf = videobuf_to_vmalloc(&buf->vb); in buffer_copy() 1312 buf->vb.state = VIDEOBUF_DONE; in buffer_copy() 1313 buf->vb.field_count++; in buffer_copy() 1314 v4l2_get_timestamp(&buf->vb.ts); in buffer_copy() 1315 list_del(&buf->vb.queue); in buffer_copy() 1316 wake_up(&buf->vb.done); in buffer_copy() [all …]
|
D | cx231xx-video.c | 184 cx231xx_isocdbg("[%p/%d] wakeup\n", buf, buf->vb.i); in buffer_filled() 185 buf->vb.state = VIDEOBUF_DONE; in buffer_filled() 186 buf->vb.field_count++; in buffer_filled() 187 v4l2_get_timestamp(&buf->vb.ts); in buffer_filled() 194 list_del(&buf->vb.queue); in buffer_filled() 195 wake_up(&buf->vb.done); in buffer_filled() 259 *buf = list_entry(dma_q->active.next, struct cx231xx_buffer, vb.queue); in get_next_buf() 262 outp = videobuf_to_vmalloc(&(*buf)->vb); in get_next_buf() 263 memset(outp, 0, (*buf)->vb.size); in get_next_buf() 671 p_out_buffer = videobuf_to_vmalloc(&buf->vb); in cx231xx_do_copy() [all …]
|
D | cx231xx.h | 234 struct videobuf_buffer vb; member
|
/linux-4.1.27/arch/powerpc/kernel/ |
D | vecemu.c | 262 unsigned int va, vb, vc, vd; in emulate_altivec() local 271 vb = (instr >> 11) & 0x1f; in emulate_altivec() 279 vaddfp(&vrs[vd], &vrs[va], &vrs[vb]); in emulate_altivec() 282 vsubfp(&vrs[vd], &vrs[va], &vrs[vb]); in emulate_altivec() 285 vrefp(&vrs[vd], &vrs[vb]); in emulate_altivec() 288 vrsqrtefp(&vrs[vd], &vrs[vb]); in emulate_altivec() 292 vrs[vd].u[i] = eexp2(vrs[vb].u[i]); in emulate_altivec() 296 vrs[vd].u[i] = elog2(vrs[vb].u[i]); in emulate_altivec() 300 vrs[vd].u[i] = rfin(vrs[vb].u[i]); in emulate_altivec() 304 vrs[vd].u[i] = rfiz(vrs[vb].u[i]); in emulate_altivec() [all …]
|
/linux-4.1.27/drivers/media/platform/soc_camera/ |
D | pxa_camera.c | 189 struct videobuf_buffer vb; member 262 struct videobuf_dmabuf *dma = videobuf_to_dma(&buf->vb); in free_buffer() 268 &buf->vb, buf->vb.baddr, buf->vb.bsize); in free_buffer() 274 videobuf_waiton(vq, &buf->vb, 0, 0); in free_buffer() 287 buf->vb.state = VIDEOBUF_NEEDS_INIT; in free_buffer() 425 struct videobuf_buffer *vb, enum v4l2_field field) in pxa_videobuf_prepare() argument 431 struct pxa_buffer *buf = container_of(vb, struct pxa_buffer, vb); in pxa_videobuf_prepare() 436 vb, vb->baddr, vb->bsize); in pxa_videobuf_prepare() 439 WARN_ON(!list_empty(&vb->queue)); in pxa_videobuf_prepare() 446 memset((void *)vb->baddr, 0xaa, vb->bsize); in pxa_videobuf_prepare() [all …]
|
D | omap1_camera.c | 142 struct videobuf_buffer vb; member 229 struct videobuf_buffer *vb = &buf->vb; in free_buffer() local 233 videobuf_waiton(vq, vb, 0, 0); in free_buffer() 236 videobuf_dma_contig_free(vq, vb); in free_buffer() 240 struct videobuf_dmabuf *dma = videobuf_to_dma(vb); in free_buffer() 246 vb->state = VIDEOBUF_NEEDS_INIT; in free_buffer() 250 struct videobuf_buffer *vb, enum v4l2_field field) in omap1_videobuf_prepare() argument 253 struct omap1_cam_buf *buf = container_of(vb, struct omap1_cam_buf, vb); in omap1_videobuf_prepare() 258 WARN_ON(!list_empty(&vb->queue)); in omap1_videobuf_prepare() 264 if (buf->code != icd->current_fmt->code || vb->field != field || in omap1_videobuf_prepare() [all …]
|
D | mx3_camera.c | 66 struct vb2_buffer vb; member 136 static struct mx3_camera_buffer *to_mx3_vb(struct vb2_buffer *vb) in to_mx3_vb() argument 138 return container_of(vb, struct mx3_camera_buffer, vb); in to_mx3_vb() 154 struct vb2_buffer *vb = &mx3_cam->active->vb; in mx3_cam_dma_done() local 155 struct mx3_camera_buffer *buf = to_mx3_vb(vb); in mx3_cam_dma_done() 158 v4l2_get_timestamp(&vb->v4l2_buf.timestamp); in mx3_cam_dma_done() 159 vb->v4l2_buf.field = mx3_cam->field; in mx3_cam_dma_done() 160 vb->v4l2_buf.sequence = mx3_cam->sequence++; in mx3_cam_dma_done() 161 vb2_buffer_done(vb, VB2_BUF_STATE_DONE); in mx3_cam_dma_done() 258 static void mx3_videobuf_queue(struct vb2_buffer *vb) in mx3_videobuf_queue() argument [all …]
|
D | mx2_camera.c | 228 struct vb2_buffer vb; member 501 static int mx2_videobuf_prepare(struct vb2_buffer *vb) in mx2_videobuf_prepare() argument 503 struct soc_camera_device *icd = soc_camera_from_vb2q(vb->vb2_queue); in mx2_videobuf_prepare() 507 vb, vb2_plane_vaddr(vb, 0), vb2_get_plane_payload(vb, 0)); in mx2_videobuf_prepare() 514 memset((void *)vb2_plane_vaddr(vb, 0), in mx2_videobuf_prepare() 515 0xaa, vb2_get_plane_payload(vb, 0)); in mx2_videobuf_prepare() 518 vb2_set_plane_payload(vb, 0, icd->sizeimage); in mx2_videobuf_prepare() 519 if (vb2_plane_vaddr(vb, 0) && in mx2_videobuf_prepare() 520 vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) { in mx2_videobuf_prepare() 531 static void mx2_videobuf_queue(struct vb2_buffer *vb) in mx2_videobuf_queue() argument [all …]
|
D | atmel-isi.c | 62 struct vb2_buffer vb; member 156 struct vb2_buffer *vb = &isi->active->vb; in atmel_isi_handle_streaming() local 160 v4l2_get_timestamp(&vb->v4l2_buf.timestamp); in atmel_isi_handle_streaming() 161 vb->v4l2_buf.sequence = isi->sequence++; in atmel_isi_handle_streaming() 162 vb2_buffer_done(vb, VB2_BUF_STATE_DONE); in atmel_isi_handle_streaming() 270 static int buffer_init(struct vb2_buffer *vb) in buffer_init() argument 272 struct frame_buffer *buf = container_of(vb, struct frame_buffer, vb); in buffer_init() 280 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 282 struct soc_camera_device *icd = soc_camera_from_vb2q(vb->vb2_queue); in buffer_prepare() 283 struct frame_buffer *buf = container_of(vb, struct frame_buffer, vb); in buffer_prepare() [all …]
|
D | sh_mobile_ceu_camera.c | 96 struct vb2_buffer vb; /* v4l buffer must be first */ member 155 static struct sh_mobile_ceu_buffer *to_ceu_vb(struct vb2_buffer *vb) in to_ceu_vb() argument 157 return container_of(vb, struct sh_mobile_ceu_buffer, vb); in to_ceu_vb() 370 static int sh_mobile_ceu_videobuf_prepare(struct vb2_buffer *vb) in sh_mobile_ceu_videobuf_prepare() argument 372 struct sh_mobile_ceu_buffer *buf = to_ceu_vb(vb); in sh_mobile_ceu_videobuf_prepare() 375 WARN(!list_empty(&buf->queue), "Buffer %p on queue!\n", vb); in sh_mobile_ceu_videobuf_prepare() 380 static void sh_mobile_ceu_videobuf_queue(struct vb2_buffer *vb) in sh_mobile_ceu_videobuf_queue() argument 382 struct soc_camera_device *icd = container_of(vb->vb2_queue, struct soc_camera_device, vb2_vidq); in sh_mobile_ceu_videobuf_queue() 385 struct sh_mobile_ceu_buffer *buf = to_ceu_vb(vb); in sh_mobile_ceu_videobuf_queue() 390 if (vb2_plane_size(vb, 0) < size) { in sh_mobile_ceu_videobuf_queue() [all …]
|
D | rcar_vin.c | 494 struct vb2_buffer vb; member 500 vb)->list) 741 struct vb2_buffer *vb; in rcar_vin_fill_hw_slot() local 753 vb = &list_entry(priv->capture.next, struct rcar_vin_buffer, list)->vb; in rcar_vin_fill_hw_slot() 754 list_del_init(to_buf_list(vb)); in rcar_vin_fill_hw_slot() 755 priv->queue_buf[slot] = vb; in rcar_vin_fill_hw_slot() 756 phys_addr_top = vb2_dma_contig_plane_dma_addr(vb, 0); in rcar_vin_fill_hw_slot() 762 static void rcar_vin_videobuf_queue(struct vb2_buffer *vb) in rcar_vin_videobuf_queue() argument 764 struct soc_camera_device *icd = soc_camera_from_vb2q(vb->vb2_queue); in rcar_vin_videobuf_queue() 771 if (vb2_plane_size(vb, 0) < size) { in rcar_vin_videobuf_queue() [all …]
|
/linux-4.1.27/include/media/ |
D | videobuf2-core.h | 320 int (*buf_init)(struct vb2_buffer *vb); 321 int (*buf_prepare)(struct vb2_buffer *vb); 322 void (*buf_finish)(struct vb2_buffer *vb); 323 void (*buf_cleanup)(struct vb2_buffer *vb); 328 void (*buf_queue)(struct vb2_buffer *vb); 443 void *vb2_plane_vaddr(struct vb2_buffer *vb, unsigned int plane_no); 444 void *vb2_plane_cookie(struct vb2_buffer *vb, unsigned int plane_no); 446 void vb2_buffer_done(struct vb2_buffer *vb, enum vb2_buffer_state state); 486 typedef int (*vb2_thread_fnc)(struct vb2_buffer *vb, void *priv); 563 static inline void vb2_set_plane_payload(struct vb2_buffer *vb, in vb2_set_plane_payload() argument [all …]
|
D | videobuf-core.h | 109 struct videobuf_buffer *vb, 112 struct videobuf_buffer *vb); 114 struct videobuf_buffer *vb); 126 struct videobuf_buffer *vb, 177 int videobuf_waiton(struct videobuf_queue *q, struct videobuf_buffer *vb, 179 int videobuf_iolock(struct videobuf_queue *q, struct videobuf_buffer *vb,
|
D | videobuf2-dma-sg.h | 19 struct vb2_buffer *vb, unsigned int plane_no) in vb2_dma_sg_plane_desc() argument 21 return (struct sg_table *)vb2_plane_cookie(vb, plane_no); in vb2_dma_sg_plane_desc()
|
D | videobuf2-dma-contig.h | 20 vb2_dma_contig_plane_dma_addr(struct vb2_buffer *vb, unsigned int plane_no) in vb2_dma_contig_plane_dma_addr() argument 22 dma_addr_t *addr = vb2_plane_cookie(vb, plane_no); in vb2_dma_contig_plane_dma_addr()
|
D | v4l2-mem2mem.h | 89 struct vb2_buffer vb; member 157 void v4l2_m2m_buf_queue(struct v4l2_m2m_ctx *m2m_ctx, struct vb2_buffer *vb);
|
D | saa7146_vv.h | 60 struct videobuf_buffer vb; member
|
/linux-4.1.27/drivers/media/usb/uvc/ |
D | uvc_queue.c | 90 static int uvc_buffer_prepare(struct vb2_buffer *vb) in uvc_buffer_prepare() argument 92 struct uvc_video_queue *queue = vb2_get_drv_priv(vb->vb2_queue); in uvc_buffer_prepare() 93 struct uvc_buffer *buf = container_of(vb, struct uvc_buffer, buf); in uvc_buffer_prepare() 95 if (vb->v4l2_buf.type == V4L2_BUF_TYPE_VIDEO_OUTPUT && in uvc_buffer_prepare() 96 vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) { in uvc_buffer_prepare() 106 buf->mem = vb2_plane_vaddr(vb, 0); in uvc_buffer_prepare() 107 buf->length = vb2_plane_size(vb, 0); in uvc_buffer_prepare() 108 if (vb->v4l2_buf.type == V4L2_BUF_TYPE_VIDEO_CAPTURE) in uvc_buffer_prepare() 111 buf->bytesused = vb2_get_plane_payload(vb, 0); in uvc_buffer_prepare() 116 static void uvc_buffer_queue(struct vb2_buffer *vb) in uvc_buffer_queue() argument [all …]
|
/linux-4.1.27/drivers/media/common/saa7146/ |
D | saa7146_vbi.c | 209 buf->vb.state = VIDEOBUF_ACTIVE; in buffer_activate() 218 static int buffer_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb,enum v4l2_field fiel… in buffer_prepare() argument 223 struct saa7146_buf *buf = (struct saa7146_buf *)vb; in buffer_prepare() 232 DEB_VBI("vb:%p\n", vb); in buffer_prepare() 234 if (0 != buf->vb.baddr && buf->vb.bsize < size) { in buffer_prepare() 239 if (buf->vb.size != size) in buffer_prepare() 242 if (VIDEOBUF_NEEDS_INIT == buf->vb.state) { in buffer_prepare() 243 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); in buffer_prepare() 245 buf->vb.width = llength; in buffer_prepare() 246 buf->vb.height = lines; in buffer_prepare() [all …]
|
D | saa7146_video.c | 210 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); in saa7146_pgtable_build() 1043 buf->vb.state = VIDEOBUF_ACTIVE; in buffer_activate() 1058 struct videobuf_buffer *vb, enum v4l2_field field) in buffer_prepare() argument 1064 struct saa7146_buf *buf = (struct saa7146_buf *)vb; in buffer_prepare() 1067 DEB_CAP("vbuf:%p\n", vb); in buffer_prepare() 1080 if (0 != buf->vb.baddr && buf->vb.bsize < size) { in buffer_prepare() 1088 if (buf->vb.width != vv->video_fmt.width || in buffer_prepare() 1089 buf->vb.bytesperline != vv->video_fmt.bytesperline || in buffer_prepare() 1090 buf->vb.height != vv->video_fmt.height || in buffer_prepare() 1091 buf->vb.size != size || in buffer_prepare() [all …]
|
D | saa7146_fops.c | 54 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); in saa7146_dma_free() 59 videobuf_waiton(q, &buf->vb, 0, 0); in saa7146_dma_free() 62 buf->vb.state = VIDEOBUF_NEEDS_INIT; in saa7146_dma_free() 83 list_add_tail(&buf->vb.queue,&q->queue); in saa7146_buffer_queue() 84 buf->vb.state = VIDEOBUF_QUEUED; in saa7146_buffer_queue() 107 q->curr->vb.state = state; in saa7146_buffer_finish() 108 v4l2_get_timestamp(&q->curr->vb.ts); in saa7146_buffer_finish() 109 wake_up(&q->curr->vb.done); in saa7146_buffer_finish() 126 buf = list_entry(q->queue.next,struct saa7146_buf,vb.queue); in saa7146_buffer_next() 127 list_del(&buf->vb.queue); in saa7146_buffer_next() [all …]
|
/linux-4.1.27/arch/alpha/math-emu/ |
D | math.c | 105 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-4.1.27/drivers/usb/gadget/function/ |
D | uvc_queue.c | 61 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() 64 struct uvc_buffer *buf = container_of(vb, struct uvc_buffer, buf); in uvc_buffer_prepare() 66 if (vb->v4l2_buf.type == V4L2_BUF_TYPE_VIDEO_OUTPUT && in uvc_buffer_prepare() 67 vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) { in uvc_buffer_prepare() 76 buf->mem = vb2_plane_vaddr(vb, 0); in uvc_buffer_prepare() 77 buf->length = vb2_plane_size(vb, 0); in uvc_buffer_prepare() 78 if (vb->v4l2_buf.type == V4L2_BUF_TYPE_VIDEO_CAPTURE) in uvc_buffer_prepare() 81 buf->bytesused = vb2_get_plane_payload(vb, 0); in uvc_buffer_prepare() 86 static void uvc_buffer_queue(struct vb2_buffer *vb) in uvc_buffer_queue() argument [all …]
|
/linux-4.1.27/mm/ |
D | vmalloc.c | 819 struct vmap_block *vb; in new_vmap_block() local 827 vb = kmalloc_node(sizeof(struct vmap_block), in new_vmap_block() 829 if (unlikely(!vb)) in new_vmap_block() 836 kfree(vb); in new_vmap_block() 842 kfree(vb); in new_vmap_block() 848 spin_lock_init(&vb->lock); in new_vmap_block() 849 vb->va = va; in new_vmap_block() 852 vb->free = VMAP_BBMAP_BITS - (1UL << order); in new_vmap_block() 853 vb->dirty = 0; in new_vmap_block() 854 vb->dirty_min = VMAP_BBMAP_BITS; in new_vmap_block() [all …]
|
/linux-4.1.27/drivers/media/pci/cx18/ |
D | cx18-streams.c | 112 videobuf_waiton(q, &buf->vb, 0, 0); in cx18_dma_free() 113 videobuf_vmalloc_free(&buf->vb); in cx18_dma_free() 114 buf->vb.state = VIDEOBUF_NEEDS_INIT; in cx18_dma_free() 133 buf->vb.size = (width * height * 2); in cx18_prepare_buffer() 134 if ((buf->vb.baddr != 0) && (buf->vb.bsize < buf->vb.size)) in cx18_prepare_buffer() 138 if (buf->vb.width != width || buf->vb.height != height || in cx18_prepare_buffer() 139 buf->vb.field != field || s->pixelformat != pixelformat || in cx18_prepare_buffer() 142 buf->vb.width = width; in cx18_prepare_buffer() 143 buf->vb.height = height; in cx18_prepare_buffer() 144 buf->vb.field = field; in cx18_prepare_buffer() [all …]
|
D | cx18-mailbox.c | 180 vb.queue); in cx18_mdl_send_to_videobuf() 182 p = videobuf_to_vmalloc(&vb_buf->vb); in cx18_mdl_send_to_videobuf() 191 if ((offset + buf->bytesused) <= vb_buf->vb.bsize) { in cx18_mdl_send_to_videobuf() 205 vb_buf->vb.ts = ktime_to_timeval(ktime_get()); in cx18_mdl_send_to_videobuf() 206 list_del(&vb_buf->vb.queue); in cx18_mdl_send_to_videobuf() 207 vb_buf->vb.state = VIDEOBUF_DONE; in cx18_mdl_send_to_videobuf() 208 wake_up(&vb_buf->vb.done); in cx18_mdl_send_to_videobuf()
|
D | cx18-fileops.c | 705 struct cx18_videobuf_buffer, vb.queue); in cx18_vb_timeout() 706 list_del(&buf->vb.queue); in cx18_vb_timeout() 707 buf->vb.state = VIDEOBUF_ERROR; in cx18_vb_timeout() 708 wake_up(&buf->vb.done); in cx18_vb_timeout()
|
D | cx18-driver.h | 424 struct videobuf_buffer vb; member
|
/linux-4.1.27/drivers/gpu/drm/via/ |
D | via_dma.c | 57 *((uint32_t *)(vb)) = ((nReg) >> 2) | HALCYON_HEADER1; \ 58 *((uint32_t *)(vb) + 1) = (nData); \ 59 vb = ((uint32_t *)vb) + 2; \ 66 *vb++ = (w1); \ 67 *vb++ = (w2); \ 263 uint32_t *vb; in via_dispatch_cmdbuffer() local 291 vb = via_check_dma(dev_priv, (cmd->size < 0x100) ? 0x102 : cmd->size); in via_dispatch_cmdbuffer() 292 if (vb == NULL) in via_dispatch_cmdbuffer() 295 memcpy(vb, dev_priv->pci_buf, cmd->size); in via_dispatch_cmdbuffer() 378 uint32_t * vb, int qw_count) in via_align_buffer() argument [all …]
|
/linux-4.1.27/drivers/media/usb/tm6000/ |
D | tm6000-video.c | 109 struct tm6000_buffer, vb.queue); in get_next_buf() 120 dprintk(dev, V4L2_DEBUG_ISOC, "[%p/%d] wakeup\n", buf, buf->vb.i); in buffer_filled() 121 buf->vb.state = VIDEOBUF_DONE; in buffer_filled() 122 buf->vb.field_count++; in buffer_filled() 123 v4l2_get_timestamp(&buf->vb.ts); in buffer_filled() 125 list_del(&buf->vb.queue); in buffer_filled() 126 wake_up(&buf->vb.done); in buffer_filled() 151 voutp = videobuf_to_vmalloc(&vbuf->vb); in copy_streams() 219 voutp = videobuf_to_vmalloc(&vbuf->vb); in copy_streams() 222 memset(voutp, 0, vbuf->vb.size); in copy_streams() [all …]
|
D | tm6000.h | 87 struct videobuf_buffer vb; member
|
/linux-4.1.27/drivers/media/usb/pwc/ |
D | pwc-if.c | 244 fbuf->vb.v4l2_buf.field = V4L2_FIELD_NONE; in pwc_frame_complete() 245 fbuf->vb.v4l2_buf.sequence = pdev->vframe_count; in pwc_frame_complete() 246 vb2_buffer_done(&fbuf->vb, VB2_BUF_STATE_DONE); in pwc_frame_complete() 291 vb2_buffer_done(&pdev->fill_buf->vb, in pwc_isoc_handler() 321 &fbuf->vb.v4l2_buf.timestamp); in pwc_isoc_handler() 524 vb2_buffer_done(&buf->vb, state); in pwc_cleanup_queued_bufs() 596 static int buffer_init(struct vb2_buffer *vb) in buffer_init() argument 598 struct pwc_frame_buf *buf = container_of(vb, struct pwc_frame_buf, vb); in buffer_init() 608 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 610 struct pwc_device *pdev = vb2_get_drv_priv(vb->vb2_queue); in buffer_prepare() [all …]
|
D | pwc-uncompress.c | 43 image = vb2_plane_vaddr(&fbuf->vb, 0); in pwc_decompress() 58 vb2_set_plane_payload(&fbuf->vb, 0, in pwc_decompress() 63 vb2_set_plane_payload(&fbuf->vb, 0, in pwc_decompress()
|
D | pwc.h | 213 struct vb2_buffer vb; /* common v4l buffer stuff -- must be first */ member
|
/linux-4.1.27/drivers/media/usb/zr364xx/ |
D | zr364xx.c | 205 struct videobuf_buffer vb; member 383 videobuf_vmalloc_free(&buf->vb); in free_buffer() 384 buf->vb.state = VIDEOBUF_NEEDS_INIT; in free_buffer() 387 static int buffer_prepare(struct videobuf_queue *vq, struct videobuf_buffer *vb, in buffer_prepare() argument 391 struct zr364xx_buffer *buf = container_of(vb, struct zr364xx_buffer, in buffer_prepare() 392 vb); in buffer_prepare() 400 buf->vb.size = cam->width * cam->height * (cam->fmt->depth >> 3); in buffer_prepare() 402 if (buf->vb.baddr != 0 && buf->vb.bsize < buf->vb.size) { in buffer_prepare() 408 buf->vb.width = cam->width; in buffer_prepare() 409 buf->vb.height = cam->height; in buffer_prepare() [all …]
|
/linux-4.1.27/drivers/media/platform/blackfin/ |
D | bfin_capture.c | 57 struct vb2_buffer vb; member 152 static struct bcap_buffer *to_bcap_vb(struct vb2_buffer *vb) in to_bcap_vb() argument 154 return container_of(vb, struct bcap_buffer, vb); in to_bcap_vb() 219 static int bcap_buffer_prepare(struct vb2_buffer *vb) in bcap_buffer_prepare() argument 221 struct bcap_device *bcap_dev = vb2_get_drv_priv(vb->vb2_queue); in bcap_buffer_prepare() 224 if (vb2_plane_size(vb, 0) < size) { in bcap_buffer_prepare() 226 vb2_plane_size(vb, 0), size); in bcap_buffer_prepare() 229 vb2_set_plane_payload(vb, 0, size); in bcap_buffer_prepare() 231 vb->v4l2_buf.field = bcap_dev->fmt.field; in bcap_buffer_prepare() 236 static void bcap_buffer_queue(struct vb2_buffer *vb) in bcap_buffer_queue() argument [all …]
|
/linux-4.1.27/drivers/staging/media/davinci_vpfe/ |
D | vpfe_video.c | 434 video->next_frm->vb.state = VB2_BUF_STATE_ACTIVE; in vpfe_video_get_next_buffer() 435 return vb2_dma_contig_plane_dma_addr(&video->next_frm->vb, 0); in vpfe_video_get_next_buffer() 454 video->next_frm->vb.state = VB2_BUF_STATE_ACTIVE; in vpfe_video_schedule_next_buffer() 455 addr = vb2_dma_contig_plane_dma_addr(&video->next_frm->vb, 0); in vpfe_video_schedule_next_buffer() 466 addr = vb2_dma_contig_plane_dma_addr(&video->cur_frm->vb, 0); in vpfe_video_schedule_bottom_field() 476 do_gettimeofday(&video->cur_frm->vb.v4l2_buf.timestamp); in vpfe_video_process_buffer_complete() 477 vb2_buffer_done(&video->cur_frm->vb, VB2_BUF_STATE_DONE); in vpfe_video_process_buffer_complete() 1121 static int vpfe_buffer_prepare(struct vb2_buffer *vb) in vpfe_buffer_prepare() argument 1123 struct vpfe_fh *fh = vb2_get_drv_priv(vb->vb2_queue); in vpfe_buffer_prepare() 1130 if (vb->state != VB2_BUF_STATE_ACTIVE && in vpfe_buffer_prepare() [all …]
|
D | vpfe_video.h | 75 struct vb2_buffer vb; member
|
/linux-4.1.27/drivers/media/pci/solo6x10/ |
D | solo6x10-v4l2-enc.c | 459 struct vb2_buffer *vb, const vop_header *vh) in solo_fill_jpeg() argument 462 struct sg_table *vbuf = vb2_dma_sg_plane_desc(vb, 0); in solo_fill_jpeg() 465 vb->v4l2_buf.flags |= V4L2_BUF_FLAG_KEYFRAME; in solo_fill_jpeg() 467 if (vb2_plane_size(vb, 0) < vop_jpeg_size(vh) + solo_enc->jpeg_len) in solo_fill_jpeg() 471 vb2_set_plane_payload(vb, 0, vop_jpeg_size(vh) + solo_enc->jpeg_len); in solo_fill_jpeg() 480 struct vb2_buffer *vb, const vop_header *vh) in solo_fill_mpeg() argument 483 struct sg_table *vbuf = vb2_dma_sg_plane_desc(vb, 0); in solo_fill_mpeg() 487 if (vb2_plane_size(vb, 0) < vop_mpeg_size(vh)) in solo_fill_mpeg() 491 vb->v4l2_buf.flags &= ~(V4L2_BUF_FLAG_KEYFRAME | V4L2_BUF_FLAG_PFRAME | in solo_fill_mpeg() 495 vb->v4l2_buf.flags |= V4L2_BUF_FLAG_KEYFRAME; in solo_fill_mpeg() [all …]
|
D | solo6x10-v4l2.c | 192 struct vb2_buffer *vb) in solo_fillbuf() argument 199 vbuf = vb2_dma_contig_plane_dma_addr(vb, 0); in solo_fillbuf() 204 void *p = vb2_plane_vaddr(vb, 0); in solo_fillbuf() 223 vb2_set_plane_payload(vb, 0, in solo_fillbuf() 225 vb->v4l2_buf.sequence = solo_dev->sequence++; in solo_fillbuf() 226 v4l2_get_timestamp(&vb->v4l2_buf.timestamp); in solo_fillbuf() 229 vb2_buffer_done(vb, error ? VB2_BUF_STATE_ERROR : VB2_BUF_STATE_DONE); in solo_fillbuf() 234 struct solo_vb2_buf *vb; in solo_thread_try() local 251 vb = list_first_entry(&solo_dev->vidq_active, struct solo_vb2_buf, in solo_thread_try() 255 list_del(&vb->list); in solo_thread_try() [all …]
|
D | solo6x10.h | 138 struct vb2_buffer vb; member
|
/linux-4.1.27/drivers/media/platform/exynos4-is/ |
D | fimc-isp-video.c | 160 static int isp_video_capture_buffer_prepare(struct vb2_buffer *vb) in isp_video_capture_buffer_prepare() argument 162 struct fimc_isp *isp = vb2_get_drv_priv(vb->vb2_queue); in isp_video_capture_buffer_prepare() 172 if (vb2_plane_size(vb, i) < size) { in isp_video_capture_buffer_prepare() 175 vb2_plane_size(vb, i), size); in isp_video_capture_buffer_prepare() 178 vb2_set_plane_payload(vb, i, size); in isp_video_capture_buffer_prepare() 183 dma_addr_t dma_addr = vb2_dma_contig_plane_dma_addr(vb, 0); in isp_video_capture_buffer_prepare() 195 static void isp_video_capture_buffer_queue(struct vb2_buffer *vb) in isp_video_capture_buffer_queue() argument 197 struct fimc_isp *isp = vb2_get_drv_priv(vb->vb2_queue); in isp_video_capture_buffer_queue() 200 struct isp_video_buf *ivb = to_isp_video_buf(vb); in isp_video_capture_buffer_queue() 217 ivb->dma_addr[i] = vb2_dma_contig_plane_dma_addr(vb, i); in isp_video_capture_buffer_queue() [all …]
|
D | fimc-isp.h | 105 struct vb2_buffer vb; member 110 #define to_isp_video_buf(_b) container_of(_b, struct isp_video_buf, vb)
|
D | fimc-capture.c | 106 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in fimc_capture_state_cleanup() 114 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in fimc_capture_state_cleanup() 200 tv = &v_buf->vb.v4l2_buf.timestamp; in fimc_capture_irq_handler() 203 v_buf->vb.v4l2_buf.sequence = cap->frame_count++; in fimc_capture_irq_handler() 205 vb2_buffer_done(&v_buf->vb, VB2_BUF_STATE_DONE); in fimc_capture_irq_handler() 236 vaddr = vb2_plane_vaddr(&v_buf->vb, plane); in fimc_capture_irq_handler() 318 static void buffer_queue(struct vb2_buffer *vb); 341 buffer_queue(&buf->vb); in fimc_capture_resume() 387 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 389 struct vb2_queue *vq = vb->vb2_queue; in buffer_prepare() [all …]
|
D | fimc-lite.c | 203 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in fimc_lite_reinit() 211 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in fimc_lite_reinit() 298 tv = &vbuf->vb.v4l2_buf.timestamp; in flite_irq_handler() 301 vbuf->vb.v4l2_buf.sequence = fimc->frame_count++; in flite_irq_handler() 303 vb2_buffer_done(&vbuf->vb, VB2_BUF_STATE_DONE); in flite_irq_handler() 399 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 401 struct vb2_queue *vq = vb->vb2_queue; in buffer_prepare() 411 if (vb2_plane_size(vb, i) < size) { in buffer_prepare() 414 vb2_plane_size(vb, i), size); in buffer_prepare() 417 vb2_set_plane_payload(vb, i, size); in buffer_prepare() [all …]
|
D | fimc-m2m.c | 205 static int fimc_buf_prepare(struct vb2_buffer *vb) in fimc_buf_prepare() argument 207 struct fimc_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in fimc_buf_prepare() 211 frame = ctx_get_frame(ctx, vb->vb2_queue->type); in fimc_buf_prepare() 216 vb2_set_plane_payload(vb, i, frame->payload[i]); in fimc_buf_prepare() 221 static void fimc_buf_queue(struct vb2_buffer *vb) in fimc_buf_queue() argument 223 struct fimc_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in fimc_buf_queue() 224 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vb); in fimc_buf_queue()
|
D | fimc-lite.h | 103 struct vb2_buffer vb; member
|
D | fimc-core.c | 351 int fimc_prepare_addr(struct fimc_ctx *ctx, struct vb2_buffer *vb, in fimc_prepare_addr() argument 357 if (vb == NULL || frame == NULL) in fimc_prepare_addr() 365 paddr->y = vb2_dma_contig_plane_dma_addr(vb, 0); in fimc_prepare_addr() 393 paddr->cb = vb2_dma_contig_plane_dma_addr(vb, 1); in fimc_prepare_addr() 396 paddr->cr = vb2_dma_contig_plane_dma_addr(vb, 2); in fimc_prepare_addr()
|
D | fimc-core.h | 227 struct vb2_buffer vb; member 637 int fimc_prepare_addr(struct fimc_ctx *ctx, struct vb2_buffer *vb,
|
/linux-4.1.27/Documentation/video4linux/ |
D | v4l2-pci-skeleton.c | 84 struct vb2_buffer vb; member 90 return container_of(vb2, struct skel_buffer, vb); in to_skel_buffer() 143 v4l2_get_timestamp(&new_buf->vb.v4l2_buf.timestamp); in skeleton_irq() 144 new_buf->vb.v4l2_buf.sequence = skel->sequence++; in skeleton_irq() 145 new_buf->vb.v4l2_buf.field = skel->field; in skeleton_irq() 152 vb2_buffer_done(&new_buf->vb, VB2_BUF_STATE_DONE); in skeleton_irq() 197 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 199 struct skeleton *skel = vb2_get_drv_priv(vb->vb2_queue); in buffer_prepare() 202 if (vb2_plane_size(vb, 0) < size) { in buffer_prepare() 204 vb2_plane_size(vb, 0), size); in buffer_prepare() [all …]
|
D | videobuf | 72 struct videobuf_buffer *vb, 75 struct videobuf_buffer *vb); 77 struct videobuf_buffer *vb); 94 int videobuf_iolock(struct videobuf_queue* q, struct videobuf_buffer *vb, 127 int videobuf_waiton(struct videobuf_buffer *vb, int non_blocking, int intr); 129 Here, vb is the buffer, non_blocking indicates whether non-blocking I/O
|
/linux-4.1.27/drivers/media/pci/cx25821/ |
D | cx25821-video.c | 133 v4l2_get_timestamp(&buf->vb.v4l2_buf.timestamp); in cx25821_video_irq() 134 buf->vb.v4l2_buf.sequence = dmaq->count++; in cx25821_video_irq() 136 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_DONE); in cx25821_video_irq() 160 static int cx25821_buffer_prepare(struct vb2_buffer *vb) in cx25821_buffer_prepare() argument 162 struct cx25821_channel *chan = vb->vb2_queue->drv_priv; in cx25821_buffer_prepare() 165 container_of(vb, struct cx25821_buffer, vb); in cx25821_buffer_prepare() 166 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in cx25821_buffer_prepare() 176 if (vb2_plane_size(vb, 0) < chan->height * buf->bpl) in cx25821_buffer_prepare() 178 vb2_set_plane_payload(vb, 0, chan->height * buf->bpl); in cx25821_buffer_prepare() 179 buf->vb.v4l2_buf.field = chan->field; in cx25821_buffer_prepare() [all …]
|
D | cx25821.h | 130 struct vb2_buffer vb; member
|
/linux-4.1.27/drivers/media/pci/sta2x11/ |
D | sta2x11_vip.c | 91 struct vb2_buffer vb; member 97 return container_of(vb2, struct vip_buffer, vb); in to_vip_buffer() 288 static int buffer_init(struct vb2_buffer *vb) in buffer_init() argument 290 struct vip_buffer *vip_buf = to_vip_buffer(vb); in buffer_init() 292 vip_buf->dma = vb2_dma_contig_plane_dma_addr(vb, 0); in buffer_init() 297 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 299 struct sta2x11_vip *vip = vb2_get_drv_priv(vb->vb2_queue); in buffer_prepare() 300 struct vip_buffer *vip_buf = to_vip_buffer(vb); in buffer_prepare() 304 if (vb2_plane_size(vb, 0) < size) { in buffer_prepare() 306 vb2_plane_size(vb, 0), size); in buffer_prepare() [all …]
|
/linux-4.1.27/drivers/input/touchscreen/ |
D | sur40.c | 166 struct vb2_buffer vb; member 419 sgt = vb2_dma_sg_plane_desc(&new_buf->vb, 0); in sur40_process_video() 436 v4l2_get_timestamp(&new_buf->vb.v4l2_buf.timestamp); in sur40_process_video() 437 new_buf->vb.v4l2_buf.sequence = sur40->sequence++; in sur40_process_video() 438 new_buf->vb.v4l2_buf.field = V4L2_FIELD_NONE; in sur40_process_video() 439 vb2_buffer_done(&new_buf->vb, VB2_BUF_STATE_DONE); in sur40_process_video() 443 vb2_buffer_done(&new_buf->vb, VB2_BUF_STATE_ERROR); in sur40_process_video() 657 static int sur40_buffer_prepare(struct vb2_buffer *vb) in sur40_buffer_prepare() argument 659 struct sur40_state *sur40 = vb2_get_drv_priv(vb->vb2_queue); in sur40_buffer_prepare() 662 if (vb2_plane_size(vb, 0) < size) { in sur40_buffer_prepare() [all …]
|
/linux-4.1.27/drivers/media/pci/tw68/ |
D | tw68-video.c | 424 static void tw68_buf_queue(struct vb2_buffer *vb) in tw68_buf_queue() argument 426 struct vb2_queue *vq = vb->vb2_queue; in tw68_buf_queue() 428 struct tw68_buf *buf = container_of(vb, struct tw68_buf, vb); in tw68_buf_queue() 458 static int tw68_buf_prepare(struct vb2_buffer *vb) in tw68_buf_prepare() argument 460 struct vb2_queue *vq = vb->vb2_queue; in tw68_buf_prepare() 462 struct tw68_buf *buf = container_of(vb, struct tw68_buf, vb); in tw68_buf_prepare() 463 struct sg_table *dma = vb2_dma_sg_plane_desc(vb, 0); in tw68_buf_prepare() 467 if (vb2_plane_size(vb, 0) < size) in tw68_buf_prepare() 469 vb2_set_plane_payload(vb, 0, size); in tw68_buf_prepare() 500 static void tw68_buf_finish(struct vb2_buffer *vb) in tw68_buf_finish() argument [all …]
|
D | tw68.h | 137 struct vb2_buffer vb; member
|
/linux-4.1.27/drivers/media/usb/usbvision/ |
D | usbvision-video.c | 760 void *priv, struct v4l2_buffer *vb) in vidioc_querybuf() argument 767 if (vb->index >= usbvision->num_frames) in vidioc_querybuf() 770 vb->flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in vidioc_querybuf() 771 frame = &usbvision->frame[vb->index]; in vidioc_querybuf() 773 vb->flags |= V4L2_BUF_FLAG_QUEUED; in vidioc_querybuf() 775 vb->flags |= V4L2_BUF_FLAG_DONE; in vidioc_querybuf() 777 vb->flags |= V4L2_BUF_FLAG_MAPPED; in vidioc_querybuf() 778 vb->memory = V4L2_MEMORY_MMAP; in vidioc_querybuf() 780 vb->m.offset = vb->index * PAGE_ALIGN(usbvision->max_frame_size); in vidioc_querybuf() 782 vb->memory = V4L2_MEMORY_MMAP; in vidioc_querybuf() [all …]
|
D | usbvision-core.c | 884 int y_, u_, v_, vb, uvg, ur; in usbvision_parse_lines_420() local 931 vb = 132252 * v_; in usbvision_parse_lines_420() 941 b_ = (y_ + vb) >> 16; in usbvision_parse_lines_420() 984 b_ = (y_ + vb) >> 16; in usbvision_parse_lines_420() 1029 b_ = (y_ + vb) >> 16; in usbvision_parse_lines_420() 1072 b_ = (y_ + vb) >> 16; in usbvision_parse_lines_420()
|
/linux-4.1.27/drivers/media/usb/stk1160/ |
D | stk1160-v4l.c | 546 static void buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument 549 struct stk1160 *dev = vb2_get_drv_priv(vb->vb2_queue); in buffer_queue() 551 container_of(vb, struct stk1160_buffer, vb); in buffer_queue() 559 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in buffer_queue() 562 buf->mem = vb2_plane_vaddr(vb, 0); in buffer_queue() 563 buf->length = vb2_plane_size(vb, 0); in buffer_queue() 572 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in buffer_queue() 624 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in stk1160_clear_queue() 626 buf, buf->vb.v4l2_buf.index); in stk1160_clear_queue() 634 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in stk1160_clear_queue() [all …]
|
D | stk1160-video.c | 101 buf->vb.v4l2_buf.sequence = dev->field_count >> 1; in stk1160_buffer_done() 102 buf->vb.v4l2_buf.field = V4L2_FIELD_INTERLACED; in stk1160_buffer_done() 103 buf->vb.v4l2_buf.bytesused = buf->bytesused; in stk1160_buffer_done() 104 v4l2_get_timestamp(&buf->vb.v4l2_buf.timestamp); in stk1160_buffer_done() 106 vb2_set_plane_payload(&buf->vb, 0, buf->bytesused); in stk1160_buffer_done() 107 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_DONE); in stk1160_buffer_done()
|
D | stk1160.h | 81 struct vb2_buffer vb; member
|
/linux-4.1.27/drivers/media/usb/usbtv/ |
D | usbtv-video.c | 309 frame = vb2_plane_vaddr(&buf->vb, 0); in usbtv_image_chunk() 317 int size = vb2_plane_size(&buf->vb, 0); in usbtv_image_chunk() 323 buf->vb.v4l2_buf.field = V4L2_FIELD_INTERLACED; in usbtv_image_chunk() 324 buf->vb.v4l2_buf.sequence = usbtv->sequence++; in usbtv_image_chunk() 325 v4l2_get_timestamp(&buf->vb.v4l2_buf.timestamp); in usbtv_image_chunk() 326 vb2_set_plane_payload(&buf->vb, 0, size); in usbtv_image_chunk() 327 vb2_buffer_done(&buf->vb, state); in usbtv_image_chunk() 425 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in usbtv_stop() 615 static void usbtv_buf_queue(struct vb2_buffer *vb) in usbtv_buf_queue() argument 617 struct usbtv *usbtv = vb2_get_drv_priv(vb->vb2_queue); in usbtv_buf_queue() [all …]
|
D | usbtv.h | 64 struct vb2_buffer vb; member
|
/linux-4.1.27/drivers/staging/media/omap4iss/ |
D | iss_video.c | 312 static void iss_video_buf_cleanup(struct vb2_buffer *vb) in iss_video_buf_cleanup() argument 314 struct iss_buffer *buffer = container_of(vb, struct iss_buffer, vb); in iss_video_buf_cleanup() 320 static int iss_video_buf_prepare(struct vb2_buffer *vb) in iss_video_buf_prepare() argument 322 struct iss_video_fh *vfh = vb2_get_drv_priv(vb->vb2_queue); in iss_video_buf_prepare() 323 struct iss_buffer *buffer = container_of(vb, struct iss_buffer, vb); in iss_video_buf_prepare() 328 if (vb2_plane_size(vb, 0) < size) in iss_video_buf_prepare() 331 addr = vb2_dma_contig_plane_dma_addr(vb, 0); in iss_video_buf_prepare() 338 vb2_set_plane_payload(vb, 0, size); in iss_video_buf_prepare() 343 static void iss_video_buf_queue(struct vb2_buffer *vb) in iss_video_buf_queue() argument 345 struct iss_video_fh *vfh = vb2_get_drv_priv(vb->vb2_queue); in iss_video_buf_queue() [all …]
|
D | iss_video.h | 120 struct vb2_buffer vb; member
|
/linux-4.1.27/drivers/media/platform/davinci/ |
D | vpif_display.c | 56 static inline struct vpif_disp_buffer *to_vpif_buffer(struct vb2_buffer *vb) in to_vpif_buffer() argument 58 return container_of(vb, struct vpif_disp_buffer, vb); in to_vpif_buffer() 69 static int vpif_buffer_prepare(struct vb2_buffer *vb) in vpif_buffer_prepare() argument 71 struct channel_obj *ch = vb2_get_drv_priv(vb->vb2_queue); in vpif_buffer_prepare() 76 vb2_set_plane_payload(vb, 0, common->fmt.fmt.pix.sizeimage); in vpif_buffer_prepare() 77 if (vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) in vpif_buffer_prepare() 80 vb->v4l2_buf.field = common->fmt.fmt.pix.field; in vpif_buffer_prepare() 82 if (vb->vb2_queue->type != V4L2_BUF_TYPE_SLICED_VBI_OUTPUT) { in vpif_buffer_prepare() 83 unsigned long addr = vb2_dma_contig_plane_dma_addr(vb, 0); in vpif_buffer_prepare() 139 static void vpif_buffer_queue(struct vb2_buffer *vb) in vpif_buffer_queue() argument [all …]
|
D | vpbe_display.c | 79 layer->cur_frm->vb.v4l2_buf.timestamp.tv_sec = in vpbe_isr_even_field() 81 layer->cur_frm->vb.v4l2_buf.timestamp.tv_usec = in vpbe_isr_even_field() 83 vb2_buffer_done(&layer->cur_frm->vb, VB2_BUF_STATE_DONE); in vpbe_isr_even_field() 112 layer->next_frm->vb.state = VB2_BUF_STATE_ACTIVE; in vpbe_isr_odd_field() 113 addr = vb2_dma_contig_plane_dma_addr(&layer->next_frm->vb, 0); in vpbe_isr_odd_field() 208 static int vpbe_buffer_prepare(struct vb2_buffer *vb) in vpbe_buffer_prepare() argument 210 struct vb2_queue *q = vb->vb2_queue; in vpbe_buffer_prepare() 218 vb2_set_plane_payload(vb, 0, layer->pix_fmt.sizeimage); in vpbe_buffer_prepare() 219 if (vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) in vpbe_buffer_prepare() 222 addr = vb2_dma_contig_plane_dma_addr(vb, 0); in vpbe_buffer_prepare() [all …]
|
D | vpif_capture.c | 60 static inline struct vpif_cap_buffer *to_vpif_buffer(struct vb2_buffer *vb) in to_vpif_buffer() argument 62 return container_of(vb, struct vpif_cap_buffer, vb); in to_vpif_buffer() 73 static int vpif_buffer_prepare(struct vb2_buffer *vb) in vpif_buffer_prepare() argument 75 struct vb2_queue *q = vb->vb2_queue; in vpif_buffer_prepare() 84 vb2_set_plane_payload(vb, 0, common->fmt.fmt.pix.sizeimage); in vpif_buffer_prepare() 85 if (vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) in vpif_buffer_prepare() 88 vb->v4l2_buf.field = common->fmt.fmt.pix.field; in vpif_buffer_prepare() 90 addr = vb2_dma_contig_plane_dma_addr(vb, 0); in vpif_buffer_prepare() 146 static void vpif_buffer_queue(struct vb2_buffer *vb) in vpif_buffer_queue() argument 148 struct channel_obj *ch = vb2_get_drv_priv(vb->vb2_queue); in vpif_buffer_queue() [all …]
|
D | vpfe_capture.c | 1263 struct videobuf_buffer *vb, in vpfe_videobuf_prepare() argument 1274 if (VIDEOBUF_NEEDS_INIT == vb->state) { in vpfe_videobuf_prepare() 1275 vb->width = vpfe_dev->fmt.fmt.pix.width; in vpfe_videobuf_prepare() 1276 vb->height = vpfe_dev->fmt.fmt.pix.height; in vpfe_videobuf_prepare() 1277 vb->size = vpfe_dev->fmt.fmt.pix.sizeimage; in vpfe_videobuf_prepare() 1278 vb->field = field; in vpfe_videobuf_prepare() 1280 ret = videobuf_iolock(vq, vb, NULL); in vpfe_videobuf_prepare() 1284 addr = videobuf_to_dma_contig(vb); in vpfe_videobuf_prepare() 1289 vb->state = VIDEOBUF_PREPARED; in vpfe_videobuf_prepare() 1295 struct videobuf_buffer *vb) in vpfe_videobuf_queue() argument [all …]
|
D | vpif_capture.h | 55 struct vb2_buffer vb; member
|
D | vpif_display.h | 65 struct vb2_buffer vb; member
|
/linux-4.1.27/arch/powerpc/math-emu/ |
D | math_efp.c | 186 union dw_union vc, va, vb; in do_spe_mathemu() local 207 vb.wp[0] = current->thread.evr[fb]; in do_spe_mathemu() 208 vb.wp[1] = regs->gpr[fb]; in do_spe_mathemu() 215 pr_debug("vb: %08x %08x\n", vb.wp[0], vb.wp[1]); in do_spe_mathemu() 226 FP_UNPACK_SP(SB, vb.wp + 1); in do_spe_mathemu() 292 FP_UNPACK_DP(DB, vb.dp); in do_spe_mathemu() 354 FP_UNPACK_DP(DB, vb.dp); in do_spe_mathemu() 422 FP_UNPACK_SP(SB, vb.wp + 1); in do_spe_mathemu() 500 FP_UNPACK_SP(SB0, vb.wp); in do_spe_mathemu() 501 FP_UNPACK_SP(SB1, vb.wp + 1); in do_spe_mathemu() [all …]
|
/linux-4.1.27/drivers/media/platform/s5p-mfc/ |
D | s5p_mfc_enc.c | 1792 static int check_vb_with_fmt(struct s5p_mfc_fmt *fmt, struct vb2_buffer *vb) in check_vb_with_fmt() argument 1798 if (fmt->num_planes != vb->num_planes) { in check_vb_with_fmt() 1803 dma_addr_t dma = vb2_dma_contig_plane_dma_addr(vb, i); in check_vb_with_fmt() 1809 vb->v4l2_buf.index, i, &dma); in check_vb_with_fmt() 1869 static int s5p_mfc_buf_init(struct vb2_buffer *vb) in s5p_mfc_buf_init() argument 1871 struct vb2_queue *vq = vb->vb2_queue; in s5p_mfc_buf_init() 1877 ret = check_vb_with_fmt(ctx->dst_fmt, vb); in s5p_mfc_buf_init() 1880 i = vb->v4l2_buf.index; in s5p_mfc_buf_init() 1881 ctx->dst_bufs[i].b = vb; in s5p_mfc_buf_init() 1883 vb2_dma_contig_plane_dma_addr(vb, 0); in s5p_mfc_buf_init() [all …]
|
D | s5p_mfc_dec.c | 946 static int s5p_mfc_buf_init(struct vb2_buffer *vb) in s5p_mfc_buf_init() argument 948 struct vb2_queue *vq = vb->vb2_queue; in s5p_mfc_buf_init() 957 vb2_dma_contig_plane_dma_addr(vb, i)))) { in s5p_mfc_buf_init() 962 if (vb2_plane_size(vb, 0) < ctx->luma_size || in s5p_mfc_buf_init() 963 vb2_plane_size(vb, 1) < ctx->chroma_size) { in s5p_mfc_buf_init() 967 i = vb->v4l2_buf.index; in s5p_mfc_buf_init() 968 ctx->dst_bufs[i].b = vb; in s5p_mfc_buf_init() 970 vb2_dma_contig_plane_dma_addr(vb, 0); in s5p_mfc_buf_init() 972 vb2_dma_contig_plane_dma_addr(vb, 1); in s5p_mfc_buf_init() 976 vb2_dma_contig_plane_dma_addr(vb, 0)))) { in s5p_mfc_buf_init() [all …]
|
/linux-4.1.27/drivers/media/platform/omap/ |
D | omap_vout_vrfb.h | 23 struct videobuf_buffer *vb); 35 struct videobuf_buffer *vb) in omap_vout_prepare_vrfb() argument
|
D | omap_vout.c | 774 struct videobuf_buffer *vb, in omap_vout_buffer_prepare() argument 780 if (VIDEOBUF_NEEDS_INIT == vb->state) { in omap_vout_buffer_prepare() 781 vb->width = vout->pix.width; in omap_vout_buffer_prepare() 782 vb->height = vout->pix.height; in omap_vout_buffer_prepare() 783 vb->size = vb->width * vb->height * vout->bpp; in omap_vout_buffer_prepare() 784 vb->field = field; in omap_vout_buffer_prepare() 786 vb->state = VIDEOBUF_PREPARED; in omap_vout_buffer_prepare() 790 if (V4L2_MEMORY_USERPTR == vb->memory) { in omap_vout_buffer_prepare() 791 if (0 == vb->baddr) in omap_vout_buffer_prepare() 794 vout->queued_buf_addr[vb->i] = (u8 *) in omap_vout_buffer_prepare() [all …]
|
D | omap_vout_vrfb.c | 219 struct videobuf_buffer *vb) in omap_vout_prepare_vrfb() argument 231 dmabuf = vout->buf_phy_addr[vb->i]; in omap_vout_prepare_vrfb() 267 vout->vrfb_context[vb->i].paddr[0], dest_element_index, in omap_vout_prepare_vrfb() 283 vout->queued_buf_addr[vb->i] = (u8 *) in omap_vout_prepare_vrfb() 284 vout->vrfb_context[vb->i].paddr[rotation]; in omap_vout_prepare_vrfb()
|
/linux-4.1.27/fs/ocfs2/ |
D | xattr.c | 189 struct ocfs2_xattr_value_buf *vb); 715 struct ocfs2_xattr_value_buf *vb, in ocfs2_xattr_extend_allocation() argument 721 u32 prev_clusters, logical_start = le32_to_cpu(vb->vb_xv->xr_clusters); in ocfs2_xattr_extend_allocation() 724 ocfs2_init_xattr_value_extent_tree(&et, INODE_CACHE(inode), vb); in ocfs2_xattr_extend_allocation() 729 status = vb->vb_access(handle, INODE_CACHE(inode), vb->vb_bh, in ocfs2_xattr_extend_allocation() 736 prev_clusters = le32_to_cpu(vb->vb_xv->xr_clusters); in ocfs2_xattr_extend_allocation() 751 ocfs2_journal_dirty(handle, vb->vb_bh); in ocfs2_xattr_extend_allocation() 753 clusters_to_add -= le32_to_cpu(vb->vb_xv->xr_clusters) - in ocfs2_xattr_extend_allocation() 764 &vb->vb_xv->xr_list); in ocfs2_xattr_extend_allocation() 778 struct ocfs2_xattr_value_buf *vb, in __ocfs2_remove_xattr_range() argument [all …]
|
D | refcounttree.h | 82 struct ocfs2_xattr_value_buf *vb,
|
D | alloc.h | 79 struct ocfs2_xattr_value_buf *vb);
|
D | alloc.c | 261 struct ocfs2_xattr_value_buf *vb = et->et_object; in ocfs2_xattr_value_fill_root_el() local 263 et->et_root_el = &vb->vb_xv->xr_list; in ocfs2_xattr_value_fill_root_el() 269 struct ocfs2_xattr_value_buf *vb = et->et_object; in ocfs2_xattr_value_set_last_eb_blk() local 271 vb->vb_xv->xr_last_eb_blk = cpu_to_le64(blkno); in ocfs2_xattr_value_set_last_eb_blk() 276 struct ocfs2_xattr_value_buf *vb = et->et_object; in ocfs2_xattr_value_get_last_eb_blk() local 278 return le64_to_cpu(vb->vb_xv->xr_last_eb_blk); in ocfs2_xattr_value_get_last_eb_blk() 284 struct ocfs2_xattr_value_buf *vb = et->et_object; in ocfs2_xattr_value_update_clusters() local 286 le32_add_cpu(&vb->vb_xv->xr_clusters, clusters); in ocfs2_xattr_value_update_clusters() 476 struct ocfs2_xattr_value_buf *vb) in ocfs2_init_xattr_value_extent_tree() argument 478 __ocfs2_init_extent_tree(et, ci, vb->vb_bh, vb->vb_access, vb, in ocfs2_init_xattr_value_extent_tree()
|
D | refcounttree.c | 3642 struct ocfs2_xattr_value_buf *vb, in ocfs2_refcount_cow_xattr() argument 3649 struct ocfs2_xattr_value_root *xv = vb->vb_xv; in ocfs2_refcount_cow_xattr() 3688 INODE_CACHE(inode), vb); in ocfs2_refcount_cow_xattr()
|
/linux-4.1.27/drivers/media/platform/coda/ |
D | coda-jpeg.c | 181 bool coda_jpeg_check_buffer(struct coda_ctx *ctx, struct vb2_buffer *vb) in coda_jpeg_check_buffer() argument 183 void *vaddr = vb2_plane_vaddr(vb, 0); in coda_jpeg_check_buffer() 186 vb2_get_plane_payload(vb, 0) - 2)); in coda_jpeg_check_buffer()
|
D | coda-common.c | 1155 static int coda_buf_prepare(struct vb2_buffer *vb) in coda_buf_prepare() argument 1157 struct coda_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in coda_buf_prepare() 1160 q_data = get_q_data(ctx, vb->vb2_queue->type); in coda_buf_prepare() 1162 if (vb2_plane_size(vb, 0) < q_data->sizeimage) { in coda_buf_prepare() 1165 __func__, vb2_plane_size(vb, 0), in coda_buf_prepare() 1173 static void coda_buf_queue(struct vb2_buffer *vb) in coda_buf_queue() argument 1175 struct coda_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in coda_buf_queue() 1176 struct vb2_queue *vq = vb->vb2_queue; in coda_buf_queue() 1179 q_data = get_q_data(ctx, vb->vb2_queue->type); in coda_buf_queue() 1190 if (vb2_get_plane_payload(vb, 0) == 0) in coda_buf_queue() [all …]
|
D | coda.h | 292 bool coda_jpeg_check_buffer(struct coda_ctx *ctx, struct vb2_buffer *vb);
|
/linux-4.1.27/drivers/staging/media/dt3155v4l/ |
D | dt3155v4l.c | 193 struct vb2_buffer *vb = pd->curr_buf; in dt3155_start_acq() local 196 dma_addr = vb2_dma_contig_plane_dma_addr(vb, 0); in dt3155_start_acq() 259 dt3155_buf_prepare(struct vb2_buffer *vb) in dt3155_buf_prepare() argument 261 vb2_set_plane_payload(vb, 0, img_width * img_height); in dt3155_buf_prepare() 269 struct vb2_buffer *vb; in dt3155_stop_streaming() local 273 vb = list_first_entry(&pd->dmaq, typeof(*vb), done_entry); in dt3155_stop_streaming() 274 list_del(&vb->done_entry); in dt3155_stop_streaming() 275 vb2_buffer_done(vb, VB2_BUF_STATE_ERROR); in dt3155_stop_streaming() 282 dt3155_buf_queue(struct vb2_buffer *vb) in dt3155_buf_queue() argument 284 struct dt3155_priv *pd = vb2_get_drv_priv(vb->vb2_queue); in dt3155_buf_queue() [all …]
|
/linux-4.1.27/drivers/media/platform/s5p-jpeg/ |
D | jpeg-core.c | 1846 struct vb2_buffer *vb; in exynos4_jpeg_set_img_addr() local 1856 vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in exynos4_jpeg_set_img_addr() 1862 vb = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in exynos4_jpeg_set_img_addr() 1865 jpeg_addr.y = vb2_dma_contig_plane_dma_addr(vb, 0); in exynos4_jpeg_set_img_addr() 1883 struct vb2_buffer *vb; in exynos4_jpeg_set_jpeg_addr() local 1887 vb = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in exynos4_jpeg_set_jpeg_addr() 1889 vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in exynos4_jpeg_set_jpeg_addr() 1891 jpeg_addr = vb2_dma_contig_plane_dma_addr(vb, 0); in exynos4_jpeg_set_jpeg_addr() 1950 struct vb2_buffer *vb; in exynos3250_jpeg_set_img_addr() local 1957 vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in exynos3250_jpeg_set_img_addr() [all …]
|
/linux-4.1.27/drivers/media/platform/xilinx/ |
D | xilinx-dma.c | 293 #define to_xvip_dma_buffer(vb) container_of(vb, struct xvip_dma_buffer, buf) argument 330 static int xvip_dma_buffer_prepare(struct vb2_buffer *vb) in xvip_dma_buffer_prepare() argument 332 struct xvip_dma *dma = vb2_get_drv_priv(vb->vb2_queue); in xvip_dma_buffer_prepare() 333 struct xvip_dma_buffer *buf = to_xvip_dma_buffer(vb); in xvip_dma_buffer_prepare() 340 static void xvip_dma_buffer_queue(struct vb2_buffer *vb) in xvip_dma_buffer_queue() argument 342 struct xvip_dma *dma = vb2_get_drv_priv(vb->vb2_queue); in xvip_dma_buffer_queue() 343 struct xvip_dma_buffer *buf = to_xvip_dma_buffer(vb); in xvip_dma_buffer_queue() 345 dma_addr_t addr = vb2_dma_contig_plane_dma_addr(vb, 0); in xvip_dma_buffer_queue()
|
/linux-4.1.27/drivers/media/usb/airspy/ |
D | airspy.c | 100 struct vb2_buffer vb; /* common v4l buffer stuff -- must be first */ member 313 ptr = vb2_plane_vaddr(&fbuf->vb, 0); in airspy_urb_complete() 316 vb2_set_plane_payload(&fbuf->vb, 0, len); in airspy_urb_complete() 317 v4l2_get_timestamp(&fbuf->vb.v4l2_buf.timestamp); in airspy_urb_complete() 318 fbuf->vb.v4l2_buf.sequence = s->sequence++; in airspy_urb_complete() 319 vb2_buffer_done(&fbuf->vb, VB2_BUF_STATE_DONE); in airspy_urb_complete() 462 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in airspy_cleanup_queued_bufs() 506 static void airspy_buf_queue(struct vb2_buffer *vb) in airspy_buf_queue() argument 508 struct airspy *s = vb2_get_drv_priv(vb->vb2_queue); in airspy_buf_queue() 510 container_of(vb, struct airspy_frame_buf, vb); in airspy_buf_queue() [all …]
|
/linux-4.1.27/drivers/media/platform/vsp1/ |
D | vsp1_video.h | 105 to_vsp1_video_buffer(struct vb2_buffer *vb) in to_vsp1_video_buffer() argument 107 return container_of(vb, struct vsp1_video_buffer, buf); in to_vsp1_video_buffer()
|
D | vsp1_video.c | 742 static int vsp1_video_buffer_prepare(struct vb2_buffer *vb) in vsp1_video_buffer_prepare() argument 744 struct vsp1_video *video = vb2_get_drv_priv(vb->vb2_queue); in vsp1_video_buffer_prepare() 745 struct vsp1_video_buffer *buf = to_vsp1_video_buffer(vb); in vsp1_video_buffer_prepare() 749 if (vb->num_planes < format->num_planes) in vsp1_video_buffer_prepare() 752 for (i = 0; i < vb->num_planes; ++i) { in vsp1_video_buffer_prepare() 753 buf->addr[i] = vb2_dma_contig_plane_dma_addr(vb, i); in vsp1_video_buffer_prepare() 754 buf->length[i] = vb2_plane_size(vb, i); in vsp1_video_buffer_prepare() 763 static void vsp1_video_buffer_queue(struct vb2_buffer *vb) in vsp1_video_buffer_queue() argument 765 struct vsp1_video *video = vb2_get_drv_priv(vb->vb2_queue); in vsp1_video_buffer_queue() 767 struct vsp1_video_buffer *buf = to_vsp1_video_buffer(vb); in vsp1_video_buffer_queue()
|
/linux-4.1.27/arch/alpha/boot/ |
D | Makefile | 80 OSFLAGS_bootlx := -vb 81 OSFLAGS_bootph := -vb 82 OSFLAGS_bootpzh := -vb
|
/linux-4.1.27/drivers/media/usb/hackrf/ |
D | hackrf.c | 88 struct vb2_buffer vb; /* common v4l buffer stuff -- must be first */ member 290 ptr = vb2_plane_vaddr(&fbuf->vb, 0); in hackrf_urb_complete() 293 vb2_set_plane_payload(&fbuf->vb, 0, len); in hackrf_urb_complete() 294 v4l2_get_timestamp(&fbuf->vb.v4l2_buf.timestamp); in hackrf_urb_complete() 295 fbuf->vb.v4l2_buf.sequence = dev->sequence++; in hackrf_urb_complete() 296 vb2_buffer_done(&fbuf->vb, VB2_BUF_STATE_DONE); in hackrf_urb_complete() 440 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in hackrf_cleanup_queued_bufs() 484 static void hackrf_buf_queue(struct vb2_buffer *vb) in hackrf_buf_queue() argument 486 struct hackrf_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in hackrf_buf_queue() 488 container_of(vb, struct hackrf_frame_buf, vb); in hackrf_buf_queue() [all …]
|
/linux-4.1.27/drivers/media/platform/marvell-ccic/ |
D | mcam-core.c | 227 static inline struct mcam_vb_buffer *vb_to_mvb(struct vb2_buffer *vb) in vb_to_mvb() argument 229 return container_of(vb, struct mcam_vb_buffer, vb_buf); in vb_to_mvb() 535 struct vb2_buffer *vb; in mcam_set_contig_buffer() local 555 vb = &buf->vb_buf; in mcam_set_contig_buffer() 557 dma_handle = vb2_dma_contig_plane_dma_addr(vb, 0); in mcam_set_contig_buffer() 1088 static void mcam_vb_buf_queue(struct vb2_buffer *vb) in mcam_vb_buf_queue() argument 1090 struct mcam_vb_buffer *mvb = vb_to_mvb(vb); in mcam_vb_buf_queue() 1091 struct mcam_camera *cam = vb2_get_drv_priv(vb->vb2_queue); in mcam_vb_buf_queue() 1184 static int mcam_vb_sg_buf_init(struct vb2_buffer *vb) in mcam_vb_sg_buf_init() argument 1186 struct mcam_vb_buffer *mvb = vb_to_mvb(vb); in mcam_vb_sg_buf_init() [all …]
|
/linux-4.1.27/drivers/media/platform/s3c-camif/ |
D | camif-capture.c | 167 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in camif_reinitialize() 172 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in camif_reinitialize() 242 static int camif_prepare_addr(struct camif_vp *vp, struct vb2_buffer *vb, in camif_prepare_addr() argument 248 if (vb == NULL || frame == NULL) in camif_prepare_addr() 256 paddr->y = vb2_dma_contig_plane_dma_addr(vb, 0); in camif_prepare_addr() 345 tv = &vbuf->vb.v4l2_buf.timestamp; in s3c_camif_irq_handler() 348 vbuf->vb.v4l2_buf.sequence = vp->frame_sequence++; in s3c_camif_irq_handler() 349 vb2_buffer_done(&vbuf->vb, VB2_BUF_STATE_DONE); in s3c_camif_irq_handler() 477 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 479 struct camif_vp *vp = vb2_get_drv_priv(vb->vb2_queue); in buffer_prepare() [all …]
|
D | camif-core.h | 325 struct vb2_buffer vb; member
|
/linux-4.1.27/drivers/media/dvb-frontends/ |
D | rtl2832_sdr.c | 106 struct vb2_buffer vb; /* common v4l buffer stuff -- must be first */ member 302 ptr = vb2_plane_vaddr(&fbuf->vb, 0); in rtl2832_sdr_urb_complete() 305 vb2_set_plane_payload(&fbuf->vb, 0, len); in rtl2832_sdr_urb_complete() 306 v4l2_get_timestamp(&fbuf->vb.v4l2_buf.timestamp); in rtl2832_sdr_urb_complete() 307 fbuf->vb.v4l2_buf.sequence = dev->sequence++; in rtl2832_sdr_urb_complete() 308 vb2_buffer_done(&fbuf->vb, VB2_BUF_STATE_DONE); in rtl2832_sdr_urb_complete() 462 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in rtl2832_sdr_cleanup_queued_bufs() 503 static int rtl2832_sdr_buf_prepare(struct vb2_buffer *vb) in rtl2832_sdr_buf_prepare() argument 505 struct rtl2832_sdr_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in rtl2832_sdr_buf_prepare() 514 static void rtl2832_sdr_buf_queue(struct vb2_buffer *vb) in rtl2832_sdr_buf_queue() argument [all …]
|
/linux-4.1.27/drivers/media/platform/omap3isp/ |
D | ispvideo.h | 125 struct vb2_buffer vb; member 130 #define to_isp_buffer(buf) container_of(buf, struct isp_buffer, vb)
|
D | ispvideo.c | 366 vb2_set_plane_payload(&buffer->vb, 0, vfh->format.fmt.pix.sizeimage); in isp_video_buffer_prepare() 395 vb2_buffer_done(&buffer->vb, VB2_BUF_STATE_ERROR); in isp_video_buffer_queue() 467 v4l2_get_timestamp(&buf->vb.v4l2_buf.timestamp); in omap3isp_video_buffer_next() 476 buf->vb.v4l2_buf.sequence = in omap3isp_video_buffer_next() 479 buf->vb.v4l2_buf.sequence = atomic_read(&pipe->frame_number); in omap3isp_video_buffer_next() 482 buf->vb.v4l2_buf.sequence /= 2; in omap3isp_video_buffer_next() 484 buf->vb.v4l2_buf.field = pipe->field; in omap3isp_video_buffer_next() 494 vb2_buffer_done(&buf->vb, state); in omap3isp_video_buffer_next() 549 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in omap3isp_video_cancel_stream()
|
/linux-4.1.27/drivers/media/platform/ti-vpe/ |
D | vpe.c | 991 struct vb2_buffer *vb = ctx->dst_vb; in add_out_dtd() local 1006 dma_addr = vb2_dma_contig_plane_dma_addr(vb, plane); in add_out_dtd() 1028 struct vb2_buffer *vb = ctx->src_vbs[p_data->vb_index]; in add_in_dtd() local 1032 int field = vb->v4l2_buf.field == V4L2_FIELD_BOTTOM; in add_in_dtd() 1046 dma_addr = vb2_dma_contig_plane_dma_addr(vb, plane); in add_in_dtd() 1826 static int vpe_buf_prepare(struct vb2_buffer *vb) in vpe_buf_prepare() argument 1828 struct vpe_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vpe_buf_prepare() 1832 vpe_dbg(ctx->dev, "type: %d\n", vb->vb2_queue->type); in vpe_buf_prepare() 1834 q_data = get_q_data(ctx, vb->vb2_queue->type); in vpe_buf_prepare() 1837 if (vb->vb2_queue->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { in vpe_buf_prepare() [all …]
|
/linux-4.1.27/drivers/media/platform/am437x/ |
D | am437x-vpfe.c | 309 static inline struct vpfe_cap_buffer *to_vpfe_buffer(struct vb2_buffer *vb) in to_vpfe_buffer() argument 311 return container_of(vb, struct vpfe_cap_buffer, vb); in to_vpfe_buffer() 1259 vb2_dma_contig_plane_dma_addr(&vpfe->next_frm->vb, 0)); in vpfe_schedule_next_buffer() 1266 addr = vb2_dma_contig_plane_dma_addr(&vpfe->next_frm->vb, 0) + in vpfe_schedule_bottom_field() 1282 v4l2_get_timestamp(&vpfe->cur_frm->vb.v4l2_buf.timestamp); in vpfe_process_buffer_complete() 1283 vpfe->cur_frm->vb.v4l2_buf.field = vpfe->fmt.fmt.pix.field; in vpfe_process_buffer_complete() 1284 vpfe->cur_frm->vb.v4l2_buf.sequence = vpfe->sequence++; in vpfe_process_buffer_complete() 1285 vb2_buffer_done(&vpfe->cur_frm->vb, VB2_BUF_STATE_DONE); in vpfe_process_buffer_complete() 1958 static int vpfe_buffer_prepare(struct vb2_buffer *vb) in vpfe_buffer_prepare() argument 1960 struct vpfe_device *vpfe = vb2_get_drv_priv(vb->vb2_queue); in vpfe_buffer_prepare() [all …]
|
D | am437x-vpfe.h | 107 struct vb2_buffer vb; member
|
/linux-4.1.27/drivers/media/platform/exynos-gsc/ |
D | gsc-m2m.c | 238 static int gsc_m2m_buf_prepare(struct vb2_buffer *vb) in gsc_m2m_buf_prepare() argument 240 struct gsc_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in gsc_m2m_buf_prepare() 244 frame = ctx_get_frame(ctx, vb->vb2_queue->type); in gsc_m2m_buf_prepare() 248 if (!V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) { in gsc_m2m_buf_prepare() 250 vb2_set_plane_payload(vb, i, frame->payload[i]); in gsc_m2m_buf_prepare() 256 static void gsc_m2m_buf_queue(struct vb2_buffer *vb) in gsc_m2m_buf_queue() argument 258 struct gsc_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in gsc_m2m_buf_queue() 263 v4l2_m2m_buf_queue(ctx->m2m_ctx, vb); in gsc_m2m_buf_queue()
|
D | gsc-core.h | 139 struct vb2_buffer vb; member 411 int gsc_prepare_addr(struct gsc_ctx *ctx, struct vb2_buffer *vb,
|
D | gsc-core.c | 801 int gsc_prepare_addr(struct gsc_ctx *ctx, struct vb2_buffer *vb, in gsc_prepare_addr() argument 807 if ((vb == NULL) || (frame == NULL)) in gsc_prepare_addr() 815 addr->y = vb2_dma_contig_plane_dma_addr(vb, 0); in gsc_prepare_addr() 844 addr->cb = vb2_dma_contig_plane_dma_addr(vb, 1); in gsc_prepare_addr() 847 addr->cr = vb2_dma_contig_plane_dma_addr(vb, 2); in gsc_prepare_addr()
|
/linux-4.1.27/drivers/media/usb/msi2500/ |
D | msi2500.c | 118 struct vb2_buffer vb; /* common v4l buffer stuff -- must be first */ member 435 ptr = vb2_plane_vaddr(&fbuf->vb, 0); in msi2500_isoc_handler() 437 vb2_set_plane_payload(&fbuf->vb, 0, flen); in msi2500_isoc_handler() 438 vb2_buffer_done(&fbuf->vb, VB2_BUF_STATE_DONE); in msi2500_isoc_handler() 572 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in msi2500_cleanup_queued_bufs() 632 static void msi2500_buf_queue(struct vb2_buffer *vb) in msi2500_buf_queue() argument 634 struct msi2500_state *s = vb2_get_drv_priv(vb->vb2_queue); in msi2500_buf_queue() 636 container_of(vb, struct msi2500_frame_buf, vb); in msi2500_buf_queue() 641 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in msi2500_buf_queue()
|
/linux-4.1.27/drivers/media/usb/s2255/ |
D | s2255drv.c | 296 struct vb2_buffer vb; member 576 v4l2_get_timestamp(&buf->vb.v4l2_buf.timestamp); in s2255_got_frame() 577 buf->vb.v4l2_buf.field = vc->field; in s2255_got_frame() 578 buf->vb.v4l2_buf.sequence = vc->frame_count; in s2255_got_frame() 583 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_DONE); in s2255_got_frame() 615 char *vbuf = vb2_plane_vaddr(&buf->vb, 0); in s2255_fillbuff() 638 vb2_set_plane_payload(&buf->vb, 0, jpgsize); in s2255_fillbuff() 674 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 676 struct s2255_vc *vc = vb2_get_drv_priv(vb->vb2_queue); in buffer_prepare() 677 struct s2255_buffer *buf = container_of(vb, struct s2255_buffer, vb); in buffer_prepare() [all …]
|
/linux-4.1.27/drivers/media/platform/s5p-g2d/ |
D | g2d.c | 124 static int g2d_buf_prepare(struct vb2_buffer *vb) in g2d_buf_prepare() argument 126 struct g2d_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in g2d_buf_prepare() 127 struct g2d_frame *f = get_frame(ctx, vb->vb2_queue->type); in g2d_buf_prepare() 131 vb2_set_plane_payload(vb, 0, f->size); in g2d_buf_prepare() 135 static void g2d_buf_queue(struct vb2_buffer *vb) in g2d_buf_queue() argument 137 struct g2d_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in g2d_buf_queue() 138 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vb); in g2d_buf_queue()
|
/linux-4.1.27/drivers/media/platform/s5p-tv/ |
D | mixer_vp_layer.c | 100 luma_addr[0] = vb2_dma_contig_plane_dma_addr(&buf->vb, 0); in mxr_vp_buffer_set() 102 chroma_addr[0] = vb2_dma_contig_plane_dma_addr(&buf->vb, 1); in mxr_vp_buffer_set()
|
D | mixer_video.c | 915 static void buf_queue(struct vb2_buffer *vb) in buf_queue() argument 917 struct mxr_buffer *buffer = container_of(vb, struct mxr_buffer, vb); in buf_queue() 918 struct mxr_layer *layer = vb2_get_drv_priv(vb->vb2_queue); in buf_queue() 966 vb2_buffer_done(&layer->update_buf->vb, VB2_BUF_STATE_ERROR); in mxr_watchdog() 970 vb2_buffer_done(&layer->shadow_buf->vb, VB2_BUF_STATE_ERROR); in mxr_watchdog() 994 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in stop_streaming()
|
D | mixer.h | 116 struct vb2_buffer vb; member
|
D | mixer_grp_layer.c | 89 addr = vb2_dma_contig_plane_dma_addr(&buf->vb, 0); in mxr_graph_buffer_set()
|
D | mixer_reg.c | 282 vb2_buffer_done(&done->vb, VB2_BUF_STATE_DONE); in mxr_irq_layer_handle()
|
/linux-4.1.27/include/media/davinci/ |
D | vpbe_display.h | 67 struct vb2_buffer vb; member
|
/linux-4.1.27/drivers/macintosh/ |
D | via-pmu.c | 643 long pcharge, charge, vb, vmax, lmax; in done_battery_state_ohare() local 670 vb = (req->reply[1] << 8) | req->reply[2]; in done_battery_state_ohare() 671 voltage = (vb * 265 + 72665) / 10; in done_battery_state_ohare() 675 vb += ((amperage - 200) * 15)/100; in done_battery_state_ohare() 677 vb = (vb * 97) / 100; in done_battery_state_ohare() 680 charge = (100 * vb) / vmax; in done_battery_state_ohare()
|
/linux-4.1.27/drivers/video/fbdev/intelfb/ |
D | intelfbhw.c | 1053 u32 *vs, *vb, *vt, *hs, *hb, *ht, *ss, *pipe_conf; in intelfbhw_mode_to_hw() local 1070 vb = &hw->vblank_b; in intelfbhw_mode_to_hw() 1082 vb = &hw->vblank_a; in intelfbhw_mode_to_hw() 1245 *vb = (vblank_start << VBLANKSTART_SHIFT) | in intelfbhw_mode_to_hw() 1285 const u32 *hs, *ht, *hb, *vs, *vt, *vb, *ss; in intelfbhw_program_mode() local 1314 vb = &hw->vblank_b; in intelfbhw_program_mode() 1338 vb = &hw->vblank_a; in intelfbhw_program_mode() 1428 OUTREG(vblank_reg, *vb); in intelfbhw_program_mode()
|
/linux-4.1.27/drivers/media/pci/saa7164/ |
D | saa7164-api.c | 190 struct tmComResEncVideoBitRate vb; in saa7164_api_set_encoder() local 216 vb.ucVideoBitRateMode = EU_VIDEO_BIT_RATE_MODE_CONSTANT; in saa7164_api_set_encoder() 218 vb.ucVideoBitRateMode = EU_VIDEO_BIT_RATE_MODE_VARIABLE_PEAK; in saa7164_api_set_encoder() 219 vb.dwVideoBitRate = port->encoder_params.bitrate; in saa7164_api_set_encoder() 220 vb.dwVideoBitRatePeak = port->encoder_params.bitrate_peak; in saa7164_api_set_encoder() 224 &vb); in saa7164_api_set_encoder()
|
/linux-4.1.27/arch/x86/tools/ |
D | relocs.c | 944 static int cmp_relocs(const void *va, const void *vb) in cmp_relocs() argument 947 a = va; b = vb; in cmp_relocs()
|
/linux-4.1.27/drivers/media/pci/ngene/ |
D | ngene.h | 878 struct videobuf_buffer vb; member
|
/linux-4.1.27/drivers/media/pci/saa7134/ |
D | saa7134.h | 780 void saa7134_vb2_buffer_queue(struct vb2_buffer *vb);
|
D | saa7134-video.c | 928 void saa7134_vb2_buffer_queue(struct vb2_buffer *vb) in saa7134_vb2_buffer_queue() argument 930 struct saa7134_dmaqueue *dmaq = vb->vb2_queue->drv_priv; in saa7134_vb2_buffer_queue() 932 struct saa7134_buf *buf = container_of(vb, struct saa7134_buf, vb2); in saa7134_vb2_buffer_queue()
|
/linux-4.1.27/kernel/trace/ |
D | trace_events_filter.c | 2273 #define DATA_REC(m, va, vb, vc, vd, ve, vf, vg, vh, nvisit) \ argument 2276 .rec = { .a = va, .b = vb, .c = vc, .d = vd, \
|
/linux-4.1.27/kernel/ |
D | module.c | 406 static int cmp_name(const void *va, const void *vb) in cmp_name() argument 410 a = va; b = vb; in cmp_name()
|