Home
last modified time | relevance | path

Searched refs:h_ratio (Results 1 – 12 of 12) sorted by relevance

/drivers/gpu/drm/amd/display/dc/calcs/
Ddcn_calc_auto.c46 v->h_ratio[k] = v->viewport_width[k] / v->scaler_rec_out_width[k]; in scaler_settings_calculation()
50 v->h_ratio[k] = v->viewport_height[k] / v->scaler_rec_out_width[k]; in scaler_settings_calculation()
56 …v->h_ratio[k] =dcn_bw_max2(v->viewport_width[k] / v->scaler_rec_out_width[k], v->viewport_height[k… in scaler_settings_calculation()
59 …v->h_ratio[k] =dcn_bw_max2(v->viewport_height[k] / v->scaler_rec_out_width[k], v->viewport_width[k… in scaler_settings_calculation()
61 v->v_ratio[k] = v->h_ratio[k]; in scaler_settings_calculation()
67 v->h_ratio[k] = v->h_ratio[k] * v->under_scan_factor; in scaler_settings_calculation()
74 if (v->h_ratio[k] > 1.0) { in scaler_settings_calculation()
75 …v->acceptable_quality_hta_ps =dcn_bw_min2(v->max_hscl_taps, 2.0 *dcn_bw_ceil2(v->h_ratio[k], 1.0)); in scaler_settings_calculation()
77 else if (v->h_ratio[k] < 1.0) { in scaler_settings_calculation()
132h_ratio[k] > v->max_hscl_ratio || v->v_ratio[k] > v->max_vscl_ratio || v->h_ratio[k] > v->htaps[k]… in mode_support_and_system_configuration()
[all …]
/drivers/gpu/drm/exynos/
Dexynos_drm_plane.c86 exynos_state->h_ratio = (src_w << 16) / crtc_w; in exynos_plane_mode_set()
95 src_x += ((-crtc_x) * exynos_state->h_ratio) >> 16; in exynos_plane_mode_set()
108 exynos_state->src.w = (actual_w * exynos_state->h_ratio) >> 16; in exynos_plane_mode_set()
216 state->h_ratio == (1 << 15)) in exynos_drm_plane_check_size()
Dexynos_drm_scaler.c267 u32 val, h_ratio, v_ratio; in scaler_set_hv_ratio() local
270 h_ratio = (src_pos->h << 16) / dst_pos->w; in scaler_set_hv_ratio()
273 h_ratio = (src_pos->w << 16) / dst_pos->w; in scaler_set_hv_ratio()
277 val = SCALER_H_RATIO_SET(h_ratio); in scaler_set_hv_ratio()
Dexynos_drm_drv.h67 unsigned int h_ratio; member
Dexynos_mixer.c578 vp_reg_write(ctx, VP_H_RATIO, state->h_ratio); in vp_video_buffer()
642 x_ratio = state->h_ratio == (1 << 15); in mixer_graph_buffer()
/drivers/staging/media/atomisp/i2c/
Datomisp-gc2235.c687 unsigned int h_ratio; in distance() local
692 h_ratio = (res->height << 13) / h; in distance()
693 if (h_ratio == 0) in distance()
695 match = abs(((w_ratio << 13) / h_ratio) - 8192); in distance()
697 if ((w_ratio < 8192) || (h_ratio < 8192) || in distance()
701 return w_ratio + h_ratio; in distance()
Datomisp-ov2722.c799 unsigned int h_ratio; in distance() local
804 h_ratio = (res->height << 13) / h; in distance()
805 if (h_ratio == 0) in distance()
807 match = abs(((w_ratio << 13) / h_ratio) - 8192); in distance()
809 if ((w_ratio < 8192) || (h_ratio < 8192) || in distance()
813 return w_ratio + h_ratio; in distance()
Datomisp-ov2680.c860 unsigned int h_ratio; in distance() local
865 h_ratio = (res->height << 13) / h; in distance()
866 if (h_ratio == 0) in distance()
868 match = abs(((w_ratio << 13) / h_ratio) - 8192); in distance()
870 if ((w_ratio < 8192) || (h_ratio < 8192) || in distance()
874 return w_ratio + h_ratio; in distance()
Datomisp-gc0310.c895 unsigned int h_ratio; in distance() local
900 h_ratio = (res->height << 13) / h; in distance()
901 if (h_ratio == 0) in distance()
903 match = abs(((w_ratio << 13) / h_ratio) - 8192); in distance()
905 if ((w_ratio < 8192) || (h_ratio < 8192) || in distance()
909 return w_ratio + h_ratio; in distance()
Datomisp-mt9m114.c596 unsigned int h_ratio; in distance() local
604 h_ratio = (res->height << 13) / h; in distance()
605 if (h_ratio == 0) in distance()
607 match = abs(((w_ratio << 13) / h_ratio) - 8192); in distance()
609 if ((w_ratio < 8192) || (h_ratio < 8192) || in distance()
613 return w_ratio + h_ratio; in distance()
/drivers/gpu/drm/amd/display/dc/inc/
Ddcn_calcs.h200 float h_ratio[number_of_planes_minus_one + 1]; member
/drivers/media/platform/s5p-jpeg/
Djpeg-core.c1709 int w_ratio, h_ratio, scale_factor, cur_ratio, i; in exynos3250_jpeg_try_downscale() local
1712 h_ratio = ctx->out_q.h / r->height; in exynos3250_jpeg_try_downscale()
1714 scale_factor = w_ratio > h_ratio ? w_ratio : h_ratio; in exynos3250_jpeg_try_downscale()