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()
225 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in fimc_buf_queue()
241 static int fimc_m2m_querycap(struct file *file, void *fh, in fimc_m2m_querycap() argument
274 static int fimc_m2m_g_fmt_mplane(struct file *file, void *fh, in fimc_m2m_g_fmt_mplane() argument
277 struct fimc_ctx *ctx = fh_to_ctx(fh); in fimc_m2m_g_fmt_mplane()
333 static int fimc_m2m_try_fmt_mplane(struct file *file, void *fh, in fimc_m2m_try_fmt_mplane() argument
336 struct fimc_ctx *ctx = fh_to_ctx(fh); in fimc_m2m_try_fmt_mplane()
361 static int fimc_m2m_s_fmt_mplane(struct file *file, void *fh, in fimc_m2m_s_fmt_mplane() argument
364 struct fimc_ctx *ctx = fh_to_ctx(fh); in fimc_m2m_s_fmt_mplane()
375 vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); in fimc_m2m_s_fmt_mplane()
400 static int fimc_m2m_cropcap(struct file *file, void *fh, in fimc_m2m_cropcap() argument
403 struct fimc_ctx *ctx = fh_to_ctx(fh); in fimc_m2m_cropcap()
419 static int fimc_m2m_g_crop(struct file *file, void *fh, struct v4l2_crop *cr) in fimc_m2m_g_crop() argument
421 struct fimc_ctx *ctx = fh_to_ctx(fh); in fimc_m2m_g_crop()
488 static int fimc_m2m_s_crop(struct file *file, void *fh, const struct v4l2_crop *crop) in fimc_m2m_s_crop() argument
490 struct fimc_ctx *ctx = fh_to_ctx(fh); in fimc_m2m_s_crop()
627 v4l2_fh_init(&ctx->fh, &fimc->m2m.vfd); in fimc_m2m_open()
639 ctx->fh.ctrl_handler = &ctx->ctrls.handler; in fimc_m2m_open()
640 file->private_data = &ctx->fh; in fimc_m2m_open()
641 v4l2_fh_add(&ctx->fh); in fimc_m2m_open()
650 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(fimc->m2m.m2m_dev, ctx, queue_init); in fimc_m2m_open()
651 if (IS_ERR(ctx->fh.m2m_ctx)) { in fimc_m2m_open()
652 ret = PTR_ERR(ctx->fh.m2m_ctx); in fimc_m2m_open()
667 v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); in fimc_m2m_open()
671 v4l2_fh_del(&ctx->fh); in fimc_m2m_open()
672 v4l2_fh_exit(&ctx->fh); in fimc_m2m_open()
689 v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); in fimc_m2m_release()
691 v4l2_fh_del(&ctx->fh); in fimc_m2m_release()
692 v4l2_fh_exit(&ctx->fh); in fimc_m2m_release()