Home
last modified time | relevance | path

Searched refs:hfactor (Results 1 – 4 of 4) sorted by relevance

/drivers/gpu/drm/exynos/
Dexynos_drm_fimc.c744 u32 hfactor, vfactor; in fimc_set_prescaler() local
766 hfactor = fls(src_w / dst_w / 2); in fimc_set_prescaler()
767 if (hfactor > FIMC_SHFACTOR / 2) { in fimc_set_prescaler()
778 pre_dst_width = src_w >> hfactor; in fimc_set_prescaler()
782 DRM_DEV_DEBUG_KMS(ctx->dev, "hfactor[%d]vfactor[%d]\n", hfactor, in fimc_set_prescaler()
785 sc->hratio = (src_w << 14) / (dst_w << hfactor); in fimc_set_prescaler()
792 shfactor = FIMC_SHFACTOR - (hfactor + vfactor); in fimc_set_prescaler()
796 EXYNOS_CISCPRERATIO_PREHORRATIO(1 << hfactor) | in fimc_set_prescaler()
/drivers/media/platform/exynos4-is/
Dfimc-core.c256 ret = fimc_get_scaler_factor(sx, tx, &sc->pre_hratio, &sc->hfactor); in fimc_set_scaler_info()
268 sc->main_hratio = (sx << 14) / (tx << sc->hfactor); in fimc_set_scaler_info()
271 sc->main_hratio = (sx << 8) / (tx << sc->hfactor); in fimc_set_scaler_info()
Dfimc-core.h192 u32 hfactor; member
Dfimc-reg.c237 shfactor = 10 - (sc->hfactor + sc->vfactor); in fimc_hw_set_prescaler()