Home
last modified time | relevance | path

Searched refs:vratio (Results 1 – 11 of 11) sorted by relevance

/Linux-v4.19/drivers/media/platform/vsp1/
Dvsp1_hgt.c136 unsigned int vratio; in hgt_configure_stream() local
167 vratio = crop->height * 2 / compose->height / 3; in hgt_configure_stream()
170 (vratio << VI6_HGT_MODE_VRATIO_SHIFT)); in hgt_configure_stream()
Dvsp1_hgo.c140 unsigned int vratio; in hgo_configure_stream() local
164 vratio = crop->height * 2 / compose->height / 3; in hgo_configure_stream()
169 (vratio << VI6_HGO_MODE_VRATIO_SHIFT)); in hgo_configure_stream()
/Linux-v4.19/drivers/media/i2c/
Dmt9v032.c194 unsigned int vratio; member
398 vbin = fls(mt9v032->vratio) - 1; in mt9v032_s_stream()
501 unsigned int vratio; in mt9v032_set_format() local
517 vratio = mt9v032_calc_ratio(__crop->height, height); in mt9v032_set_format()
522 __format->height = __crop->height / vratio; in mt9v032_set_format()
526 mt9v032->vratio = vratio; in mt9v032_set_format()
593 mt9v032->vratio = 1; in mt9v032_set_selection()
1155 mt9v032->vratio = 1; in mt9v032_probe()
Dmt9t001.c294 unsigned int vratio; in mt9t001_s_stream() local
310 vratio = DIV_ROUND_CLOSEST(crop->height, format->height); in mt9t001_s_stream()
316 ret = mt9t001_write(client, MT9T001_COLUMN_ADDRESS_MODE, vratio - 1); in mt9t001_s_stream()
387 unsigned int vratio; in mt9t001_set_format() local
403 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9t001_set_format()
408 __format->height = __crop->height / vratio; in mt9t001_set_format()
Dmt9p031.c556 unsigned int vratio; in mt9p031_set_format() local
572 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9p031_set_format()
577 __format->height = __crop->height / vratio; in mt9p031_set_format()
/Linux-v4.19/drivers/gpu/drm/exynos/
Dexynos_drm_gsc.c721 static void gsc_get_prescaler_shfactor(u32 hratio, u32 vratio, u32 *shfactor) in gsc_get_prescaler_shfactor() argument
723 if (hratio == 4 && vratio == 4) in gsc_get_prescaler_shfactor()
725 else if ((hratio == 4 && vratio == 2) || in gsc_get_prescaler_shfactor()
726 (hratio == 2 && vratio == 4)) in gsc_get_prescaler_shfactor()
728 else if ((hratio == 4 && vratio == 1) || in gsc_get_prescaler_shfactor()
729 (hratio == 1 && vratio == 4) || in gsc_get_prescaler_shfactor()
730 (hratio == 2 && vratio == 2)) in gsc_get_prescaler_shfactor()
732 else if (hratio == 1 && vratio == 1) in gsc_get_prescaler_shfactor()
Dexynos_drm_fimc.c85 u32 vratio; member
784 sc->vratio = (src_h << 14) / (dst_h << vfactor); in fimc_set_prescaler()
788 sc->hratio, sc->vratio, sc->up_h, sc->up_v); in fimc_set_prescaler()
812 sc->hratio, sc->vratio); in fimc_set_scaler()
833 EXYNOS_CISCCTRL_MAINVERRATIO((sc->vratio >> 6))); in fimc_set_scaler()
840 EXYNOS_CIEXTEN_MAINVERRATIO_EXT(sc->vratio)); in fimc_set_scaler()
/Linux-v4.19/drivers/media/platform/exynos-gsc/
Dgsc-core.c283 void gsc_get_prescaler_shfactor(u32 hratio, u32 vratio, u32 *sh) in gsc_get_prescaler_shfactor() argument
285 if (hratio == 4 && vratio == 4) in gsc_get_prescaler_shfactor()
287 else if ((hratio == 4 && vratio == 2) || in gsc_get_prescaler_shfactor()
288 (hratio == 2 && vratio == 4)) in gsc_get_prescaler_shfactor()
290 else if ((hratio == 4 && vratio == 1) || in gsc_get_prescaler_shfactor()
291 (hratio == 1 && vratio == 4) || in gsc_get_prescaler_shfactor()
292 (hratio == 2 && vratio == 2)) in gsc_get_prescaler_shfactor()
294 else if (hratio == 1 && vratio == 1) in gsc_get_prescaler_shfactor()
Dgsc-core.h399 void gsc_get_prescaler_shfactor(u32 hratio, u32 vratio, u32 *sh);
/Linux-v4.19/drivers/gpu/drm/nouveau/dispnv04/
Dtvmodesnv17.c552 int overscan, hmargin, vmargin, hratio, vratio; in nv17_ctv_update_rescaler() local
570 vratio = crtc_mode->vdisplay * 0x800 / in nv17_ctv_update_rescaler()
579 XLATE(vratio, 0, NV_PRAMDAC_FP_DEBUG_1_YSCALE_VALUE) | in nv17_ctv_update_rescaler()
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dml/
Ddml1_display_rq_dlg_calc.c102 double vratio, in get_refcyc_per_delivery() argument
109 if (vratio <= 1.0) { in get_refcyc_per_delivery()
120 DTRACE("DLG: %s: vratio = %3.2f", __func__, vratio); in get_refcyc_per_delivery()