| /linux/drivers/media/i2c/ |
| H A D | mt9v032.c | 199 unsigned int vratio; member 405 vbin = fls(mt9v032->vratio) - 1; in mt9v032_s_stream() 514 unsigned int vratio; in mt9v032_set_format() local 530 vratio = mt9v032_calc_ratio(__crop->height, height); in mt9v032_set_format() 535 __format->height = __crop->height / vratio; in mt9v032_set_format() 539 mt9v032->vratio = vratio; in mt9v032_set_format() 609 mt9v032->vratio = 1; in mt9v032_set_selection() 1168 mt9v032->vratio = 1; in mt9v032_probe()
|
| H A D | mt9p031.c | 592 unsigned int vratio; in mt9p031_set_format() local 608 vratio = DIV_ROUND_CLOSEST(__crop->height, height); in mt9p031_set_format() 613 __format->height = __crop->height / vratio; in mt9p031_set_format()
|
| H A D | mt9m114.c | 805 unsigned int hratio, vratio; in mt9m114_configure_pa() local 818 vratio = crop->height / format->height; in mt9m114_configure_pa() 835 (crop->height - 4) / vratio - 1, &ret); in mt9m114_configure_pa() 842 if (vratio > 1) in mt9m114_configure_pa()
|
| /linux/drivers/gpu/drm/exynos/ |
| H A D | exynos_drm_gsc.c | 725 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 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()
|
| /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/dml2_0/dml21/src/dml2_core/ |
| H A D | dml2_core_dcn6_calcs_dchub.c | 51 …double line_time_us, max_line_time_us = 0, svp0_time_us, svp1_time_us, vratio, vratio_c, swath_tim… in dcn6_calculate_alternate_svp_lines() local 59 vratio = p->display_cfg->plane_descriptors[j].composition.scaler_info.plane0.v_ratio; in dcn6_calculate_alternate_svp_lines() 63 swath_time_us = ((double)p->SwathHeightY[j] / vratio) * line_time_us; in dcn6_calculate_alternate_svp_lines() 94 double vratio; member 118 out->vratio = p->display_cfg->plane_descriptors[plane_idx].composition.scaler_info.plane0.v_ratio; in get_plane_params() 126 out->vratio = p->display_cfg->plane_descriptors[plane_idx].composition.scaler_info.plane1.v_ratio; in get_plane_params() 162 …(in.viewport_start + in.viewport_size - in.vinit, in.swath_height)) / in.vratio + (vblank_end - ds… in compute_pre_rec_first_hdl() 163 …rt + in.vinit - 1, in.swath_height) - in.viewport_start - in.vinit) / in.vratio + (vblank_end - ds… in compute_pre_rec_first_hdl() 402 …double vratio = chroma ? p->display_cfg->plane_descriptors[plane_idx].composition.scaler_info.plan… in calculate_swath_params() local 421 out->recout_hdl_delta = (double)swath_height / vratio; in calculate_swath_params()
|
| /linux/drivers/media/platform/ti/vpe/ |
| H A D | vip.c | 1610 unsigned int hratio, vratio, width_align, height_align; in vip_try_fmt_vid_cap() local 1627 vratio = f->fmt.pix.height * 1000 / in vip_try_fmt_vid_cap() 1635 if (vratio < 188) { in vip_try_fmt_vid_cap()
|