Lines Matching defs:fh
351 static inline struct mtk_mdp_ctx *fh_to_ctx(struct v4l2_fh *fh)
353 return container_of(fh, struct mtk_mdp_ctx, fh);
591 static int mtk_mdp_m2m_querycap(struct file *file, void *fh,
594 struct mtk_mdp_ctx *ctx = fh_to_ctx(fh);
629 static int mtk_mdp_m2m_g_fmt_mplane(struct file *file, void *fh,
632 struct mtk_mdp_ctx *ctx = fh_to_ctx(fh);
668 static int mtk_mdp_m2m_try_fmt_mplane(struct file *file, void *fh,
671 struct mtk_mdp_ctx *ctx = fh_to_ctx(fh);
678 static int mtk_mdp_m2m_s_fmt_mplane(struct file *file, void *fh,
681 struct mtk_mdp_ctx *ctx = fh_to_ctx(fh);
724 static int mtk_mdp_m2m_reqbufs(struct file *file, void *fh,
727 struct mtk_mdp_ctx *ctx = fh_to_ctx(fh);
732 static int mtk_mdp_m2m_streamon(struct file *file, void *fh,
735 struct mtk_mdp_ctx *ctx = fh_to_ctx(fh);
770 static int mtk_mdp_m2m_g_selection(struct file *file, void *fh,
774 struct mtk_mdp_ctx *ctx = fh_to_ctx(fh);
837 static int mtk_mdp_m2m_s_selection(struct file *file, void *fh,
841 struct mtk_mdp_ctx *ctx = fh_to_ctx(fh);
1069 v4l2_fh_init(&ctx->fh, vfd);
1070 file->private_data = &ctx->fh;
1076 ctx->fh.ctrl_handler = &ctx->ctrl_handler;
1077 v4l2_fh_add(&ctx->fh);
1091 ctx->fh.m2m_ctx = ctx->m2m_ctx;
1117 mtk_mdp_m2m_s_fmt_mplane(file, &ctx->fh, &default_format);
1119 mtk_mdp_m2m_s_fmt_mplane(file, &ctx->fh, &default_format);
1131 v4l2_fh_del(&ctx->fh);
1132 v4l2_fh_exit(&ctx->fh);
1149 v4l2_fh_del(&ctx->fh);
1150 v4l2_fh_exit(&ctx->fh);