/Linux-v4.19/drivers/media/platform/ti-vpe/ |
D | sc.c | 114 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() 152 unsigned int dst_w, unsigned int dst_h) in sc_config_scaler() argument 181 if (src_w == dst_w && src_h == dst_h) { in sc_config_scaler() 216 if (dst_h < (src_h >> 2)) { in sc_config_scaler() 225 factor = (u16) ((dst_h << 10) / src_h); in sc_config_scaler() 241 src_h, dst_h, factor, row_acc_init_rav, in sc_config_scaler() 245 row_acc_inc = ((src_h - 1) << 16) / (dst_h - 1); in sc_config_scaler() [all …]
|
D | sc.h | 205 unsigned int dst_h); 208 unsigned int dst_w, unsigned int dst_h);
|
D | vpe.c | 863 unsigned int dst_h = d_q_data->c_rect.height; in set_srcdst_params() local 908 sc_set_vs_coeffs(ctx->dev->sc, ctx->sc_coeff_v.addr, src_h, dst_h); in set_srcdst_params() 912 src_w, src_h, dst_w, dst_h); in set_srcdst_params() 2081 unsigned int dst_h = d_q_data->c_rect.height; in check_srcdst_sizes() local 2083 if (src_w == dst_w && src_h == dst_h) in check_srcdst_sizes() 2088 dst_h <= SC_MAX_PIXEL_HEIGHT && in check_srcdst_sizes()
|
/Linux-v4.19/drivers/media/pci/ivtv/ |
D | ivtv-yuv.c | 407 f->tru_h, f->src_h, f->dst_h, f->src_y, f->dst_y); in ivtv_yuv_handle_vertical() 437 reg_2918 = (f->dst_h << 16) | (f->src_h + src_minor_y); in ivtv_yuv_handle_vertical() 439 reg_2918 = (f->dst_h << 16) | ((f->src_h + src_minor_y) << 1); in ivtv_yuv_handle_vertical() 442 reg_291c = (f->dst_h << 16) | ((f->src_h + src_minor_uv) >> 1); in ivtv_yuv_handle_vertical() 444 reg_291c = (f->dst_h << 16) | (f->src_h + src_minor_uv); in ivtv_yuv_handle_vertical() 446 reg_2964_base = (src_minor_y * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical() 447 reg_2968_base = (src_minor_uv * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical() 449 if (f->dst_h / 2 >= f->src_h && !f->interlaced_y) { in ivtv_yuv_handle_vertical() 450 master_height = (f->src_h * 0x00400000) / f->dst_h; in ivtv_yuv_handle_vertical() 451 if ((f->src_h * 0x00400000) - (master_height * f->dst_h) >= f->dst_h / 2) in ivtv_yuv_handle_vertical() [all …]
|
/Linux-v4.19/drivers/gpu/drm/zte/ |
D | zx_plane.c | 152 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h) in zx_vl_rsz_setup() argument 161 zx_writel(rsz + RSZ_DEST_CFG, RSZ_VER(dst_h - 1) | RSZ_HOR(dst_w - 1)); in zx_vl_rsz_setup() 178 zx_writel(rsz + RSZ_VL_LUMA_VER, rsz_step_value(src_h, dst_h)); in zx_vl_rsz_setup() 180 zx_writel(rsz + RSZ_VL_CHROMA_VER, rsz_step_value(src_chroma_h, dst_h)); in zx_vl_rsz_setup() 199 u32 dst_x, dst_y, dst_w, dst_h; in zx_vl_plane_atomic_update() local 218 dst_h = drm_rect_height(dst); in zx_vl_plane_atomic_update() 240 GL_POS_X(dst_x + dst_w) | GL_POS_Y(dst_y + dst_h)); in zx_vl_plane_atomic_update() 255 zx_vl_rsz_setup(zplane, format, src_w, src_h, dst_w, dst_h); in zx_vl_plane_atomic_update() 345 u32 dst_w, u32 dst_h) in zx_gl_rsz_setup() argument 350 zx_writel(rsz + RSZ_DEST_CFG, RSZ_VER(dst_h - 1) | RSZ_HOR(dst_w - 1)); in zx_gl_rsz_setup() [all …]
|
/Linux-v4.19/drivers/gpu/drm/ |
D | drm_rect.c | 197 int dst_h = drm_rect_height(dst); in drm_rect_calc_vscale() local 198 int vscale = drm_calc_scale(src_h, dst_h); in drm_rect_calc_vscale() 200 if (vscale < 0 || dst_h == 0) in drm_rect_calc_vscale() 292 int dst_h = drm_rect_height(dst); in drm_rect_calc_vscale_relaxed() local 293 int vscale = drm_calc_scale(src_h, dst_h); in drm_rect_calc_vscale_relaxed() 295 if (vscale < 0 || dst_h == 0) in drm_rect_calc_vscale_relaxed() 301 drm_rect_adjust_size(dst, 0, max_dst_h - dst_h); in drm_rect_calc_vscale_relaxed() 307 int max_src_h = dst_h * max_vscale; in drm_rect_calc_vscale_relaxed()
|
/Linux-v4.19/drivers/gpu/drm/sti/ |
D | sti_hqvdp.c | 474 int src_w, src_h, dst_w, dst_h; in hqvdp_dbg_dump_cmd() local 514 dst_h = c->hvsrc.output_picture_size >> 16; in hqvdp_dbg_dump_cmd() 515 seq_printf(s, "\t%dx%d", dst_w, dst_h); in hqvdp_dbg_dump_cmd() 534 if (dst_h > src_h) in hqvdp_dbg_dump_cmd() 535 seq_printf(s, " %d/1", dst_h / src_h); in hqvdp_dbg_dump_cmd() 537 seq_printf(s, " 1/%d", src_h / dst_h); in hqvdp_dbg_dump_cmd() 729 int dst_w, int dst_h) in sti_hqvdp_check_hw_scaling() argument 737 inv_zy = DIV_ROUND_UP(src_h, dst_h); in sti_hqvdp_check_hw_scaling() 1022 int dst_x, dst_y, dst_w, dst_h; in sti_hqvdp_atomic_check() local 1034 dst_h = clamp_val(state->crtc_h, 0, mode->vdisplay - dst_y); in sti_hqvdp_atomic_check() [all …]
|
D | sti_vid.c | 145 int dst_h = clamp_val(state->crtc_h, 0, mode->vdisplay - dst_y); in sti_vid_commit() local 152 dst_h = ALIGN(dst_h, 2); in sti_vid_commit() 160 yds = sti_vtg_get_line_number(*mode, dst_y + dst_h - 1); in sti_vid_commit()
|
D | sti_gdp.c | 622 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_check() local 636 dst_h = clamp_val(state->crtc_h, 0, mode->vdisplay - dst_y); in sti_gdp_atomic_check() 686 dst_w, dst_h, dst_x, dst_y, in sti_gdp_atomic_check() 701 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_update() local 745 dst_h = clamp_val(state->crtc_h, 0, mode->vdisplay - dst_y); in sti_gdp_atomic_update() 781 dst_h = sti_gdp_get_dst(gdp->dev, dst_h, src_h); in sti_gdp_atomic_update() 783 yds = sti_vtg_get_line_number(*mode, dst_y + dst_h - 1); in sti_gdp_atomic_update()
|
D | sti_cursor.c | 190 int dst_x, dst_y, dst_w, dst_h; in sti_cursor_atomic_check() local 202 dst_h = clamp_val(state->crtc_h, 0, mode->crtc_vdisplay - dst_y); in sti_cursor_atomic_check() 247 DRM_DEBUG_KMS("(%dx%d)@(%d,%d)\n", dst_w, dst_h, dst_x, dst_y); in sti_cursor_atomic_check()
|
/Linux-v4.19/drivers/gpu/drm/sun4i/ |
D | sun8i_ui_layer.c | 79 u32 src_w, src_h, dst_w, dst_h; in sun8i_ui_layer_update_coord() local 89 dst_h = drm_rect_height(&state->dst); in sun8i_ui_layer_update_coord() 95 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_ui_layer_update_coord() 102 dst_w, dst_h); in sun8i_ui_layer_update_coord() 147 dst_h, hscale, vscale, hphase, vphase); in sun8i_ui_layer_update_coord() 157 DRM_DEBUG_DRIVER("Layer destination size W: %d H: %d\n", dst_w, dst_h); in sun8i_ui_layer_update_coord()
|
D | sun8i_vi_layer.c | 74 u32 src_w, src_h, dst_w, dst_h; in sun8i_vi_layer_update_coord() local 85 dst_h = drm_rect_height(&state->dst); in sun8i_vi_layer_update_coord() 110 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_vi_layer_update_coord() 139 dst_h, hscale, vscale, hphase, vphase, in sun8i_vi_layer_update_coord() 150 DRM_DEBUG_DRIVER("Layer destination size W: %d H: %d\n", dst_w, dst_h); in sun8i_vi_layer_update_coord()
|
D | sun8i_ui_scaler.c | 134 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h, in sun8i_ui_scaler_setup() argument 150 outsize = SUN8I_UI_SCALER_SIZE(dst_w, dst_h); in sun8i_ui_scaler_setup()
|
D | sun8i_vi_scaler.c | 914 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h, in sun8i_vi_scaler_setup() argument 927 outsize = SUN8I_VI_SCALER_SIZE(dst_w, dst_h); in sun8i_vi_scaler_setup()
|
D | sun8i_ui_scaler.h | 46 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h,
|
D | sun8i_vi_scaler.h | 54 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h,
|
/Linux-v4.19/drivers/media/platform/rockchip/rga/ |
D | rga-hw.c | 174 unsigned int src_h, src_w, src_x, src_y, dst_h, dst_w, dst_x, dst_y; in rga_cmd_set_trans_info() local 192 dst_h = ctx->out.crop.height; in rga_cmd_set_trans_info() 269 if (abs(src_w - dst_h) < 16) in rga_cmd_set_trans_info() 274 scale_dst_w = dst_h; in rga_cmd_set_trans_info() 277 scale_dst_h = dst_h; in rga_cmd_set_trans_info() 317 dst_act_info.data.act_height = dst_h - 1; in rga_cmd_set_trans_info() 329 offsets = rga_get_addr_offset(&ctx->out, dst_x, dst_y, dst_w, dst_h); in rga_cmd_set_trans_info()
|
/Linux-v4.19/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_vop.h | 296 static inline uint16_t scl_get_bili_dn_vskip(int src_h, int dst_h, in scl_get_bili_dn_vskip() argument 303 if (act_height == dst_h) in scl_get_bili_dn_vskip() 304 return GET_SCL_FT_BILI_DN(src_h, dst_h) / vskiplines; in scl_get_bili_dn_vskip() 306 return GET_SCL_FT_BILI_DN(act_height, dst_h); in scl_get_bili_dn_vskip()
|
D | rockchip_drm_vop.c | 282 uint32_t dst_h, uint32_t pixel_format) in scl_vop_cal_scl_fac() argument 312 scl_cal_scale2(src_h, dst_h)); in scl_vop_cal_scl_fac() 317 scl_cal_scale2(cbcr_src_h, dst_h)); in scl_vop_cal_scl_fac() 323 yrgb_ver_scl_mode = scl_get_scl_mode(src_h, dst_h); in scl_vop_cal_scl_fac() 327 cbcr_ver_scl_mode = scl_get_scl_mode(cbcr_src_h, dst_h); in scl_vop_cal_scl_fac() 359 val = scl_vop_cal_scale(yrgb_ver_scl_mode, src_h, dst_h, in scl_vop_cal_scl_fac() 376 dst_h, false, vsu_mode, &vskiplines); in scl_vop_cal_scl_fac()
|
/Linux-v4.19/drivers/media/platform/sti/bdisp/ |
D | bdisp-hw.c | 630 u32 src_w, src_h, dst_w, dst_h; in bdisp_hw_get_hv_inc() local 635 dst_h = ctx->dst.crop.height; in bdisp_hw_get_hv_inc() 638 bdisp_hw_get_inc(src_h, dst_h, v_inc)) { in bdisp_hw_get_hv_inc() 641 src_w, src_h, dst_w, dst_h); in bdisp_hw_get_hv_inc()
|
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_display.c | 665 u32 src_h = 1, dst_h = 1; in amdgpu_display_crtc_scaling_mode_fixup() local 692 dst_h = amdgpu_crtc->native_mode.hdisplay; in amdgpu_display_crtc_scaling_mode_fixup() 712 dst_h = crtc->mode.hdisplay - (amdgpu_crtc->h_border * 2); in amdgpu_display_crtc_scaling_mode_fixup() 721 b.full = dfixed_const(dst_h); in amdgpu_display_crtc_scaling_mode_fixup()
|
/Linux-v4.19/drivers/gpu/drm/i915/ |
D | intel_overlay.c | 495 short dst_h; member 637 if (params->dst_h > 1) in update_scaling_factors() 639 /(params->dst_h); in update_scaling_factors() 810 iowrite32((params->dst_h << 16) | params->dst_w, ®s->DWINSZ); in intel_overlay_do_put_image() 946 tmp = ((rec->src_scan_h << 16) / rec->dst_h) >> 16; in check_overlay_scaling() 1156 params->dst_h = ((((u32)put_image_rec->dst_height) << 12) / in intel_overlay_put_image_ioctl() 1160 params->dst_h = put_image_rec->dst_height; in intel_overlay_put_image_ioctl()
|
/Linux-v4.19/drivers/gpu/drm/exynos/ |
D | exynos_drm_gsc.c | 743 u32 src_w, src_h, dst_w, dst_h; in gsc_set_prescaler() local 751 dst_h = dst->w; in gsc_set_prescaler() 754 dst_h = dst->h; in gsc_set_prescaler() 763 ret = gsc_get_ratio_shift(src_h, dst_h, &sc->pre_vratio); in gsc_set_prescaler() 773 sc->main_vratio = (src_h << 16) / dst_h; in gsc_set_prescaler()
|
D | exynos_drm_fimc.c | 745 u32 src_w, src_h, dst_w, dst_h; in fimc_set_prescaler() local 758 dst_h = dst->w; in fimc_set_prescaler() 761 dst_h = dst->h; in fimc_set_prescaler() 771 vfactor = fls(src_h / dst_h / 2); in fimc_set_prescaler() 784 sc->vratio = (src_h << 14) / (dst_h << vfactor); in fimc_set_prescaler() 786 sc->up_v = (dst_h >= src_h) ? true : false; in fimc_set_prescaler()
|
/Linux-v4.19/drivers/gpu/drm/radeon/ |
D | radeon_display.c | 1687 u32 src_h = 1, dst_h = 1; in radeon_crtc_scaling_mode_fixup() local 1715 dst_h = radeon_crtc->native_mode.hdisplay; in radeon_crtc_scaling_mode_fixup() 1736 dst_h = crtc->mode.hdisplay - (radeon_crtc->h_border * 2); in radeon_crtc_scaling_mode_fixup() 1758 b.full = dfixed_const(dst_h); in radeon_crtc_scaling_mode_fixup()
|