Lines Matching refs:sc
165 struct fimc_scaler sc; member
942 static int fimc_set_prescaler(struct fimc_context *ctx, struct fimc_scaler *sc, in fimc_set_prescaler() argument
988 sc->hratio = (src_w << 14) / (dst_w << hfactor); in fimc_set_prescaler()
989 sc->vratio = (src_h << 14) / (dst_h << vfactor); in fimc_set_prescaler()
990 sc->up_h = (dst_w >= src_w) ? true : false; in fimc_set_prescaler()
991 sc->up_v = (dst_h >= src_h) ? true : false; in fimc_set_prescaler()
993 sc->hratio, sc->vratio, sc->up_h, sc->up_v); in fimc_set_prescaler()
1010 static void fimc_set_scaler(struct fimc_context *ctx, struct fimc_scaler *sc) in fimc_set_scaler() argument
1015 sc->range, sc->bypass, sc->up_h, sc->up_v); in fimc_set_scaler()
1017 sc->hratio, sc->vratio); in fimc_set_scaler()
1027 if (sc->range) in fimc_set_scaler()
1030 if (sc->bypass) in fimc_set_scaler()
1032 if (sc->up_h) in fimc_set_scaler()
1034 if (sc->up_v) in fimc_set_scaler()
1037 cfg |= (EXYNOS_CISCCTRL_MAINHORRATIO((sc->hratio >> 6)) | in fimc_set_scaler()
1038 EXYNOS_CISCCTRL_MAINVERRATIO((sc->vratio >> 6))); in fimc_set_scaler()
1044 cfg_ext |= (EXYNOS_CIEXTEN_MAINHORRATIO_EXT(sc->hratio) | in fimc_set_scaler()
1045 EXYNOS_CIEXTEN_MAINVERRATIO_EXT(sc->vratio)); in fimc_set_scaler()
1424 memset(&ctx->sc, 0x0, sizeof(ctx->sc)); in fimc_ippdrv_reset()
1459 ret = fimc_set_prescaler(ctx, &ctx->sc, in fimc_ippdrv_start()
1469 fimc_set_scaler(ctx, &ctx->sc); in fimc_ippdrv_start()