Lines Matching defs:ctx
67 static int s5p_mfc_open_inst_cmd_v6(struct s5p_mfc_ctx *ctx)
69 struct s5p_mfc_dev *dev = ctx->dev;
73 mfc_debug(2, "Requested codec mode: %d\n", ctx->codec_mode);
74 dev->curr_ctx = ctx->num;
75 switch (ctx->codec_mode) {
128 mfc_write(dev, ctx->ctx.dma, S5P_FIMV_CONTEXT_MEM_ADDR_V6);
129 mfc_write(dev, ctx->ctx.size, S5P_FIMV_CONTEXT_MEM_SIZE_V6);
137 static int s5p_mfc_close_inst_cmd_v6(struct s5p_mfc_ctx *ctx)
139 struct s5p_mfc_dev *dev = ctx->dev;
143 dev->curr_ctx = ctx->num;
144 if (ctx->state != MFCINST_FREE) {
145 mfc_write(dev, ctx->inst_no, S5P_FIMV_INSTANCE_ID_V6);