Lines Matching refs:m2m_ctx

70 	if (inst->fh.m2m_ctx) {  in vpu_v4l2_set_error()
71 vb2_queue_error(v4l2_m2m_get_src_vq(inst->fh.m2m_ctx)); in vpu_v4l2_set_error()
72 vb2_queue_error(v4l2_m2m_get_dst_vq(inst->fh.m2m_ctx)); in vpu_v4l2_set_error()
107 if (!inst || !inst->fh.m2m_ctx) in vpu_set_last_buffer_dequeued()
110 q = v4l2_m2m_get_dst_vq(inst->fh.m2m_ctx); in vpu_set_last_buffer_dequeued()
127 if (!inst->fh.m2m_ctx) in vpu_is_source_empty()
129 v4l2_m2m_for_each_src_buf(inst->fh.m2m_ctx, buf) { in vpu_is_source_empty()
199 if (!inst || !inst->fh.m2m_ctx) in vpu_process_output_buffer()
205 v4l2_m2m_for_each_src_buf(inst->fh.m2m_ctx, buf) { in vpu_process_output_buffer()
225 if (!inst || !inst->fh.m2m_ctx) in vpu_process_capture_buffer()
231 v4l2_m2m_for_each_dst_buf(inst->fh.m2m_ctx, buf) { in vpu_process_capture_buffer()
247 if (!inst->fh.m2m_ctx) in vpu_next_src_buf()
250 src_buf = v4l2_m2m_next_src_buf(inst->fh.m2m_ctx); in vpu_next_src_buf()
255 v4l2_m2m_src_buf_remove(inst->fh.m2m_ctx); in vpu_next_src_buf()
259 src_buf = v4l2_m2m_next_src_buf(inst->fh.m2m_ctx); in vpu_next_src_buf()
273 if (count <= 0 || !inst->fh.m2m_ctx) in vpu_skip_frame()
277 src_buf = v4l2_m2m_src_buf_remove(inst->fh.m2m_ctx); in vpu_skip_frame()
295 if (!inst || !inst->fh.m2m_ctx) in vpu_find_buf_by_sequence()
299 v4l2_m2m_for_each_src_buf(inst->fh.m2m_ctx, buf) { in vpu_find_buf_by_sequence()
306 v4l2_m2m_for_each_dst_buf(inst->fh.m2m_ctx, buf) { in vpu_find_buf_by_sequence()
322 if (!inst || !inst->fh.m2m_ctx) in vpu_find_buf_by_idx()
326 v4l2_m2m_for_each_src_buf(inst->fh.m2m_ctx, buf) { in vpu_find_buf_by_idx()
333 v4l2_m2m_for_each_dst_buf(inst->fh.m2m_ctx, buf) { in vpu_find_buf_by_idx()
348 if (!inst || !inst->fh.m2m_ctx) in vpu_get_num_buffers()
352 q = v4l2_m2m_get_src_vq(inst->fh.m2m_ctx); in vpu_get_num_buffers()
354 q = v4l2_m2m_get_dst_vq(inst->fh.m2m_ctx); in vpu_get_num_buffers()
366 struct v4l2_m2m_ctx *m2m_ctx = inst->fh.m2m_ctx; in vpu_m2m_job_abort() local
368 v4l2_m2m_job_finish(m2m_ctx->m2m_dev, m2m_ctx); in vpu_m2m_job_abort()
463 while ((buf = v4l2_m2m_src_buf_remove(inst->fh.m2m_ctx))) { in vpu_vb2_buffers_return()
468 while ((buf = v4l2_m2m_dst_buf_remove(inst->fh.m2m_ctx))) { in vpu_vb2_buffers_return()
528 v4l2_m2m_buf_queue(inst->fh.m2m_ctx, vbuf); in vpu_vb2_buf_queue()
648 inst->fh.m2m_ctx = v4l2_m2m_ctx_init(func->m2m_dev, inst, vpu_m2m_queue_init); in vpu_v4l2_open()
649 if (IS_ERR(inst->fh.m2m_ctx)) { in vpu_v4l2_open()
651 ret = PTR_ERR(inst->fh.m2m_ctx); in vpu_v4l2_open()
686 if (inst->fh.m2m_ctx) { in vpu_v4l2_close()
687 v4l2_m2m_ctx_release(inst->fh.m2m_ctx); in vpu_v4l2_close()
688 inst->fh.m2m_ctx = NULL; in vpu_v4l2_close()