Lines Matching refs:fh

289 	struct v4l2_fh		fh;  member
497 static struct jpu_ctx *fh_to_ctx(struct v4l2_fh *fh) in fh_to_ctx() argument
499 return container_of(fh, struct jpu_ctx, fh); in fh_to_ctx()
849 if (!v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type)) in jpu_try_fmt()
859 struct v4l2_m2m_ctx *m2m_ctx = ctx->fh.m2m_ctx; in jpu_s_fmt()
890 if (!v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type)) in jpu_g_fmt()
952 return v4l2_m2m_streamon(file, ctx->fh.m2m_ctx, type); in jpu_streamon()
1122 if (ctx->fh.m2m_ctx) in jpu_buf_queue()
1123 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vbuf); in jpu_buf_queue()
1175 vb = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in jpu_stop_streaming()
1177 vb = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in jpu_stop_streaming()
1246 v4l2_fh_init(&ctx->fh, vfd); in jpu_open()
1247 ctx->fh.ctrl_handler = &ctx->ctrl_handler; in jpu_open()
1248 file->private_data = &ctx->fh; in jpu_open()
1249 v4l2_fh_add(&ctx->fh); in jpu_open()
1259 ctx->fh.m2m_ctx = v4l2_m2m_ctx_init(jpu->m2m_dev, ctx, jpu_queue_init); in jpu_open()
1260 if (IS_ERR(ctx->fh.m2m_ctx)) { in jpu_open()
1261 ret = PTR_ERR(ctx->fh.m2m_ctx); in jpu_open()
1292 v4l2_fh_del(&ctx->fh); in jpu_open()
1293 v4l2_fh_exit(&ctx->fh); in jpu_open()
1308 v4l2_m2m_ctx_release(ctx->fh.m2m_ctx); in jpu_release()
1310 v4l2_fh_del(&ctx->fh); in jpu_release()
1311 v4l2_fh_exit(&ctx->fh); in jpu_release()
1339 src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx); in jpu_cleanup()
1340 dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx); in jpu_cleanup()
1351 v4l2_m2m_job_finish(ctx->jpu->m2m_dev, ctx->fh.m2m_ctx); in jpu_cleanup()
1375 src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); in jpu_device_run()
1376 dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); in jpu_device_run()
1550 src_buf = v4l2_m2m_src_buf_remove(curr_ctx->fh.m2m_ctx); in jpu_irq_handler()
1551 dst_buf = v4l2_m2m_dst_buf_remove(curr_ctx->fh.m2m_ctx); in jpu_irq_handler()
1592 v4l2_m2m_job_finish(jpu->m2m_dev, curr_ctx->fh.m2m_ctx); in jpu_irq_handler()