/linux-4.4.14/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.4.14/drivers/media/v4l2-core/ |
D | videobuf2-core.c | 38 static void __enqueue_in_driver(struct vb2_buffer *vb); 43 static int __vb2_buf_mem_alloc(struct vb2_buffer *vb) in __vb2_buf_mem_alloc() argument 45 struct vb2_queue *q = vb->vb2_queue; in __vb2_buf_mem_alloc() 55 for (plane = 0; plane < vb->num_planes; ++plane) { in __vb2_buf_mem_alloc() 58 mem_priv = call_ptr_memop(vb, alloc, q->alloc_ctx[plane], in __vb2_buf_mem_alloc() 64 vb->planes[plane].mem_priv = mem_priv; in __vb2_buf_mem_alloc() 65 vb->planes[plane].length = q->plane_sizes[plane]; in __vb2_buf_mem_alloc() 72 call_void_memop(vb, put, vb->planes[plane - 1].mem_priv); in __vb2_buf_mem_alloc() 73 vb->planes[plane - 1].mem_priv = NULL; in __vb2_buf_mem_alloc() 82 static void __vb2_buf_mem_free(struct vb2_buffer *vb) in __vb2_buf_mem_free() argument [all …]
|
D | videobuf2-internal.h | 27 #define log_memop(vb, op) \ argument 29 (vb)->vb2_queue, (vb)->index, #op, \ 30 (vb)->vb2_queue->mem_ops->op ? "" : " (nop)") 32 #define call_memop(vb, op, args...) \ argument 34 struct vb2_queue *_q = (vb)->vb2_queue; \ 37 log_memop(vb, op); \ 40 (vb)->cnt_mem_ ## op++; \ 44 #define call_ptr_memop(vb, op, args...) \ argument 46 struct vb2_queue *_q = (vb)->vb2_queue; \ 49 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 | videobuf2-v4l2.c | 49 static int __verify_planes_array(struct vb2_buffer *vb, const struct v4l2_buffer *b) in __verify_planes_array() argument 61 if (b->length < vb->num_planes || b->length > VB2_MAX_PLANES) { in __verify_planes_array() 63 "expected %d, got %d\n", vb->num_planes, b->length); in __verify_planes_array() 74 static int __verify_length(struct vb2_buffer *vb, const struct v4l2_buffer *b) in __verify_length() argument 84 for (plane = 0; plane < vb->num_planes; ++plane) { in __verify_length() 88 : vb->planes[plane].length; in __verify_length() 101 ? b->length : vb->planes[0].length; in __verify_length() 110 static int __set_timestamp(struct vb2_buffer *vb, const void *pb) in __set_timestamp() argument 113 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __set_timestamp() 114 struct vb2_queue *q = vb->vb2_queue; in __set_timestamp() [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 | 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()
|
D | v4l2-mem2mem.c | 112 return &b->vb; in v4l2_m2m_next_buf() 135 return &b->vb; in v4l2_m2m_buf_remove() 773 struct v4l2_m2m_buffer, vb); in v4l2_m2m_buf_queue()
|
/linux-4.4.14/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.4.14/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.4.14/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.vb2_buf.planes[0].bytesused < GO7007_BUF_SIZE) { in store_byte() 390 u8 *ptr = vb2_plane_vaddr(&vb->vb.vb2_buf, 0); in store_byte() 392 ptr[vb->vb.vb2_buf.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.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.vb2_buf.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.vb2_buf, 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() 385 static void go7007_buf_queue(struct vb2_buffer *vb) in go7007_buf_queue() argument 387 struct vb2_queue *vq = vb->vb2_queue; in go7007_buf_queue() 389 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in go7007_buf_queue() 391 container_of(vbuf, struct go7007_buffer, vb); in go7007_buf_queue() 399 static int go7007_buf_prepare(struct vb2_buffer *vb) in go7007_buf_prepare() argument 401 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in go7007_buf_prepare() [all …]
|
D | go7007-priv.h | 139 struct vb2_v4l2_buffer vb; member
|
/linux-4.4.14/include/trace/events/ |
D | vb2.h | 11 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), 12 TP_ARGS(q, vb), 28 __entry->index = vb->index; 29 __entry->type = vb->type; 30 __entry->bytesused = vb->planes[0].bytesused; 43 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), 44 TP_ARGS(q, vb) 48 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), 49 TP_ARGS(q, vb) 53 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), [all …]
|
D | v4l2.h | 180 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), 181 TP_ARGS(q, vb), 202 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); 244 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), 245 TP_ARGS(q, vb) 249 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), 250 TP_ARGS(q, vb) 254 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), 255 TP_ARGS(q, vb) 259 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), [all …]
|
/linux-4.4.14/include/media/ |
D | videobuf2-core.h | 354 int (*buf_init)(struct vb2_buffer *vb); 355 int (*buf_prepare)(struct vb2_buffer *vb); 356 void (*buf_finish)(struct vb2_buffer *vb); 357 void (*buf_cleanup)(struct vb2_buffer *vb); 362 void (*buf_queue)(struct vb2_buffer *vb); 366 int (*verify_planes_array)(struct vb2_buffer *vb, const void *pb); 367 int (*fill_user_buffer)(struct vb2_buffer *vb, void *pb); 368 int (*fill_vb2_buffer)(struct vb2_buffer *vb, const void *pb, 370 int (*set_timestamp)(struct vb2_buffer *vb, const void *pb); 500 void *vb2_plane_vaddr(struct vb2_buffer *vb, unsigned int plane_no); [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 | videobuf2-v4l2.h | 50 #define to_vb2_v4l2_buffer(vb) \ argument 51 container_of(vb, struct vb2_v4l2_buffer, vb2_buf) 80 typedef int (*vb2_thread_fnc)(struct vb2_buffer *vb, void *priv);
|
D | v4l2-mem2mem.h | 93 struct vb2_v4l2_buffer vb; member
|
D | saa7146_vv.h | 60 struct videobuf_buffer vb; member
|
/linux-4.4.14/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.4.14/drivers/media/usb/em28xx/ |
D | em28xx-vbi.c | 61 static int vbi_buffer_prepare(struct vb2_buffer *vb) in vbi_buffer_prepare() argument 63 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); 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(vb, 0, size); in vbi_buffer_prepare() 80 vbi_buffer_queue(struct vb2_buffer *vb) in vbi_buffer_queue() argument 82 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_buffer_queue() 83 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue() 85 container_of(vbuf, struct em28xx_buffer, vb); in vbi_buffer_queue() 89 buf->mem = vb2_plane_vaddr(vb, 0); in vbi_buffer_queue() [all …]
|
D | em28xx-video.c | 436 buf->vb.sequence = dev->v4l2->field_count++; in finish_buffer() 438 buf->vb.field = V4L2_FIELD_NONE; in finish_buffer() 440 buf->vb.field = V4L2_FIELD_INTERLACED; in finish_buffer() 441 v4l2_get_timestamp(&buf->vb.timestamp); in finish_buffer() 443 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE); in finish_buffer() 902 buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 904 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() 905 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in buffer_prepare() 913 if (vb2_plane_size(vb, 0) < size) { in buffer_prepare() 915 __func__, vb2_plane_size(vb, 0), size); in buffer_prepare() [all …]
|
D | em28xx.h | 268 struct vb2_v4l2_buffer vb; member
|
/linux-4.4.14/drivers/media/usb/au0828/ |
D | au0828-vbi.c | 53 static int vbi_buffer_prepare(struct vb2_buffer *vb) in vbi_buffer_prepare() argument 55 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); 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(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 vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_buffer_queue() 76 container_of(vbuf, struct au0828_buffer, vb); in vbi_buffer_queue() 80 buf->mem = vb2_plane_vaddr(vb, 0); in vbi_buffer_queue() [all …]
|
D | au0828-video.c | 304 struct vb2_v4l2_buffer *vb = &buf->vb; in buffer_filled() local 305 struct vb2_queue *q = vb->vb2_buf.vb2_queue; in buffer_filled() 311 vb->sequence = dev->frame_count++; in buffer_filled() 313 vb->sequence = dev->vbi_frame_count++; in buffer_filled() 315 vb->field = V4L2_FIELD_INTERLACED; in buffer_filled() 316 v4l2_get_timestamp(&vb->timestamp); in buffer_filled() 317 vb2_buffer_done(&vb->vb2_buf, VB2_BUF_STATE_DONE); in buffer_filled() 533 outp = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in au0828_isoc_copy() 537 vbioutp = vb2_plane_vaddr(&vbi_buf->vb.vb2_buf, 0); in au0828_isoc_copy() 576 &vbi_buf->vb.vb2_buf, 0); in au0828_isoc_copy() [all …]
|
D | au0828.h | 172 struct vb2_v4l2_buffer vb; member
|
/linux-4.4.14/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.4.14/drivers/media/platform/ |
D | fsl-viu.c | 81 struct videobuf_buffer vb; member 295 buf = list_entry(vidq->active.next, struct viu_buf, vb.queue); in restart_video_queue() 297 buf, buf->vb.i); in restart_video_queue() 302 list_for_each_entry_safe(buf, prev, &vidq->active, vb.queue) { in restart_video_queue() 303 list_del(&buf->vb.queue); in restart_video_queue() 304 buf->vb.state = VIDEOBUF_ERROR; in restart_video_queue() 305 wake_up(&buf->vb.done); in restart_video_queue() 315 buf = list_entry(vidq->queued.next, struct viu_buf, vb.queue); in restart_video_queue() 317 list_move_tail(&buf->vb.queue, &vidq->active); in restart_video_queue() 323 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 | 66 struct vb2_v4l2_buffer vb; member 73 return container_of(vb2, struct sh_vou_buffer, vb); in to_sh_vou_buffer() 265 static int sh_vou_buf_prepare(struct vb2_buffer *vb) in sh_vou_buf_prepare() argument 267 struct sh_vou_device *vou_dev = vb2_get_drv_priv(vb->vb2_queue); in sh_vou_buf_prepare() 274 if (vb2_plane_size(vb, 0) < size) { in sh_vou_buf_prepare() 277 vb2_plane_size(vb, 0), size); in sh_vou_buf_prepare() 281 vb2_set_plane_payload(vb, 0, size); in sh_vou_buf_prepare() 286 static void sh_vou_buf_queue(struct vb2_buffer *vb) in sh_vou_buf_queue() argument 288 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in sh_vou_buf_queue() 289 struct sh_vou_device *vou_dev = vb2_get_drv_priv(vb->vb2_queue); in sh_vou_buf_queue() [all …]
|
D | rcar_jpu.c | 474 static struct jpu_buffer *vb2_to_jpu_buffer(struct vb2_v4l2_buffer *vb) in vb2_to_jpu_buffer() argument 477 container_of(vb, struct v4l2_m2m_buffer, vb); in vb2_to_jpu_buffer() 1046 static int jpu_buf_prepare(struct vb2_buffer *vb) in jpu_buf_prepare() argument 1048 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in jpu_buf_prepare() 1049 struct jpu_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in jpu_buf_prepare() 1053 q_data = jpu_get_q_data(ctx, vb->vb2_queue->type); in jpu_buf_prepare() 1055 if (V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) { in jpu_buf_prepare() 1068 if (vb2_plane_size(vb, i) < size) { in jpu_buf_prepare() 1071 __func__, vb2_plane_size(vb, i), size); in jpu_buf_prepare() 1076 if (!ctx->encoder && !V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) in jpu_buf_prepare() [all …]
|
D | via-camera.c | 355 struct videobuf_buffer *vb; in viacam_irq() local 363 vb = viacam_next_buffer(cam); in viacam_irq() 364 if (vb == NULL) in viacam_irq() 376 vdma = videobuf_to_dma(vb); in viacam_irq() 378 vb->state = VIDEOBUF_DONE; in viacam_irq() 379 vb->size = cam->user_format.sizeimage; in viacam_irq() 380 wake_up(&vb->done); in viacam_irq() 600 struct videobuf_buffer *vb, enum v4l2_field field) in viacam_vb_buf_prepare() argument 604 vb->size = cam->user_format.sizeimage; in viacam_vb_buf_prepare() 605 vb->width = cam->user_format.width; /* bytesperline???? */ in viacam_vb_buf_prepare() [all …]
|
D | vim2m.c | 749 static int vim2m_buf_prepare(struct vb2_buffer *vb) in vim2m_buf_prepare() argument 751 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vim2m_buf_prepare() 752 struct vim2m_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vim2m_buf_prepare() 755 dprintk(ctx->dev, "type: %d\n", vb->vb2_queue->type); in vim2m_buf_prepare() 757 q_data = get_q_data(ctx, vb->vb2_queue->type); in vim2m_buf_prepare() 758 if (V4L2_TYPE_IS_OUTPUT(vb->vb2_queue->type)) { in vim2m_buf_prepare() 768 if (vb2_plane_size(vb, 0) < q_data->sizeimage) { in vim2m_buf_prepare() 770 __func__, vb2_plane_size(vb, 0), (long)q_data->sizeimage); in vim2m_buf_prepare() 774 vb2_set_plane_payload(vb, 0, q_data->sizeimage); in vim2m_buf_prepare() 779 static void vim2m_buf_queue(struct vb2_buffer *vb) in vim2m_buf_queue() argument [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 vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in emmaprp_buf_queue() 746 struct emmaprp_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in emmaprp_buf_queue()
|
D | m2m-deinterlace.c | 831 static int deinterlace_buf_prepare(struct vb2_buffer *vb) in deinterlace_buf_prepare() argument 833 struct deinterlace_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in deinterlace_buf_prepare() 836 dprintk(ctx->dev, "type: %d\n", vb->vb2_queue->type); in deinterlace_buf_prepare() 838 q_data = get_q_data(vb->vb2_queue->type); in deinterlace_buf_prepare() 840 if (vb2_plane_size(vb, 0) < q_data->sizeimage) { in deinterlace_buf_prepare() 842 __func__, vb2_plane_size(vb, 0), (long)q_data->sizeimage); in deinterlace_buf_prepare() 846 vb2_set_plane_payload(vb, 0, q_data->sizeimage); in deinterlace_buf_prepare() 851 static void deinterlace_buf_queue(struct vb2_buffer *vb) in deinterlace_buf_queue() argument 853 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in deinterlace_buf_queue() 854 struct deinterlace_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in deinterlace_buf_queue()
|
D | sh_veu.c | 912 static int sh_veu_buf_prepare(struct vb2_buffer *vb) in sh_veu_buf_prepare() argument 914 struct sh_veu_dev *veu = vb2_get_drv_priv(vb->vb2_queue); in sh_veu_buf_prepare() 918 vfmt = sh_veu_get_vfmt(veu, vb->vb2_queue->type); in sh_veu_buf_prepare() 922 if (vb2_plane_size(vb, 0) < sizeimage) { in sh_veu_buf_prepare() 924 __func__, vb2_plane_size(vb, 0), sizeimage); in sh_veu_buf_prepare() 928 vb2_set_plane_payload(vb, 0, sizeimage); in sh_veu_buf_prepare() 933 static void sh_veu_buf_queue(struct vb2_buffer *vb) in sh_veu_buf_queue() argument 935 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in sh_veu_buf_queue() 936 struct sh_veu_dev *veu = vb2_get_drv_priv(vb->vb2_queue); in sh_veu_buf_queue() 937 dev_dbg(veu->dev, "%s(%d)\n", __func__, vb->type); in sh_veu_buf_queue()
|
/linux-4.4.14/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.4.14/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.4.14/drivers/media/platform/vivid/ |
D | vivid-vbi-cap.c | 97 u8 *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_raw_vbi_cap_process() 100 buf->vb.sequence = dev->vbi_cap_seq_count; in vivid_raw_vbi_cap_process() 102 buf->vb.sequence /= 2; in vivid_raw_vbi_cap_process() 104 vivid_sliced_vbi_cap_fill(dev, buf->vb.sequence); in vivid_raw_vbi_cap_process() 106 memset(vbuf, 0x10, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_raw_vbi_cap_process() 111 v4l2_get_timestamp(&buf->vb.timestamp); in vivid_raw_vbi_cap_process() 112 buf->vb.timestamp.tv_sec += dev->time_wrap_offset; in vivid_raw_vbi_cap_process() 120 vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_sliced_vbi_cap_process() 122 buf->vb.sequence = dev->vbi_cap_seq_count; in vivid_sliced_vbi_cap_process() 124 buf->vb.sequence /= 2; in vivid_sliced_vbi_cap_process() [all …]
|
D | vivid-kthread-out.c | 90 vid_out_buf->vb.sequence = dev->vid_out_seq_count; in vivid_thread_vid_out_tick() 96 vid_out_buf->vb.sequence /= 2; in vivid_thread_vid_out_tick() 98 v4l2_get_timestamp(&vid_out_buf->vb.timestamp); in vivid_thread_vid_out_tick() 99 vid_out_buf->vb.timestamp.tv_sec += dev->time_wrap_offset; in vivid_thread_vid_out_tick() 100 vb2_buffer_done(&vid_out_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_vid_out_tick() 103 vid_out_buf->vb.vb2_buf.index); in vivid_thread_vid_out_tick() 110 vbi_out_buf->vb.sequence = dev->vbi_out_seq_count; in vivid_thread_vid_out_tick() 111 v4l2_get_timestamp(&vbi_out_buf->vb.timestamp); in vivid_thread_vid_out_tick() 112 vbi_out_buf->vb.timestamp.tv_sec += dev->time_wrap_offset; in vivid_thread_vid_out_tick() 113 vb2_buffer_done(&vbi_out_buf->vb.vb2_buf, 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 vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_out_buf_queue() 83 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_out_buf_queue() 84 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in vbi_out_buf_queue() [all …]
|
D | vivid-sdr-cap.c | 118 sdr_cap_buf->vb.sequence = dev->sdr_cap_seq_count; in vivid_thread_sdr_cap_tick() 120 v4l2_get_timestamp(&sdr_cap_buf->vb.timestamp); in vivid_thread_sdr_cap_tick() 121 sdr_cap_buf->vb.timestamp.tv_sec += dev->time_wrap_offset; in vivid_thread_sdr_cap_tick() 122 vb2_buffer_done(&sdr_cap_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_sdr_cap_tick() 226 static int sdr_cap_buf_prepare(struct vb2_buffer *vb) in sdr_cap_buf_prepare() argument 228 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in sdr_cap_buf_prepare() 241 if (vb2_plane_size(vb, 0) < size) { in sdr_cap_buf_prepare() 243 __func__, vb2_plane_size(vb, 0), size); in sdr_cap_buf_prepare() 246 vb2_set_plane_payload(vb, 0, size); in sdr_cap_buf_prepare() 251 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.vb2_buf, p); in plane_vaddr() 240 vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in plane_vaddr() 249 bool blank = dev->must_blank[vid_cap_buf->vb.vb2_buf.index]; in vivid_copy_buffer() 286 vid_cap_buf->vb.field = vid_out_buf->vb.field; in vivid_copy_buffer() 291 voutbuf += vid_out_buf->vb.vb2_buf.planes[p].data_offset; in vivid_copy_buffer() 438 buf->vb.sequence = dev->vid_cap_seq_count; in vivid_fillbuff() 444 v4l2_get_timestamp(&buf->vb.timestamp); in vivid_fillbuff() 452 buf->vb.field = ((dev->vid_cap_seq_count & 1) ^ is_60hz) ? in vivid_fillbuff() 458 buf->vb.sequence /= 2; in vivid_fillbuff() 460 buf->vb.field = dev->field_cap; in vivid_fillbuff() [all …]
|
D | vivid-vid-out.c | 111 static int vid_out_buf_prepare(struct vb2_buffer *vb) in vid_out_buf_prepare() argument 113 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vid_out_buf_prepare() 114 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vid_out_buf_prepare() 143 vb->planes[p].data_offset; in vid_out_buf_prepare() 145 if (vb2_get_plane_payload(vb, p) < size) { in vid_out_buf_prepare() 147 __func__, p, vb2_get_plane_payload(vb, p), size); in vid_out_buf_prepare() 155 static void vid_out_buf_queue(struct vb2_buffer *vb) in vid_out_buf_queue() argument 157 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vid_out_buf_queue() 158 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vid_out_buf_queue() 159 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in vid_out_buf_queue() [all …]
|
D | vivid-vid-cap.c | 171 static int vid_cap_buf_prepare(struct vb2_buffer *vb) in vid_cap_buf_prepare() argument 173 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vid_cap_buf_prepare() 195 if (vb2_plane_size(vb, p) < size) { in vid_cap_buf_prepare() 197 __func__, p, vb2_plane_size(vb, p), size); in vid_cap_buf_prepare() 201 vb2_set_plane_payload(vb, p, size); in vid_cap_buf_prepare() 202 vb->planes[p].data_offset = dev->fmt_cap->data_offset[p]; in vid_cap_buf_prepare() 208 static void vid_cap_buf_finish(struct vb2_buffer *vb) in vid_cap_buf_finish() argument 210 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vid_cap_buf_finish() 211 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vid_cap_buf_finish() 234 static void vid_cap_buf_queue(struct vb2_buffer *vb) in vid_cap_buf_queue() argument [all …]
|
D | vivid-core.h | 96 struct vb2_v4l2_buffer vb; member
|
/linux-4.4.14/drivers/media/pci/cx88/ |
D | cx88-vbi.c | 103 buf, buf->vb.vb2_buf.index); in cx8800_restart_vbi_queue() 126 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 128 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() 129 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare() 130 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_prepare() 131 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare() 140 if (vb2_plane_size(vb, 0) < size) in buffer_prepare() 142 vb2_set_plane_payload(vb, 0, size); in buffer_prepare() 151 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument 153 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_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 vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() 657 struct cx8802_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare() 658 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_prepare() 660 return cx8802_buf_prepare(vb->vb2_queue, dev, buf); in buffer_prepare() 663 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument 665 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() 666 struct cx8802_dev *dev = vb->vb2_queue->drv_priv; in buffer_finish() 667 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_finish() 675 static void buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument [all …]
|
D | cx88-video.c | 423 buf, buf->vb.vb2_buf.index); in restart_video_queue() 445 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 447 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() 448 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare() 450 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_prepare() 451 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare() 455 if (vb2_plane_size(vb, 0) < core->height * buf->bpl) in buffer_prepare() 457 vb2_set_plane_payload(vb, 0, core->height * buf->bpl); in buffer_prepare() 493 buf, buf->vb.vb2_buf.index, in buffer_prepare() 499 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument [all …]
|
D | cx88-mpeg.c | 217 buf, buf->vb.vb2_buf.index); in cx8802_restart_queue() 228 struct sg_table *sgt = vb2_dma_sg_plane_desc(&buf->vb.vb2_buf, 0); in cx8802_buf_prepare() 232 if (vb2_plane_size(&buf->vb.vb2_buf, 0) < size) in cx8802_buf_prepare() 234 vb2_set_plane_payload(&buf->vb.vb2_buf, 0, size); in cx8802_buf_prepare() 262 buf, buf->vb.vb2_buf.index, __func__); in cx8802_buf_queue() 271 buf, buf->vb.vb2_buf.index, __func__); in cx8802_buf_queue() 287 vb2_buffer_done(&buf->vb.vb2_buf, 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 vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() 103 struct cx8802_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare() 104 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_prepare() 106 return cx8802_buf_prepare(vb->vb2_queue, dev, buf); in buffer_prepare() 109 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument 111 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() 112 struct cx8802_dev *dev = vb->vb2_queue->drv_priv; in buffer_finish() 113 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_finish() 121 static void buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument [all …]
|
D | cx88-core.c | 521 v4l2_get_timestamp(&buf->vb.timestamp); in cx88_wakeup() 522 buf->vb.field = core->field; in cx88_wakeup() 523 buf->vb.sequence = q->count++; in cx88_wakeup() 525 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE); in cx88_wakeup()
|
D | cx88.h | 324 struct vb2_v4l2_buffer vb; member
|
/linux-4.4.14/drivers/media/pci/cx23885/ |
D | cx23885-vbi.c | 139 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 141 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() 142 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare() 144 struct cx23885_buffer, vb); in buffer_prepare() 145 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare() 151 if (vb2_plane_size(vb, 0) < lines * VBI_LINE_LENGTH * 2) in buffer_prepare() 153 vb2_set_plane_payload(vb, 0, lines * VBI_LINE_LENGTH * 2); in buffer_prepare() 163 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument 165 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() 167 struct cx23885_buffer, vb); in buffer_finish() [all …]
|
D | cx23885-video.c | 107 buf->vb.sequence = q->count++; in cx23885_video_wakeup() 108 v4l2_get_timestamp(&buf->vb.timestamp); in cx23885_video_wakeup() 110 buf->vb.vb2_buf.index, count, q->count); in cx23885_video_wakeup() 112 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE); in cx23885_video_wakeup() 330 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 332 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() 333 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare() 335 container_of(vbuf, struct cx23885_buffer, vb); in buffer_prepare() 337 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare() 342 if (vb2_plane_size(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 vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() 1159 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare() 1161 container_of(vbuf, struct cx23885_buffer, vb); in buffer_prepare() 1166 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument 1168 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() 1169 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_finish() 1171 struct cx23885_buffer, vb); in buffer_finish() 1176 static void buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument 1178 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() [all …]
|
D | cx23885-core.c | 430 v4l2_get_timestamp(&buf->vb.timestamp); in cx23885_wakeup() 431 buf->vb.sequence = q->count++; in cx23885_wakeup() 433 buf->vb.vb2_buf.index, in cx23885_wakeup() 436 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE); in cx23885_wakeup() 1457 struct sg_table *sgt = vb2_dma_sg_plane_desc(&buf->vb.vb2_buf, 0); in cx23885_buf_prepare() 1460 if (vb2_plane_size(&buf->vb.vb2_buf, 0) < size) in cx23885_buf_prepare() 1462 vb2_set_plane_payload(&buf->vb.vb2_buf, 0, size); in cx23885_buf_prepare() 1507 buf, buf->vb.vb2_buf.index, __func__); in cx23885_buf_queue() 1515 buf, buf->vb.vb2_buf.index, __func__); in cx23885_buf_queue() 1534 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in do_cancel_buffers() [all …]
|
D | cx23885-dvb.c | 111 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 113 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() 114 struct cx23885_tsport *port = vb->vb2_queue->drv_priv; in buffer_prepare() 116 container_of(vbuf, struct cx23885_buffer, vb); in buffer_prepare() 121 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument 123 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() 124 struct cx23885_tsport *port = vb->vb2_queue->drv_priv; in buffer_finish() 127 struct cx23885_buffer, vb); in buffer_finish() 132 static void buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument 134 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() [all …]
|
D | cx23885.h | 173 struct vb2_v4l2_buffer vb; member
|
/linux-4.4.14/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.4.14/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.4.14/drivers/media/usb/cx231xx/ |
D | cx231xx-vbi.c | 211 videobuf_vmalloc_free(&buf->vb); in free_buffer() 212 buf->vb.state = VIDEOBUF_NEEDS_INIT; in free_buffer() 216 vbi_buffer_prepare(struct videobuf_queue *vq, struct videobuf_buffer *vb, in vbi_buffer_prepare() argument 221 container_of(vb, struct cx231xx_buffer, vb); in vbi_buffer_prepare() 228 buf->vb.size = ((dev->width << 1) * height * 2); in vbi_buffer_prepare() 230 if (0 != buf->vb.baddr && buf->vb.bsize < buf->vb.size) in vbi_buffer_prepare() 233 buf->vb.width = dev->width; in vbi_buffer_prepare() 234 buf->vb.height = height; in vbi_buffer_prepare() 235 buf->vb.field = field; in vbi_buffer_prepare() 236 buf->vb.field = V4L2_FIELD_SEQ_TB; in vbi_buffer_prepare() [all …]
|
D | cx231xx-417.c | 1263 videobuf_waiton(vq, &buf->vb, 0, 0); in free_buffer() 1264 videobuf_vmalloc_free(&buf->vb); in free_buffer() 1265 buf->vb.state = VIDEOBUF_NEEDS_INIT; in free_buffer() 1281 struct cx231xx_buffer, vb.queue); in buffer_copy() 1287 vbuf = videobuf_to_vmalloc(&buf->vb); in buffer_copy() 1311 buf->vb.state = VIDEOBUF_DONE; in buffer_copy() 1312 buf->vb.field_count++; in buffer_copy() 1313 v4l2_get_timestamp(&buf->vb.ts); in buffer_copy() 1314 list_del(&buf->vb.queue); in buffer_copy() 1315 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 | 235 struct videobuf_buffer vb; member
|
/linux-4.4.14/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.4.14/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_v4l2_buffer vb; member 136 static struct mx3_camera_buffer *to_mx3_vb(struct vb2_v4l2_buffer *vb) in to_mx3_vb() argument 138 return container_of(vb, struct mx3_camera_buffer, vb); in to_mx3_vb() 154 struct vb2_v4l2_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->timestamp); in mx3_cam_dma_done() 159 vb->field = mx3_cam->field; in mx3_cam_dma_done() 160 vb->sequence = mx3_cam->sequence++; in mx3_cam_dma_done() 161 vb2_buffer_done(&vb->vb2_buf, VB2_BUF_STATE_DONE); in mx3_cam_dma_done() 259 static void mx3_videobuf_queue(struct vb2_buffer *vb) in mx3_videobuf_queue() argument [all …]
|
D | mx2_camera.c | 228 struct vb2_v4l2_buffer vb; member 502 static int mx2_videobuf_prepare(struct vb2_buffer *vb) in mx2_videobuf_prepare() argument 504 struct soc_camera_device *icd = soc_camera_from_vb2q(vb->vb2_queue); in mx2_videobuf_prepare() 508 vb, vb2_plane_vaddr(vb, 0), vb2_get_plane_payload(vb, 0)); in mx2_videobuf_prepare() 515 memset((void *)vb2_plane_vaddr(vb, 0), in mx2_videobuf_prepare() 516 0xaa, vb2_get_plane_payload(vb, 0)); in mx2_videobuf_prepare() 519 vb2_set_plane_payload(vb, 0, icd->sizeimage); in mx2_videobuf_prepare() 520 if (vb2_plane_vaddr(vb, 0) && in mx2_videobuf_prepare() 521 vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) { in mx2_videobuf_prepare() 532 static void mx2_videobuf_queue(struct vb2_buffer *vb) in mx2_videobuf_queue() argument [all …]
|
D | atmel-isi.c | 63 struct vb2_v4l2_buffer vb; member 164 struct vb2_v4l2_buffer *vbuf = &isi->active->vb; in atmel_isi_handle_streaming() 278 static int buffer_init(struct vb2_buffer *vb) in buffer_init() argument 280 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_init() 281 struct frame_buffer *buf = container_of(vbuf, struct frame_buffer, vb); in buffer_init() 289 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 291 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() 292 struct soc_camera_device *icd = soc_camera_from_vb2q(vb->vb2_queue); in buffer_prepare() 293 struct frame_buffer *buf = container_of(vbuf, struct frame_buffer, vb); in buffer_prepare() 301 if (vb2_plane_size(vb, 0) < size) { in buffer_prepare() [all …]
|
D | sh_mobile_ceu_camera.c | 96 struct vb2_v4l2_buffer vb; /* v4l buffer must be first */ member 157 return container_of(vbuf, struct sh_mobile_ceu_buffer, vb); in to_ceu_vb() 373 static int sh_mobile_ceu_videobuf_prepare(struct vb2_buffer *vb) in sh_mobile_ceu_videobuf_prepare() argument 375 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in sh_mobile_ceu_videobuf_prepare() 379 WARN(!list_empty(&buf->queue), "Buffer %p on queue!\n", vb); in sh_mobile_ceu_videobuf_prepare() 384 static void sh_mobile_ceu_videobuf_queue(struct vb2_buffer *vb) in sh_mobile_ceu_videobuf_queue() argument 386 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in sh_mobile_ceu_videobuf_queue() 387 struct soc_camera_device *icd = container_of(vb->vb2_queue, in sh_mobile_ceu_videobuf_queue() 396 if (vb2_plane_size(vb, 0) < size) { in sh_mobile_ceu_videobuf_queue() 398 vb->index, vb2_plane_size(vb, 0), size); in sh_mobile_ceu_videobuf_queue() [all …]
|
D | rcar_vin.c | 495 struct vb2_v4l2_buffer vb; member 501 vb)->list) 765 struct rcar_vin_buffer, list)->vb; in rcar_vin_fill_hw_slot() 774 static void rcar_vin_videobuf_queue(struct vb2_buffer *vb) in rcar_vin_videobuf_queue() argument 776 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in rcar_vin_videobuf_queue() 777 struct soc_camera_device *icd = soc_camera_from_vb2q(vb->vb2_queue); in rcar_vin_videobuf_queue() 784 if (vb2_plane_size(vb, 0) < size) { in rcar_vin_videobuf_queue() 786 vb->index, vb2_plane_size(vb, 0), size); in rcar_vin_videobuf_queue() 790 vb2_set_plane_payload(vb, 0, size); in rcar_vin_videobuf_queue() 793 vb, vb2_plane_vaddr(vb, 0), vb2_get_plane_payload(vb, 0)); in rcar_vin_videobuf_queue() [all …]
|
/linux-4.4.14/drivers/media/usb/uvc/ |
D | uvc_queue.c | 92 static int uvc_buffer_prepare(struct vb2_buffer *vb) in uvc_buffer_prepare() argument 94 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_prepare() 95 struct uvc_video_queue *queue = vb2_get_drv_priv(vb->vb2_queue); in uvc_buffer_prepare() 98 if (vb->type == V4L2_BUF_TYPE_VIDEO_OUTPUT && in uvc_buffer_prepare() 99 vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) { in uvc_buffer_prepare() 109 buf->mem = vb2_plane_vaddr(vb, 0); in uvc_buffer_prepare() 110 buf->length = vb2_plane_size(vb, 0); in uvc_buffer_prepare() 111 if (vb->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) in uvc_buffer_prepare() 114 buf->bytesused = vb2_get_plane_payload(vb, 0); in uvc_buffer_prepare() 119 static void uvc_buffer_queue(struct vb2_buffer *vb) in uvc_buffer_queue() argument [all …]
|
/linux-4.4.14/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 vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_prepare() 67 if (vb->type == V4L2_BUF_TYPE_VIDEO_OUTPUT && in uvc_buffer_prepare() 68 vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) { in uvc_buffer_prepare() 77 buf->mem = vb2_plane_vaddr(vb, 0); in uvc_buffer_prepare() 78 buf->length = vb2_plane_size(vb, 0); in uvc_buffer_prepare() 79 if (vb->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) in uvc_buffer_prepare() 82 buf->bytesused = vb2_get_plane_payload(vb, 0); in uvc_buffer_prepare() 87 static void uvc_buffer_queue(struct vb2_buffer *vb) in uvc_buffer_queue() argument [all …]
|
/linux-4.4.14/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.4.14/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.4.14/mm/ |
D | vmalloc.c | 821 struct vmap_block *vb; in new_vmap_block() local 829 vb = kmalloc_node(sizeof(struct vmap_block), in new_vmap_block() 831 if (unlikely(!vb)) in new_vmap_block() 838 kfree(vb); in new_vmap_block() 844 kfree(vb); in new_vmap_block() 850 spin_lock_init(&vb->lock); in new_vmap_block() 851 vb->va = va; in new_vmap_block() 854 vb->free = VMAP_BBMAP_BITS - (1UL << order); in new_vmap_block() 855 vb->dirty = 0; in new_vmap_block() 856 vb->dirty_min = VMAP_BBMAP_BITS; in new_vmap_block() [all …]
|
/linux-4.4.14/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 v4l2_get_timestamp(&vb_buf->vb.ts); 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.4.14/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.4.14/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.4.14/drivers/media/usb/pwc/ |
D | pwc-if.c | 244 fbuf->vb.field = V4L2_FIELD_NONE; in pwc_frame_complete() 245 fbuf->vb.sequence = pdev->vframe_count; in pwc_frame_complete() 246 vb2_buffer_done(&fbuf->vb.vb2_buf, VB2_BUF_STATE_DONE); in pwc_frame_complete() 291 vb2_buffer_done(&pdev->fill_buf->vb.vb2_buf, in pwc_isoc_handler() 321 &fbuf->vb.timestamp); in pwc_isoc_handler() 524 vb2_buffer_done(&buf->vb.vb2_buf, state); in pwc_cleanup_queued_bufs() 596 static int buffer_init(struct vb2_buffer *vb) in buffer_init() argument 598 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_init() 600 container_of(vbuf, struct pwc_frame_buf, vb); in buffer_init() 610 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument [all …]
|
D | pwc-uncompress.c | 43 image = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0); in pwc_decompress() 58 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, in pwc_decompress() 63 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, in pwc_decompress()
|
D | pwc.h | 215 struct vb2_v4l2_buffer vb; member
|
/linux-4.4.14/drivers/media/usb/zr364xx/ |
D | zr364xx.c | 205 struct videobuf_buffer vb; member 382 videobuf_vmalloc_free(&buf->vb); in free_buffer() 383 buf->vb.state = VIDEOBUF_NEEDS_INIT; in free_buffer() 386 static int buffer_prepare(struct videobuf_queue *vq, struct videobuf_buffer *vb, in buffer_prepare() argument 390 struct zr364xx_buffer *buf = container_of(vb, struct zr364xx_buffer, in buffer_prepare() 391 vb); in buffer_prepare() 399 buf->vb.size = cam->width * cam->height * (cam->fmt->depth >> 3); in buffer_prepare() 401 if (buf->vb.baddr != 0 && buf->vb.bsize < buf->vb.size) { in buffer_prepare() 407 buf->vb.width = cam->width; in buffer_prepare() 408 buf->vb.height = cam->height; in buffer_prepare() [all …]
|
/linux-4.4.14/drivers/staging/media/davinci_vpfe/ |
D | vpfe_video.c | 431 video->next_frm->vb.vb2_buf.state = VB2_BUF_STATE_ACTIVE; in vpfe_video_get_next_buffer() 432 return vb2_dma_contig_plane_dma_addr(&video->next_frm->vb.vb2_buf, 0); in vpfe_video_get_next_buffer() 451 video->next_frm->vb.vb2_buf.state = VB2_BUF_STATE_ACTIVE; in vpfe_video_schedule_next_buffer() 452 addr = vb2_dma_contig_plane_dma_addr(&video->next_frm->vb.vb2_buf, 0); in vpfe_video_schedule_next_buffer() 463 addr = vb2_dma_contig_plane_dma_addr(&video->cur_frm->vb.vb2_buf, 0); in vpfe_video_schedule_bottom_field() 473 v4l2_get_timestamp(&video->cur_frm->vb.timestamp); in vpfe_video_process_buffer_complete() 474 vb2_buffer_done(&video->cur_frm->vb.vb2_buf, VB2_BUF_STATE_DONE); in vpfe_video_process_buffer_complete() 1112 static int vpfe_buffer_prepare(struct vb2_buffer *vb) in vpfe_buffer_prepare() argument 1114 struct vpfe_fh *fh = vb2_get_drv_priv(vb->vb2_queue); in vpfe_buffer_prepare() 1121 if (vb->state != VB2_BUF_STATE_ACTIVE && in vpfe_buffer_prepare() [all …]
|
D | vpfe_video.h | 76 struct vb2_v4l2_buffer vb; member
|
/linux-4.4.14/drivers/media/platform/blackfin/ |
D | bfin_capture.c | 57 struct vb2_v4l2_buffer vb; member 152 static struct bcap_buffer *to_bcap_vb(struct vb2_v4l2_buffer *vb) in to_bcap_vb() argument 154 return container_of(vb, struct bcap_buffer, vb); in to_bcap_vb() 225 static int bcap_buffer_prepare(struct vb2_buffer *vb) in bcap_buffer_prepare() argument 227 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in bcap_buffer_prepare() 228 struct bcap_device *bcap_dev = vb2_get_drv_priv(vb->vb2_queue); in bcap_buffer_prepare() 231 if (vb2_plane_size(vb, 0) < size) { in bcap_buffer_prepare() 233 vb2_plane_size(vb, 0), size); in bcap_buffer_prepare() 236 vb2_set_plane_payload(vb, 0, size); in bcap_buffer_prepare() 243 static void bcap_buffer_queue(struct vb2_buffer *vb) in bcap_buffer_queue() argument [all …]
|
/linux-4.4.14/Documentation/video4linux/ |
D | v4l2-pci-skeleton.c | 85 struct vb2_buffer vb; member 91 return container_of(vb2, struct skel_buffer, vb); in to_skel_buffer() 144 v4l2_get_timestamp(&new_buf->vb.v4l2_buf.timestamp); in skeleton_irq() 145 new_buf->vb.v4l2_buf.sequence = skel->sequence++; in skeleton_irq() 146 new_buf->vb.v4l2_buf.field = skel->field; in skeleton_irq() 153 vb2_buffer_done(&new_buf->vb, VB2_BUF_STATE_DONE); in skeleton_irq() 199 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 201 struct skeleton *skel = vb2_get_drv_priv(vb->vb2_queue); in buffer_prepare() 204 if (vb2_plane_size(vb, 0) < size) { in buffer_prepare() 206 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.4.14/drivers/media/pci/cx25821/ |
D | cx25821-video.c | 133 v4l2_get_timestamp(&buf->vb.timestamp); in cx25821_video_irq() 134 buf->vb.sequence = dmaq->count++; in cx25821_video_irq() 136 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE); in cx25821_video_irq() 161 static int cx25821_buffer_prepare(struct vb2_buffer *vb) in cx25821_buffer_prepare() argument 163 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in cx25821_buffer_prepare() 164 struct cx25821_channel *chan = vb->vb2_queue->drv_priv; in cx25821_buffer_prepare() 167 container_of(vbuf, struct cx25821_buffer, vb); in cx25821_buffer_prepare() 168 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in cx25821_buffer_prepare() 178 if (vb2_plane_size(vb, 0) < chan->height * buf->bpl) in cx25821_buffer_prepare() 180 vb2_set_plane_payload(vb, 0, chan->height * buf->bpl); in cx25821_buffer_prepare() [all …]
|
D | cx25821.h | 131 struct vb2_v4l2_buffer vb; member
|
/linux-4.4.14/drivers/media/pci/solo6x10/ |
D | solo6x10-v4l2-enc.c | 459 struct vb2_buffer *vb, const vop_header *vh) in solo_fill_jpeg() argument 461 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in solo_fill_jpeg() 463 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in solo_fill_jpeg() 468 if (vb2_plane_size(vb, 0) < vop_jpeg_size(vh) + solo_enc->jpeg_len) in solo_fill_jpeg() 472 vb2_set_plane_payload(vb, 0, vop_jpeg_size(vh) + solo_enc->jpeg_len); in solo_fill_jpeg() 481 struct vb2_buffer *vb, const vop_header *vh) in solo_fill_mpeg() argument 483 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in solo_fill_mpeg() 485 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in solo_fill_mpeg() 489 if (vb2_plane_size(vb, 0) < vop_mpeg_size(vh)) in solo_fill_mpeg() 498 vb2_set_plane_payload(vb, 0, vop_mpeg_size(vh) + in solo_fill_mpeg() [all …]
|
D | solo6x10-v4l2.c | 193 struct vb2_buffer *vb) in solo_fillbuf() argument 195 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in solo_fillbuf() 201 addr = vb2_dma_contig_plane_dma_addr(vb, 0); in solo_fillbuf() 206 void *p = vb2_plane_vaddr(vb, 0); in solo_fillbuf() 225 vb2_set_plane_payload(vb, 0, in solo_fillbuf() 231 vb2_buffer_done(vb, error ? VB2_BUF_STATE_ERROR : VB2_BUF_STATE_DONE); in solo_fillbuf() 236 struct solo_vb2_buf *vb; in solo_thread_try() local 253 vb = list_first_entry(&solo_dev->vidq_active, struct solo_vb2_buf, in solo_thread_try() 257 list_del(&vb->list); in solo_thread_try() 261 solo_fillbuf(solo_dev, &vb->vb.vb2_buf); in solo_thread_try() [all …]
|
D | solo6x10.h | 138 struct vb2_v4l2_buffer vb; member
|
/linux-4.4.14/drivers/media/pci/tw68/ |
D | tw68-video.c | 425 static void tw68_buf_queue(struct vb2_buffer *vb) in tw68_buf_queue() argument 427 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in tw68_buf_queue() 428 struct vb2_queue *vq = vb->vb2_queue; in tw68_buf_queue() 430 struct tw68_buf *buf = container_of(vbuf, struct tw68_buf, vb); in tw68_buf_queue() 460 static int tw68_buf_prepare(struct vb2_buffer *vb) in tw68_buf_prepare() argument 462 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in tw68_buf_prepare() 463 struct vb2_queue *vq = vb->vb2_queue; in tw68_buf_prepare() 465 struct tw68_buf *buf = container_of(vbuf, struct tw68_buf, vb); in tw68_buf_prepare() 466 struct sg_table *dma = vb2_dma_sg_plane_desc(vb, 0); in tw68_buf_prepare() 470 if (vb2_plane_size(vb, 0) < size) in tw68_buf_prepare() [all …]
|
D | tw68.h | 122 struct vb2_v4l2_buffer vb; member
|
/linux-4.4.14/drivers/media/pci/sta2x11/ |
D | sta2x11_vip.c | 91 struct vb2_v4l2_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 vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_init() 293 vip_buf->dma = vb2_dma_contig_plane_dma_addr(vb, 0); in buffer_init() 298 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 300 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() 301 struct sta2x11_vip *vip = vb2_get_drv_priv(vb->vb2_queue); in buffer_prepare() 306 if (vb2_plane_size(vb, 0) < size) { in buffer_prepare() 308 vb2_plane_size(vb, 0), size); in buffer_prepare() [all …]
|
/linux-4.4.14/drivers/media/usb/usbvision/ |
D | usbvision-video.c | 703 void *priv, struct v4l2_buffer *vb) in vidioc_querybuf() argument 710 if (vb->index >= usbvision->num_frames) in vidioc_querybuf() 713 vb->flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; in vidioc_querybuf() 714 frame = &usbvision->frame[vb->index]; in vidioc_querybuf() 716 vb->flags |= V4L2_BUF_FLAG_QUEUED; in vidioc_querybuf() 718 vb->flags |= V4L2_BUF_FLAG_DONE; in vidioc_querybuf() 720 vb->flags |= V4L2_BUF_FLAG_MAPPED; in vidioc_querybuf() 721 vb->memory = V4L2_MEMORY_MMAP; in vidioc_querybuf() 723 vb->m.offset = vb->index * PAGE_ALIGN(usbvision->max_frame_size); in vidioc_querybuf() 725 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.4.14/drivers/input/touchscreen/ |
D | sur40.c | 167 struct vb2_v4l2_buffer vb; member 424 sgt = vb2_dma_sg_plane_desc(&new_buf->vb.vb2_buf, 0); in sur40_process_video() 447 v4l2_get_timestamp(&new_buf->vb.timestamp); in sur40_process_video() 448 new_buf->vb.sequence = sur40->sequence++; in sur40_process_video() 449 new_buf->vb.field = V4L2_FIELD_NONE; in sur40_process_video() 450 vb2_buffer_done(&new_buf->vb.vb2_buf, VB2_BUF_STATE_DONE); in sur40_process_video() 455 vb2_buffer_done(&new_buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in sur40_process_video() 671 static int sur40_buffer_prepare(struct vb2_buffer *vb) in sur40_buffer_prepare() argument 673 struct sur40_state *sur40 = vb2_get_drv_priv(vb->vb2_queue); in sur40_buffer_prepare() 676 if (vb2_plane_size(vb, 0) < size) { in sur40_buffer_prepare() [all …]
|
/linux-4.4.14/drivers/staging/media/omap4iss/ |
D | iss_video.c | 311 static void iss_video_buf_cleanup(struct vb2_buffer *vb) in iss_video_buf_cleanup() argument 313 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in iss_video_buf_cleanup() 314 struct iss_buffer *buffer = container_of(vbuf, 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 vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in iss_video_buf_prepare() 323 struct iss_video_fh *vfh = vb2_get_drv_priv(vb->vb2_queue); in iss_video_buf_prepare() 324 struct iss_buffer *buffer = container_of(vbuf, struct iss_buffer, vb); in iss_video_buf_prepare() 329 if (vb2_plane_size(vb, 0) < size) in iss_video_buf_prepare() 332 addr = vb2_dma_contig_plane_dma_addr(vb, 0); in iss_video_buf_prepare() 339 vb2_set_plane_payload(vb, 0, size); in iss_video_buf_prepare() [all …]
|
D | iss_video.h | 120 struct vb2_v4l2_buffer vb; member 125 #define to_iss_buffer(buf) container_of(buf, struct iss_buffer, vb)
|
/linux-4.4.14/drivers/media/pci/dt3155/ |
D | dt3155.c | 153 static int dt3155_buf_prepare(struct vb2_buffer *vb) in dt3155_buf_prepare() argument 155 struct dt3155_priv *pd = vb2_get_drv_priv(vb->vb2_queue); in dt3155_buf_prepare() 157 vb2_set_plane_payload(vb, 0, pd->width * pd->height); in dt3155_buf_prepare() 164 struct vb2_buffer *vb = &pd->curr_buf->vb2_buf; in dt3155_start_streaming() local 168 dma_addr = vb2_dma_contig_plane_dma_addr(vb, 0); in dt3155_start_streaming() 192 struct vb2_buffer *vb; in dt3155_stop_streaming() local 217 vb = list_first_entry(&pd->dmaq, typeof(*vb), done_entry); in dt3155_stop_streaming() 218 list_del(&vb->done_entry); in dt3155_stop_streaming() 219 vb2_buffer_done(vb, VB2_BUF_STATE_ERROR); in dt3155_stop_streaming() 224 static void dt3155_buf_queue(struct vb2_buffer *vb) in dt3155_buf_queue() argument [all …]
|
/linux-4.4.14/drivers/media/platform/davinci/ |
D | vpif_display.c | 57 struct vpif_disp_buffer *to_vpif_buffer(struct vb2_v4l2_buffer *vb) in to_vpif_buffer() argument 59 return container_of(vb, struct vpif_disp_buffer, vb); in to_vpif_buffer() 70 static int vpif_buffer_prepare(struct vb2_buffer *vb) in vpif_buffer_prepare() argument 72 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpif_buffer_prepare() 73 struct channel_obj *ch = vb2_get_drv_priv(vb->vb2_queue); in vpif_buffer_prepare() 78 vb2_set_plane_payload(vb, 0, common->fmt.fmt.pix.sizeimage); in vpif_buffer_prepare() 79 if (vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) in vpif_buffer_prepare() 84 if (vb->vb2_queue->type != V4L2_BUF_TYPE_SLICED_VBI_OUTPUT) { in vpif_buffer_prepare() 85 unsigned long addr = vb2_dma_contig_plane_dma_addr(vb, 0); in vpif_buffer_prepare() 142 static void vpif_buffer_queue(struct vb2_buffer *vb) in vpif_buffer_queue() argument [all …]
|
D | vpbe_display.c | 77 v4l2_get_timestamp(&layer->cur_frm->vb.timestamp); in vpbe_isr_even_field() 78 vb2_buffer_done(&layer->cur_frm->vb.vb2_buf, VB2_BUF_STATE_DONE); in vpbe_isr_even_field() 107 layer->next_frm->vb.vb2_buf.state = VB2_BUF_STATE_ACTIVE; in vpbe_isr_odd_field() 108 addr = vb2_dma_contig_plane_dma_addr(&layer->next_frm->vb.vb2_buf, 0); in vpbe_isr_odd_field() 203 static int vpbe_buffer_prepare(struct vb2_buffer *vb) in vpbe_buffer_prepare() argument 205 struct vb2_queue *q = vb->vb2_queue; in vpbe_buffer_prepare() 213 vb2_set_plane_payload(vb, 0, layer->pix_fmt.sizeimage); in vpbe_buffer_prepare() 214 if (vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) in vpbe_buffer_prepare() 217 addr = vb2_dma_contig_plane_dma_addr(vb, 0); in vpbe_buffer_prepare() 261 static void vpbe_buffer_queue(struct vb2_buffer *vb) in vpbe_buffer_queue() argument [all …]
|
D | vpif_capture.c | 61 struct vpif_cap_buffer *to_vpif_buffer(struct vb2_v4l2_buffer *vb) in to_vpif_buffer() argument 63 return container_of(vb, struct vpif_cap_buffer, vb); in to_vpif_buffer() 74 static int vpif_buffer_prepare(struct vb2_buffer *vb) in vpif_buffer_prepare() argument 76 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpif_buffer_prepare() 77 struct vb2_queue *q = vb->vb2_queue; in vpif_buffer_prepare() 86 vb2_set_plane_payload(vb, 0, common->fmt.fmt.pix.sizeimage); in vpif_buffer_prepare() 87 if (vb2_get_plane_payload(vb, 0) > vb2_plane_size(vb, 0)) in vpif_buffer_prepare() 92 addr = vb2_dma_contig_plane_dma_addr(vb, 0); in vpif_buffer_prepare() 149 static void vpif_buffer_queue(struct vb2_buffer *vb) in vpif_buffer_queue() argument 151 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpif_buffer_queue() [all …]
|
D | vpfe_capture.c | 1266 struct videobuf_buffer *vb, in vpfe_videobuf_prepare() argument 1277 if (VIDEOBUF_NEEDS_INIT == vb->state) { in vpfe_videobuf_prepare() 1278 vb->width = vpfe_dev->fmt.fmt.pix.width; in vpfe_videobuf_prepare() 1279 vb->height = vpfe_dev->fmt.fmt.pix.height; in vpfe_videobuf_prepare() 1280 vb->size = vpfe_dev->fmt.fmt.pix.sizeimage; in vpfe_videobuf_prepare() 1281 vb->field = field; in vpfe_videobuf_prepare() 1283 ret = videobuf_iolock(vq, vb, NULL); in vpfe_videobuf_prepare() 1287 addr = videobuf_to_dma_contig(vb); in vpfe_videobuf_prepare() 1292 vb->state = VIDEOBUF_PREPARED; in vpfe_videobuf_prepare() 1298 struct videobuf_buffer *vb) in vpfe_videobuf_queue() argument [all …]
|
D | vpif_capture.h | 55 struct vb2_v4l2_buffer vb; member
|
D | vpif_display.h | 65 struct vb2_v4l2_buffer vb; member
|
/linux-4.4.14/drivers/media/platform/exynos4-is/ |
D | fimc-isp-video.c | 161 static int isp_video_capture_buffer_prepare(struct vb2_buffer *vb) in isp_video_capture_buffer_prepare() argument 163 struct fimc_isp *isp = vb2_get_drv_priv(vb->vb2_queue); in isp_video_capture_buffer_prepare() 173 if (vb2_plane_size(vb, i) < size) { in isp_video_capture_buffer_prepare() 176 vb2_plane_size(vb, i), size); in isp_video_capture_buffer_prepare() 179 vb2_set_plane_payload(vb, i, size); in isp_video_capture_buffer_prepare() 184 dma_addr_t dma_addr = vb2_dma_contig_plane_dma_addr(vb, 0); in isp_video_capture_buffer_prepare() 196 static void isp_video_capture_buffer_queue(struct vb2_buffer *vb) in isp_video_capture_buffer_queue() argument 198 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in isp_video_capture_buffer_queue() 199 struct fimc_isp *isp = vb2_get_drv_priv(vb->vb2_queue); in isp_video_capture_buffer_queue() 219 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_v4l2_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, VB2_BUF_STATE_ERROR); in fimc_capture_state_cleanup() 114 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in fimc_capture_state_cleanup() 196 v4l2_get_timestamp(&v_buf->vb.timestamp); in fimc_capture_irq_handler() 197 v_buf->vb.sequence = cap->frame_count++; in fimc_capture_irq_handler() 199 vb2_buffer_done(&v_buf->vb.vb2_buf, VB2_BUF_STATE_DONE); in fimc_capture_irq_handler() 230 vaddr = vb2_plane_vaddr(&v_buf->vb.vb2_buf, plane); in fimc_capture_irq_handler() 312 static void buffer_queue(struct vb2_buffer *vb); 335 buffer_queue(&buf->vb.vb2_buf); in fimc_capture_resume() 382 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 384 struct vb2_queue *vq = vb->vb2_queue; in buffer_prepare() [all …]
|
D | fimc-lite.c | 203 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in fimc_lite_reinit() 211 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in fimc_lite_reinit() 295 v4l2_get_timestamp(&vbuf->vb.timestamp); in flite_irq_handler() 296 vbuf->vb.sequence = fimc->frame_count++; in flite_irq_handler() 298 vb2_buffer_done(&vbuf->vb.vb2_buf, VB2_BUF_STATE_DONE); in flite_irq_handler() 395 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 397 struct vb2_queue *vq = vb->vb2_queue; in buffer_prepare() 407 if (vb2_plane_size(vb, i) < size) { in buffer_prepare() 410 vb2_plane_size(vb, i), size); in buffer_prepare() 413 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 vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in fimc_buf_queue() 224 struct fimc_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in fimc_buf_queue()
|
D | fimc-lite.h | 103 struct vb2_v4l2_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_v4l2_buffer vb; member 637 int fimc_prepare_addr(struct fimc_ctx *ctx, struct vb2_buffer *vb,
|
/linux-4.4.14/drivers/media/usb/usbtv/ |
D | usbtv-video.c | 309 frame = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in usbtv_image_chunk() 317 int size = vb2_plane_size(&buf->vb.vb2_buf, 0); in usbtv_image_chunk() 323 buf->vb.field = V4L2_FIELD_INTERLACED; in usbtv_image_chunk() 324 buf->vb.sequence = usbtv->sequence++; in usbtv_image_chunk() 325 v4l2_get_timestamp(&buf->vb.timestamp); in usbtv_image_chunk() 326 vb2_set_plane_payload(&buf->vb.vb2_buf, 0, size); in usbtv_image_chunk() 327 vb2_buffer_done(&buf->vb.vb2_buf, state); in usbtv_image_chunk() 425 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in usbtv_stop() 619 static void usbtv_buf_queue(struct vb2_buffer *vb) in usbtv_buf_queue() argument 621 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in usbtv_buf_queue() [all …]
|
D | usbtv.h | 65 struct vb2_v4l2_buffer vb; member
|
/linux-4.4.14/drivers/media/usb/stk1160/ |
D | stk1160-v4l.c | 694 static void buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument 697 struct stk1160 *dev = vb2_get_drv_priv(vb->vb2_queue); in buffer_queue() 698 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() 700 container_of(vbuf, struct stk1160_buffer, vb); in buffer_queue() 708 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in buffer_queue() 711 buf->mem = vb2_plane_vaddr(vb, 0); in buffer_queue() 712 buf->length = vb2_plane_size(vb, 0); in buffer_queue() 721 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in buffer_queue() 773 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in stk1160_clear_queue() 775 buf, buf->vb.vb2_buf.index); in stk1160_clear_queue() [all …]
|
D | stk1160-video.c | 99 buf->vb.sequence = dev->sequence++; in stk1160_buffer_done() 100 buf->vb.field = V4L2_FIELD_INTERLACED; in stk1160_buffer_done() 101 buf->vb.vb2_buf.planes[0].bytesused = buf->bytesused; in stk1160_buffer_done() 102 v4l2_get_timestamp(&buf->vb.timestamp); in stk1160_buffer_done() 104 vb2_set_plane_payload(&buf->vb.vb2_buf, 0, buf->bytesused); in stk1160_buffer_done() 105 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE); in stk1160_buffer_done()
|
D | stk1160.h | 80 struct vb2_v4l2_buffer vb; member
|
/linux-4.4.14/drivers/media/platform/omap/ |
D | omap_vout.c | 201 static int omap_vout_get_userptr(struct videobuf_buffer *vb, u32 virtp, in omap_vout_get_userptr() argument 223 vb->priv = vec; in omap_vout_get_userptr() 758 struct videobuf_buffer *vb, in omap_vout_buffer_prepare() argument 764 if (VIDEOBUF_NEEDS_INIT == vb->state) { in omap_vout_buffer_prepare() 765 vb->width = vout->pix.width; in omap_vout_buffer_prepare() 766 vb->height = vout->pix.height; in omap_vout_buffer_prepare() 767 vb->size = vb->width * vb->height * vout->bpp; in omap_vout_buffer_prepare() 768 vb->field = field; in omap_vout_buffer_prepare() 770 vb->state = VIDEOBUF_PREPARED; in omap_vout_buffer_prepare() 774 if (V4L2_MEMORY_USERPTR == vb->memory) { in omap_vout_buffer_prepare() [all …]
|
D | omap_vout_vrfb.h | 23 struct videobuf_buffer *vb); 35 struct videobuf_buffer *vb) in omap_vout_prepare_vrfb() argument
|
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.4.14/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.4.14/drivers/media/pci/cobalt/ |
D | cobalt-v4l2.c | 69 static int cobalt_buf_init(struct vb2_buffer *vb) in cobalt_buf_init() argument 71 struct cobalt_stream *s = vb->vb2_queue->drv_priv; in cobalt_buf_init() 78 struct sg_dma_desc_info *desc = &s->dma_desc_info[vb->index]; in cobalt_buf_init() 79 struct sg_table *sg_desc = vb2_dma_sg_plane_desc(vb, 0); in cobalt_buf_init() 84 if (vb2_plane_size(vb, 0) < size) { in cobalt_buf_init() 86 vb2_plane_size(vb, 0), size); in cobalt_buf_init() 105 static void cobalt_buf_cleanup(struct vb2_buffer *vb) in cobalt_buf_cleanup() argument 107 struct cobalt_stream *s = vb->vb2_queue->drv_priv; in cobalt_buf_cleanup() 108 struct sg_dma_desc_info *desc = &s->dma_desc_info[vb->index]; in cobalt_buf_cleanup() 113 static int cobalt_buf_prepare(struct vb2_buffer *vb) in cobalt_buf_prepare() argument [all …]
|
D | cobalt-alsa-pcm.c | 197 static int alsa_fnc(struct vb2_buffer *vb, void *priv) in alsa_fnc() argument 200 unsigned char *p = vb2_plane_vaddr(vb, 0); in alsa_fnc() 213 vb2_plane_vaddr(vb, 0), in alsa_fnc() 215 vb2_get_plane_payload(vb, 0) / (8 * 4)); in alsa_fnc() 416 static int alsa_pb_fnc(struct vb2_buffer *vb, void *priv) in alsa_pb_fnc() argument 422 vb2_plane_vaddr(vb, 0), in alsa_pb_fnc() 424 vb2_get_plane_payload(vb, 0) / (8 * 4)); in alsa_pb_fnc()
|
D | cobalt-irq.c | 137 v4l2_get_timestamp(&cb->vb.timestamp); in cobalt_dma_stream_queue_handler() 140 cb->vb.sequence = s->sequence++; in cobalt_dma_stream_queue_handler() 141 vb2_buffer_done(&cb->vb.vb2_buf, in cobalt_dma_stream_queue_handler()
|
D | cobalt-driver.h | 210 struct vb2_v4l2_buffer vb; member 217 return container_of(vb2, struct cobalt_buffer, vb); in to_cobalt_buffer()
|
/linux-4.4.14/drivers/media/platform/s5p-mfc/ |
D | s5p_mfc_enc.c | 1798 static int check_vb_with_fmt(struct s5p_mfc_fmt *fmt, struct vb2_buffer *vb) in check_vb_with_fmt() argument 1804 if (fmt->num_planes != vb->num_planes) { in check_vb_with_fmt() 1809 dma_addr_t dma = vb2_dma_contig_plane_dma_addr(vb, i); in check_vb_with_fmt() 1815 vb->index, i, &dma); in check_vb_with_fmt() 1876 static int s5p_mfc_buf_init(struct vb2_buffer *vb) in s5p_mfc_buf_init() argument 1878 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in s5p_mfc_buf_init() 1879 struct vb2_queue *vq = vb->vb2_queue; in s5p_mfc_buf_init() 1885 ret = check_vb_with_fmt(ctx->dst_fmt, vb); in s5p_mfc_buf_init() 1888 i = vb->index; in s5p_mfc_buf_init() 1891 vb2_dma_contig_plane_dma_addr(vb, 0); in s5p_mfc_buf_init() [all …]
|
D | s5p_mfc_dec.c | 951 static int s5p_mfc_buf_init(struct vb2_buffer *vb) in s5p_mfc_buf_init() argument 953 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in s5p_mfc_buf_init() 954 struct vb2_queue *vq = vb->vb2_queue; in s5p_mfc_buf_init() 963 vb2_dma_contig_plane_dma_addr(vb, i)))) { in s5p_mfc_buf_init() 968 if (vb2_plane_size(vb, 0) < ctx->luma_size || in s5p_mfc_buf_init() 969 vb2_plane_size(vb, 1) < ctx->chroma_size) { in s5p_mfc_buf_init() 973 i = vb->index; in s5p_mfc_buf_init() 976 vb2_dma_contig_plane_dma_addr(vb, 0); in s5p_mfc_buf_init() 978 vb2_dma_contig_plane_dma_addr(vb, 1); in s5p_mfc_buf_init() 982 vb2_dma_contig_plane_dma_addr(vb, 0)))) { in s5p_mfc_buf_init() [all …]
|
/linux-4.4.14/fs/ocfs2/ |
D | xattr.c | 189 struct ocfs2_xattr_value_buf *vb); 709 struct ocfs2_xattr_value_buf *vb, in ocfs2_xattr_extend_allocation() argument 715 u32 prev_clusters, logical_start = le32_to_cpu(vb->vb_xv->xr_clusters); in ocfs2_xattr_extend_allocation() 718 ocfs2_init_xattr_value_extent_tree(&et, INODE_CACHE(inode), vb); in ocfs2_xattr_extend_allocation() 723 status = vb->vb_access(handle, INODE_CACHE(inode), vb->vb_bh, in ocfs2_xattr_extend_allocation() 730 prev_clusters = le32_to_cpu(vb->vb_xv->xr_clusters); in ocfs2_xattr_extend_allocation() 745 ocfs2_journal_dirty(handle, vb->vb_bh); in ocfs2_xattr_extend_allocation() 747 clusters_to_add -= le32_to_cpu(vb->vb_xv->xr_clusters) - in ocfs2_xattr_extend_allocation() 758 &vb->vb_xv->xr_list); in ocfs2_xattr_extend_allocation() 772 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 | 3624 struct ocfs2_xattr_value_buf *vb, in ocfs2_refcount_cow_xattr() argument 3631 struct ocfs2_xattr_value_root *xv = vb->vb_xv; in ocfs2_refcount_cow_xattr() 3670 INODE_CACHE(inode), vb); in ocfs2_refcount_cow_xattr()
|
/linux-4.4.14/drivers/media/platform/coda/ |
D | coda-jpeg.c | 181 bool coda_jpeg_check_buffer(struct coda_ctx *ctx, struct vb2_v4l2_buffer *vb) in coda_jpeg_check_buffer() argument 183 void *vaddr = vb2_plane_vaddr(&vb->vb2_buf, 0); in coda_jpeg_check_buffer() 186 vb2_get_plane_payload(&vb->vb2_buf, 0) - 2)); in coda_jpeg_check_buffer()
|
D | coda-common.c | 1157 static int coda_buf_prepare(struct vb2_buffer *vb) in coda_buf_prepare() argument 1159 struct coda_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in coda_buf_prepare() 1162 q_data = get_q_data(ctx, vb->vb2_queue->type); in coda_buf_prepare() 1164 if (vb2_plane_size(vb, 0) < q_data->sizeimage) { in coda_buf_prepare() 1167 __func__, vb2_plane_size(vb, 0), in coda_buf_prepare() 1175 static void coda_buf_queue(struct vb2_buffer *vb) in coda_buf_queue() argument 1177 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in coda_buf_queue() 1178 struct coda_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in coda_buf_queue() 1179 struct vb2_queue *vq = vb->vb2_queue; in coda_buf_queue() 1182 q_data = get_q_data(ctx, vb->vb2_queue->type); in coda_buf_queue() [all …]
|
D | coda.h | 292 bool coda_jpeg_check_buffer(struct coda_ctx *ctx, struct vb2_v4l2_buffer *vb);
|
D | coda-bit.c | 490 struct vb2_buffer *vb = &buf->vb2_buf; in coda_encode_header() local 497 memset(vb2_plane_vaddr(vb, 0), 0, 64); in coda_encode_header() 499 coda_write(dev, vb2_dma_contig_plane_dma_addr(vb, 0), in coda_encode_header() 501 bufsize = vb2_plane_size(vb, 0); in coda_encode_header() 514 if (((char *)vb2_plane_vaddr(vb, 0))[i] != 0) in coda_encode_header() 521 memcpy(header, vb2_plane_vaddr(vb, 0), *size); in coda_encode_header()
|
/linux-4.4.14/drivers/media/platform/s5p-jpeg/ |
D | jpeg-core.c | 791 struct vb2_buffer *vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in exynos4_jpeg_parse_decode_h_tbl() local 798 (unsigned long)vb2_plane_vaddr(vb, 0) + ctx->out_q.sos + 2; in exynos4_jpeg_parse_decode_h_tbl() 828 struct vb2_buffer *vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in exynos4_jpeg_parse_huff_tbl() local 835 jpeg_buffer.data = (unsigned long)vb2_plane_vaddr(vb, 0) + in exynos4_jpeg_parse_huff_tbl() 887 struct vb2_buffer *vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in exynos4_jpeg_parse_decode_q_tbl() local 893 (unsigned long)vb2_plane_vaddr(vb, 0) + ctx->out_q.sof; in exynos4_jpeg_parse_decode_q_tbl() 918 struct vb2_buffer *vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in exynos4_jpeg_parse_q_tbl() local 925 jpeg_buffer.data = (unsigned long)vb2_plane_vaddr(vb, 0) + in exynos4_jpeg_parse_q_tbl() 2100 struct vb2_buffer *vb; in exynos4_jpeg_set_img_addr() local 2110 vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in exynos4_jpeg_set_img_addr() [all …]
|
/linux-4.4.14/drivers/media/pci/netup_unidvb/ |
D | netup_unidvb_core.c | 114 struct vb2_v4l2_buffer vb; member 299 static int netup_unidvb_buf_prepare(struct vb2_buffer *vb) in netup_unidvb_buf_prepare() argument 301 struct netup_dma *dma = vb2_get_drv_priv(vb->vb2_queue); in netup_unidvb_buf_prepare() 302 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in netup_unidvb_buf_prepare() 304 struct netup_unidvb_buffer, vb); in netup_unidvb_buf_prepare() 311 static void netup_unidvb_buf_queue(struct vb2_buffer *vb) in netup_unidvb_buf_queue() argument 314 struct netup_dma *dma = vb2_get_drv_priv(vb->vb2_queue); in netup_unidvb_buf_queue() 315 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in netup_unidvb_buf_queue() 317 struct netup_unidvb_buffer, vb); in netup_unidvb_buf_queue() 513 u8 *p = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in netup_unidvb_ring_copy() [all …]
|
/linux-4.4.14/drivers/media/platform/xilinx/ |
D | xilinx-dma.c | 293 #define to_xvip_dma_buffer(vb) container_of(vb, struct xvip_dma_buffer, buf) argument 331 static int xvip_dma_buffer_prepare(struct vb2_buffer *vb) in xvip_dma_buffer_prepare() argument 333 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in xvip_dma_buffer_prepare() 334 struct xvip_dma *dma = vb2_get_drv_priv(vb->vb2_queue); in xvip_dma_buffer_prepare() 342 static void xvip_dma_buffer_queue(struct vb2_buffer *vb) in xvip_dma_buffer_queue() argument 344 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in xvip_dma_buffer_queue() 345 struct xvip_dma *dma = vb2_get_drv_priv(vb->vb2_queue); in xvip_dma_buffer_queue() 348 dma_addr_t addr = vb2_dma_contig_plane_dma_addr(vb, 0); in xvip_dma_buffer_queue()
|
/linux-4.4.14/drivers/media/usb/airspy/ |
D | airspy.c | 102 struct vb2_v4l2_buffer vb; member 315 ptr = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0); in airspy_urb_complete() 318 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, len); in airspy_urb_complete() 319 v4l2_get_timestamp(&fbuf->vb.timestamp); in airspy_urb_complete() 320 fbuf->vb.sequence = s->sequence++; in airspy_urb_complete() 321 vb2_buffer_done(&fbuf->vb.vb2_buf, VB2_BUF_STATE_DONE); in airspy_urb_complete() 464 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in airspy_cleanup_queued_bufs() 508 static void airspy_buf_queue(struct vb2_buffer *vb) in airspy_buf_queue() argument 510 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in airspy_buf_queue() 511 struct airspy *s = vb2_get_drv_priv(vb->vb2_queue); in airspy_buf_queue() [all …]
|
/linux-4.4.14/drivers/media/platform/marvell-ccic/ |
D | mcam-core.c | 215 static inline struct mcam_vb_buffer *vb_to_mvb(struct vb2_v4l2_buffer *vb) in vb_to_mvb() argument 217 return container_of(vb, struct mcam_vb_buffer, vb_buf); in vb_to_mvb() 552 struct vb2_v4l2_buffer *vb; in mcam_set_contig_buffer() local 572 vb = &buf->vb_buf; in mcam_set_contig_buffer() 574 dma_handle = vb2_dma_contig_plane_dma_addr(&vb->vb2_buf, 0); in mcam_set_contig_buffer() 1074 static void mcam_vb_buf_queue(struct vb2_buffer *vb) in mcam_vb_buf_queue() argument 1076 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in mcam_vb_buf_queue() 1078 struct mcam_camera *cam = vb2_get_drv_priv(vb->vb2_queue); in mcam_vb_buf_queue() 1202 static int mcam_vb_sg_buf_init(struct vb2_buffer *vb) in mcam_vb_sg_buf_init() argument 1204 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in mcam_vb_sg_buf_init() [all …]
|
/linux-4.4.14/arch/alpha/boot/ |
D | Makefile | 80 OSFLAGS_bootlx := -vb 81 OSFLAGS_bootph := -vb 82 OSFLAGS_bootpzh := -vb
|
/linux-4.4.14/drivers/media/usb/hackrf/ |
D | hackrf.c | 98 struct vb2_v4l2_buffer vb; member 523 len = min_t(unsigned long, vb2_plane_size(&buffer->vb.vb2_buf, 0), in hackrf_urb_complete_in() 525 hackrf_copy_stream(dev, vb2_plane_vaddr(&buffer->vb.vb2_buf, 0), in hackrf_urb_complete_in() 527 vb2_set_plane_payload(&buffer->vb.vb2_buf, 0, len); in hackrf_urb_complete_in() 528 buffer->vb.sequence = dev->sequence++; in hackrf_urb_complete_in() 529 v4l2_get_timestamp(&buffer->vb.timestamp); in hackrf_urb_complete_in() 530 vb2_buffer_done(&buffer->vb.vb2_buf, VB2_BUF_STATE_DONE); in hackrf_urb_complete_in() 569 vb2_get_plane_payload(&buffer->vb.vb2_buf, 0)); in hackrf_urb_complete_out() 571 vb2_plane_vaddr(&buffer->vb.vb2_buf, 0), len); in hackrf_urb_complete_out() 573 buffer->vb.sequence = dev->sequence++; in hackrf_urb_complete_out() [all …]
|
/linux-4.4.14/drivers/media/platform/s3c-camif/ |
D | camif-capture.c | 167 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in camif_reinitialize() 172 vb2_buffer_done(&buf->vb.vb2_buf, 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() 341 v4l2_get_timestamp(&vbuf->vb.timestamp); in s3c_camif_irq_handler() 342 vbuf->vb.sequence = vp->frame_sequence++; in s3c_camif_irq_handler() 343 vb2_buffer_done(&vbuf->vb.vb2_buf, VB2_BUF_STATE_DONE); in s3c_camif_irq_handler() 475 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 477 struct camif_vp *vp = vb2_get_drv_priv(vb->vb2_queue); in buffer_prepare() [all …]
|
D | camif-core.h | 325 struct vb2_v4l2_buffer vb; member
|
/linux-4.4.14/drivers/media/platform/sti/bdisp/ |
D | bdisp-v4l2.c | 253 static int bdisp_get_addr(struct bdisp_ctx *ctx, struct vb2_buffer *vb, in bdisp_get_addr() argument 256 if (!vb || !frame) in bdisp_get_addr() 259 paddr[0] = vb2_dma_contig_plane_dma_addr(vb, 0); in bdisp_get_addr() 469 static int bdisp_buf_prepare(struct vb2_buffer *vb) in bdisp_buf_prepare() argument 471 struct bdisp_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in bdisp_buf_prepare() 472 struct bdisp_frame *frame = ctx_get_frame(ctx, vb->vb2_queue->type); in bdisp_buf_prepare() 479 if (vb->vb2_queue->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) in bdisp_buf_prepare() 480 vb2_set_plane_payload(vb, 0, frame->sizeimage); in bdisp_buf_prepare() 485 static void bdisp_buf_queue(struct vb2_buffer *vb) in bdisp_buf_queue() argument 487 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in bdisp_buf_queue() [all …]
|
/linux-4.4.14/drivers/media/platform/omap3isp/ |
D | ispvideo.h | 125 struct vb2_v4l2_buffer vb; member 130 #define to_isp_buffer(buf) container_of(buf, struct isp_buffer, vb)
|
D | ispvideo.c | 367 vb2_set_plane_payload(&buffer->vb.vb2_buf, 0, in isp_video_buffer_prepare() 398 vb2_buffer_done(&buffer->vb.vb2_buf, VB2_BUF_STATE_ERROR); in isp_video_buffer_queue() 470 v4l2_get_timestamp(&buf->vb.timestamp); in omap3isp_video_buffer_next() 479 buf->vb.sequence = in omap3isp_video_buffer_next() 482 buf->vb.sequence = atomic_read(&pipe->frame_number); in omap3isp_video_buffer_next() 485 buf->vb.sequence /= 2; in omap3isp_video_buffer_next() 487 buf->vb.field = pipe->field; in omap3isp_video_buffer_next() 497 vb2_buffer_done(&buf->vb.vb2_buf, state); in omap3isp_video_buffer_next() 552 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in omap3isp_video_cancel_stream()
|
/linux-4.4.14/drivers/media/platform/am437x/ |
D | am437x-vpfe.c | 311 struct vpfe_cap_buffer *to_vpfe_buffer(struct vb2_v4l2_buffer *vb) in to_vpfe_buffer() argument 313 return container_of(vb, struct vpfe_cap_buffer, vb); in to_vpfe_buffer() 1261 vb2_dma_contig_plane_dma_addr(&vpfe->next_frm->vb.vb2_buf, 0)); in vpfe_schedule_next_buffer() 1268 addr = vb2_dma_contig_plane_dma_addr(&vpfe->next_frm->vb.vb2_buf, 0) + in vpfe_schedule_bottom_field() 1284 v4l2_get_timestamp(&vpfe->cur_frm->vb.timestamp); in vpfe_process_buffer_complete() 1285 vpfe->cur_frm->vb.field = vpfe->fmt.fmt.pix.field; in vpfe_process_buffer_complete() 1286 vpfe->cur_frm->vb.sequence = vpfe->sequence++; in vpfe_process_buffer_complete() 1287 vb2_buffer_done(&vpfe->cur_frm->vb.vb2_buf, VB2_BUF_STATE_DONE); in vpfe_process_buffer_complete() 1945 static int vpfe_buffer_prepare(struct vb2_buffer *vb) in vpfe_buffer_prepare() argument 1947 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpfe_buffer_prepare() [all …]
|
D | am437x-vpfe.h | 108 struct vb2_v4l2_buffer vb; member
|
/linux-4.4.14/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 vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in gsc_m2m_buf_queue() 259 struct gsc_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in gsc_m2m_buf_queue()
|
D | gsc-core.h | 139 struct vb2_v4l2_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.4.14/drivers/media/usb/msi2500/ |
D | msi2500.c | 117 struct vb2_v4l2_buffer vb; member 436 ptr = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0); in msi2500_isoc_handler() 438 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, flen); in msi2500_isoc_handler() 439 vb2_buffer_done(&fbuf->vb.vb2_buf, VB2_BUF_STATE_DONE); in msi2500_isoc_handler() 574 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in msi2500_cleanup_queued_bufs() 636 static void msi2500_buf_queue(struct vb2_buffer *vb) in msi2500_buf_queue() argument 638 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in msi2500_buf_queue() 639 struct msi2500_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in msi2500_buf_queue() 642 vb); in msi2500_buf_queue() 647 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in msi2500_buf_queue()
|
/linux-4.4.14/drivers/media/dvb-frontends/ |
D | rtl2832_sdr.c | 112 struct vb2_v4l2_buffer vb; member 309 ptr = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0); in rtl2832_sdr_urb_complete() 312 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, len); in rtl2832_sdr_urb_complete() 313 v4l2_get_timestamp(&fbuf->vb.timestamp); in rtl2832_sdr_urb_complete() 314 fbuf->vb.sequence = dev->sequence++; in rtl2832_sdr_urb_complete() 315 vb2_buffer_done(&fbuf->vb.vb2_buf, VB2_BUF_STATE_DONE); in rtl2832_sdr_urb_complete() 469 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in rtl2832_sdr_cleanup_queued_bufs() 510 static int rtl2832_sdr_buf_prepare(struct vb2_buffer *vb) in rtl2832_sdr_buf_prepare() argument 512 struct rtl2832_sdr_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in rtl2832_sdr_buf_prepare() 521 static void rtl2832_sdr_buf_queue(struct vb2_buffer *vb) in rtl2832_sdr_buf_queue() argument [all …]
|
/linux-4.4.14/drivers/media/platform/ti-vpe/ |
D | vpe.c | 991 struct vb2_buffer *vb = &ctx->dst_vb->vb2_buf; 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]->vb2_buf; in add_in_dtd() local 1029 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in add_in_dtd() 1047 dma_addr = vb2_dma_contig_plane_dma_addr(vb, plane); in add_in_dtd() 1824 static int vpe_buf_prepare(struct vb2_buffer *vb) in vpe_buf_prepare() argument 1826 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vpe_buf_prepare() 1827 struct vpe_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vpe_buf_prepare() 1831 vpe_dbg(ctx->dev, "type: %d\n", vb->vb2_queue->type); in vpe_buf_prepare() 1833 q_data = get_q_data(ctx, vb->vb2_queue->type); in vpe_buf_prepare() [all …]
|
/linux-4.4.14/drivers/media/platform/vsp1/ |
D | vsp1_video.c | 822 static int vsp1_video_buffer_prepare(struct vb2_buffer *vb) in vsp1_video_buffer_prepare() argument 824 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vsp1_video_buffer_prepare() 825 struct vsp1_video *video = vb2_get_drv_priv(vb->vb2_queue); in vsp1_video_buffer_prepare() 830 if (vb->num_planes < format->num_planes) in vsp1_video_buffer_prepare() 833 for (i = 0; i < vb->num_planes; ++i) { in vsp1_video_buffer_prepare() 834 buf->addr[i] = vb2_dma_contig_plane_dma_addr(vb, i); in vsp1_video_buffer_prepare() 835 buf->length[i] = vb2_plane_size(vb, i); in vsp1_video_buffer_prepare() 844 static void vsp1_video_buffer_queue(struct vb2_buffer *vb) in vsp1_video_buffer_queue() argument 846 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vsp1_video_buffer_queue() 847 struct vsp1_video *video = vb2_get_drv_priv(vb->vb2_queue); in vsp1_video_buffer_queue()
|
/linux-4.4.14/drivers/media/usb/s2255/ |
D | s2255drv.c | 297 struct vb2_v4l2_buffer vb; member 577 v4l2_get_timestamp(&buf->vb.timestamp); in s2255_got_frame() 578 buf->vb.field = vc->field; in s2255_got_frame() 579 buf->vb.sequence = vc->frame_count; in s2255_got_frame() 584 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE); in s2255_got_frame() 616 char *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in s2255_fillbuff() 639 vb2_set_plane_payload(&buf->vb.vb2_buf, 0, jpgsize); in s2255_fillbuff() 675 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 677 struct s2255_vc *vc = vb2_get_drv_priv(vb->vb2_queue); in buffer_prepare() 678 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() [all …]
|
/linux-4.4.14/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 vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in g2d_buf_queue() 138 struct g2d_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in g2d_buf_queue()
|
/linux-4.4.14/drivers/media/platform/s5p-tv/ |
D | mixer_vp_layer.c | 100 luma_addr[0] = vb2_dma_contig_plane_dma_addr(&buf->vb.vb2_buf, 0); in mxr_vp_buffer_set() 103 vb2_dma_contig_plane_dma_addr(&buf->vb.vb2_buf, 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 vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buf_queue() 918 struct mxr_buffer *buffer = container_of(vbuf, struct mxr_buffer, vb); in buf_queue() 919 struct mxr_layer *layer = vb2_get_drv_priv(vb->vb2_queue); in buf_queue() 967 vb2_buffer_done(&layer->update_buf->vb.vb2_buf, in mxr_watchdog() 972 vb2_buffer_done(&layer->shadow_buf->vb.vb2_buf, in mxr_watchdog() 997 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in stop_streaming()
|
D | mixer.h | 116 struct vb2_v4l2_buffer vb; member
|
D | mixer_grp_layer.c | 89 addr = vb2_dma_contig_plane_dma_addr(&buf->vb.vb2_buf, 0); in mxr_graph_buffer_set()
|
D | mixer_reg.c | 282 vb2_buffer_done(&done->vb.vb2_buf, VB2_BUF_STATE_DONE); in mxr_irq_layer_handle()
|
/linux-4.4.14/include/media/davinci/ |
D | vpbe_display.h | 68 struct vb2_v4l2_buffer vb; member
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/tools/perf/util/ |
D | parse-options.c | 652 static int option__cmp(const void *va, const void *vb) in option__cmp() argument 654 const struct option *a = va, *b = vb; in option__cmp()
|
/linux-4.4.14/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.4.14/drivers/media/pci/saa7134/ |
D | saa7134.h | 785 void saa7134_vb2_buffer_queue(struct vb2_buffer *vb);
|
D | saa7134-video.c | 933 void saa7134_vb2_buffer_queue(struct vb2_buffer *vb) in saa7134_vb2_buffer_queue() argument 935 struct saa7134_dmaqueue *dmaq = vb->vb2_queue->drv_priv; in saa7134_vb2_buffer_queue() 937 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in saa7134_vb2_buffer_queue()
|
/linux-4.4.14/drivers/media/pci/ngene/ |
D | ngene.h | 878 struct videobuf_buffer vb; member
|
/linux-4.4.14/kernel/trace/ |
D | trace_events_filter.c | 2323 #define DATA_REC(m, va, vb, vc, vd, ve, vf, vg, vh, nvisit) \ argument 2326 .rec = { .a = va, .b = vb, .c = vc, .d = vd, \
|
/linux-4.4.14/kernel/ |
D | module.c | 557 static int cmp_name(const void *va, const void *vb) in cmp_name() argument 561 a = va; b = vb; in cmp_name()
|