| /drivers/gpu/drm/virtio/ |
| A D | virtgpu_vq.c | 97 vbuf->buf = (void *)vbuf + sizeof(*vbuf); in virtio_gpu_panic_get_vbuf() 101 vbuf->resp_buf = (void *)vbuf->buf + size; in virtio_gpu_panic_get_vbuf() 102 return vbuf; in virtio_gpu_panic_get_vbuf() 116 vbuf->buf = (void *)vbuf + sizeof(*vbuf); in virtio_gpu_get_vbuf() 122 vbuf->resp_buf = (void *)vbuf->buf + size; in virtio_gpu_get_vbuf() 126 return vbuf; in virtio_gpu_get_vbuf() 435 sg_init_one(&vcmd, vbuf->buf, vbuf->size); in virtio_gpu_panic_queue_ctrl_buffer() 442 sg_init_one(&vresp, vbuf->resp_buf, vbuf->resp_size); in virtio_gpu_panic_queue_ctrl_buffer() 462 sg_init_one(&vcmd, vbuf->buf, vbuf->size); in virtio_gpu_queue_fenced_ctrl_buffer() 482 sg_init_one(&vout, vbuf->data_buf, vbuf->data_size); in virtio_gpu_queue_fenced_ctrl_buffer() [all …]
|
| /drivers/media/platform/amphion/ |
| A D | vpu_v4l2.c | 299 vbuf = &buf->vb; in vpu_process_output_buffer() 302 vbuf = NULL; in vpu_process_output_buffer() 305 if (!vbuf) in vpu_process_output_buffer() 328 vbuf = NULL; in vpu_process_capture_buffer() 330 if (!vbuf) in vpu_process_capture_buffer() 396 vbuf = NULL; in vpu_find_buf_by_sequence() 403 vbuf = NULL; in vpu_find_buf_by_sequence() 407 return vbuf; in vpu_find_buf_by_sequence() 423 vbuf = NULL; in vpu_find_buf_by_idx() 430 vbuf = NULL; in vpu_find_buf_by_idx() [all …]
|
| A D | vdec.c | 809 struct vb2_v4l2_buffer *vbuf; in vdec_frame_decoded() local 823 vbuf = &vpu_buf->m2m_buf.vb; in vdec_frame_decoded() 849 vbuf->field = cur_fmt->field; in vdec_frame_decoded() 882 struct vb2_v4l2_buffer *vbuf; in vdec_buf_done() local 904 vbuf = &vpu_buf->m2m_buf.vb; in vdec_buf_done() 918 vbuf->field = cur_fmt->field; in vdec_buf_done() 1151 if (!vbuf) in vdec_response_frame() 1254 if (vpu_find_buf_by_idx(inst, vbuf->vb2_buf.type, vbuf->vb2_buf.index)) in vdec_recycle_buffer() 1263 struct vb2_v4l2_buffer *vbuf; in vdec_release_curr_frame_store() local 1271 vbuf = &vpu_buf->m2m_buf.vb; in vdec_release_curr_frame_store() [all …]
|
| A D | vpu_v4l2.h | 13 void vpu_set_buffer_state(struct vb2_v4l2_buffer *vbuf, unsigned int state); 14 unsigned int vpu_get_buffer_state(struct vb2_v4l2_buffer *vbuf); 15 void vpu_set_buffer_average_qp(struct vb2_v4l2_buffer *vbuf, u32 qp); 51 static inline int vpu_vb_is_codecconfig(struct vb2_v4l2_buffer *vbuf) in vpu_vb_is_codecconfig() argument 54 return (vbuf->flags & V4L2_BUF_FLAG_CODECCONFIG) ? 1 : 0; in vpu_vb_is_codecconfig()
|
| A D | venc.c | 783 struct vb2_v4l2_buffer *vbuf) in venc_get_one_encoded_frame() argument 788 if (!vbuf) in venc_get_one_encoded_frame() 820 vbuf->sequence = frame->info.frame_id; in venc_get_one_encoded_frame() 821 vbuf->field = inst->cap_format.field; in venc_get_one_encoded_frame() 822 vbuf->flags |= frame->info.pic_type; in venc_get_one_encoded_frame() 1108 struct vb2_v4l2_buffer *vbuf; in venc_process_output() local 1114 vbuf = to_vb2_v4l2_buffer(vb); in venc_process_output() 1118 flags = vbuf->flags; in venc_process_output() 1129 vbuf->flags = flags; in venc_process_output() 1141 struct vb2_v4l2_buffer *vbuf; in venc_process_capture() local [all …]
|
| /drivers/staging/media/meson/vdec/ |
| A D | vdec_helpers.c | 274 struct vb2_v4l2_buffer *vbuf, in dst_buf_done() argument 295 vbuf->flags = flags; in dst_buf_done() 296 vbuf->timecode = timecode; in dst_buf_done() 305 vbuf->flags |= V4L2_BUF_FLAG_LAST; in dst_buf_done() 308 vbuf->flags |= V4L2_BUF_FLAG_LAST; in dst_buf_done() 316 vbuf->field = field; in dst_buf_done() 337 vbuf->vb2_buf.index); in amvdec_dst_buf_done() 358 struct vb2_v4l2_buffer *vbuf, in amvdec_dst_buf_done_offset() argument 390 vbuf->vb2_buf.index, offset); in amvdec_dst_buf_done_offset() 409 struct vb2_v4l2_buffer *vbuf; in amvdec_dst_buf_done_idx() local [all …]
|
| A D | esparser.c | 294 struct vb2_buffer *vb = &vbuf->vb2_buf; in esparser_queue() 325 v4l2_m2m_src_buf_remove_by_buf(sess->m2m_ctx, vbuf); in esparser_queue() 329 ret = amvdec_add_ts(sess, vb->timestamp, vbuf->timecode, offset, vbuf->flags); in esparser_queue() 331 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR); in esparser_queue() 336 vb->timestamp, payload_size, offset, vbuf->flags); in esparser_queue() 338 vbuf->flags = 0; in esparser_queue() 339 vbuf->field = V4L2_FIELD_NONE; in esparser_queue() 340 vbuf->sequence = sess->sequence_out++; in esparser_queue() 348 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR); in esparser_queue() 360 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR); in esparser_queue() [all …]
|
| /drivers/media/platform/rockchip/rga/ |
| A D | rga-buf.c | 77 struct rga_vb_buffer *rbuf = vb_to_rga(vbuf); in rga_buf_init() 110 struct rga_vb_buffer *rbuf = vb_to_rga(vbuf); in rga_buf_prepare() 123 if (vbuf->field == V4L2_FIELD_ANY) in rga_buf_prepare() 124 vbuf->field = V4L2_FIELD_NONE; in rga_buf_prepare() 125 if (vbuf->field != V4L2_FIELD_NONE) in rga_buf_prepare() 162 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in rga_buf_queue() 168 struct rga_vb_buffer *rbuf = vb_to_rga(vbuf); in rga_buf_cleanup() 180 struct vb2_v4l2_buffer *vbuf; in rga_buf_return_buffers() local 184 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in rga_buf_return_buffers() 187 if (!vbuf) in rga_buf_return_buffers() [all …]
|
| /drivers/media/platform/st/sti/delta/ |
| A D | delta-v4l2.c | 94 vbuf = &au->vbuf; in delta_au_done() 109 vbuf = &frame->vbuf; in delta_frame_done() 127 vbuf = &frame->vbuf; in requeue_free_frames() 146 struct vb2_v4l2_buffer *vbuf = &frame->vbuf; in delta_recycle() local 942 if (!vbuf) { in delta_run_work() 947 au = to_au(vbuf); in delta_run_work() 1248 if (!vbuf) { in delta_get_free_frame() 1338 if (!vbuf) { in delta_vb2_au_start_streaming() 1344 au = to_au(vbuf); in delta_vb2_au_start_streaming() 1389 if (vbuf) in delta_vb2_au_start_streaming() [all …]
|
| /drivers/media/platform/qcom/iris/ |
| A D | iris_vb2.c | 106 struct iris_buffer *buf = to_iris_buffer(vbuf); in iris_vb2_buf_init() 256 if (vbuf->field == V4L2_FIELD_ANY) in iris_vb2_buf_prepare() 257 vbuf->field = V4L2_FIELD_NONE; in iris_vb2_buf_prepare() 258 if (vbuf->field != V4L2_FIELD_NONE) in iris_vb2_buf_prepare() 298 if (vbuf->field == V4L2_FIELD_ANY) in iris_vb2_buf_queue() 299 vbuf->field = V4L2_FIELD_NONE; in iris_vb2_buf_queue() 313 vbuf->flags |= V4L2_BUF_FLAG_LAST; in iris_vb2_buf_queue() 314 vbuf->sequence = inst->sequence_cap++; in iris_vb2_buf_queue() 315 vbuf->field = V4L2_FIELD_NONE; in iris_vb2_buf_queue() 327 v4l2_m2m_buf_queue(m2m_ctx, vbuf); in iris_vb2_buf_queue() [all …]
|
| A D | iris_buffer.c | 573 struct vb2_v4l2_buffer *vbuf) in iris_get_ts_metadata() argument 582 vbuf->flags &= ~mask; in iris_get_ts_metadata() 583 vbuf->flags |= inst->tss[i].flags; in iris_get_ts_metadata() 584 vbuf->timecode = inst->tss[i].tc; in iris_get_ts_metadata() 588 vbuf->flags &= ~mask; in iris_get_ts_metadata() 596 struct vb2_v4l2_buffer *vbuf; in iris_vb2_buffer_done() local 612 if (!vbuf) in iris_vb2_buffer_done() 615 vb2 = &vbuf->vb2_buf; in iris_vb2_buffer_done() 621 v4l2_m2m_buf_done(vbuf, state); in iris_vb2_buffer_done() 625 vbuf->flags |= buf->flags; in iris_vb2_buffer_done() [all …]
|
| /drivers/media/common/videobuf2/ |
| A D | videobuf2-v4l2.c | 138 vbuf->request_fd = -1; in __init_vb2_v4l2_buffer() 156 vbuf->timecode = b->timecode; in __copy_timestamp() 202 vbuf->sequence = 0; in vb2_fill_vb2_v4l2_buffer() 203 vbuf->request_fd = -1; in vb2_fill_vb2_v4l2_buffer() 204 vbuf->is_held = false; in vb2_fill_vb2_v4l2_buffer() 331 vbuf->field = b->field; in vb2_fill_vb2_v4l2_buffer() 372 struct vb2_v4l2_buffer *vbuf; in vb2_queue_or_prepare_buf() local 399 memset(vbuf->planes, 0, in vb2_queue_or_prepare_buf() 492 b->flags = vbuf->flags; in __fill_v4l2_buffer() 493 b->field = vbuf->field; in __fill_v4l2_buffer() [all …]
|
| /drivers/media/pci/bt8xx/ |
| A D | bttv-vbi.c | 77 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buf_queue_vbi() local 80 struct bttv_buffer *buf = container_of(vbuf, struct bttv_buffer, vbuf); in buf_queue_vbi() 100 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buf_prepare_vbi() local 101 struct bttv_buffer *buf = container_of(vbuf, struct bttv_buffer, vbuf); in buf_prepare_vbi() 107 buf->vbuf.field = V4L2_FIELD_NONE; in buf_prepare_vbi() 115 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buf_cleanup_vbi() local 116 struct bttv_buffer *buf = container_of(vbuf, struct bttv_buffer, vbuf); in buf_cleanup_vbi() 138 buf->vbuf.sequence = (btv->field_count >> 1) + seqnr++; in start_streaming_vbi() 139 vb2_buffer_done(&buf->vbuf.vb2_buf, in start_streaming_vbi()
|
| /drivers/media/platform/qcom/venus/ |
| A D | helpers.c | 435 struct vb2_v4l2_buffer *vbuf) in return_buf_error() argument 470 inst->tss[slot].flags = vbuf->flags; in put_ts_metadata() 471 inst->tss[slot].tc = vbuf->timecode; in put_ts_metadata() 477 struct vb2_v4l2_buffer *vbuf) in venus_helper_get_ts_metadata() argument 490 vbuf->flags |= inst->tss[i].flags; in venus_helper_get_ts_metadata() 491 vbuf->timecode = inst->tss[i].tc; in venus_helper_get_ts_metadata() 523 put_ts_metadata(inst, vbuf); in session_process_buf() 1468 vbuf->field = V4L2_FIELD_NONE; in venus_helper_vb2_buf_prepare() 1503 v4l2_m2m_buf_queue(m2m_ctx, vbuf); in venus_helper_vb2_buf_queue() 1518 ret = is_buf_refed(inst, vbuf); in venus_helper_vb2_buf_queue() [all …]
|
| /drivers/media/platform/chips-media/wave5/ |
| A D | wave5-vpu.h | 54 static inline struct vpu_src_buffer *wave5_to_vpu_src_buf(struct vb2_v4l2_buffer *vbuf) in wave5_to_vpu_src_buf() argument 56 return container_of(vbuf, struct vpu_src_buffer, v4l2_m2m_buf.vb); in wave5_to_vpu_src_buf() 59 static inline struct vpu_dst_buffer *wave5_to_vpu_dst_buf(struct vb2_v4l2_buffer *vbuf) in wave5_to_vpu_dst_buf() argument 61 return container_of(vbuf, struct vpu_dst_buffer, v4l2_m2m_buf.vb); in wave5_to_vpu_dst_buf()
|
| A D | wave5-helper.c | 209 struct vb2_v4l2_buffer *vbuf; in wave5_return_bufs() local 213 vbuf = v4l2_m2m_src_buf_remove(m2m_ctx); in wave5_return_bufs() 215 vbuf = v4l2_m2m_dst_buf_remove(m2m_ctx); in wave5_return_bufs() 216 if (!vbuf) in wave5_return_bufs() 218 v4l2_ctrl_request_complete(vbuf->vb2_buf.req_obj.req, &v4l2_ctrl_hdl); in wave5_return_bufs() 219 v4l2_m2m_buf_done(vbuf, state); in wave5_return_bufs()
|
| /drivers/media/platform/st/sti/hva/ |
| A D | hva-v4l2.c | 823 frame->vbuf.sequence = ctx->frame_num++; in hva_run_work() 937 struct hva_frame *frame = to_hva_frame(vbuf); in hva_buf_prepare() 939 if (vbuf->field == V4L2_FIELD_ANY) in hva_buf_prepare() 940 vbuf->field = V4L2_FIELD_NONE; in hva_buf_prepare() 941 if (vbuf->field != V4L2_FIELD_NONE) { in hva_buf_prepare() 944 ctx->name, vb->index, vbuf->field); in hva_buf_prepare() 952 &vbuf->vb2_buf, 0); in hva_buf_prepare() 968 &vbuf->vb2_buf, 0); in hva_buf_prepare() 988 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in hva_buf_queue() 996 struct vb2_v4l2_buffer *vbuf; in hva_start_streaming() local [all …]
|
| /drivers/media/usb/uvc/ |
| A D | uvc_queue.c | 110 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_prepare() local 112 struct uvc_buffer *buf = uvc_vbuf_to_buffer(vbuf); in uvc_buffer_prepare() 138 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_queue() local 140 struct uvc_buffer *buf = uvc_vbuf_to_buffer(vbuf); in uvc_buffer_queue() 161 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in uvc_buffer_finish() local 164 struct uvc_buffer *buf = uvc_vbuf_to_buffer(vbuf); in uvc_buffer_finish() 167 uvc_video_clock_update(stream, vbuf, buf); in uvc_buffer_finish()
|
| /drivers/media/platform/renesas/ |
| A D | rcar_fdp1.c | 1182 struct vb2_v4l2_buffer *vbuf; in fdp1_prepare_job() local 1217 fbuf = to_fdp1_buffer(vbuf); in fdp1_prepare_job() 1786 struct vb2_v4l2_buffer *vbuf, in fdp1_buf_prepare_field() argument 1796 fbuf->vb = vbuf; in fdp1_buf_prepare_field() 1802 switch (vbuf->field) { in fdp1_buf_prepare_field() 1821 fbuf->field = vbuf->field; in fdp1_buf_prepare_field() 1830 switch (vbuf->field) { in fdp1_buf_prepare_field() 1861 if (vbuf->field != V4L2_FIELD_NONE) in fdp1_buf_prepare() 1888 vbuf->field = V4L2_FIELD_NONE; in fdp1_buf_prepare() 1964 struct vb2_v4l2_buffer *vbuf; in fdp1_stop_streaming() local [all …]
|
| /drivers/media/test-drivers/vivid/ |
| A D | vivid-vbi-cap.c | 86 u8 *vbuf = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_raw_vbi_cap_process() local 95 memset(vbuf, 0x10, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_raw_vbi_cap_process() 98 vivid_vbi_gen_raw(&dev->vbi_gen, &vbi, vbuf); in vivid_raw_vbi_cap_process() 105 struct v4l2_sliced_vbi_data *vbuf = in vivid_sliced_vbi_cap_process() local 114 memset(vbuf, 0, vb2_plane_size(&buf->vb.vb2_buf, 0)); in vivid_sliced_vbi_cap_process() 119 vbuf[i] = dev->vbi_gen.data[i]; in vivid_sliced_vbi_cap_process() 174 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_cap_buf_queue() local 176 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in vbi_cap_buf_queue()
|
| /drivers/net/ethernet/8390/ |
| A D | mcf8390.c | 77 void ei_insb(u32 addr, void *vbuf, int len) in ei_insb() argument 82 buf = (u8 *) vbuf; in ei_insb() 90 void ei_insw(u32 addr, void *vbuf, int len) in ei_insw() argument 95 buf = (u16 *) vbuf; in ei_insw() 103 void ei_outsb(u32 addr, const void *vbuf, int len) in ei_outsb() argument 108 buf = (u8 *) vbuf; in ei_outsb() 116 void ei_outsw(u32 addr, const void *vbuf, int len) in ei_outsw() argument 121 buf = (u16 *) vbuf; in ei_outsw()
|
| /drivers/staging/media/sunxi/cedrus/ |
| A D | cedrus_video.c | 475 struct vb2_v4l2_buffer *vbuf; in cedrus_queue_cleanup() local 479 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in cedrus_queue_cleanup() 481 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in cedrus_queue_cleanup() 483 if (!vbuf) in cedrus_queue_cleanup() 486 v4l2_ctrl_request_complete(vbuf->vb2_buf.req_obj.req, in cedrus_queue_cleanup() 488 v4l2_m2m_buf_done(vbuf, state); in cedrus_queue_cleanup() 494 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in cedrus_buf_out_validate() local 496 vbuf->field = V4L2_FIELD_NONE; in cedrus_buf_out_validate() 570 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in cedrus_buf_queue() local 573 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in cedrus_buf_queue()
|
| /drivers/media/platform/ti/omap/ |
| A D | omap_voutdef.h | 120 struct vb2_v4l2_buffer vbuf; member 126 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vb2_to_omap_vout_buffer() local 128 return container_of(vbuf, struct omap_vout_buffer, vbuf); in vb2_to_omap_vout_buffer()
|
| /drivers/media/pci/cx23885/ |
| A D | cx23885-vbi.c | 130 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() local 132 struct cx23885_buffer *buf = container_of(vbuf, in buffer_prepare() 154 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() local 155 struct cx23885_buffer *buf = container_of(vbuf, in buffer_finish() 184 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local 186 struct cx23885_buffer *buf = container_of(vbuf, in buffer_queue()
|
| /drivers/media/pci/cx88/ |
| A D | cx88-vbi.c | 131 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare() local 133 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_prepare() 155 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish() local 157 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_finish() 168 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue() local 170 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_queue()
|