Lines Matching defs:ctx
71 static int s5p_mfc_open_inst_cmd_v5(struct s5p_mfc_ctx *ctx)
73 struct s5p_mfc_dev *dev = ctx->dev;
78 mfc_debug(2, "Getting instance number (codec: %d)\n", ctx->codec_mode);
79 dev->curr_ctx = ctx->num;
81 switch (ctx->codec_mode) {
113 h2r_args.arg[2] = ctx->ctx.ofs;
114 h2r_args.arg[3] = ctx->ctx.size;
119 ctx->state = MFCINST_ERROR;
124 static int s5p_mfc_close_inst_cmd_v5(struct s5p_mfc_ctx *ctx)
126 struct s5p_mfc_dev *dev = ctx->dev;
130 if (ctx->state == MFCINST_FREE) {
132 ctx->state = MFCINST_ERROR;
136 mfc_debug(2, "Returning instance number %d\n", ctx->inst_no);
137 dev->curr_ctx = ctx->num;
139 h2r_args.arg[0] = ctx->inst_no;
144 ctx->state = MFCINST_ERROR;