/linux-6.6.21/drivers/media/platform/ti/vpe/ |
D | sc.c | 62 unsigned int dst_w) in sc_set_hs_coeffs() argument 70 if (dst_w > src_w) { in sc_set_hs_coeffs() 73 if ((dst_w << 1) < src_w) in sc_set_hs_coeffs() 74 dst_w <<= 1; /* first level decimation */ in sc_set_hs_coeffs() 75 if ((dst_w << 1) < src_w) in sc_set_hs_coeffs() 76 dst_w <<= 1; /* second level decimation */ in sc_set_hs_coeffs() 78 if (dst_w == src_w) { in sc_set_hs_coeffs() 81 sixteenths = (dst_w << 4) / src_w; in sc_set_hs_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() [all …]
|
D | sc.h | 200 unsigned int dst_w); 205 unsigned int dst_w, unsigned int dst_h);
|
/linux-6.6.21/drivers/media/pci/ivtv/ |
D | ivtv-yuv.c | 224 f->tru_w, f->src_w, f->dst_w, f->src_x, f->dst_x); in ivtv_yuv_handle_horizontal() 230 reg_2834 = f->dst_w; in ivtv_yuv_handle_horizontal() 246 if ((f->tru_x - f->pan_x > -1) && (f->tru_x - f->pan_x <= 40) && (f->dst_w >= 680)) in ivtv_yuv_handle_horizontal() 248 else if ((f->tru_x - f->pan_x < 0) && (f->tru_x - f->pan_x >= -20) && (f->dst_w >= 660)) in ivtv_yuv_handle_horizontal() 251 if (f->dst_w >= f->src_w) in ivtv_yuv_handle_horizontal() 257 if (f->dst_w < f->src_w) in ivtv_yuv_handle_horizontal() 263 reg_2870_offset = (f->src_x * ((f->dst_w << 21) / f->src_w)) >> 19; in ivtv_yuv_handle_horizontal() 265 if (f->dst_w >= f->src_w) { in ivtv_yuv_handle_horizontal() 267 master_width = (f->src_w * 0x00200000) / (f->dst_w); in ivtv_yuv_handle_horizontal() 268 if (master_width * f->dst_w != f->src_w * 0x00200000) in ivtv_yuv_handle_horizontal() [all …]
|
/linux-6.6.21/drivers/gpu/drm/sti/ |
D | sti_hqvdp.c | 482 int src_w, src_h, dst_w, dst_h; in hqvdp_dbg_dump_cmd() local 521 dst_w = c->hvsrc.output_picture_size & 0x0000FFFF; in hqvdp_dbg_dump_cmd() 523 seq_printf(s, "\t%dx%d", dst_w, dst_h); in hqvdp_dbg_dump_cmd() 536 if (dst_w > src_w) in hqvdp_dbg_dump_cmd() 537 seq_printf(s, " %d/1", dst_w / src_w); in hqvdp_dbg_dump_cmd() 539 seq_printf(s, " 1/%d", src_w / dst_w); in hqvdp_dbg_dump_cmd() 737 int dst_w, int dst_h) in sti_hqvdp_check_hw_scaling() argument 743 lfw /= max(src_w, dst_w) * mode->clock / 1000; in sti_hqvdp_check_hw_scaling() 1032 int dst_x, dst_y, dst_w, dst_h; in sti_hqvdp_atomic_check() local 1043 dst_w = clamp_val(new_plane_state->crtc_w, 0, mode->hdisplay - dst_x); in sti_hqvdp_atomic_check() [all …]
|
D | sti_vid.c | 146 int dst_w = clamp_val(state->crtc_w, 0, mode->hdisplay - dst_x); in sti_vid_commit() local 153 dst_w = ALIGN(dst_w, 2); in sti_vid_commit() 164 xds = sti_vtg_get_pixel_number(*mode, dst_x + dst_w - 1); in sti_vid_commit()
|
D | sti_gdp.c | 631 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_check() local 644 dst_w = clamp_val(new_plane_state->crtc_w, 0, mode->hdisplay - dst_x); in sti_gdp_atomic_check() 697 dst_w, dst_h, dst_x, dst_y, in sti_gdp_atomic_check() 715 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_update() local 758 dst_w = clamp_val(newstate->crtc_w, 0, mode->hdisplay - dst_x); in sti_gdp_atomic_update() 794 dst_w = sti_gdp_get_dst(gdp->dev, dst_w, src_w); in sti_gdp_atomic_update() 799 xds = sti_vtg_get_pixel_number(*mode, dst_x + dst_w - 1); in sti_gdp_atomic_update() 804 src_w = dst_w; in sti_gdp_atomic_update()
|
D | sti_cursor.c | 195 int dst_x, dst_y, dst_w, dst_h; in sti_cursor_atomic_check() local 206 dst_w = clamp_val(new_plane_state->crtc_w, 0, in sti_cursor_atomic_check() 254 DRM_DEBUG_KMS("(%dx%d)@(%d,%d)\n", dst_w, dst_h, dst_x, dst_y); in sti_cursor_atomic_check()
|
/linux-6.6.21/drivers/media/platform/rockchip/rga/ |
D | rga-hw.c | 166 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 185 dst_w = ctx->out.crop.width; in rga_cmd_set_trans_info() 262 if (dst_w == src_h) in rga_cmd_set_trans_info() 268 scale_dst_h = dst_w; in rga_cmd_set_trans_info() 271 scale_dst_w = dst_w; in rga_cmd_set_trans_info() 313 dst_act_info.data.act_width = dst_w - 1; in rga_cmd_set_trans_info() 324 offsets = rga_get_addr_offset(&ctx->out, dst_x, dst_y, dst_w, dst_h); in rga_cmd_set_trans_info()
|
/linux-6.6.21/drivers/gpu/drm/meson/ |
D | meson_plane.c | 148 int src_w, src_h, dst_w, dst_h; in meson_plane_atomic_update() local 266 dst_w = new_state->crtc_w; in meson_plane_atomic_update() 282 hf_phase_step = ((src_w << 18) / dst_w) << 6; in meson_plane_atomic_update() 293 if (src_h != dst_h || src_w != dst_w) { in meson_plane_atomic_update() 332 if (src_w != dst_w) { 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-6.6.21/drivers/gpu/drm/sun4i/ |
D | sun8i_ui_layer.c | 102 u32 src_w, src_h, dst_w, dst_h; in sun8i_ui_layer_update_coord() local 115 dst_w = drm_rect_width(&state->dst); in sun8i_ui_layer_update_coord() 122 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_ui_layer_update_coord() 143 sun8i_ui_scaler_setup(mixer, channel, src_w, src_h, dst_w, in sun8i_ui_layer_update_coord() 154 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 | 106 u32 src_w, src_h, dst_w, dst_h; in sun8i_vi_layer_update_coord() local 122 dst_w = drm_rect_width(&state->dst); in sun8i_vi_layer_update_coord() 148 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_vi_layer_update_coord() 181 do_div(ability, mode->vdisplay * fps * max(src_w, dst_w)); in sun8i_vi_layer_update_coord() 202 hscale = (src_w << 16) / dst_w; in sun8i_vi_layer_update_coord() 205 sun8i_vi_scaler_setup(mixer, channel, src_w, src_h, dst_w, in sun8i_vi_layer_update_coord() 234 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 | 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()
|
D | sun8i_vi_scaler.c | 927 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h, in sun8i_vi_scaler_setup() argument 943 outsize = SUN8I_VI_SCALER_SIZE(dst_w, dst_h); in sun8i_vi_scaler_setup()
|
D | sun8i_ui_scaler.h | 40 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h,
|
D | sun8i_vi_scaler.h | 74 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h,
|
/linux-6.6.21/drivers/gpu/drm/ |
D | drm_rect.c | 174 int dst_w = drm_rect_width(dst); in drm_rect_calc_hscale() local 175 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale() 177 if (hscale < 0 || dst_w == 0) in drm_rect_calc_hscale()
|
/linux-6.6.21/drivers/gpu/drm/imx/dcss/ |
D | dcss-plane.c | 280 u32 src_w, src_h, dst_w, dst_h; in dcss_plane_atomic_update() local 305 dst_w = drm_rect_width(&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-6.6.21/drivers/gpu/drm/i915/display/ |
D | skl_scaler.c | 104 int src_w, int src_h, int dst_w, int dst_h, in skl_update_scaler() argument 124 if (src_w != dst_w || src_h != dst_h) in skl_update_scaler() 201 dst_w < min_dst_w || dst_h < min_dst_h || in skl_update_scaler() 203 dst_w > max_dst_w || dst_h > max_dst_h) { in skl_update_scaler() 208 dst_w, dst_h); in skl_update_scaler() 231 crtc->pipe, scaler_user, src_w, src_h, dst_w, dst_h, in skl_update_scaler()
|
D | intel_atomic_plane.c | 148 unsigned int src_w, src_h, dst_w, dst_h; in intel_adjusted_rate() local 152 dst_w = drm_rect_width(dst); in intel_adjusted_rate() 156 dst_w = min(src_w, dst_w); in intel_adjusted_rate() 160 dst_w * dst_h); in intel_adjusted_rate() 407 int dst_w = drm_rect_width(&plane_state->uapi.dst); in intel_plane_is_scaled() local 410 return src_w != dst_w || src_h != dst_h; in intel_plane_is_scaled()
|
D | intel_sprite.c | 552 unsigned int src_w, dst_w, pixel_rate; in ivb_sprite_min_cdclk() local 565 dst_w = drm_rect_width(&plane_state->uapi.dst); in ivb_sprite_min_cdclk() 567 if (src_w != dst_w) in ivb_sprite_min_cdclk() 573 dst_w = min(src_w, dst_w); in ivb_sprite_min_cdclk() 576 den * dst_w); in ivb_sprite_min_cdclk()
|
/linux-6.6.21/drivers/media/platform/st/sti/bdisp/ |
D | bdisp-hw.c | 630 u32 src_w, src_h, dst_w, dst_h; in bdisp_hw_get_hv_inc() local 634 dst_w = ctx->dst.crop.width; in bdisp_hw_get_hv_inc() 637 if (bdisp_hw_get_inc(src_w, dst_w, h_inc) || in bdisp_hw_get_hv_inc() 641 src_w, src_h, dst_w, dst_h); in bdisp_hw_get_hv_inc()
|
/linux-6.6.21/drivers/gpu/drm/tegra/ |
D | plane.c | 228 unsigned int i, bpp, dst_w, dst_h, src_w, src_h, mul; in tegra_plane_calculate_memory_bandwidth() local 243 dst_w = drm_rect_width(&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-6.6.21/drivers/gpu/drm/exynos/ |
D | exynos_drm_gsc.c | 747 u32 src_w, src_h, dst_w, dst_h; in gsc_set_prescaler() local 754 dst_w = dst->h; in gsc_set_prescaler() 757 dst_w = dst->w; in gsc_set_prescaler() 761 ret = gsc_get_ratio_shift(ctx, src_w, dst_w, &sc->pre_hratio); in gsc_set_prescaler() 776 sc->main_hratio = (src_w << 16) / dst_w; in gsc_set_prescaler()
|
D | exynos_drm_fimc.c | 744 u32 src_w, src_h, dst_w, dst_h; in fimc_set_prescaler() local 756 dst_w = dst->h; in fimc_set_prescaler() 759 dst_w = dst->w; in fimc_set_prescaler() 764 hfactor = fls(src_w / dst_w / 2); in fimc_set_prescaler() 783 sc->hratio = (src_w << 14) / (dst_w << hfactor); in fimc_set_prescaler() 785 sc->up_h = (dst_w >= src_w); in fimc_set_prescaler()
|
/linux-6.6.21/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_vop.c | 367 uint32_t src_w, uint32_t src_h, uint32_t dst_w, in scl_vop_cal_scl_fac() argument 384 if (dst_w > 3840) { in scl_vop_cal_scl_fac() 391 scl_cal_scale2(src_w, dst_w)); in scl_vop_cal_scl_fac() 396 scl_cal_scale2(cbcr_src_w, dst_w)); in scl_vop_cal_scl_fac() 403 yrgb_hor_scl_mode = scl_get_scl_mode(src_w, dst_w); in scl_vop_cal_scl_fac() 407 cbcr_hor_scl_mode = scl_get_scl_mode(cbcr_src_w, dst_w); in scl_vop_cal_scl_fac() 410 lb_mode = scl_vop_cal_lb_mode(dst_w, true); in scl_vop_cal_scl_fac() 415 lb_mode = scl_vop_cal_lb_mode(dst_w, false); in scl_vop_cal_scl_fac() 437 val = scl_vop_cal_scale(yrgb_hor_scl_mode, src_w, dst_w, in scl_vop_cal_scl_fac() 454 dst_w, true, 0, NULL); in scl_vop_cal_scl_fac()
|