| /linux/drivers/virtio/ |
| H A D | virtio_balloon.c | 146 static void start_wakeup_event(struct virtio_balloon *vb, u32 mask) in start_wakeup_event() argument 150 spin_lock_irqsave(&vb->wakeup_lock, flags); in start_wakeup_event() 151 vb->wakeup_signal_mask |= mask; in start_wakeup_event() 152 if (!vb->processing_wakeup_event) { in start_wakeup_event() 153 vb->processing_wakeup_event = true; in start_wakeup_event() 154 pm_stay_awake(&vb->vdev->dev); in start_wakeup_event() 156 spin_unlock_irqrestore(&vb->wakeup_lock, flags); in start_wakeup_event() 159 static void process_wakeup_event(struct virtio_balloon *vb, u32 mask) in process_wakeup_event() argument 161 spin_lock_irq(&vb->wakeup_lock); in process_wakeup_event() 162 vb->wakeup_signal_mask &= ~mask; in process_wakeup_event() [all …]
|
| /linux/drivers/media/common/videobuf2/ |
| H A D | videobuf2-core.c | 64 #define log_memop(vb, op) \ argument 65 dprintk((vb)->vb2_queue, 2, "call_memop(%d, %s)%s\n", \ 66 (vb)->index, #op, \ 67 (vb)->vb2_queue->mem_ops->op ? "" : " (nop)") 69 #define call_memop(vb, op, args...) \ argument 71 struct vb2_queue *_q = (vb)->vb2_queue; \ 74 log_memop(vb, op); \ 77 (vb)->cnt_mem_ ## op++; \ 81 #define call_ptr_memop(op, vb, args...) \ argument 83 struct vb2_queue *_q = (vb)->vb2_queue; \ [all …]
|
| /linux/drivers/media/platform/chips-media/wave5/ |
| H A D | wave5-vdi.c | 88 int wave5_vdi_clear_memory(struct vpu_device *vpu_dev, struct vpu_buf *vb) in wave5_vdi_clear_memory() argument 90 if (!vb || !vb->vaddr) { in wave5_vdi_clear_memory() 95 memset(vb->vaddr, 0, vb->size); in wave5_vdi_clear_memory() 96 return vb->size; in wave5_vdi_clear_memory() 99 int wave5_vdi_write_memory(struct vpu_device *vpu_dev, struct vpu_buf *vb, size_t offset, in wave5_vdi_write_memory() argument 102 if (!vb || !vb->vaddr) { in wave5_vdi_write_memory() 107 if (offset > vb->size || len > vb->size || offset + len > vb->size) { in wave5_vdi_write_memory() 112 memcpy(vb->vaddr + offset, data, len); in wave5_vdi_write_memory() 117 int wave5_vdi_allocate_dma_memory(struct vpu_device *vpu_dev, struct vpu_buf *vb) in wave5_vdi_allocate_dma_memory() argument 122 if (!vb->size) { in wave5_vdi_allocate_dma_memory() [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpio-viperboard.c | 69 struct vprbrd *vb; member 86 struct vprbrd *vb = gpio->vb; in vprbrd_gpioa_get() local 87 struct vprbrd_gpioa_msg *gamsg = (struct vprbrd_gpioa_msg *)vb->buf; in vprbrd_gpioa_get() 93 mutex_lock(&vb->lock); in vprbrd_gpioa_get() 107 ret = usb_control_msg(vb->usb_dev, usb_sndctrlpipe(vb->usb_dev, 0), in vprbrd_gpioa_get() 114 ret = usb_control_msg(vb->usb_dev, usb_rcvctrlpipe(vb->usb_dev, 0), in vprbrd_gpioa_get() 120 mutex_unlock(&vb->lock); in vprbrd_gpioa_get() 136 struct vprbrd *vb = gpio->vb; in vprbrd_gpioa_set() local 137 struct vprbrd_gpioa_msg *gamsg = (struct vprbrd_gpioa_msg *)vb->buf; in vprbrd_gpioa_set() 147 mutex_lock(&vb->lock); in vprbrd_gpioa_set() [all …]
|
| /linux/drivers/media/usb/go7007/ |
| H A D | go7007-driver.c | 381 static inline void store_byte(struct go7007_buffer *vb, u8 byte) in store_byte() argument 383 if (vb && vb->vb.vb2_buf.planes[0].bytesused < GO7007_BUF_SIZE) { in store_byte() 384 u8 *ptr = vb2_plane_vaddr(&vb->vb.vb2_buf, 0); in store_byte() 386 ptr[vb->vb.vb2_buf.planes[0].bytesused++] = byte; in store_byte() 390 static void go7007_set_motion_regions(struct go7007 *go, struct go7007_buffer *vb, in go7007_set_motion_regions() argument 398 .frame_sequence = vb->vb.sequence, in go7007_set_motion_regions() 412 static void go7007_motion_regions(struct go7007 *go, struct go7007_buffer *vb) in go7007_motion_regions() argument 414 u32 *bytesused = &vb->vb.vb2_buf.planes[0].bytesused; in go7007_motion_regions() 422 store_byte(vb, go->active_map[i]); in go7007_motion_regions() 435 go7007_set_motion_regions(go, vb, motion_regions); in go7007_motion_regions() [all …]
|
| /linux/drivers/mfd/ |
| H A D | viperboard.c | 50 struct vprbrd *vb; in vprbrd_probe() local 56 vb = kzalloc_obj(*vb); in vprbrd_probe() 57 if (!vb) in vprbrd_probe() 60 mutex_init(&vb->lock); in vprbrd_probe() 62 vb->usb_dev = usb_get_dev(interface_to_usbdev(interface)); in vprbrd_probe() 65 usb_set_intfdata(interface, vb); in vprbrd_probe() 66 dev_set_drvdata(&vb->pdev.dev, vb); in vprbrd_probe() 69 pipe = usb_rcvctrlpipe(vb->usb_dev, 0); in vprbrd_probe() 70 ret = usb_control_msg(vb->usb_dev, pipe, VPRBRD_USB_REQUEST_MAJOR, in vprbrd_probe() 71 VPRBRD_USB_TYPE_IN, 0x0000, 0x0000, vb->buf, 1, in vprbrd_probe() [all …]
|
| /linux/include/media/ |
| H A D | videobuf2-core.h | 119 void *(*alloc)(struct vb2_buffer *vb, 123 struct dma_buf *(*get_dmabuf)(struct vb2_buffer *vb, 127 void *(*get_userptr)(struct vb2_buffer *vb, 136 void *(*attach_dmabuf)(struct vb2_buffer *vb, 144 void *(*vaddr)(struct vb2_buffer *vb, void *buf_priv); 145 void *(*cookie)(struct vb2_buffer *vb, void *buf_priv); 414 * @buf_queue: passes buffer vb to the driver; driver may start 432 int (*buf_out_validate)(struct vb2_buffer *vb); 433 int (*buf_init)(struct vb2_buffer *vb); 434 int (*buf_prepare)(struct vb2_buffer *vb); 1223 vb2_set_plane_payload(struct vb2_buffer * vb,unsigned int plane_no,unsigned long size) vb2_set_plane_payload() argument 1243 vb2_get_plane_payload(struct vb2_buffer * vb,unsigned int plane_no) vb2_get_plane_payload() argument 1258 vb2_plane_size(struct vb2_buffer * vb,unsigned int plane_no) vb2_plane_size() argument [all...] |
| /linux/include/trace/events/ |
| H A D | vb2.h | 12 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), 13 TP_ARGS(q, vb), 30 __entry->index = vb->index; 31 __entry->type = vb->type; 32 __entry->bytesused = vb->planes[0].bytesused; 33 __entry->timestamp = vb->timestamp; 47 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), 48 TP_ARGS(q, vb) 52 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb), 53 TP_ARGS(q, vb) [all …]
|
| /linux/drivers/media/test-drivers/vivid/ |
| H A D | vivid-meta-cap.c | 37 static int meta_cap_buf_prepare(struct vb2_buffer *vb) in meta_cap_buf_prepare() argument 39 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in meta_cap_buf_prepare() 52 if (vb2_plane_size(vb, 0) < size) { in meta_cap_buf_prepare() 54 __func__, vb2_plane_size(vb, 0), size); in meta_cap_buf_prepare() 57 vb2_set_plane_payload(vb, 0, size); in meta_cap_buf_prepare() 62 static void meta_cap_buf_queue(struct vb2_buffer *vb) in meta_cap_buf_queue() argument 64 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in meta_cap_buf_queue() 65 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in meta_cap_buf_queue() 66 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in meta_cap_buf_queue() 95 vb2_buffer_done(&buf->vb.vb2_buf, in meta_cap_start_streaming() [all …]
|
| H A D | vivid-kthread-out.c | 86 v4l2_ctrl_request_setup(vid_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick() 88 v4l2_ctrl_request_complete(vid_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick() 90 vid_out_buf->vb.sequence = dev->vid_out_seq_count; in vivid_thread_vid_out_tick() 96 vid_out_buf->vb.sequence /= 2; in vivid_thread_vid_out_tick() 98 vid_out_buf->vb.vb2_buf.timestamp = in vivid_thread_vid_out_tick() 100 vb2_buffer_done(&vid_out_buf->vb.vb2_buf, dev->dqbuf_error ? in vivid_thread_vid_out_tick() 103 vid_out_buf->vb.vb2_buf.index); in vivid_thread_vid_out_tick() 107 v4l2_ctrl_request_setup(vbi_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick() 109 v4l2_ctrl_request_complete(vbi_out_buf->vb.vb2_buf.req_obj.req, in vivid_thread_vid_out_tick() 114 vbi_out_buf->vb.sequence = dev->vbi_out_seq_count; in vivid_thread_vid_out_tick() [all …]
|
| H A D | vivid-meta-out.c | 37 static int meta_out_buf_prepare(struct vb2_buffer *vb) in meta_out_buf_prepare() argument 39 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in meta_out_buf_prepare() 52 if (vb2_plane_size(vb, 0) < size) { in meta_out_buf_prepare() 54 __func__, vb2_plane_size(vb, 0), size); in meta_out_buf_prepare() 57 vb2_set_plane_payload(vb, 0, size); in meta_out_buf_prepare() 62 static void meta_out_buf_queue(struct vb2_buffer *vb) in meta_out_buf_queue() argument 64 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in meta_out_buf_queue() 65 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in meta_out_buf_queue() 66 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in meta_out_buf_queue() 95 vb2_buffer_done(&buf->vb.vb2_buf, in meta_out_start_streaming() [all …]
|
| H A D | vivid-vbi-cap.c | 86 u8 *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_raw_vbi_cap_process() 89 buf->vb.sequence = dev->vbi_cap_seq_count; in vivid_raw_vbi_cap_process() 91 buf->vb.sequence /= 2; in vivid_raw_vbi_cap_process() 93 vivid_sliced_vbi_cap_fill(dev, buf->vb.sequence); in vivid_raw_vbi_cap_process() 95 memset(vbuf, 0x10, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_raw_vbi_cap_process() 106 vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_sliced_vbi_cap_process() 108 buf->vb.sequence = dev->vbi_cap_seq_count; in vivid_sliced_vbi_cap_process() 110 buf->vb.sequence /= 2; in vivid_sliced_vbi_cap_process() 112 vivid_sliced_vbi_cap_fill(dev, buf->vb.sequence); in vivid_sliced_vbi_cap_process() 114 memset(vbuf, 0, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_sliced_vbi_cap_process() [all …]
|
| H A D | vivid-vbi-out.c | 39 static int vbi_out_buf_prepare(struct vb2_buffer *vb) in vbi_out_buf_prepare() argument 41 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_out_buf_prepare() 43 unsigned size = vb->vb2_queue->type == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT ? in vbi_out_buf_prepare() 57 if (vb2_plane_size(vb, 0) < size) { in vbi_out_buf_prepare() 59 __func__, vb2_plane_size(vb, 0), size); in vbi_out_buf_prepare() 62 vb2_set_plane_payload(vb, 0, size); in vbi_out_buf_prepare() 67 static void vbi_out_buf_queue(struct vb2_buffer *vb) in vbi_out_buf_queue() argument 69 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_out_buf_queue() 70 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_out_buf_queue() 71 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in vbi_out_buf_queue() [all …]
|
| /linux/drivers/media/usb/au0828/ |
| H A D | au0828-vbi.c | 35 static int vbi_buffer_prepare(struct vb2_buffer *vb) in vbi_buffer_prepare() argument 37 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_prepare() 42 if (vb2_plane_size(vb, 0) < size) { in vbi_buffer_prepare() 44 __func__, vb2_plane_size(vb, 0), size); in vbi_buffer_prepare() 47 vb2_set_plane_payload(vb, 0, size); in vbi_buffer_prepare() 53 vbi_buffer_queue(struct vb2_buffer *vb) in vbi_buffer_queue() argument 55 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue() 56 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_buffer_queue() 58 container_of(vbuf, struct au0828_buffer, vb); in vbi_buffer_queue() 62 buf->mem = vb2_plane_vaddr(vb, 0); in vbi_buffer_queue() [all …]
|
| /linux/block/partitions/ |
| H A D | ldm.c | 572 struct vblk *vb; in ldm_create_data_partitions() local 589 vb = list_entry (item, struct vblk, list); in ldm_create_data_partitions() 590 part = &vb->vblk.part; in ldm_create_data_partitions() 718 static bool ldm_parse_cmp3 (const u8 *buffer, int buflen, struct vblk *vb) in ldm_parse_cmp3() argument 723 BUG_ON (!buffer || !vb); in ldm_parse_cmp3() 746 comp = &vb->vblk.comp; in ldm_parse_cmp3() 768 static int ldm_parse_dgr3 (const u8 *buffer, int buflen, struct vblk *vb) in ldm_parse_dgr3() argument 773 BUG_ON (!buffer || !vb); in ldm_parse_dgr3() 792 dgrp = &vb->vblk.dgrp; in ldm_parse_dgr3() 809 static bool ldm_parse_dgr4 (const u8 *buffer, int buflen, struct vblk *vb) in ldm_parse_dgr4() argument [all …]
|
| /linux/drivers/iio/adc/ |
| H A D | viperboard_adc.c | 32 struct vprbrd *vb; member 57 struct vprbrd *vb = adc->vb; in vprbrd_iio_read_raw() local 58 struct vprbrd_adc_msg *admsg = (struct vprbrd_adc_msg *)vb->buf; in vprbrd_iio_read_raw() 62 mutex_lock(&vb->lock); in vprbrd_iio_read_raw() 68 ret = usb_control_msg(vb->usb_dev, in vprbrd_iio_read_raw() 69 usb_sndctrlpipe(vb->usb_dev, 0), VPRBRD_USB_REQUEST_ADC, in vprbrd_iio_read_raw() 77 ret = usb_control_msg(vb->usb_dev, in vprbrd_iio_read_raw() 78 usb_rcvctrlpipe(vb->usb_dev, 0), VPRBRD_USB_REQUEST_ADC, in vprbrd_iio_read_raw() 84 mutex_unlock(&vb->lock); in vprbrd_iio_read_raw() 109 struct vprbrd *vb = dev_get_drvdata(pdev->dev.parent); in vprbrd_adc_probe() local [all …]
|
| /linux/drivers/media/usb/em28xx/ |
| H A D | em28xx-vbi.c | 44 static int vbi_buffer_prepare(struct vb2_buffer *vb) in vbi_buffer_prepare() argument 46 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_prepare() 52 if (vb2_plane_size(vb, 0) < size) { in vbi_buffer_prepare() 55 __func__, vb2_plane_size(vb, 0), size); in vbi_buffer_prepare() 58 vb2_set_plane_payload(vb, 0, size); in vbi_buffer_prepare() 64 vbi_buffer_queue(struct vb2_buffer *vb) in vbi_buffer_queue() argument 66 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_buffer_queue() 67 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue() 69 container_of(vbuf, struct em28xx_buffer, vb); in vbi_buffer_queue() 73 buf->mem = vb2_plane_vaddr(vb, 0); in vbi_buffer_queue() [all …]
|
| /linux/drivers/i2c/busses/ |
| H A D | i2c-viperboard.c | 41 struct vprbrd *vb = (struct vprbrd *)i2c->algo_data; in vprbrd_i2c_status() local 46 ret = usb_control_msg(vb->usb_dev, usb_rcvctrlpipe(vb->usb_dev, 0), in vprbrd_i2c_status() 114 static int vprbrd_i2c_read(struct vprbrd *vb, struct i2c_msg *msg) in vprbrd_i2c_read() argument 119 (struct vprbrd_i2c_read_msg *)vb->buf; in vprbrd_i2c_read() 201 ret = vprbrd_i2c_receive(vb->usb_dev, rmsg, len1); in vprbrd_i2c_read() 209 ret = vprbrd_i2c_receive(vb->usb_dev, rmsg, len2); in vprbrd_i2c_read() 219 static int vprbrd_i2c_write(struct vprbrd *vb, struct i2c_msg *msg) in vprbrd_i2c_write() argument 225 (struct vprbrd_i2c_write_msg *)vb->buf; in vprbrd_i2c_write() 256 ret = usb_bulk_msg(vb->usb_dev, in vprbrd_i2c_write() 257 usb_sndbulkpipe(vb->usb_dev, in vprbrd_i2c_write() [all …]
|
| /linux/drivers/staging/media/ipu7/ |
| H A D | ipu7-isys-queue.c | 32 static int ipu7_isys_buf_init(struct vb2_buffer *vb) in ipu7_isys_buf_init() argument 34 struct ipu7_isys *isys = vb2_get_drv_priv(vb->vb2_queue); in ipu7_isys_buf_init() 35 struct sg_table *sg = vb2_dma_sg_plane_desc(vb, 0); in ipu7_isys_buf_init() 36 struct vb2_v4l2_buffer *vvb = to_vb2_v4l2_buffer(vb); in ipu7_isys_buf_init() 50 static void ipu7_isys_buf_cleanup(struct vb2_buffer *vb) in ipu7_isys_buf_cleanup() argument 52 struct ipu7_isys *isys = vb2_get_drv_priv(vb->vb2_queue); in ipu7_isys_buf_cleanup() 53 struct sg_table *sg = vb2_dma_sg_plane_desc(vb, 0); in ipu7_isys_buf_cleanup() 54 struct vb2_v4l2_buffer *vvb = to_vb2_v4l2_buffer(vb); in ipu7_isys_buf_cleanup() 85 static int ipu7_isys_buf_prepare(struct vb2_buffer *vb) in ipu7_isys_buf_prepare() argument 87 struct ipu7_isys_queue *aq = vb2_queue_to_isys_queue(vb->vb2_queue); in ipu7_isys_buf_prepare() [all …]
|
| /linux/drivers/media/pci/cx88/ |
| H A D | cx88-vbi.c | 108 buf, buf->vb.vb2_buf.index); in cx8800_restart_vbi_queue() 129 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 131 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() 132 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare() 133 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_prepare() 134 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare() 143 if (vb2_plane_size(vb, 0) < size) in buffer_prepare() 145 vb2_set_plane_payload(vb, 0, size); in buffer_prepare() 153 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument 155 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() [all …]
|
| /linux/drivers/media/v4l2-core/ |
| H A D | v4l2-compat-ioctl32.c | 400 static int get_v4l2_buffer32(struct v4l2_buffer *vb, in get_v4l2_buffer32() argument 408 memset(vb, 0, sizeof(*vb)); in get_v4l2_buffer32() 409 *vb = (struct v4l2_buffer) { in get_v4l2_buffer32() 425 switch (vb->memory) { in get_v4l2_buffer32() 428 vb->m.offset = vb32.m.offset; in get_v4l2_buffer32() 431 vb->m.userptr = (unsigned long)compat_ptr(vb32.m.userptr); in get_v4l2_buffer32() 434 vb->m.fd = vb32.m.fd; in get_v4l2_buffer32() 438 if (V4L2_TYPE_IS_MULTIPLANAR(vb->type)) in get_v4l2_buffer32() 439 vb->m.planes = (void __force *) in get_v4l2_buffer32() 446 static int get_v4l2_buffer32_time32(struct v4l2_buffer *vb, in get_v4l2_buffer32_time32() argument [all …]
|
| /linux/drivers/media/pci/cx23885/ |
| H A D | cx23885-vbi.c | 128 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument 130 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() 131 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare() 133 struct cx23885_buffer, vb); in buffer_prepare() 134 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare() 140 if (vb2_plane_size(vb, 0) < lines * VBI_LINE_LENGTH * 2) in buffer_prepare() 142 vb2_set_plane_payload(vb, 0, lines * VBI_LINE_LENGTH * 2); in buffer_prepare() 152 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument 154 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() 156 struct cx23885_buffer, vb); in buffer_finish() [all …]
|
| /linux/drivers/media/platform/amlogic/c3/isp/ |
| H A D | c3-isp-stats.c | 167 static void c3_isp_stats_vb2_buf_queue(struct vb2_buffer *vb) in c3_isp_stats_vb2_buf_queue() argument 169 struct vb2_v4l2_buffer *v4l2_buf = to_vb2_v4l2_buffer(vb); in c3_isp_stats_vb2_buf_queue() 171 container_of(v4l2_buf, struct c3_isp_stats_buffer, vb); in c3_isp_stats_vb2_buf_queue() 172 struct c3_isp_stats *stats = vb2_get_drv_priv(vb->vb2_queue); in c3_isp_stats_vb2_buf_queue() 179 static int c3_isp_stats_vb2_buf_prepare(struct vb2_buffer *vb) in c3_isp_stats_vb2_buf_prepare() argument 181 struct c3_isp_stats *stats = vb2_get_drv_priv(vb->vb2_queue); in c3_isp_stats_vb2_buf_prepare() 184 if (vb2_plane_size(vb, 0) < size) { in c3_isp_stats_vb2_buf_prepare() 187 vb2_plane_size(vb, 0), size); in c3_isp_stats_vb2_buf_prepare() 191 vb2_set_plane_payload(vb, 0, size); in c3_isp_stats_vb2_buf_prepare() 196 static int c3_isp_stats_vb2_buf_init(struct vb2_buffer *vb) in c3_isp_stats_vb2_buf_init() argument [all …]
|
| /linux/arch/powerpc/kernel/ |
| H A D | vecemu.c | 266 unsigned int va, vb, vc, vd; in emulate_altivec() local 277 vb = (word >> 11) & 0x1f; in emulate_altivec() 285 vaddfp(&vrs[vd], &vrs[va], &vrs[vb]); in emulate_altivec() 288 vsubfp(&vrs[vd], &vrs[va], &vrs[vb]); in emulate_altivec() 291 vrefp(&vrs[vd], &vrs[vb]); in emulate_altivec() 294 vrsqrtefp(&vrs[vd], &vrs[vb]); in emulate_altivec() 298 vrs[vd].u[i] = eexp2(vrs[vb].u[i]); in emulate_altivec() 302 vrs[vd].u[i] = elog2(vrs[vb].u[i]); in emulate_altivec() 306 vrs[vd].u[i] = rfin(vrs[vb].u[i]); in emulate_altivec() 310 vrs[vd].u[i] = rfiz(vrs[vb].u[i]); in emulate_altivec() [all …]
|
| /linux/drivers/media/platform/mediatek/vcodec/decoder/ |
| H A D | mtk_vcodec_dec_stateful.c | 59 struct vb2_v4l2_buffer *vb; in get_display_buffer() local 76 vb = &dstbuf->m2m_buf.vb; in get_display_buffer() 81 vb->vb2_buf.index, dstbuf->queued_in_vb2); in get_display_buffer() 83 v4l2_m2m_buf_done(vb, VB2_BUF_STATE_DONE); in get_display_buffer() 87 return &vb->vb2_buf; in get_display_buffer() 102 struct vb2_v4l2_buffer *vb; in get_free_buffer() local 119 vb = &dstbuf->m2m_buf.vb; in get_free_buffer() 134 vb->vb2_buf.index, dstbuf->queued_in_vb2); in get_free_buffer() 135 v4l2_m2m_buf_queue(ctx->m2m_ctx, vb); in get_free_buffer() 150 vb->vb2_buf.index); in get_free_buffer() [all …]
|