Lines Matching refs:fh
47 if (!ctx || !ctx->fh.m2m_ctx) in fimc_m2m_job_finish()
50 src_vb = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in fimc_m2m_job_finish()
51 dst_vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in fimc_m2m_job_finish()
57 ctx->fh.m2m_ctx); in fimc_m2m_job_finish()
125 src_vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in fimc_device_run()
130 dst_vb = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in fimc_device_run()
224 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vb); in fimc_buf_queue()
240 static int fimc_m2m_querycap(struct file *file, void *fh, in fimc_m2m_querycap() argument
273 static int fimc_m2m_g_fmt_mplane(struct file *file, void *fh, in fimc_m2m_g_fmt_mplane() argument
276 struct fimc_ctx *ctx = fh_to_ctx(fh); in fimc_m2m_g_fmt_mplane()
332 static int fimc_m2m_try_fmt_mplane(struct file *file, void *fh, in fimc_m2m_try_fmt_mplane() argument
335 struct fimc_ctx *ctx = fh_to_ctx(fh); in fimc_m2m_try_fmt_mplane()
360 static int fimc_m2m_s_fmt_mplane(struct file *file, void *fh, in fimc_m2m_s_fmt_mplane() argument
363 struct fimc_ctx *ctx = fh_to_ctx(fh); in fimc_m2m_s_fmt_mplane()
374 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in fimc_m2m_s_fmt_mplane()
399 static int fimc_m2m_cropcap(struct file *file, void *fh, in fimc_m2m_cropcap() argument
402 struct fimc_ctx *ctx = fh_to_ctx(fh); in fimc_m2m_cropcap()
418 static int fimc_m2m_g_crop(struct file *file, void *fh, struct v4l2_crop *cr) in fimc_m2m_g_crop() argument
420 struct fimc_ctx *ctx = fh_to_ctx(fh); in fimc_m2m_g_crop()
487 static int fimc_m2m_s_crop(struct file *file, void *fh, const struct v4l2_crop *crop) in fimc_m2m_s_crop() argument
489 struct fimc_ctx *ctx = fh_to_ctx(fh); in fimc_m2m_s_crop()
626 v4l2_fh_init(&ctx->fh, &fimc->m2m.vfd); in fimc_m2m_open()
638 ctx->fh.ctrl_handler = &ctx->ctrls.handler; in fimc_m2m_open()
639 file->private_data = &ctx->fh; in fimc_m2m_open()
640 v4l2_fh_add(&ctx->fh); in fimc_m2m_open()
649 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(fimc->m2m.m2m_dev, ctx, queue_init); in fimc_m2m_open()
650 if (IS_ERR(ctx->fh.m2m_ctx)) { in fimc_m2m_open()
651 ret = PTR_ERR(ctx->fh.m2m_ctx); in fimc_m2m_open()
666 v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); in fimc_m2m_open()
670 v4l2_fh_del(&ctx->fh); in fimc_m2m_open()
671 v4l2_fh_exit(&ctx->fh); in fimc_m2m_open()
688 v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); in fimc_m2m_release()
690 v4l2_fh_del(&ctx->fh); in fimc_m2m_release()
691 v4l2_fh_exit(&ctx->fh); in fimc_m2m_release()