/linux/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_hgt.c | 138 unsigned int vratio; in hgt_configure_stream() local 166 vratio = crop->height * 2 / compose->height / 3; in hgt_configure_stream() 169 (vratio << VI6_HGT_MODE_VRATIO_SHIFT)); in hgt_configure_stream()
|
H A D | vsp1_hgo.c | 142 unsigned int vratio; in hgo_configure_stream() local 163 vratio = crop->height * 2 / compose->height / 3; in hgo_configure_stream() 168 (vratio << VI6_HGO_MODE_VRATIO_SHIFT)); in hgo_configure_stream()
|
/linux/drivers/media/i2c/ |
H A D | mt9v032.c | 192 unsigned int vratio; member 398 vbin = fls(mt9v032->vratio) - 1; in mt9v032_s_stream() 508 unsigned int vratio; in mt9v032_set_format() local 524 vratio = mt9v032_calc_ratio(__crop->height, height); in mt9v032_set_format() 529 __format->height = __crop->height / vratio; in mt9v032_set_format() 533 mt9v032->vratio = vratio; in mt9v032_set_format() 603 mt9v032->vratio = 1; in mt9v032_set_selection() 1164 mt9v032->vratio = 1; in mt9v032_probe()
|
H A D | ov5693.c | 816 unsigned int hratio, vratio; in ov5693_set_fmt() local 838 vratio = clamp_t(unsigned int, in ov5693_set_fmt() 845 fmt->height = crop->height / vratio; in ov5693_set_fmt() 857 ov5693->mode.binning_y = vratio > 1; in ov5693_set_fmt() 858 ov5693->mode.inc_y_odd = vratio > 1 ? 3 : 1; in ov5693_set_fmt()
|
H A D | mt9p031.c | 596 unsigned int vratio; in mt9p031_set_format() local 612 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9p031_set_format() 617 __format->height = __crop->height / vratio; in mt9p031_set_format()
|
H A D | mt9m114.c | 794 unsigned int hratio, vratio; in mt9m114_configure() local 818 vratio = pa_crop->height / pa_format->height; in mt9m114_configure() 835 (pa_crop->height - 4) / vratio - 1, &ret); in mt9m114_configure() 842 if (vratio > 1) in mt9m114_configure()
|
/linux/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_gsc.c | 726 static void gsc_get_prescaler_shfactor(u32 hratio, u32 vratio, u32 *shfactor) in gsc_get_prescaler_shfactor() argument 728 if (hratio == 4 && vratio == 4) in gsc_get_prescaler_shfactor() 730 else if ((hratio == 4 && vratio == 2) || in gsc_get_prescaler_shfactor() 731 (hratio == 2 && vratio == 4)) in gsc_get_prescaler_shfactor() 733 else if ((hratio == 4 && vratio == 1) || in gsc_get_prescaler_shfactor() 734 (hratio == 1 && vratio == 4) || in gsc_get_prescaler_shfactor() 735 (hratio == 2 && vratio == 2)) in gsc_get_prescaler_shfactor() 737 else if (hratio == 1 && vratio == 1) in gsc_get_prescaler_shfactor()
|
H A D | exynos_drm_fimc.c | 82 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/drivers/media/platform/samsung/exynos-gsc/ |
H A D | gsc-core.c | 257 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()
|
H A D | gsc-core.h | 400 void gsc_get_prescaler_shfactor(u32 hratio, u32 vratio, u32 *sh);
|
/linux/drivers/gpu/drm/nouveau/dispnv04/ |
H A D | tvmodesnv17.c | 550 int overscan, hmargin, vmargin, hratio, vratio; in nv17_ctv_update_rescaler() local 568 vratio = crtc_mode->vdisplay * 0x800 / in nv17_ctv_update_rescaler() 577 XLATE(vratio, 0, NV_PRAMDAC_FP_DEBUG_1_YSCALE_VALUE) | in nv17_ctv_update_rescaler()
|
/linux/drivers/gpu/drm/amd/display/dc/spl/ |
H A D | dc_spl.c | 794 int vratio = 0; in enable_easf() local 802 vratio = spl_fixpt_ceil(spl_scratch->scl_data.ratios.vert); in enable_easf() 809 if ((vratio > 2) || (hratio > 2)) in enable_easf() 843 int vratio = 0; in spl_get_isharp_en() local 852 vratio = spl_fixpt_ceil(spl_scratch->scl_data.ratios.vert); in spl_get_isharp_en() 856 if (vratio > 1 || hratio > 1) in spl_get_isharp_en() 1800 int vratio = 0; in spl_calculate_scaler_params() local 1845 vratio = spl_fixpt_ceil(spl_scratch.scl_data.ratios.vert); in spl_calculate_scaler_params() 1847 if (vratio <= hratio) in spl_calculate_scaler_params()
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
H A D | display_rq_dlg_calc_20.c | 124 double vratio, in get_refcyc_per_delivery() argument 131 if (vratio <= 1.0) { in get_refcyc_per_delivery() 147 dml_print("DML_DLG: %s: vratio = %3.2f\n", __func__, vratio); in get_refcyc_per_delivery()
|
H A D | display_rq_dlg_calc_20v2.c | 124 double vratio, in get_refcyc_per_delivery() argument 131 if (vratio <= 1.0) { in get_refcyc_per_delivery() 147 dml_print("DML_DLG: %s: vratio = %3.2f\n", __func__, vratio); in get_refcyc_per_delivery()
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn21/ |
H A D | display_rq_dlg_calc_21.c | 100 double vratio, in get_refcyc_per_delivery() argument 107 if (vratio <= 1.0) { in get_refcyc_per_delivery() 123 dml_print("DML_DLG: %s: vratio = %3.2f\n", __func__, vratio); in get_refcyc_per_delivery()
|
/linux/drivers/gpu/drm/amd/display/dc/dml/ |
H A D | dml1_display_rq_dlg_calc.c | 102 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()
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
H A D | display_rq_dlg_calc_30.c | 48 double vratio, in get_refcyc_per_delivery() argument 55 if (vratio <= 1.0) { in get_refcyc_per_delivery() 71 dml_print("DML_DLG: %s: vratio = %3.2f\n", __func__, vratio); in get_refcyc_per_delivery()
|