Lines Matching refs:fh
49 static inline struct tegra_ctx *fh_to_tegra_ctx(struct v4l2_fh *fh)
51 return container_of(fh, struct tegra_ctx, fh);
286 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf);
309 vbuf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx);
311 vbuf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx);
482 v4l2_m2m_buf_done_and_job_finish(ctx->vde->m2m, ctx->fh.m2m_ctx,
581 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx,
662 struct v4l2_m2m_ctx *m2m_ctx = ctx->fh.m2m_ctx;
790 ctx->fh.ctrl_handler = &ctx->hdl;
802 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(ctx->vde->m2m,
804 if (IS_ERR(ctx->fh.m2m_ctx))
805 return PTR_ERR(ctx->fh.m2m_ctx);
822 v4l2_fh_init(&ctx->fh, video_devdata(file));
837 file->private_data = &ctx->fh;
838 v4l2_fh_add(&ctx->fh);
858 struct v4l2_fh *fh = file->private_data;
859 struct tegra_ctx *ctx = fh_to_tegra_ctx(fh);
862 v4l2_fh_del(fh);
863 v4l2_m2m_ctx_release(fh->m2m_ctx);
865 v4l2_fh_exit(fh);
885 struct vb2_v4l2_buffer *src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx);