Home
last modified time | relevance | path

Searched refs:hratio (Results 1 – 10 of 10) sorted by relevance

/Linux-v4.19/drivers/media/platform/vsp1/
Dvsp1_hgt.c135 unsigned int hratio; in hgt_configure_stream() local
166 hratio = crop->width * 2 / compose->width / 3; in hgt_configure_stream()
169 (hratio << VI6_HGT_MODE_HRATIO_SHIFT) | in hgt_configure_stream()
Dvsp1_hgo.c139 unsigned int hratio; in hgo_configure_stream() local
163 hratio = crop->width * 2 / compose->width / 3; in hgo_configure_stream()
168 (hratio << VI6_HGO_MODE_HRATIO_SHIFT) | in hgo_configure_stream()
/Linux-v4.19/drivers/media/i2c/
Dmt9v032.c193 unsigned int hratio; member
256 min_hblank += (mt9v032->hratio - 1) * 10; in mt9v032_update_hblank()
397 hbin = fls(mt9v032->hratio) - 1; in mt9v032_s_stream()
473 mt9v032->sysclk / mt9v032->hratio); in mt9v032_configure_pixel_rate()
500 unsigned int hratio; in mt9v032_set_format() local
516 hratio = mt9v032_calc_ratio(__crop->width, width); in mt9v032_set_format()
521 __format->width = __crop->width / hratio; in mt9v032_set_format()
525 mt9v032->hratio = hratio; in mt9v032_set_format()
592 mt9v032->hratio = 1; in mt9v032_set_selection()
1154 mt9v032->hratio = 1; in mt9v032_probe()
Dmt9t001.c293 unsigned int hratio; in mt9t001_s_stream() local
309 hratio = DIV_ROUND_CLOSEST(crop->width, format->width); in mt9t001_s_stream()
312 ret = mt9t001_write(client, MT9T001_ROW_ADDRESS_MODE, hratio - 1); in mt9t001_s_stream()
386 unsigned int hratio; in mt9t001_set_format() local
402 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9t001_set_format()
407 __format->width = __crop->width / hratio; in mt9t001_set_format()
Dmt9p031.c555 unsigned int hratio; in mt9p031_set_format() local
571 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9p031_set_format()
576 __format->width = __crop->width / hratio; in mt9p031_set_format()
/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()
302 u32 tx, u32 ty, u32 *hratio) in gsc_check_src_scale_info() argument
325 remainder = s_frame->crop.height % (*hratio * halign); in gsc_check_src_scale_info()
[all …]
Dgsc-core.h399 void gsc_get_prescaler_shfactor(u32 hratio, u32 vratio, u32 *sh);
402 u32 *wratio, u32 tx, u32 ty, u32 *hratio);
/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.c84 u32 hratio; member
783 sc->hratio = (src_w << 14) / (dst_w << hfactor); 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()
832 cfg |= (EXYNOS_CISCCTRL_MAINHORRATIO((sc->hratio >> 6)) | in fimc_set_scaler()
839 cfg_ext |= (EXYNOS_CIEXTEN_MAINHORRATIO_EXT(sc->hratio) | in fimc_set_scaler()
/Linux-v4.19/drivers/gpu/drm/nouveau/dispnv04/
Dtvmodesnv17.c552 int overscan, hmargin, vmargin, hratio, vratio; in nv17_ctv_update_rescaler() local
568 hratio = crtc_mode->hdisplay * 0x800 / in nv17_ctv_update_rescaler()
581 XLATE(hratio, 0, NV_PRAMDAC_FP_DEBUG_1_XSCALE_VALUE); in nv17_ctv_update_rescaler()