Lines Matching refs:ratio_y
200 static void meson_overlay_get_vertical_phase(unsigned int ratio_y, int *phase, in meson_overlay_get_vertical_phase() argument
207 if (!interlace && ratio_y > (1 << 18)) in meson_overlay_get_vertical_phase()
208 offset_out = (1 * ratio_y) >> 10; in meson_overlay_get_vertical_phase()
242 unsigned int ratio_x, ratio_y; in meson_overlay_setup_scaler_params() local
276 ratio_y = (h_in << 18) / video_height; in meson_overlay_setup_scaler_params()
281 DRM_DEBUG("ratio x 0x%x y 0x%x\n", ratio_x, ratio_y); in meson_overlay_setup_scaler_params()
283 meson_overlay_get_vertical_phase(ratio_y, &vphase, &vphase_repeat_skip, in meson_overlay_setup_scaler_params()
290 start = video_top + video_height / 2 - ((h_in << 17) / ratio_y); in meson_overlay_setup_scaler_params()
291 end = (h_in << 18) / ratio_y + start - 1; in meson_overlay_setup_scaler_params()
294 vd_start_lines = (-(start) * ratio_y) >> 18; in meson_overlay_setup_scaler_params()
296 vd_start_lines = ((video_top - start) * ratio_y) >> 18; in meson_overlay_setup_scaler_params()
309 temp = vd_start_lines + (temp_height * ratio_y >> 18); in meson_overlay_setup_scaler_params()
387 priv->viu.vpp_vsc_start_phase_step = ratio_y << 6; in meson_overlay_setup_scaler_params()
468 priv->viu.vpp_vsc_start_phase_step = ratio_y << 6; in meson_overlay_setup_scaler_params()