Home
last modified time | relevance | path

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

/linux/drivers/media/i2c/
H A Dmt9v032.c198 unsigned int hratio; member
261 min_hblank += (mt9v032->hratio - 1) * 10; in mt9v032_update_hblank()
404 hbin = fls(mt9v032->hratio) - 1; in mt9v032_s_stream()
486 mt9v032->sysclk / mt9v032->hratio); in mt9v032_configure_pixel_rate()
513 unsigned int hratio; in mt9v032_set_format() local
529 hratio = mt9v032_calc_ratio(__crop->width, width); in mt9v032_set_format()
534 __format->width = __crop->width / hratio; in mt9v032_set_format()
538 mt9v032->hratio = hratio; in mt9v032_set_format()
608 mt9v032->hratio = 1; in mt9v032_set_selection()
1167 mt9v032->hratio = 1; in mt9v032_probe()
H A Dmt9p031.c591 unsigned int hratio; in mt9p031_set_format() local
607 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9p031_set_format()
612 __format->width = __crop->width / hratio; in mt9p031_set_format()
H A Dmt9m114.c805 unsigned int hratio, vratio; in mt9m114_configure_pa() local
817 hratio = crop->width / format->width; in mt9m114_configure_pa()
840 if (hratio > 1) in mt9m114_configure_pa()
/linux/drivers/media/platform/samsung/exynos-gsc/
H A 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()
276 u32 tx, u32 ty, u32 *hratio) in gsc_check_src_scale_info() argument
299 remainder = s_frame->crop.height % (*hratio * halign); in gsc_check_src_scale_info()
[all …]
/linux/drivers/gpu/drm/exynos/
H A Dexynos_drm_gsc.c725 static void gsc_get_prescaler_shfactor(u32 hratio, u32 vratio, u32 *shfactor) in gsc_get_prescaler_shfactor() argument
727 if (hratio == 4 && vratio == 4) in gsc_get_prescaler_shfactor()
729 else if ((hratio == 4 && vratio == 2) || in gsc_get_prescaler_shfactor()
730 (hratio == 2 && vratio == 4)) in gsc_get_prescaler_shfactor()
732 else if ((hratio == 4 && vratio == 1) || in gsc_get_prescaler_shfactor()
733 (hratio == 1 && vratio == 4) || in gsc_get_prescaler_shfactor()
734 (hratio == 2 && vratio == 2)) in gsc_get_prescaler_shfactor()
736 else if (hratio == 1 && vratio == 1) in gsc_get_prescaler_shfactor()
H A Dexynos_drm_fimc.c81 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/drivers/gpu/drm/nouveau/dispnv04/
H A Dtvmodesnv17.c550 int overscan, hmargin, vmargin, hratio, vratio; in nv17_ctv_update_rescaler() local
566 hratio = crtc_mode->hdisplay * 0x800 / in nv17_ctv_update_rescaler()
579 XLATE(hratio, 0, NV_PRAMDAC_FP_DEBUG_1_XSCALE_VALUE); in nv17_ctv_update_rescaler()
/linux/drivers/media/platform/ti/vpe/
H A Dvip.c1610 unsigned int hratio, vratio, width_align, height_align; in vip_try_fmt_vid_cap() local
1625 hratio = f->fmt.pix.width * 1000 / in vip_try_fmt_vid_cap()
1629 if (hratio < 125) { in vip_try_fmt_vid_cap()