Lines Matching refs:ctx

111 void gsc_hw_set_input_path(struct gsc_ctx *ctx)  in gsc_hw_set_input_path()  argument
113 struct gsc_dev *dev = ctx->gsc_dev; in gsc_hw_set_input_path()
118 if (ctx->in_path == GSC_DMA) in gsc_hw_set_input_path()
124 void gsc_hw_set_in_size(struct gsc_ctx *ctx) in gsc_hw_set_in_size() argument
126 struct gsc_dev *dev = ctx->gsc_dev; in gsc_hw_set_in_size()
127 struct gsc_frame *frame = &ctx->s_frame; in gsc_hw_set_in_size()
146 void gsc_hw_set_in_image_rgb(struct gsc_ctx *ctx) in gsc_hw_set_in_image_rgb() argument
148 struct gsc_dev *dev = ctx->gsc_dev; in gsc_hw_set_in_image_rgb()
149 struct gsc_frame *frame = &ctx->s_frame; in gsc_hw_set_in_image_rgb()
166 void gsc_hw_set_in_image_format(struct gsc_ctx *ctx) in gsc_hw_set_in_image_format() argument
168 struct gsc_dev *dev = ctx->gsc_dev; in gsc_hw_set_in_image_format()
169 struct gsc_frame *frame = &ctx->s_frame; in gsc_hw_set_in_image_format()
180 gsc_hw_set_in_image_rgb(ctx); in gsc_hw_set_in_image_format()
222 void gsc_hw_set_output_path(struct gsc_ctx *ctx) in gsc_hw_set_output_path() argument
224 struct gsc_dev *dev = ctx->gsc_dev; in gsc_hw_set_output_path()
229 if (ctx->out_path == GSC_DMA) in gsc_hw_set_output_path()
237 void gsc_hw_set_out_size(struct gsc_ctx *ctx) in gsc_hw_set_out_size() argument
239 struct gsc_dev *dev = ctx->gsc_dev; in gsc_hw_set_out_size()
240 struct gsc_frame *frame = &ctx->d_frame; in gsc_hw_set_out_size()
244 if (ctx->out_path == GSC_DMA) { in gsc_hw_set_out_size()
255 if (ctx->gsc_ctrls.rotate->val == 90 || in gsc_hw_set_out_size()
256 ctx->gsc_ctrls.rotate->val == 270) { in gsc_hw_set_out_size()
266 void gsc_hw_set_out_image_rgb(struct gsc_ctx *ctx) in gsc_hw_set_out_image_rgb() argument
268 struct gsc_dev *dev = ctx->gsc_dev; in gsc_hw_set_out_image_rgb()
269 struct gsc_frame *frame = &ctx->d_frame; in gsc_hw_set_out_image_rgb()
286 void gsc_hw_set_out_image_format(struct gsc_ctx *ctx) in gsc_hw_set_out_image_format() argument
288 struct gsc_dev *dev = ctx->gsc_dev; in gsc_hw_set_out_image_format()
289 struct gsc_frame *frame = &ctx->d_frame; in gsc_hw_set_out_image_format()
300 gsc_hw_set_out_image_rgb(ctx); in gsc_hw_set_out_image_format()
304 if (ctx->out_path != GSC_DMA) { in gsc_hw_set_out_image_format()
346 void gsc_hw_set_prescaler(struct gsc_ctx *ctx) in gsc_hw_set_prescaler() argument
348 struct gsc_dev *dev = ctx->gsc_dev; in gsc_hw_set_prescaler()
349 struct gsc_scaler *sc = &ctx->scaler; in gsc_hw_set_prescaler()
358 void gsc_hw_set_mainscaler(struct gsc_ctx *ctx) in gsc_hw_set_mainscaler() argument
360 struct gsc_dev *dev = ctx->gsc_dev; in gsc_hw_set_mainscaler()
361 struct gsc_scaler *sc = &ctx->scaler; in gsc_hw_set_mainscaler()
371 void gsc_hw_set_rotation(struct gsc_ctx *ctx) in gsc_hw_set_rotation() argument
373 struct gsc_dev *dev = ctx->gsc_dev; in gsc_hw_set_rotation()
379 switch (ctx->gsc_ctrls.rotate->val) { in gsc_hw_set_rotation()
387 if (ctx->gsc_ctrls.hflip->val) in gsc_hw_set_rotation()
389 else if (ctx->gsc_ctrls.vflip->val) in gsc_hw_set_rotation()
395 if (ctx->gsc_ctrls.hflip->val) in gsc_hw_set_rotation()
397 else if (ctx->gsc_ctrls.vflip->val) in gsc_hw_set_rotation()
404 void gsc_hw_set_global_alpha(struct gsc_ctx *ctx) in gsc_hw_set_global_alpha() argument
406 struct gsc_dev *dev = ctx->gsc_dev; in gsc_hw_set_global_alpha()
407 struct gsc_frame *frame = &ctx->d_frame; in gsc_hw_set_global_alpha()
418 cfg |= GSC_OUT_GLOBAL_ALPHA(ctx->gsc_ctrls.global_alpha->val); in gsc_hw_set_global_alpha()
422 void gsc_hw_set_sfr_update(struct gsc_ctx *ctx) in gsc_hw_set_sfr_update() argument
424 struct gsc_dev *dev = ctx->gsc_dev; in gsc_hw_set_sfr_update()