Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/media/platform/renesas/vsp1/
Dvsp1_hgt.c137 unsigned int hratio; in hgt_configure_stream() local
165 hratio = crop->width * 2 / compose->width / 3; in hgt_configure_stream()
168 (hratio << VI6_HGT_MODE_HRATIO_SHIFT) | in hgt_configure_stream()
Dvsp1_hgo.c141 unsigned int hratio; in hgo_configure_stream() local
162 hratio = crop->width * 2 / compose->width / 3; in hgo_configure_stream()
167 (hratio << VI6_HGO_MODE_HRATIO_SHIFT) | in hgo_configure_stream()
/linux-6.12.1/drivers/media/i2c/
Dmt9v032.c191 unsigned int hratio; member
254 min_hblank += (mt9v032->hratio - 1) * 10; in mt9v032_update_hblank()
397 hbin = fls(mt9v032->hratio) - 1; in mt9v032_s_stream()
480 mt9v032->sysclk / mt9v032->hratio); in mt9v032_configure_pixel_rate()
507 unsigned int hratio; in mt9v032_set_format() local
523 hratio = mt9v032_calc_ratio(__crop->width, width); in mt9v032_set_format()
528 __format->width = __crop->width / hratio; in mt9v032_set_format()
532 mt9v032->hratio = hratio; in mt9v032_set_format()
602 mt9v032->hratio = 1; in mt9v032_set_selection()
1163 mt9v032->hratio = 1; in mt9v032_probe()
Dov5693.c816 unsigned int hratio, vratio; in ov5693_set_fmt() local
836 hratio = clamp_t(unsigned int, in ov5693_set_fmt()
844 fmt->width = crop->width / hratio; in ov5693_set_fmt()
855 ov5693->mode.binning_x = hratio > 1; in ov5693_set_fmt()
856 ov5693->mode.inc_x_odd = hratio > 1 ? 3 : 1; in ov5693_set_fmt()
Dimx296.c697 unsigned int hratio; in imx296_set_format() local
706 hratio = DIV_ROUND_CLOSEST(crop->width, width); in imx296_set_format()
709 format->width = crop->width / hratio; in imx296_set_format()
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()
Dmt9m114.c794 unsigned int hratio, vratio; in mt9m114_configure() local
817 hratio = pa_crop->width / pa_format->width; in mt9m114_configure()
840 if (hratio > 1) in mt9m114_configure()
Dimx274.c1030 u8 hratio = imx274_modes[i].hbin_ratio; in __imx274_change_compose() local
1035 cur_crop->height / hratio, *height, in __imx274_change_compose()
/linux-6.12.1/drivers/media/platform/samsung/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()
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 …]
Dgsc-core.h400 void gsc_get_prescaler_shfactor(u32 hratio, u32 vratio, u32 *sh);
403 u32 *wratio, u32 tx, u32 ty, u32 *hratio);
/linux-6.12.1/drivers/gpu/drm/exynos/
Dexynos_drm_gsc.c726 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()
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-6.12.1/drivers/gpu/drm/amd/display/dc/spl/
Ddc_spl.c780 int hratio = 0; in enable_easf() local
788 hratio = spl_fixpt_ceil(spl_scratch->scl_data.ratios.horz); in enable_easf()
794 if ((vratio > 2) || (hratio > 2)) in enable_easf()
829 int hratio = 0; in spl_get_isharp_en() local
838 hratio = spl_fixpt_ceil(spl_scratch->scl_data.ratios.horz); in spl_get_isharp_en()
841 if (vratio > 1 || hratio > 1) in spl_get_isharp_en()
1721 int hratio = 0; in spl_calculate_scaler_params() local
1780 hratio = spl_fixpt_ceil(spl_scratch.scl_data.ratios.horz); in spl_calculate_scaler_params()
1781 if (vratio <= hratio) in spl_calculate_scaler_params()
/linux-6.12.1/drivers/gpu/drm/nouveau/dispnv04/
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-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/dml21/inc/
Ddml_top_display_cfg_types.h160 double hratio; member
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/
Ddml2_core_shared.c11449 …pot_x * (p->cursor_2x_magnify == 0 ? 1 : 2))) * p->dlg_refclk_mhz / p->pixel_rate_mhz / p->hratio); in dml2_core_shared_cursor_dlg_reg()
Ddml2_core_dcn4_calcs.c11761 …pot_x * (p->cursor_2x_magnify == 0 ? 1 : 2))) * p->dlg_refclk_mhz / p->pixel_rate_mhz / p->hratio); in dml2_core_calcs_cursor_dlg_reg()