/linux/drivers/media/platform/ti/vpe/ |
H A D | sc.c | 111 unsigned int dst_h) in sc_set_vs_coeffs() argument 119 if (dst_h > src_h) { in sc_set_vs_coeffs() 121 } else if (dst_h == src_h) { in sc_set_vs_coeffs() 124 sixteenths = (dst_h << 4) / src_h; in sc_set_vs_coeffs() 149 unsigned int dst_w, unsigned int dst_h) in sc_config_scaler() argument 178 if (src_w == dst_w && src_h == dst_h) { in sc_config_scaler() 213 if (dst_h < (src_h >> 2)) { in sc_config_scaler() 222 factor = (u16) ((dst_h << 10) / src_h); in sc_config_scaler() 237 dev_dbg(dev, "vs config(RAV): src_h = %d, dst_h = %d, factor = %d, acc_init = %08x, acc_init_b = %08x\n", in sc_config_scaler() 238 src_h, dst_h, facto in sc_config_scaler() [all...] |
H A D | sc.h | 202 unsigned int dst_h); 205 unsigned int dst_w, unsigned int dst_h);
|
H A D | vpe.c | 866 unsigned int dst_h = d_q_data->c_rect.height; in set_srcdst_params() local 913 sc_set_vs_coeffs(ctx->dev->sc, ctx->sc_coeff_v.addr, src_h, dst_h); in set_srcdst_params() 917 src_w, src_h, dst_w, dst_h); in set_srcdst_params() 2110 unsigned int dst_h = d_q_data->c_rect.height; in check_srcdst_sizes() local 2112 if (src_w == dst_w && src_h == dst_h) in check_srcdst_sizes() 2117 dst_h <= SC_MAX_PIXEL_HEIGHT && in check_srcdst_sizes()
|
/linux/drivers/media/pci/ivtv/ |
H A D | ivtv-yuv.c | 395 ("Adjust to height %d src_h %d dst_h %d src_y %d dst_y %d\n", in ivtv_yuv_handle_vertical() 396 f->tru_h, f->src_h, f->dst_h, f->src_y, f->dst_y); in ivtv_yuv_handle_vertical() 426 reg_2918 = (f->dst_h << 16) | (f->src_h + src_minor_y); in ivtv_yuv_handle_vertical() 428 reg_2918 = (f->dst_h << 16) | ((f->src_h + src_minor_y) << 1); in ivtv_yuv_handle_vertical() 431 reg_291c = (f->dst_h << 16) | ((f->src_h + src_minor_uv) >> 1); in ivtv_yuv_handle_vertical() 433 reg_291c = (f->dst_h << 16) | (f->src_h + src_minor_uv); in ivtv_yuv_handle_vertical() 435 reg_2964_base = (src_minor_y * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical() 436 reg_2968_base = (src_minor_uv * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical() 438 if (f->dst_h / 2 >= f->src_h && !f->interlaced_y) { in ivtv_yuv_handle_vertical() 439 master_height = (f->src_h * 0x00400000) / f->dst_h; in ivtv_yuv_handle_vertical() [all...] |
/linux/drivers/gpu/drm/sti/ |
H A D | sti_hqvdp.c | 482 int src_w, src_h, dst_w, dst_h; in hqvdp_dbg_dump_cmd() local 522 dst_h = c->hvsrc.output_picture_size >> 16; in hqvdp_dbg_dump_cmd() 523 seq_printf(s, "\t%dx%d", dst_w, dst_h); in hqvdp_dbg_dump_cmd() 542 if (dst_h > src_h) in hqvdp_dbg_dump_cmd() 543 seq_printf(s, " %d/1", dst_h / src_h); in hqvdp_dbg_dump_cmd() 545 seq_printf(s, " 1/%d", src_h / dst_h); in hqvdp_dbg_dump_cmd() 720 * @dst_h: destination height 737 int dst_w, int dst_h) in sti_hqvdp_check_hw_scaling() argument 745 inv_zy = DIV_ROUND_UP(src_h, dst_h); in sti_hqvdp_check_hw_scaling() 1032 int dst_x, dst_y, dst_w, dst_h; in sti_hqvdp_atomic_check() local 1128 int dst_x, dst_y, dst_w, dst_h; sti_hqvdp_atomic_update() local [all...] |
H A D | sti_vid.c | 147 int dst_h = clamp_val(state->crtc_h, 0, mode->vdisplay - dst_y); in sti_vid_commit() local 154 dst_h = ALIGN(dst_h, 2); in sti_vid_commit() 162 yds = sti_vtg_get_line_number(*mode, dst_y + dst_h - 1); in sti_vid_commit()
|
H A D | sti_gdp.c | 631 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_check() local 648 dst_h = clamp_val(new_plane_state->crtc_h, 0, mode->vdisplay - dst_y); in sti_gdp_atomic_check() 700 dst_w, dst_h, dst_x, dst_y, in sti_gdp_atomic_check() 718 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_update() local 762 dst_h = clamp_val(newstate->crtc_h, 0, mode->vdisplay - dst_y); in sti_gdp_atomic_update() 798 dst_h = sti_gdp_get_dst(gdp->dev, dst_h, src_h); in sti_gdp_atomic_update() 800 yds = sti_vtg_get_line_number(*mode, dst_y + dst_h - 1); in sti_gdp_atomic_update()
|
H A D | sti_cursor.c | 195 int dst_x, dst_y, dst_w, dst_h; in sti_cursor_atomic_check() local 211 dst_h = clamp_val(new_plane_state->crtc_h, 0, in sti_cursor_atomic_check() 257 DRM_DEBUG_KMS("(%dx%d)@(%d,%d)\n", dst_w, dst_h, dst_x, dst_y); in sti_cursor_atomic_check()
|
/linux/drivers/media/platform/rockchip/rga/ |
H A D | rga-hw.c | 158 unsigned int src_h, src_w, dst_h, dst_w; in rga_cmd_set_trans_info() local 170 dst_h = ctx->out.crop.height; in rga_cmd_set_trans_info() 248 if (abs(src_w - dst_h) < 16) in rga_cmd_set_trans_info() 253 scale_dst_w = dst_h; in rga_cmd_set_trans_info() 256 scale_dst_h = dst_h; in rga_cmd_set_trans_info() 296 dst_act_info.data.act_height = dst_h - 1; in rga_cmd_set_trans_info() 346 unsigned int dst_h, dst_w, dst_x, dst_y; in rga_cmd_set_dst_info() local 350 dst_h = ctx->out.crop.height; in rga_cmd_set_dst_info() 378 offsets = rga_get_addr_offset(&ctx->out, offset, dst_x, dst_y, dst_w, dst_h); in rga_cmd_set_dst_info()
|
/linux/drivers/gpu/drm/meson/ |
H A D | meson_plane.c | 148 int src_w, src_h, dst_w, dst_h; in meson_plane_atomic_update() local 267 dst_h = new_state->crtc_h; in meson_plane_atomic_update() 279 dst_h /= 2; in meson_plane_atomic_update() 283 vf_phase_step = (src_h << 20) / dst_h; in meson_plane_atomic_update() 293 if (src_h != dst_h || src_w != dst_w) { in meson_plane_atomic_update() 310 if (src_h != dst_h) { in meson_plane_atomic_update() 363 priv->viu.osb_blend0_size = dst_h << 16 | dst_w; in meson_plane_atomic_update() 364 priv->viu.osb_blend1_size = dst_h << 16 | dst_w; in meson_plane_atomic_update()
|
/linux/drivers/gpu/drm/sun4i/ |
H A D | sun8i_vi_layer.c | 57 u32 src_w, src_h, dst_w, dst_h; in sun8i_vi_layer_update_coord() local 76 dst_h = drm_rect_height(&state->dst); in sun8i_vi_layer_update_coord() 101 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_vi_layer_update_coord() 136 required = src_h * 100 / dst_h; in sun8i_vi_layer_update_coord() 141 vn = (u32)ability * dst_h / 100; in sun8i_vi_layer_update_coord() 156 vscale = (src_h << 16) / dst_h; in sun8i_vi_layer_update_coord() 159 dst_h, hscale, vscale, hphase, vphase, in sun8i_vi_layer_update_coord() 187 DRM_DEBUG_DRIVER("Layer destination size W: %d H: %d\n", dst_w, dst_h); in sun8i_vi_layer_update_coord()
|
H A D | sun8i_ui_scaler.c | 149 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h, in sun8i_ui_scaler_setup() argument 167 outsize = SUN8I_UI_SCALER_SIZE(dst_w, dst_h); in sun8i_ui_scaler_setup()
|
H A D | sun8i_vi_scaler.c | 929 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h, in sun8i_vi_scaler_setup() argument 945 outsize = SUN8I_VI_SCALER_SIZE(dst_w, dst_h); in sun8i_vi_scaler_setup()
|
H A D | sun8i_ui_scaler.h | 40 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h,
|
H A D | sun8i_vi_scaler.h | 74 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h,
|
/linux/drivers/gpu/drm/imx/dcss/ |
H A D | dcss-plane.c | 280 u32 src_w, src_h, dst_w, dst_h; in dcss_plane_atomic_update() local 306 dst_h = drm_rect_height(&dst); in dcss_plane_atomic_update() 332 dst_w, dst_h, in dcss_plane_atomic_update() 336 dst.x1, dst.y1, dst_w, dst_h); in dcss_plane_atomic_update()
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | skl_scaler.c | 140 int src_w, int src_h, int dst_w, int dst_h, in skl_update_scaler() argument 160 if (src_w != dst_w || src_h != dst_h) in skl_update_scaler() 211 dst_w < min_dst_w || dst_h < min_dst_h || in skl_update_scaler() 213 dst_w > max_dst_w || dst_h > max_dst_h) { in skl_update_scaler() 219 dst_w, dst_h); in skl_update_scaler() 245 crtc->pipe, scaler_user, src_w, src_h, dst_w, dst_h, in skl_update_scaler()
|
H A D | intel_plane.c | 207 unsigned int src_w, src_h, dst_w, dst_h; in intel_adjusted_rate() local 212 dst_h = drm_rect_height(dst); in intel_adjusted_rate() 216 dst_h = min(src_h, dst_h); in intel_adjusted_rate() 219 dst_w * dst_h); in intel_adjusted_rate() 449 int dst_h = drm_rect_height(&plane_state->uapi.dst); in intel_plane_is_scaled() local 451 return src_w != dst_w || src_h != dst_h; in intel_plane_is_scaled()
|
/linux/drivers/media/platform/st/sti/bdisp/ |
H A 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/drivers/gpu/drm/tegra/ |
H A D | plane.c | 228 unsigned int i, bpp, dst_w, dst_h, src_w, src_h, mul; in tegra_plane_calculate_memory_bandwidth() local 244 dst_h = drm_rect_height(&state->dst); in tegra_plane_calculate_memory_bandwidth() 270 avg_bandwidth = min(src_w, dst_w) * min(src_h, dst_h); in tegra_plane_calculate_memory_bandwidth()
|
/linux/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_gsc.c | 748 u32 src_w, src_h, dst_w, dst_h; in gsc_set_prescaler() local 756 dst_h = dst->w; in gsc_set_prescaler() 759 dst_h = dst->h; in gsc_set_prescaler() 768 ret = gsc_get_ratio_shift(ctx, src_h, dst_h, &sc->pre_vratio); in gsc_set_prescaler() 778 sc->main_vratio = (src_h << 16) / dst_h; in gsc_set_prescaler()
|
H A D | exynos_drm_fimc.c | 744 u32 src_w, src_h, dst_w, dst_h; in fimc_set_prescaler() local 757 dst_h = dst->w; in fimc_set_prescaler() 760 dst_h = dst->h; in fimc_set_prescaler() 770 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); in fimc_set_prescaler()
|
/linux/drivers/gpu/drm/rockchip/ |
H A D | rockchip_drm_vop2.c | 562 u32 dst_h, u32 pixel_format) in vop2_setup_scale() argument 575 if (src_h >= (4 * dst_h)) { in vop2_setup_scale() 578 } else if (src_h >= (2 * dst_h)) { in vop2_setup_scale() 584 ver_scl_mode = scl_get_scl_mode(src_h, dst_h); in vop2_setup_scale() 610 val = vop2_scale_factor(src_h, dst_h); in vop2_setup_scale() 632 if (cbcr_src_h >= (4 * dst_h)) { in vop2_setup_scale() 635 } else if (cbcr_src_h >= (2 * dst_h)) { in vop2_setup_scale() 641 ver_scl_mode = scl_get_scl_mode(cbcr_src_h, dst_h); in vop2_setup_scale() 646 val = vop2_scale_factor(cbcr_src_h, dst_h); in vop2_setup_scale()
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_trace.h | 398 __field(int, dst_h) 430 __entry->dst_h = plane_state->dst_rect.height; 464 __entry->dst_h,
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_display.c | 1449 u32 src_h = 1, dst_h = 1; in amdgpu_display_crtc_scaling_mode_fixup() local 1475 dst_h = amdgpu_crtc->native_mode.hdisplay; in amdgpu_display_crtc_scaling_mode_fixup() 1495 dst_h = crtc->mode.hdisplay - (amdgpu_crtc->h_border * 2); in amdgpu_display_crtc_scaling_mode_fixup() 1505 b.full = dfixed_const(dst_h); in amdgpu_display_crtc_scaling_mode_fixup()
|