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

/linux-4.4.14/drivers/media/i2c/
H A Dmt9t001.c283 unsigned int vratio; mt9t001_s_stream() local
299 vratio = DIV_ROUND_CLOSEST(crop->height, format->height); mt9t001_s_stream()
305 ret = mt9t001_write(client, MT9T001_COLUMN_ADDRESS_MODE, vratio - 1); mt9t001_s_stream()
376 unsigned int vratio; mt9t001_set_format() local
392 vratio = DIV_ROUND_CLOSEST(__crop->height, height); mt9t001_set_format()
397 __format->height = __crop->height / vratio; mt9t001_set_format()
H A Dmt9v032.c241 unsigned int vratio; member in struct:mt9v032
421 vbin = fls(mt9v032->vratio) - 1; mt9v032_s_stream()
524 unsigned int vratio; mt9v032_set_format() local
540 vratio = mt9v032_calc_ratio(__crop->height, height); mt9v032_set_format()
545 __format->height = __crop->height / vratio; mt9v032_set_format()
549 mt9v032->vratio = vratio; mt9v032_set_format()
616 mt9v032->vratio = 1; mt9v032_set_selection()
1038 mt9v032->vratio = 1; mt9v032_probe()
H A Dmt9p031.c556 unsigned int vratio; mt9p031_set_format() local
572 vratio = DIV_ROUND_CLOSEST(__crop->height, height); mt9p031_set_format()
577 __format->height = __crop->height / vratio; mt9p031_set_format()
/linux-4.4.14/drivers/media/platform/exynos-gsc/
H A Dgsc-core.c257 void gsc_get_prescaler_shfactor(u32 hratio, u32 vratio, u32 *sh) gsc_get_prescaler_shfactor() argument
259 if (hratio == 4 && vratio == 4) gsc_get_prescaler_shfactor()
261 else if ((hratio == 4 && vratio == 2) || gsc_get_prescaler_shfactor()
262 (hratio == 2 && vratio == 4)) gsc_get_prescaler_shfactor()
264 else if ((hratio == 4 && vratio == 1) || gsc_get_prescaler_shfactor()
265 (hratio == 1 && vratio == 4) || gsc_get_prescaler_shfactor()
266 (hratio == 2 && vratio == 2)) gsc_get_prescaler_shfactor()
268 else if (hratio == 1 && vratio == 1) gsc_get_prescaler_shfactor()
H A Dgsc-core.h402 void gsc_get_prescaler_shfactor(u32 hratio, u32 vratio, u32 *sh);
/linux-4.4.14/drivers/gpu/drm/exynos/
H A Dexynos_drm_gsc.c898 static void gsc_get_prescaler_shfactor(u32 hratio, u32 vratio, u32 *shfactor) gsc_get_prescaler_shfactor() argument
900 if (hratio == 4 && vratio == 4) gsc_get_prescaler_shfactor()
902 else if ((hratio == 4 && vratio == 2) || gsc_get_prescaler_shfactor()
903 (hratio == 2 && vratio == 4)) gsc_get_prescaler_shfactor()
905 else if ((hratio == 4 && vratio == 1) || gsc_get_prescaler_shfactor()
906 (hratio == 1 && vratio == 4) || gsc_get_prescaler_shfactor()
907 (hratio == 2 && vratio == 2)) gsc_get_prescaler_shfactor()
909 else if (hratio == 1 && vratio == 1) gsc_get_prescaler_shfactor()
H A Dexynos_drm_fimc.c107 * @vratio: vertical ratio.
115 u32 vratio; member in struct:fimc_scaler
989 sc->vratio = (src_h << 14) / (dst_h << vfactor); fimc_set_prescaler()
992 DRM_DEBUG_KMS("hratio[%d]vratio[%d]up_h[%d]up_v[%d]\n", fimc_set_prescaler()
993 sc->hratio, sc->vratio, sc->up_h, sc->up_v); fimc_set_prescaler()
1016 DRM_DEBUG_KMS("hratio[%d]vratio[%d]\n", fimc_set_scaler()
1017 sc->hratio, sc->vratio); fimc_set_scaler()
1038 EXYNOS_CISCCTRL_MAINVERRATIO((sc->vratio >> 6))); fimc_set_scaler()
1045 EXYNOS_CIEXTEN_MAINVERRATIO_EXT(sc->vratio)); fimc_set_scaler()
/linux-4.4.14/drivers/gpu/drm/nouveau/dispnv04/
H A Dtvmodesnv17.c552 int overscan, hmargin, vmargin, hratio, vratio; nv17_ctv_update_rescaler() local
570 vratio = crtc_mode->vdisplay * 0x800 / nv17_ctv_update_rescaler()
579 XLATE(vratio, 0, NV_PRAMDAC_FP_DEBUG_1_YSCALE_VALUE) | nv17_ctv_update_rescaler()

Completed in 238 milliseconds