Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/media/i2c/
Dmt9v032.c241 unsigned int vratio; member
421 vbin = fls(mt9v032->vratio) - 1; in mt9v032_s_stream()
524 unsigned int vratio; in mt9v032_set_format() local
540 vratio = mt9v032_calc_ratio(__crop->height, height); in mt9v032_set_format()
545 __format->height = __crop->height / vratio; in mt9v032_set_format()
549 mt9v032->vratio = vratio; in mt9v032_set_format()
616 mt9v032->vratio = 1; in mt9v032_set_selection()
1038 mt9v032->vratio = 1; in mt9v032_probe()
Dmt9t001.c283 unsigned int vratio; in mt9t001_s_stream() local
299 vratio = DIV_ROUND_CLOSEST(crop->height, format->height); in mt9t001_s_stream()
305 ret = mt9t001_write(client, MT9T001_COLUMN_ADDRESS_MODE, vratio - 1); in mt9t001_s_stream()
376 unsigned int vratio; in mt9t001_set_format() local
392 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9t001_set_format()
397 __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-4.4.14/drivers/media/platform/exynos-gsc/
Dgsc-core.c257 void gsc_get_prescaler_shfactor(u32 hratio, u32 vratio, u32 *sh) in gsc_get_prescaler_shfactor() argument
259 if (hratio == 4 && vratio == 4) in gsc_get_prescaler_shfactor()
261 else if ((hratio == 4 && vratio == 2) || in gsc_get_prescaler_shfactor()
262 (hratio == 2 && vratio == 4)) in gsc_get_prescaler_shfactor()
264 else if ((hratio == 4 && vratio == 1) || in gsc_get_prescaler_shfactor()
265 (hratio == 1 && vratio == 4) || in gsc_get_prescaler_shfactor()
266 (hratio == 2 && vratio == 2)) in gsc_get_prescaler_shfactor()
268 else if (hratio == 1 && vratio == 1) in gsc_get_prescaler_shfactor()
Dgsc-core.h402 void gsc_get_prescaler_shfactor(u32 hratio, u32 vratio, u32 *sh);
/linux-4.4.14/drivers/gpu/drm/exynos/
Dexynos_drm_gsc.c898 static void gsc_get_prescaler_shfactor(u32 hratio, u32 vratio, u32 *shfactor) in gsc_get_prescaler_shfactor() argument
900 if (hratio == 4 && vratio == 4) in gsc_get_prescaler_shfactor()
902 else if ((hratio == 4 && vratio == 2) || in gsc_get_prescaler_shfactor()
903 (hratio == 2 && vratio == 4)) in gsc_get_prescaler_shfactor()
905 else if ((hratio == 4 && vratio == 1) || in gsc_get_prescaler_shfactor()
906 (hratio == 1 && vratio == 4) || in gsc_get_prescaler_shfactor()
907 (hratio == 2 && vratio == 2)) in gsc_get_prescaler_shfactor()
909 else if (hratio == 1 && vratio == 1) in gsc_get_prescaler_shfactor()
Dexynos_drm_fimc.c115 u32 vratio; member
989 sc->vratio = (src_h << 14) / (dst_h << vfactor); in fimc_set_prescaler()
993 sc->hratio, sc->vratio, sc->up_h, sc->up_v); in fimc_set_prescaler()
1017 sc->hratio, sc->vratio); in fimc_set_scaler()
1038 EXYNOS_CISCCTRL_MAINVERRATIO((sc->vratio >> 6))); in fimc_set_scaler()
1045 EXYNOS_CIEXTEN_MAINVERRATIO_EXT(sc->vratio)); in fimc_set_scaler()
/linux-4.4.14/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()