Lines Matching refs:fh

154 	struct v4l2_fh		fh;  member
181 return container_of(file->private_data, struct vim2m_ctx, fh); in file2ctx()
350 if (v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) < ctx->translen in job_ready()
351 || v4l2_m2m_num_dst_bufs_ready(ctx->fh.m2m_ctx) < ctx->translen) { in job_ready()
379 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in device_run()
380 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in device_run()
402 src_vb = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in device_isr()
403 dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in device_isr()
416 v4l2_m2m_job_finish(vim2m_dev->m2m_dev, curr_ctx->fh.m2m_ctx); in device_isr()
483 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_g_fmt()
584 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in vidioc_s_fmt()
784 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in vim2m_buf_queue()
804 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in vim2m_stop_streaming()
806 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in vim2m_stop_streaming()
895 v4l2_fh_init(&ctx->fh, video_devdata(file)); in vim2m_open()
896 file->private_data = &ctx->fh; in vim2m_open()
909 ctx->fh.ctrl_handler = hdl; in vim2m_open()
922 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(dev->m2m_dev, ctx, &queue_init); in vim2m_open()
924 if (IS_ERR(ctx->fh.m2m_ctx)) { in vim2m_open()
925 rc = PTR_ERR(ctx->fh.m2m_ctx); in vim2m_open()
932 v4l2_fh_add(&ctx->fh); in vim2m_open()
936 ctx, ctx->fh.m2m_ctx); in vim2m_open()
950 v4l2_fh_del(&ctx->fh); in vim2m_release()
951 v4l2_fh_exit(&ctx->fh); in vim2m_release()
954 v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); in vim2m_release()