Home
last modified time | relevance | path

Searched refs:hratio (Results 1 - 22 of 22) sorted by relevance

/kernel/linux/linux-5.10/drivers/media/platform/vsp1/
H A Dvsp1_hgt.c136 unsigned int hratio; in hgt_configure_stream() local
167 hratio = crop->width * 2 / compose->width / 3; in hgt_configure_stream()
170 (hratio << VI6_HGT_MODE_HRATIO_SHIFT) | in hgt_configure_stream()
H A Dvsp1_hgo.c140 unsigned int hratio; in hgo_configure_stream() local
164 hratio = crop->width * 2 / compose->width / 3; in hgo_configure_stream()
169 (hratio << VI6_HGO_MODE_HRATIO_SHIFT) | in hgo_configure_stream()
/kernel/linux/linux-6.6/drivers/media/platform/renesas/vsp1/
H A Dvsp1_hgt.c136 unsigned int hratio; in hgt_configure_stream() local
167 hratio = crop->width * 2 / compose->width / 3; in hgt_configure_stream()
170 (hratio << VI6_HGT_MODE_HRATIO_SHIFT) | in hgt_configure_stream()
H A Dvsp1_hgo.c140 unsigned int hratio; in hgo_configure_stream() local
164 hratio = crop->width * 2 / compose->width / 3; in hgo_configure_stream()
169 (hratio << VI6_HGO_MODE_HRATIO_SHIFT) | in hgo_configure_stream()
/kernel/linux/linux-5.10/drivers/media/i2c/
H A Dmt9v032.c190 unsigned int hratio; member
253 min_hblank += (mt9v032->hratio - 1) * 10; in mt9v032_update_hblank()
394 hbin = fls(mt9v032->hratio) - 1; in mt9v032_s_stream()
476 mt9v032->sysclk / mt9v032->hratio); in mt9v032_configure_pixel_rate()
503 unsigned int hratio; in mt9v032_set_format() local
519 hratio = mt9v032_calc_ratio(__crop->width, width); in mt9v032_set_format()
524 __format->width = __crop->width / hratio; in mt9v032_set_format()
528 mt9v032->hratio = hratio; in mt9v032_set_format()
595 mt9v032->hratio in mt9v032_set_selection()
[all...]
H A Dmt9t001.c290 unsigned int hratio; in mt9t001_s_stream() local
306 hratio = DIV_ROUND_CLOSEST(crop->width, format->width); in mt9t001_s_stream()
309 ret = mt9t001_write(client, MT9T001_ROW_ADDRESS_MODE, hratio - 1); in mt9t001_s_stream()
383 unsigned int hratio; in mt9t001_set_format() local
399 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9t001_set_format()
404 __format->width = __crop->width / hratio; in mt9t001_set_format()
H A Dmt9p031.c578 unsigned int hratio; in mt9p031_set_format() local
594 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9p031_set_format()
599 __format->width = __crop->width / hratio; in mt9p031_set_format()
/kernel/linux/linux-5.10/drivers/media/platform/exynos-gsc/
H A Dgsc-core.c258 void gsc_get_prescaler_shfactor(u32 hratio, u32 vratio, u32 *sh) in gsc_get_prescaler_shfactor() argument
260 if (hratio == 4 && vratio == 4) in gsc_get_prescaler_shfactor()
262 else if ((hratio == 4 && vratio == 2) || in gsc_get_prescaler_shfactor()
263 (hratio == 2 && vratio == 4)) in gsc_get_prescaler_shfactor()
265 else if ((hratio == 4 && vratio == 1) || in gsc_get_prescaler_shfactor()
266 (hratio == 1 && vratio == 4) || in gsc_get_prescaler_shfactor()
267 (hratio == 2 && vratio == 2)) in gsc_get_prescaler_shfactor()
269 else if (hratio == 1 && vratio == 1) in gsc_get_prescaler_shfactor()
277 u32 tx, u32 ty, u32 *hratio) in gsc_check_src_scale_info()
300 remainder = s_frame->crop.height % (*hratio * halig in gsc_check_src_scale_info()
275 gsc_check_src_scale_info(struct gsc_variant *var, struct gsc_frame *s_frame, u32 *wratio, u32 tx, u32 ty, u32 *hratio) gsc_check_src_scale_info() argument
[all...]
H A Dgsc-core.h394 void gsc_get_prescaler_shfactor(u32 hratio, u32 vratio, u32 *sh);
397 u32 *wratio, u32 tx, u32 ty, u32 *hratio);
/kernel/linux/linux-6.6/drivers/media/i2c/
H A Dmt9v032.c190 unsigned int hratio; member
253 min_hblank += (mt9v032->hratio - 1) * 10; in mt9v032_update_hblank()
398 hbin = fls(mt9v032->hratio) - 1; in mt9v032_s_stream()
481 mt9v032->sysclk / mt9v032->hratio); in mt9v032_configure_pixel_rate()
508 unsigned int hratio; in mt9v032_set_format() local
524 hratio = mt9v032_calc_ratio(__crop->width, width); in mt9v032_set_format()
529 __format->width = __crop->width / hratio; in mt9v032_set_format()
533 mt9v032->hratio = hratio; in mt9v032_set_format()
603 mt9v032->hratio in mt9v032_set_selection()
[all...]
H A Dov5693.c820 unsigned int hratio, vratio; in ov5693_set_fmt() local
840 hratio = clamp_t(unsigned int, in ov5693_set_fmt()
848 fmt->width = crop->width / hratio; in ov5693_set_fmt()
859 ov5693->mode.binning_x = hratio > 1; in ov5693_set_fmt()
860 ov5693->mode.inc_x_odd = hratio > 1 ? 3 : 1; in ov5693_set_fmt()
H A Dmt9p031.c597 unsigned int hratio; in mt9p031_set_format() local
613 hratio = DIV_ROUND_CLOSEST(__crop->width, width); in mt9p031_set_format()
618 __format->width = __crop->width / hratio; in mt9p031_set_format()
H A Dimx296.c707 unsigned int hratio; in imx296_set_format() local
716 hratio = DIV_ROUND_CLOSEST(crop->width, width); in imx296_set_format()
719 format->width = crop->width / hratio; in imx296_set_format()
H A Dimx274.c1030 u8 hratio = imx274_modes[i].hbin_ratio; in __imx274_change_compose() local
1035 cur_crop->height / hratio, *height, in __imx274_change_compose()
/kernel/linux/linux-6.6/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()
299 remainder = s_frame->crop.height % (*hratio * halig in gsc_check_src_scale_info()
274 gsc_check_src_scale_info(struct gsc_variant *var, struct gsc_frame *s_frame, u32 *wratio, u32 tx, u32 ty, u32 *hratio) gsc_check_src_scale_info() argument
[all...]
H A Dgsc-core.h401 void gsc_get_prescaler_shfactor(u32 hratio, u32 vratio, u32 *sh);
404 u32 *wratio, u32 tx, u32 ty, u32 *hratio);
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/
H A 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()
H A Dexynos_drm_fimc.c73 * @hratio: horizontal ratio.
81 u32 hratio; member
785 sc->hratio = (src_w << 14) / (dst_w << hfactor); in fimc_set_prescaler()
789 DRM_DEV_DEBUG_KMS(ctx->dev, "hratio[%d]vratio[%d]up_h[%d]up_v[%d]\n", in fimc_set_prescaler()
790 sc->hratio, sc->vratio, sc->up_h, sc->up_v); in fimc_set_prescaler()
813 DRM_DEV_DEBUG_KMS(ctx->dev, "hratio[%d]vratio[%d]\n", in fimc_set_scaler()
814 sc->hratio, sc->vratio); in fimc_set_scaler()
834 cfg |= (EXYNOS_CISCCTRL_MAINHORRATIO((sc->hratio >> 6)) | in fimc_set_scaler()
841 cfg_ext |= (EXYNOS_CIEXTEN_MAINHORRATIO_EXT(sc->hratio) | in fimc_set_scaler()
/kernel/linux/linux-6.6/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.c73 * @hratio: horizontal ratio.
81 u32 hratio; member
783 sc->hratio = (src_w << 14) / (dst_w << hfactor); in fimc_set_prescaler()
787 DRM_DEV_DEBUG_KMS(ctx->dev, "hratio[%d]vratio[%d]up_h[%d]up_v[%d]\n", in fimc_set_prescaler()
788 sc->hratio, sc->vratio, sc->up_h, sc->up_v); in fimc_set_prescaler()
811 DRM_DEV_DEBUG_KMS(ctx->dev, "hratio[%d]vratio[%d]\n", in fimc_set_scaler()
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()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv04/
H A Dtvmodesnv17.c551 int overscan, hmargin, vmargin, hratio, vratio; in nv17_ctv_update_rescaler() local
567 hratio = crtc_mode->hdisplay * 0x800 / in nv17_ctv_update_rescaler()
580 XLATE(hratio, 0, NV_PRAMDAC_FP_DEBUG_1_XSCALE_VALUE); in nv17_ctv_update_rescaler()
/kernel/linux/linux-6.6/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()

Completed in 27 milliseconds