/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/ |
H A D | virtgpu_vq.c | 92 struct virtio_gpu_vbuffer *vbuf; in virtio_gpu_get_vbuf() local 94 vbuf = kmem_cache_zalloc(vgdev->vbufs, GFP_KERNEL | __GFP_NOFAIL); in virtio_gpu_get_vbuf() 98 vbuf->buf = (void *)vbuf + sizeof(*vbuf); in virtio_gpu_get_vbuf() 99 vbuf->size = size; in virtio_gpu_get_vbuf() 101 vbuf->resp_cb = resp_cb; in virtio_gpu_get_vbuf() 102 vbuf->resp_size = resp_size; in virtio_gpu_get_vbuf() 104 vbuf->resp_buf = (void *)vbuf in virtio_gpu_get_vbuf() 112 virtio_gpu_vbuf_ctrl_hdr(struct virtio_gpu_vbuffer *vbuf) virtio_gpu_vbuf_ctrl_hdr() argument 125 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_alloc_cursor() local 144 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_alloc_cmd_resp() local 171 free_vbuf(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf) free_vbuf() argument 182 struct virtio_gpu_vbuffer *vbuf; reclaim_vbufs() local 317 virtio_gpu_queue_ctrl_sgs(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf, struct virtio_gpu_fence *fence, int elemcnt, struct scatterlist **sgs, int outcnt, int incnt) virtio_gpu_queue_ctrl_sgs() argument 373 virtio_gpu_queue_fenced_ctrl_buffer(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf, struct virtio_gpu_fence *fence) virtio_gpu_queue_fenced_ctrl_buffer() argument 443 virtio_gpu_queue_ctrl_buffer(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf) virtio_gpu_queue_ctrl_buffer() argument 449 virtio_gpu_queue_cursor(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf) virtio_gpu_queue_cursor() argument 501 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_create_resource() local 517 virtio_gpu_cmd_unref_cb(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf) virtio_gpu_cmd_unref_cb() argument 532 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_unref_resource() local 554 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_set_scanout() local 576 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_resource_flush() local 600 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_transfer_to_host_2d() local 631 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_resource_attach_backing() local 646 virtio_gpu_cmd_get_display_info_cb(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf) virtio_gpu_cmd_get_display_info_cb() argument 675 virtio_gpu_cmd_get_capset_info_cb(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf) virtio_gpu_cmd_get_capset_info_cb() argument 696 virtio_gpu_cmd_capset_cb(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf) virtio_gpu_cmd_capset_cb() argument 733 virtio_gpu_cmd_get_edid_cb(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf) virtio_gpu_cmd_get_edid_cb() argument 763 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_get_display_info() local 786 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_get_capset_info() local 811 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_get_capset() local 885 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_get_edids() local 914 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_context_create() local 931 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_context_destroy() local 947 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_context_attach_resource() local 965 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_context_detach_resource() local 985 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_resource_create_3d() local 1019 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_transfer_to_host_3d() local 1051 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_transfer_from_host_3d() local 1075 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_submit() local 1103 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cursor_ping() local 1112 virtio_gpu_cmd_resource_uuid_cb(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf) virtio_gpu_cmd_resource_uuid_cb() argument 1142 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_resource_assign_uuid() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/virtio/ |
H A D | virtgpu_vq.c | 94 struct virtio_gpu_vbuffer *vbuf; in virtio_gpu_get_vbuf() local 96 vbuf = kmem_cache_zalloc(vgdev->vbufs, GFP_KERNEL | __GFP_NOFAIL); in virtio_gpu_get_vbuf() 100 vbuf->buf = (void *)vbuf + sizeof(*vbuf); in virtio_gpu_get_vbuf() 101 vbuf->size = size; in virtio_gpu_get_vbuf() 103 vbuf->resp_cb = resp_cb; in virtio_gpu_get_vbuf() 104 vbuf->resp_size = resp_size; in virtio_gpu_get_vbuf() 106 vbuf->resp_buf = (void *)vbuf in virtio_gpu_get_vbuf() 114 virtio_gpu_vbuf_ctrl_hdr(struct virtio_gpu_vbuffer *vbuf) virtio_gpu_vbuf_ctrl_hdr() argument 127 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_alloc_cursor() local 146 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_alloc_cmd_resp() local 173 free_vbuf(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf) free_vbuf() argument 184 struct virtio_gpu_vbuffer *vbuf; reclaim_vbufs() local 314 virtio_gpu_queue_ctrl_sgs(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf, struct virtio_gpu_fence *fence, int elemcnt, struct scatterlist **sgs, int outcnt, int incnt) virtio_gpu_queue_ctrl_sgs() argument 371 virtio_gpu_queue_fenced_ctrl_buffer(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf, struct virtio_gpu_fence *fence) virtio_gpu_queue_fenced_ctrl_buffer() argument 441 virtio_gpu_queue_ctrl_buffer(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf) virtio_gpu_queue_ctrl_buffer() argument 447 virtio_gpu_queue_cursor(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf) virtio_gpu_queue_cursor() argument 501 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_create_resource() local 517 virtio_gpu_cmd_unref_cb(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf) virtio_gpu_cmd_unref_cb() argument 532 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_unref_resource() local 554 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_set_scanout() local 578 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_resource_flush() local 603 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_transfer_to_host_2d() local 633 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_resource_attach_backing() local 648 virtio_gpu_cmd_get_display_info_cb(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf) virtio_gpu_cmd_get_display_info_cb() argument 677 virtio_gpu_cmd_get_capset_info_cb(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf) virtio_gpu_cmd_get_capset_info_cb() argument 698 virtio_gpu_cmd_capset_cb(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf) virtio_gpu_cmd_capset_cb() argument 735 virtio_gpu_cmd_get_edid_cb(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf) virtio_gpu_cmd_get_edid_cb() argument 765 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_get_display_info() local 788 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_get_capset_info() local 813 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_get_capset() local 887 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_get_edids() local 917 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_context_create() local 934 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_context_destroy() local 950 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_context_attach_resource() local 968 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_context_detach_resource() local 988 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_resource_create_3d() local 1024 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_transfer_to_host_3d() local 1059 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_transfer_from_host_3d() local 1085 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_submit() local 1113 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cursor_ping() local 1122 virtio_gpu_cmd_resource_uuid_cb(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf) virtio_gpu_cmd_resource_uuid_cb() argument 1152 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_resource_assign_uuid() local 1177 virtio_gpu_cmd_resource_map_cb(struct virtio_gpu_device *vgdev, struct virtio_gpu_vbuffer *vbuf) virtio_gpu_cmd_resource_map_cb() argument 1205 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_map() local 1230 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_unmap() local 1249 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_resource_create_blob() local 1279 struct virtio_gpu_vbuffer *vbuf; virtio_gpu_cmd_set_scanout_blob() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/amphion/ |
H A D | vpu_v4l2.c | 52 void vpu_set_buffer_state(struct vb2_v4l2_buffer *vbuf, unsigned int state) in vpu_set_buffer_state() argument 54 struct vpu_vb2_buffer *vpu_buf = to_vpu_vb2_buffer(vbuf); in vpu_set_buffer_state() 59 unsigned int vpu_get_buffer_state(struct vb2_v4l2_buffer *vbuf) in vpu_get_buffer_state() argument 61 struct vpu_vb2_buffer *vpu_buf = to_vpu_vb2_buffer(vbuf); in vpu_get_buffer_state() 283 struct vb2_v4l2_buffer *vbuf = NULL; in vpu_process_output_buffer() local 292 vbuf = &buf->vb; in vpu_process_output_buffer() 293 if (vpu_get_buffer_state(vbuf) == VPU_BUF_STATE_IDLE) in vpu_process_output_buffer() 295 vbuf = NULL; in vpu_process_output_buffer() 298 if (!vbuf) in vpu_process_output_buffer() 302 inst->id, vbuf in vpu_process_output_buffer() 309 struct vb2_v4l2_buffer *vbuf = NULL; vpu_process_capture_buffer() local 379 struct vb2_v4l2_buffer *vbuf = NULL; vpu_find_buf_by_sequence() local 406 struct vb2_v4l2_buffer *vbuf = NULL; vpu_find_buf_by_idx() local 502 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); vpu_vb2_buf_init() local 510 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); vpu_vb2_buf_out_validate() local 520 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); vpu_vb2_buf_prepare() local 538 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); vpu_vb2_buf_finish() local 613 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); vpu_vb2_buf_queue() local [all...] |
H A D | vdec.c | 715 struct vb2_v4l2_buffer *vbuf; in vdec_frame_decoded() local 729 vbuf = &vpu_buf->m2m_buf.vb; in vdec_frame_decoded() 732 v4l2_m2m_buf_copy_metadata(src_buf, vbuf, true); in vdec_frame_decoded() 741 if (vpu_get_buffer_state(vbuf) == VPU_BUF_STATE_DECODED) in vdec_frame_decoded() 743 vpu_set_buffer_state(vbuf, VPU_BUF_STATE_DECODED); in vdec_frame_decoded() 749 vpu_set_buffer_state(vbuf, VPU_BUF_STATE_READY); in vdec_frame_decoded() 750 for (int i = 0; i < vbuf->vb2_buf.num_planes; i++) in vdec_frame_decoded() 751 vb2_set_plane_payload(&vbuf->vb2_buf, in vdec_frame_decoded() 753 vbuf->field = cur_fmt->field; in vdec_frame_decoded() 754 vbuf in vdec_frame_decoded() 786 struct vb2_v4l2_buffer *vbuf; vdec_buf_done() local 1038 vdec_response_frame(struct vpu_inst *inst, struct vb2_v4l2_buffer *vbuf) vdec_response_frame() argument 1138 vdec_recycle_buffer(struct vpu_inst *inst, struct vb2_v4l2_buffer *vbuf) vdec_recycle_buffer() argument 1153 struct vb2_v4l2_buffer *vbuf; vdec_clear_slots() local 1269 struct vb2_v4l2_buffer *vbuf; vdec_evnet_rel_fs() local 1351 struct vb2_v4l2_buffer *vbuf; vdec_process_output() local 1393 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); vdec_process_capture() local [all...] |
H 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); 50 static inline int vpu_vb_is_codecconfig(struct vb2_v4l2_buffer *vbuf) in vpu_vb_is_codecconfig() argument 53 return (vbuf->flags & V4L2_BUF_FLAG_CODECCONFIG) ? 1 : 0; in vpu_vb_is_codecconfig()
|
/kernel/linux/linux-5.10/drivers/staging/media/meson/vdec/ |
H A D | vdec_helpers.c | 274 struct vb2_v4l2_buffer *vbuf, in dst_buf_done() 283 vbuf->vb2_buf.planes[0].bytesused = output_size; in dst_buf_done() 284 vbuf->vb2_buf.planes[1].bytesused = output_size / 2; in dst_buf_done() 287 vbuf->vb2_buf.planes[0].bytesused = output_size; in dst_buf_done() 288 vbuf->vb2_buf.planes[1].bytesused = output_size / 4; in dst_buf_done() 289 vbuf->vb2_buf.planes[2].bytesused = output_size / 4; in dst_buf_done() 293 vbuf->vb2_buf.timestamp = timestamp; in dst_buf_done() 294 vbuf->sequence = sess->sequence_cap++; in dst_buf_done() 295 vbuf->flags = flags; in dst_buf_done() 296 vbuf in dst_buf_done() 273 dst_buf_done(struct amvdec_session *sess, struct vb2_v4l2_buffer *vbuf, u32 field, u64 timestamp, struct v4l2_timecode timecode, u32 flags) dst_buf_done() argument 323 amvdec_dst_buf_done(struct amvdec_session *sess, struct vb2_v4l2_buffer *vbuf, u32 field) amvdec_dst_buf_done() argument 357 amvdec_dst_buf_done_offset(struct amvdec_session *sess, struct vb2_v4l2_buffer *vbuf, u32 offset, u32 field, bool allow_drop) amvdec_dst_buf_done_offset() argument 409 struct vb2_v4l2_buffer *vbuf; amvdec_dst_buf_done_idx() local [all...] |
H A D | esparser.c | 292 esparser_queue(struct amvdec_session *sess, struct vb2_v4l2_buffer *vbuf) in esparser_queue() argument 295 struct vb2_buffer *vb = &vbuf->vb2_buf; in esparser_queue() 327 v4l2_m2m_src_buf_remove_by_buf(sess->m2m_ctx, vbuf); in esparser_queue() 331 ret = amvdec_add_ts(sess, vb->timestamp, vbuf->timecode, offset, vbuf->flags); in esparser_queue() 333 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR); in esparser_queue() 338 vb->timestamp, payload_size, offset, vbuf->flags); in esparser_queue() 340 vbuf->flags = 0; in esparser_queue() 341 vbuf->field = V4L2_FIELD_NONE; in esparser_queue() 342 vbuf in esparser_queue() [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/meson/vdec/ |
H A D | vdec_helpers.c | 274 struct vb2_v4l2_buffer *vbuf, in dst_buf_done() 283 vb2_set_plane_payload(&vbuf->vb2_buf, 0, output_size); in dst_buf_done() 284 vb2_set_plane_payload(&vbuf->vb2_buf, 1, output_size / 2); in dst_buf_done() 287 vb2_set_plane_payload(&vbuf->vb2_buf, 0, output_size); in dst_buf_done() 288 vb2_set_plane_payload(&vbuf->vb2_buf, 1, output_size / 4); in dst_buf_done() 289 vb2_set_plane_payload(&vbuf->vb2_buf, 2, output_size / 4); in dst_buf_done() 293 vbuf->vb2_buf.timestamp = timestamp; in dst_buf_done() 294 vbuf->sequence = sess->sequence_cap++; in dst_buf_done() 295 vbuf->flags = flags; in dst_buf_done() 296 vbuf in dst_buf_done() 273 dst_buf_done(struct amvdec_session *sess, struct vb2_v4l2_buffer *vbuf, u32 field, u64 timestamp, struct v4l2_timecode timecode, u32 flags) dst_buf_done() argument 323 amvdec_dst_buf_done(struct amvdec_session *sess, struct vb2_v4l2_buffer *vbuf, u32 field) amvdec_dst_buf_done() argument 357 amvdec_dst_buf_done_offset(struct amvdec_session *sess, struct vb2_v4l2_buffer *vbuf, u32 offset, u32 field, bool allow_drop) amvdec_dst_buf_done_offset() argument 409 struct vb2_v4l2_buffer *vbuf; amvdec_dst_buf_done_idx() local [all...] |
H A D | esparser.c | 291 esparser_queue(struct amvdec_session *sess, struct vb2_v4l2_buffer *vbuf) in esparser_queue() argument 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 in esparser_queue() [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/sti/delta/ |
H A D | delta-v4l2.c | 28 #define to_au(__vbuf) container_of(__vbuf, struct delta_au, vbuf) 29 #define to_frame(__vbuf) container_of(__vbuf, struct delta_frame, vbuf) 69 ctx->name, au->vbuf.vb2_buf.index, au->dts, au->size, in dump_au() 73 ctx->name, au->vbuf.vb2_buf.index, au->dts, au->size, in dump_au() 92 struct vb2_v4l2_buffer *vbuf; in delta_au_done() local 94 vbuf = &au->vbuf; in delta_au_done() 95 vbuf->sequence = ctx->au_num++; in delta_au_done() 96 v4l2_m2m_buf_done(vbuf, err ? VB2_BUF_STATE_ERROR : VB2_BUF_STATE_DONE); in delta_au_done() 102 struct vb2_v4l2_buffer *vbuf; in delta_frame_done() local 119 struct vb2_v4l2_buffer *vbuf; requeue_free_frames() local 146 struct vb2_v4l2_buffer *vbuf = &frame->vbuf; delta_recycle() local 931 struct vb2_v4l2_buffer *vbuf; delta_run_work() local 1122 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); delta_vb2_au_prepare() local 1245 struct vb2_v4l2_buffer *vbuf; delta_get_free_frame() local 1301 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); delta_vb2_au_queue() local 1314 struct vb2_v4l2_buffer *vbuf = NULL; delta_vb2_au_start_streaming() local 1403 struct vb2_v4l2_buffer *vbuf; delta_vb2_au_stop_streaming() local 1468 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); delta_vb2_frame_prepare() local 1499 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); delta_vb2_frame_finish() local 1513 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); delta_vb2_frame_queue() local 1533 struct vb2_v4l2_buffer *vbuf; delta_vb2_frame_stop_streaming() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/st/sti/delta/ |
H A D | delta-v4l2.c | 28 #define to_au(__vbuf) container_of(__vbuf, struct delta_au, vbuf) 29 #define to_frame(__vbuf) container_of(__vbuf, struct delta_frame, vbuf) 69 ctx->name, au->vbuf.vb2_buf.index, au->dts, au->size, in dump_au() 73 ctx->name, au->vbuf.vb2_buf.index, au->dts, au->size, in dump_au() 92 struct vb2_v4l2_buffer *vbuf; in delta_au_done() local 94 vbuf = &au->vbuf; in delta_au_done() 95 vbuf->sequence = ctx->au_num++; in delta_au_done() 96 v4l2_m2m_buf_done(vbuf, err ? VB2_BUF_STATE_ERROR : VB2_BUF_STATE_DONE); in delta_au_done() 102 struct vb2_v4l2_buffer *vbuf; in delta_frame_done() local 119 struct vb2_v4l2_buffer *vbuf; requeue_free_frames() local 146 struct vb2_v4l2_buffer *vbuf = &frame->vbuf; delta_recycle() local 931 struct vb2_v4l2_buffer *vbuf; delta_run_work() local 1119 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); delta_vb2_au_prepare() local 1242 struct vb2_v4l2_buffer *vbuf; delta_get_free_frame() local 1298 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); delta_vb2_au_queue() local 1311 struct vb2_v4l2_buffer *vbuf = NULL; delta_vb2_au_start_streaming() local 1400 struct vb2_v4l2_buffer *vbuf; delta_vb2_au_stop_streaming() local 1465 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); delta_vb2_frame_prepare() local 1496 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); delta_vb2_frame_finish() local 1510 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); delta_vb2_frame_queue() local 1530 struct vb2_v4l2_buffer *vbuf; delta_vb2_frame_stop_streaming() local [all...] |
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | v4l2.h | 204 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); 208 __entry->flags = vbuf->flags; 209 __entry->field = vbuf->field; 211 __entry->timecode_type = vbuf->timecode.type; 212 __entry->timecode_flags = vbuf->timecode.flags; 213 __entry->timecode_frames = vbuf->timecode.frames; 214 __entry->timecode_seconds = vbuf->timecode.seconds; 215 __entry->timecode_minutes = vbuf->timecode.minutes; 216 __entry->timecode_hours = vbuf->timecode.hours; 217 __entry->timecode_userbits0 = vbuf [all...] |
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | v4l2.h | 204 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); 208 __entry->flags = vbuf->flags; 209 __entry->field = vbuf->field; 211 __entry->timecode_type = vbuf->timecode.type; 212 __entry->timecode_flags = vbuf->timecode.flags; 213 __entry->timecode_frames = vbuf->timecode.frames; 214 __entry->timecode_seconds = vbuf->timecode.seconds; 215 __entry->timecode_minutes = vbuf->timecode.minutes; 216 __entry->timecode_hours = vbuf->timecode.hours; 217 __entry->timecode_userbits0 = vbuf [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/rockchip/rga/ |
H A D | rga-buf.c | 53 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in rga_buf_queue() local 56 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in rga_buf_queue() 63 struct vb2_v4l2_buffer *vbuf; in rga_buf_return_buffers() local 67 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in rga_buf_return_buffers() 69 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in rga_buf_return_buffers() 70 if (!vbuf) in rga_buf_return_buffers() 72 v4l2_m2m_buf_done(vbuf, state); in rga_buf_return_buffers()
|
/kernel/linux/linux-6.6/drivers/media/platform/rockchip/rga/ |
H A D | rga-buf.c | 53 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in rga_buf_queue() local 56 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in rga_buf_queue() 63 struct vb2_v4l2_buffer *vbuf; in rga_buf_return_buffers() local 67 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in rga_buf_return_buffers() 69 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in rga_buf_return_buffers() 70 if (!vbuf) in rga_buf_return_buffers() 72 v4l2_m2m_buf_done(vbuf, state); in rga_buf_return_buffers()
|
/kernel/linux/linux-5.10/drivers/media/common/videobuf2/ |
H A D | videobuf2-v4l2.c | 136 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __init_vb2_v4l2_buffer() local 138 vbuf->request_fd = -1; in __init_vb2_v4l2_buffer() 144 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __copy_timestamp() local 154 vbuf->flags |= b->flags & V4L2_BUF_FLAG_TIMECODE; in __copy_timestamp() 156 vbuf->timecode = b->timecode; in __copy_timestamp() 179 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vb2_fill_vb2_v4l2_buffer() local 180 struct vb2_plane *planes = vbuf->planes; in vb2_fill_vb2_v4l2_buffer() 202 vbuf->sequence = 0; in vb2_fill_vb2_v4l2_buffer() 203 vbuf->request_fd = -1; in vb2_fill_vb2_v4l2_buffer() 204 vbuf in vb2_fill_vb2_v4l2_buffer() 397 struct vb2_v4l2_buffer *vbuf; vb2_queue_or_prepare_buf() local 525 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); __fill_v4l2_buffer() local 633 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); __fill_vb2_buffer() local [all...] |
/kernel/linux/linux-6.6/drivers/media/common/videobuf2/ |
H A D | videobuf2-v4l2.c | 136 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __init_vb2_v4l2_buffer() local 138 vbuf->request_fd = -1; in __init_vb2_v4l2_buffer() 144 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in __copy_timestamp() local 154 vbuf->flags |= b->flags & V4L2_BUF_FLAG_TIMECODE; in __copy_timestamp() 156 vbuf->timecode = b->timecode; in __copy_timestamp() 179 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vb2_fill_vb2_v4l2_buffer() local 180 struct vb2_plane *planes = vbuf->planes; in vb2_fill_vb2_v4l2_buffer() 202 vbuf->sequence = 0; in vb2_fill_vb2_v4l2_buffer() 203 vbuf->request_fd = -1; in vb2_fill_vb2_v4l2_buffer() 204 vbuf in vb2_fill_vb2_v4l2_buffer() 372 struct vb2_v4l2_buffer *vbuf; vb2_queue_or_prepare_buf() local 495 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); __fill_v4l2_buffer() local 603 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); __fill_vb2_buffer() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/unisys/visornic/ |
H A D | visornic_main.c | 1432 char *vbuf; in info_debugfs_read() local 1436 vbuf = kzalloc(len, GFP_KERNEL); in info_debugfs_read() 1437 if (!vbuf) in info_debugfs_read() 1449 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() 1454 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() 1456 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() 1459 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() 1462 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() 1465 str_pos += scnprintf(vbuf + str_pos, len - str_pos, in info_debugfs_read() 1468 str_pos += scnprintf(vbuf in info_debugfs_read() [all...] |
/kernel/linux/linux-5.10/include/media/ |
H A D | v4l2-mem2mem.h | 289 * @vbuf: pointer to struct &v4l2_buffer 293 struct vb2_v4l2_buffer *vbuf) in v4l2_m2m_is_last_draining_src_buf() 295 return m2m_ctx->is_draining && vbuf == m2m_ctx->last_src_buf; in v4l2_m2m_is_last_draining_src_buf() 302 * @vbuf: pointer to struct &v4l2_buffer 305 struct vb2_v4l2_buffer *vbuf); 575 * @vbuf: pointer to struct &vb2_v4l2_buffer 580 struct vb2_v4l2_buffer *vbuf); 782 * @vbuf: the buffer to be removed 785 struct vb2_v4l2_buffer *vbuf); 792 * @vbuf 292 v4l2_m2m_is_last_draining_src_buf(struct v4l2_m2m_ctx *m2m_ctx, struct vb2_v4l2_buffer *vbuf) v4l2_m2m_is_last_draining_src_buf() argument 794 v4l2_m2m_src_buf_remove_by_buf(struct v4l2_m2m_ctx *m2m_ctx, struct vb2_v4l2_buffer *vbuf) v4l2_m2m_src_buf_remove_by_buf() argument 807 v4l2_m2m_dst_buf_remove_by_buf(struct v4l2_m2m_ctx *m2m_ctx, struct vb2_v4l2_buffer *vbuf) v4l2_m2m_dst_buf_remove_by_buf() argument [all...] |
/kernel/linux/linux-6.6/include/media/ |
H A D | v4l2-mem2mem.h | 289 * @vbuf: pointer to struct &v4l2_buffer 293 struct vb2_v4l2_buffer *vbuf) in v4l2_m2m_is_last_draining_src_buf() 295 return m2m_ctx->is_draining && vbuf == m2m_ctx->last_src_buf; in v4l2_m2m_is_last_draining_src_buf() 302 * @vbuf: pointer to struct &v4l2_buffer 305 struct vb2_v4l2_buffer *vbuf); 580 * @vbuf: pointer to struct &vb2_v4l2_buffer 585 struct vb2_v4l2_buffer *vbuf); 787 * @vbuf: the buffer to be removed 790 struct vb2_v4l2_buffer *vbuf); 797 * @vbuf 292 v4l2_m2m_is_last_draining_src_buf(struct v4l2_m2m_ctx *m2m_ctx, struct vb2_v4l2_buffer *vbuf) v4l2_m2m_is_last_draining_src_buf() argument 799 v4l2_m2m_src_buf_remove_by_buf(struct v4l2_m2m_ctx *m2m_ctx, struct vb2_v4l2_buffer *vbuf) v4l2_m2m_src_buf_remove_by_buf() argument 812 v4l2_m2m_dst_buf_remove_by_buf(struct v4l2_m2m_ctx *m2m_ctx, struct vb2_v4l2_buffer *vbuf) v4l2_m2m_dst_buf_remove_by_buf() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/pci/bt8xx/ |
H 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() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/qcom/venus/ |
H A D | helpers.c | 435 struct vb2_v4l2_buffer *vbuf) in return_buf_error() 439 if (vbuf->vb2_buf.type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) in return_buf_error() 440 v4l2_m2m_src_buf_remove_by_buf(m2m_ctx, vbuf); in return_buf_error() 442 v4l2_m2m_dst_buf_remove_by_buf(m2m_ctx, vbuf); in return_buf_error() 444 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR); in return_buf_error() 448 put_ts_metadata(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) in put_ts_metadata() argument 450 struct vb2_buffer *vb = &vbuf->vb2_buf; in put_ts_metadata() 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() 434 return_buf_error(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) return_buf_error() argument 476 venus_helper_get_ts_metadata(struct venus_inst *inst, u64 timestamp_us, struct vb2_v4l2_buffer *vbuf) venus_helper_get_ts_metadata() argument 499 session_process_buf(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) session_process_buf() argument 1393 venus_helper_acquire_buf_ref(struct vb2_v4l2_buffer *vbuf) venus_helper_acquire_buf_ref() argument 1401 is_buf_refed(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) is_buf_refed() argument 1426 venus_helper_change_dpb_owner(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf, unsigned int type, unsigned int buf_type, u32 tag) venus_helper_change_dpb_owner() argument 1447 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); venus_helper_vb2_buf_init() local 1464 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); venus_helper_vb2_buf_prepare() local 1489 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); cache_payload() local 1498 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); venus_helper_vb2_buf_queue() local [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/ |
H A D | helpers.c | 372 struct vb2_v4l2_buffer *vbuf) in return_buf_error() 376 if (vbuf->vb2_buf.type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) in return_buf_error() 377 v4l2_m2m_src_buf_remove_by_buf(m2m_ctx, vbuf); in return_buf_error() 379 v4l2_m2m_dst_buf_remove_by_buf(m2m_ctx, vbuf); in return_buf_error() 381 v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR); in return_buf_error() 385 put_ts_metadata(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) in put_ts_metadata() argument 387 struct vb2_buffer *vb = &vbuf->vb2_buf; in put_ts_metadata() 407 inst->tss[slot].flags = vbuf->flags; in put_ts_metadata() 408 inst->tss[slot].tc = vbuf->timecode; in put_ts_metadata() 414 struct vb2_v4l2_buffer *vbuf) in venus_helper_get_ts_metadata() 371 return_buf_error(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) return_buf_error() argument 413 venus_helper_get_ts_metadata(struct venus_inst *inst, u64 timestamp_us, struct vb2_v4l2_buffer *vbuf) venus_helper_get_ts_metadata() argument 436 session_process_buf(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) session_process_buf() argument 1249 venus_helper_acquire_buf_ref(struct vb2_v4l2_buffer *vbuf) venus_helper_acquire_buf_ref() argument 1257 is_buf_refed(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) is_buf_refed() argument 1285 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); venus_helper_vb2_buf_init() local 1307 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); venus_helper_vb2_buf_prepare() local 1332 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); cache_payload() local 1341 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); venus_helper_vb2_buf_queue() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/media/sunxi/cedrus/ |
H A D | cedrus_video.c | 413 struct vb2_v4l2_buffer *vbuf; in cedrus_queue_cleanup() local 417 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in cedrus_queue_cleanup() 419 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in cedrus_queue_cleanup() 421 if (!vbuf) in cedrus_queue_cleanup() 424 v4l2_ctrl_request_complete(vbuf->vb2_buf.req_obj.req, in cedrus_queue_cleanup() 426 v4l2_m2m_buf_done(vbuf, state); in cedrus_queue_cleanup() 432 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in cedrus_buf_out_validate() local 434 vbuf->field = V4L2_FIELD_NONE; in cedrus_buf_out_validate() 527 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in cedrus_buf_queue() local 530 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in cedrus_buf_queue() [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/sunxi/cedrus/ |
H A D | cedrus_video.c | 457 struct vb2_v4l2_buffer *vbuf; in cedrus_queue_cleanup() local 461 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in cedrus_queue_cleanup() 463 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in cedrus_queue_cleanup() 465 if (!vbuf) in cedrus_queue_cleanup() 468 v4l2_ctrl_request_complete(vbuf->vb2_buf.req_obj.req, in cedrus_queue_cleanup() 470 v4l2_m2m_buf_done(vbuf, state); in cedrus_queue_cleanup() 476 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in cedrus_buf_out_validate() local 478 vbuf->field = V4L2_FIELD_NONE; in cedrus_buf_out_validate() 552 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in cedrus_buf_queue() local 555 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in cedrus_buf_queue() [all...] |