Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/i2c/
Datomisp-gc2235.c686 unsigned int h_ratio; in distance() local
691 h_ratio = (res->height << 13) / h; in distance()
692 if (h_ratio == 0) in distance()
694 match = abs(((w_ratio << 13) / h_ratio) - 8192); in distance()
696 if ((w_ratio < 8192) || (h_ratio < 8192) || in distance()
700 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.c857 unsigned int h_ratio; in distance() local
862 h_ratio = (res->height << 13) / h; in distance()
863 if (h_ratio == 0) in distance()
865 match = abs(((w_ratio << 13) / h_ratio) - 8192); in distance()
867 if ((w_ratio < 8192) || (h_ratio < 8192) || in distance()
871 return w_ratio + h_ratio; in distance()
Datomisp-gc0310.c899 unsigned int h_ratio; in distance() local
904 h_ratio = (res->height << 13) / h; in distance()
905 if (h_ratio == 0) in distance()
907 match = abs(((w_ratio << 13) / h_ratio) - 8192); in distance()
909 if ((w_ratio < 8192) || (h_ratio < 8192) || in distance()
913 return w_ratio + h_ratio; in distance()
Datomisp-mt9m114.c595 unsigned int h_ratio; in distance() local
603 h_ratio = (res->height << 13) / h; in distance()
604 if (h_ratio == 0) in distance()
606 match = abs(((w_ratio << 13) / h_ratio) - 8192); in distance()
608 if ((w_ratio < 8192) || (h_ratio < 8192) || in distance()
612 return w_ratio + h_ratio; in distance()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/inc/
Ddcn_calcs.h200 float h_ratio[number_of_planes_minus_one + 1]; member
/kernel/linux/linux-5.10/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()