Home
last modified time | relevance | path

Searched refs:dst_h (Results 1 – 19 of 19) sorted by relevance

/linux-4.4.14/drivers/media/platform/ti-vpe/
Dsc.c114 unsigned int dst_h) in sc_set_vs_coeffs() argument
122 if (dst_h > src_h) { in sc_set_vs_coeffs()
124 } else if (dst_h == src_h) { in sc_set_vs_coeffs()
127 sixteenths = (dst_h << 4) / src_h; in sc_set_vs_coeffs()
155 unsigned int dst_w, unsigned int dst_h) in sc_config_scaler() argument
184 if (src_w == dst_w && src_h == dst_h) { in sc_config_scaler()
219 if (dst_h < (src_h >> 2)) { in sc_config_scaler()
228 factor = (u16) ((dst_h << 10) / src_h); in sc_config_scaler()
244 src_h, dst_h, factor, row_acc_init_rav, in sc_config_scaler()
248 row_acc_inc = ((src_h - 1) << 16) / (dst_h - 1); in sc_config_scaler()
[all …]
Dsc.h202 unsigned int dst_h);
205 unsigned int dst_w, unsigned int dst_h);
Dvpe.c814 unsigned int dst_h = d_q_data->c_rect.height; in set_srcdst_params() local
858 sc_set_vs_coeffs(ctx->dev->sc, ctx->sc_coeff_v.addr, src_h, dst_h); in set_srcdst_params()
862 src_w, src_h, dst_w, dst_h); in set_srcdst_params()
/linux-4.4.14/drivers/media/pci/ivtv/
Divtv-yuv.c408 f->tru_h, f->src_h, f->dst_h, f->src_y, f->dst_y); in ivtv_yuv_handle_vertical()
438 reg_2918 = (f->dst_h << 16) | (f->src_h + src_minor_y); in ivtv_yuv_handle_vertical()
440 reg_2918 = (f->dst_h << 16) | ((f->src_h + src_minor_y) << 1); in ivtv_yuv_handle_vertical()
443 reg_291c = (f->dst_h << 16) | ((f->src_h + src_minor_uv) >> 1); in ivtv_yuv_handle_vertical()
445 reg_291c = (f->dst_h << 16) | (f->src_h + src_minor_uv); in ivtv_yuv_handle_vertical()
447 reg_2964_base = (src_minor_y * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical()
448 reg_2968_base = (src_minor_uv * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical()
450 if (f->dst_h / 2 >= f->src_h && !f->interlaced_y) { in ivtv_yuv_handle_vertical()
451 master_height = (f->src_h * 0x00400000) / f->dst_h; in ivtv_yuv_handle_vertical()
452 if ((f->src_h * 0x00400000) - (master_height * f->dst_h) >= f->dst_h / 2) in ivtv_yuv_handle_vertical()
[all …]
Divtv-driver.h403 u32 dst_h; member
/linux-4.4.14/drivers/gpu/drm/
Ddrm_rect.c163 int dst_h = drm_rect_height(dst); in drm_rect_calc_vscale() local
164 int vscale = drm_calc_scale(src_h, dst_h); in drm_rect_calc_vscale()
166 if (vscale < 0 || dst_h == 0) in drm_rect_calc_vscale()
250 int dst_h = drm_rect_height(dst); in drm_rect_calc_vscale_relaxed() local
251 int vscale = drm_calc_scale(src_h, dst_h); in drm_rect_calc_vscale_relaxed()
253 if (vscale < 0 || dst_h == 0) in drm_rect_calc_vscale_relaxed()
259 drm_rect_adjust_size(dst, 0, max_dst_h - dst_h); in drm_rect_calc_vscale_relaxed()
265 int max_src_h = dst_h * max_vscale; in drm_rect_calc_vscale_relaxed()
/linux-4.4.14/drivers/gpu/drm/sti/
Dsti_vid.c54 int dst_h = clamp_val(state->crtc_h, 0, mode->crtc_vdisplay - dst_y); in sti_vid_commit() local
60 dst_h = ALIGN(dst_h, 2); in sti_vid_commit()
68 yds = sti_vtg_get_line_number(*mode, dst_y + dst_h - 1); in sti_vid_commit()
Dsti_hqvdp.c500 int dst_w, int dst_h) in sti_hqvdp_check_hw_scaling() argument
508 inv_zy = DIV_ROUND_UP(src_h, dst_h); in sti_hqvdp_check_hw_scaling()
791 int dst_h = clamp_val(state->crtc_h, 0, mode->crtc_vdisplay - dst_y); in sti_hqvdp_atomic_update() local
808 dst_w, dst_h, dst_x, dst_y, in sti_hqvdp_atomic_update()
820 dst_w, dst_h)) { in sti_hqvdp_atomic_update()
861 dst_h = ALIGN(dst_h, 2); in sti_hqvdp_atomic_update()
866 (dst_h > MAX_HEIGHT) || (dst_h < MIN_HEIGHT)) { in sti_hqvdp_atomic_update()
869 dst_w, dst_h); in sti_hqvdp_atomic_update()
875 cmd->hvsrc.output_picture_size = dst_h << 16 | dst_w; in sti_hqvdp_atomic_update()
900 scale_v = SCALE_FACTOR * dst_h / src_h; in sti_hqvdp_atomic_update()
Dsti_gdp.c395 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_update() local
417 dst_h = clamp_val(state->crtc_h, 0, mode->crtc_vdisplay - dst_y); in sti_gdp_atomic_update()
429 dst_w, dst_h, dst_x, dst_y, in sti_gdp_atomic_update()
475 yds = sti_vtg_get_line_number(*mode, dst_y + dst_h - 1); in sti_gdp_atomic_update()
Dsti_cursor.c126 int dst_h = clamp_val(state->crtc_h, 0, mode->crtc_vdisplay - dst_y); in sti_cursor_atomic_update() local
138 DRM_DEBUG_KMS("(%dx%d)@(%d,%d)\n", dst_w, dst_h, dst_x, dst_y); in sti_cursor_atomic_update()
/linux-4.4.14/drivers/gpu/drm/rockchip/
Drockchip_drm_vop.h240 static inline uint16_t scl_get_bili_dn_vskip(int src_h, int dst_h, in scl_get_bili_dn_vskip() argument
247 return GET_SCL_FT_BILI_DN(act_height, dst_h); in scl_get_bili_dn_vskip()
Drockchip_drm_vop.c520 uint32_t dst_h, uint32_t pixel_format) in scl_vop_cal_scl_fac() argument
541 yrgb_ver_scl_mode = scl_get_scl_mode(src_h, dst_h); in scl_vop_cal_scl_fac()
545 cbcr_ver_scl_mode = scl_get_scl_mode(cbcr_src_h, dst_h); in scl_vop_cal_scl_fac()
577 val = scl_vop_cal_scale(yrgb_ver_scl_mode, src_h, dst_h, in scl_vop_cal_scl_fac()
594 dst_h, false, vsu_mode, &vskiplines); in scl_vop_cal_scl_fac()
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_display.c692 u32 src_h = 1, dst_h = 1; in amdgpu_crtc_scaling_mode_fixup() local
719 dst_h = amdgpu_crtc->native_mode.hdisplay; in amdgpu_crtc_scaling_mode_fixup()
739 dst_h = crtc->mode.hdisplay - (amdgpu_crtc->h_border * 2); in amdgpu_crtc_scaling_mode_fixup()
748 b.full = dfixed_const(dst_h); in amdgpu_crtc_scaling_mode_fixup()
/linux-4.4.14/drivers/media/platform/sti/bdisp/
Dbdisp-hw.c335 u32 src_w, src_h, dst_w, dst_h; in bdisp_hw_get_hv_inc() local
340 dst_h = ctx->dst.crop.height; in bdisp_hw_get_hv_inc()
343 bdisp_hw_get_inc(src_h, dst_h, v_inc)) { in bdisp_hw_get_hv_inc()
346 src_w, src_h, dst_w, dst_h); in bdisp_hw_get_hv_inc()
/linux-4.4.14/drivers/gpu/drm/i915/
Dintel_overlay.c475 short dst_h; member
611 if (params->dst_h > 1) in update_scaling_factors()
613 /(params->dst_h); in update_scaling_factors()
788 iowrite32((params->dst_h << 16) | params->dst_w, &regs->DWINSZ); in intel_overlay_do_put_image()
938 tmp = ((rec->src_scan_h << 16) / rec->dst_h) >> 16; in check_overlay_scaling()
1177 params->dst_h = ((((u32)put_image_rec->dst_height) << 12) / in intel_overlay_put_image()
1181 params->dst_h = put_image_rec->dst_height; in intel_overlay_put_image()
Dintel_display.c3106 int dst_x = 0, dst_y = 0, dst_w = 0, dst_h = 0; in skylake_update_primary_plane() local
3144 dst_h = drm_rect_height(&plane_state->dst); in skylake_update_primary_plane()
3175 WARN_ON(!dst_w || !dst_h); in skylake_update_primary_plane()
3181 I915_WRITE(SKL_PS_WIN_SZ(pipe, scaler_id), (dst_w << 16) | dst_h); in skylake_update_primary_plane()
4374 int src_w, int src_h, int dst_w, int dst_h) in skl_update_scaler() argument
4383 (src_h != dst_w || src_w != dst_h): in skl_update_scaler()
4384 (src_w != dst_w || src_h != dst_h); in skl_update_scaler()
4412 dst_w < SKL_MIN_DST_W || dst_h < SKL_MIN_DST_H || in skl_update_scaler()
4415 dst_w > SKL_MAX_DST_W || dst_h > SKL_MAX_DST_H) { in skl_update_scaler()
4418 intel_crtc->pipe, scaler_user, src_w, src_h, dst_w, dst_h); in skl_update_scaler()
[all …]
/linux-4.4.14/drivers/gpu/drm/exynos/
Dexynos_drm_gsc.c920 u32 src_w, src_h, dst_w, dst_h; in gsc_set_prescaler() local
928 dst_h = dst->w; in gsc_set_prescaler()
931 dst_h = dst->h; in gsc_set_prescaler()
940 ret = gsc_get_ratio_shift(src_h, dst_h, &sc->pre_vratio); in gsc_set_prescaler()
950 sc->main_vratio = (src_h << 16) / dst_h; in gsc_set_prescaler()
Dexynos_drm_fimc.c950 u32 src_w, src_h, dst_w, dst_h; in fimc_set_prescaler() local
963 dst_h = dst->w; in fimc_set_prescaler()
966 dst_h = dst->h; in fimc_set_prescaler()
976 vfactor = fls(src_h / dst_h / 2); in fimc_set_prescaler()
989 sc->vratio = (src_h << 14) / (dst_h << vfactor); in fimc_set_prescaler()
991 sc->up_v = (dst_h >= src_h) ? true : false; in fimc_set_prescaler()
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_display.c1736 u32 src_h = 1, dst_h = 1; in radeon_crtc_scaling_mode_fixup() local
1764 dst_h = radeon_crtc->native_mode.hdisplay; in radeon_crtc_scaling_mode_fixup()
1785 dst_h = crtc->mode.hdisplay - (radeon_crtc->h_border * 2); in radeon_crtc_scaling_mode_fixup()
1807 b.full = dfixed_const(dst_h); in radeon_crtc_scaling_mode_fixup()