/kernel/linux/linux-5.10/drivers/media/platform/ti-vpe/ |
H A D | sc.c | 111 unsigned int dst_h) in sc_set_vs_coeffs() 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() 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() 110 sc_set_vs_coeffs(struct sc_data *sc, void *addr, unsigned int src_h, unsigned int dst_h) sc_set_vs_coeffs() argument 147 sc_config_scaler(struct sc_data *sc, u32 *sc_reg0, u32 *sc_reg8, u32 *sc_reg17, unsigned int src_w, unsigned int src_h, unsigned int dst_w, unsigned int dst_h) sc_config_scaler() argument [all...] |
H A D | sc.h | 202 unsigned int dst_h); 205 unsigned int dst_w, unsigned int dst_h);
|
/kernel/linux/linux-6.6/drivers/media/platform/ti/vpe/ |
H A D | sc.c | 111 unsigned int dst_h) in sc_set_vs_coeffs() 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() 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() 110 sc_set_vs_coeffs(struct sc_data *sc, void *addr, unsigned int src_h, unsigned int dst_h) sc_set_vs_coeffs() argument 147 sc_config_scaler(struct sc_data *sc, u32 *sc_reg0, u32 *sc_reg8, u32 *sc_reg17, unsigned int src_w, unsigned int src_h, unsigned int dst_w, unsigned int dst_h) sc_config_scaler() argument [all...] |
H A D | sc.h | 202 unsigned int dst_h); 205 unsigned int dst_w, unsigned int dst_h);
|
/kernel/linux/linux-5.10/drivers/media/pci/ivtv/ |
H A D | ivtv-yuv.c | 389 ("Adjust to height %d src_h %d dst_h %d src_y %d dst_y %d\n", in ivtv_yuv_handle_vertical() 390 f->tru_h, f->src_h, f->dst_h, f->src_y, f->dst_y); in ivtv_yuv_handle_vertical() 420 reg_2918 = (f->dst_h << 16) | (f->src_h + src_minor_y); in ivtv_yuv_handle_vertical() 422 reg_2918 = (f->dst_h << 16) | ((f->src_h + src_minor_y) << 1); in ivtv_yuv_handle_vertical() 425 reg_291c = (f->dst_h << 16) | ((f->src_h + src_minor_uv) >> 1); in ivtv_yuv_handle_vertical() 427 reg_291c = (f->dst_h << 16) | (f->src_h + src_minor_uv); in ivtv_yuv_handle_vertical() 429 reg_2964_base = (src_minor_y * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical() 430 reg_2968_base = (src_minor_uv * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical() 432 if (f->dst_h / 2 >= f->src_h && !f->interlaced_y) { in ivtv_yuv_handle_vertical() 433 master_height = (f->src_h * 0x00400000) / f->dst_h; in ivtv_yuv_handle_vertical() [all...] |
/kernel/linux/linux-6.6/drivers/media/pci/ivtv/ |
H A D | ivtv-yuv.c | 389 ("Adjust to height %d src_h %d dst_h %d src_y %d dst_y %d\n", in ivtv_yuv_handle_vertical() 390 f->tru_h, f->src_h, f->dst_h, f->src_y, f->dst_y); in ivtv_yuv_handle_vertical() 420 reg_2918 = (f->dst_h << 16) | (f->src_h + src_minor_y); in ivtv_yuv_handle_vertical() 422 reg_2918 = (f->dst_h << 16) | ((f->src_h + src_minor_y) << 1); in ivtv_yuv_handle_vertical() 425 reg_291c = (f->dst_h << 16) | ((f->src_h + src_minor_uv) >> 1); in ivtv_yuv_handle_vertical() 427 reg_291c = (f->dst_h << 16) | (f->src_h + src_minor_uv); in ivtv_yuv_handle_vertical() 429 reg_2964_base = (src_minor_y * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical() 430 reg_2968_base = (src_minor_uv * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical() 432 if (f->dst_h / 2 >= f->src_h && !f->interlaced_y) { in ivtv_yuv_handle_vertical() 433 master_height = (f->src_h * 0x00400000) / f->dst_h; in ivtv_yuv_handle_vertical() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/zte/ |
H A D | zx_plane.c | 148 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h) in zx_vl_rsz_setup() 157 zx_writel(rsz + RSZ_DEST_CFG, RSZ_VER(dst_h - 1) | RSZ_HOR(dst_w - 1)); in zx_vl_rsz_setup() 174 zx_writel(rsz + RSZ_VL_LUMA_VER, rsz_step_value(src_h, dst_h)); in zx_vl_rsz_setup() 176 zx_writel(rsz + RSZ_VL_CHROMA_VER, rsz_step_value(src_chroma_h, dst_h)); in zx_vl_rsz_setup() 195 u32 dst_x, dst_y, dst_w, dst_h; in zx_vl_plane_atomic_update() local 213 dst_h = drm_rect_height(dst); in zx_vl_plane_atomic_update() 234 GL_POS_X(dst_x + dst_w) | GL_POS_Y(dst_y + dst_h)); in zx_vl_plane_atomic_update() 249 zx_vl_rsz_setup(zplane, format, src_w, src_h, dst_w, dst_h); in zx_vl_plane_atomic_update() 339 u32 dst_w, u32 dst_h) in zx_gl_rsz_setup() 344 zx_writel(rsz + RSZ_DEST_CFG, RSZ_VER(dst_h in zx_gl_rsz_setup() 147 zx_vl_rsz_setup(struct zx_plane *zplane, uint32_t format, u32 src_w, u32 src_h, u32 dst_w, u32 dst_h) zx_vl_rsz_setup() argument 338 zx_gl_rsz_setup(struct zx_plane *zplane, u32 src_w, u32 src_h, u32 dst_w, u32 dst_h) zx_gl_rsz_setup() argument 359 u32 dst_x, dst_y, dst_w, dst_h; zx_gl_plane_atomic_update() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/sti/ |
H A D | sti_hqvdp.c | 480 int src_w, src_h, dst_w, dst_h; in hqvdp_dbg_dump_cmd() local 520 dst_h = c->hvsrc.output_picture_size >> 16; in hqvdp_dbg_dump_cmd() 521 seq_printf(s, "\t%dx%d", dst_w, dst_h); in hqvdp_dbg_dump_cmd() 540 if (dst_h > src_h) in hqvdp_dbg_dump_cmd() 541 seq_printf(s, " %d/1", dst_h / src_h); in hqvdp_dbg_dump_cmd() 543 seq_printf(s, " 1/%d", src_h / dst_h); in hqvdp_dbg_dump_cmd() 718 * @dst_h: destination height 735 int dst_w, int dst_h) in sti_hqvdp_check_hw_scaling() 743 inv_zy = DIV_ROUND_UP(src_h, dst_h); in sti_hqvdp_check_hw_scaling() 1028 int dst_x, dst_y, dst_w, dst_h; in sti_hqvdp_atomic_check() local 732 sti_hqvdp_check_hw_scaling(struct sti_hqvdp *hqvdp, struct drm_display_mode *mode, int src_w, int src_h, int dst_w, int dst_h) sti_hqvdp_check_hw_scaling() argument 1118 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 | 627 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_check() local 641 dst_h = clamp_val(state->crtc_h, 0, mode->vdisplay - dst_y); in sti_gdp_atomic_check() 691 dst_w, dst_h, dst_x, dst_y, in sti_gdp_atomic_check() 706 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_update() local 750 dst_h = clamp_val(state->crtc_h, 0, mode->vdisplay - dst_y); in sti_gdp_atomic_update() 786 dst_h = sti_gdp_get_dst(gdp->dev, dst_h, src_h); in sti_gdp_atomic_update() 788 yds = sti_vtg_get_line_number(*mode, dst_y + dst_h - 1); in sti_gdp_atomic_update()
|
/kernel/linux/linux-6.6/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() 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 734 sti_hqvdp_check_hw_scaling(struct sti_hqvdp *hqvdp, struct drm_display_mode *mode, int src_w, int src_h, int dst_w, int dst_h) sti_hqvdp_check_hw_scaling() argument 1125 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 645 dst_h = clamp_val(new_plane_state->crtc_h, 0, mode->vdisplay - dst_y); 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 759 dst_h = clamp_val(newstate->crtc_h, 0, mode->vdisplay - dst_y); in sti_gdp_atomic_update() 795 dst_h = sti_gdp_get_dst(gdp->dev, dst_h, src_h); in sti_gdp_atomic_update() 797 yds = sti_vtg_get_line_number(*mode, dst_y + dst_h - 1); in sti_gdp_atomic_update()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/meson/ |
H A D | meson_plane.c | 142 int src_w, src_h, dst_w, dst_h; in meson_plane_atomic_update() local 261 dst_h = state->crtc_h; in meson_plane_atomic_update() 273 dst_h /= 2; in meson_plane_atomic_update() 277 vf_phase_step = (src_h << 20) / dst_h; in meson_plane_atomic_update() 287 if (src_h != dst_h || src_w != dst_w) { in meson_plane_atomic_update() 304 if (src_h != dst_h) { in meson_plane_atomic_update() 357 priv->viu.osb_blend0_size = dst_h << 16 | dst_w; in meson_plane_atomic_update() 358 priv->viu.osb_blend1_size = dst_h << 16 | dst_w; in meson_plane_atomic_update()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/ |
H A D | sun8i_vi_layer.c | 75 u32 src_w, src_h, dst_w, dst_h; in sun8i_vi_layer_update_coord() local 92 dst_h = drm_rect_height(&state->dst); in sun8i_vi_layer_update_coord() 117 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_vi_layer_update_coord() 152 required = src_h * 100 / dst_h; in sun8i_vi_layer_update_coord() 157 vn = (u32)ability * dst_h / 100; in sun8i_vi_layer_update_coord() 172 vscale = (src_h << 16) / dst_h; in sun8i_vi_layer_update_coord() 175 dst_h, hscale, vscale, hphase, vphase, in sun8i_vi_layer_update_coord() 203 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_layer.c | 80 u32 src_w, src_h, dst_w, dst_h; in sun8i_ui_layer_update_coord() local 94 dst_h = drm_rect_height(&state->dst); in sun8i_ui_layer_update_coord() 100 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_ui_layer_update_coord() 107 dst_w, dst_h); in sun8i_ui_layer_update_coord() 152 dst_h, hscale, vscale, hphase, vphase); in sun8i_ui_layer_update_coord() 162 DRM_DEBUG_DRIVER("Layer destination size W: %d H: %d\n", dst_w, dst_h); in sun8i_ui_layer_update_coord()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/media/platform/rockchip/rga/ |
H A 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 184 dst_h = ctx->out.crop.height; in rga_cmd_set_trans_info() 264 if (abs(src_w - dst_h) < 16) in rga_cmd_set_trans_info() 269 scale_dst_w = dst_h; in rga_cmd_set_trans_info() 272 scale_dst_h = dst_h; in rga_cmd_set_trans_info() 312 dst_act_info.data.act_height = dst_h - 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()
|
/kernel/linux/linux-6.6/drivers/media/platform/rockchip/rga/ |
H A 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 184 dst_h = ctx->out.crop.height; in rga_cmd_set_trans_info() 264 if (abs(src_w - dst_h) < 16) in rga_cmd_set_trans_info() 269 scale_dst_w = dst_h; in rga_cmd_set_trans_info() 272 scale_dst_h = dst_h; in rga_cmd_set_trans_info() 312 dst_act_info.data.act_height = dst_h - 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()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/sun4i/ |
H A D | sun8i_vi_layer.c | 106 u32 src_w, src_h, dst_w, dst_h; in sun8i_vi_layer_update_coord() local 123 dst_h = drm_rect_height(&state->dst); in sun8i_vi_layer_update_coord() 148 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_vi_layer_update_coord() 183 required = src_h * 100 / dst_h; in sun8i_vi_layer_update_coord() 188 vn = (u32)ability * dst_h / 100; in sun8i_vi_layer_update_coord() 203 vscale = (src_h << 16) / dst_h; in sun8i_vi_layer_update_coord() 206 dst_h, hscale, vscale, hphase, vphase, 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()
|
H A D | sun8i_ui_layer.c | 102 u32 src_w, src_h, dst_w, dst_h; in sun8i_ui_layer_update_coord() local 116 dst_h = drm_rect_height(&state->dst); in sun8i_ui_layer_update_coord() 122 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_ui_layer_update_coord() 144 dst_h, hscale, vscale, hphase, vphase); 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/rockchip/ |
H A D | rockchip_drm_vop.h | 357 static inline uint16_t scl_get_bili_dn_vskip(int src_h, int dst_h, in scl_get_bili_dn_vskip() argument 364 if (act_height == dst_h) in scl_get_bili_dn_vskip() 365 return GET_SCL_FT_BILI_DN(src_h, dst_h) / vskiplines; in scl_get_bili_dn_vskip() 367 return GET_SCL_FT_BILI_DN(act_height, dst_h); in scl_get_bili_dn_vskip()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/rockchip/ |
H A D | rockchip_drm_vop.h | 380 static inline uint16_t scl_get_bili_dn_vskip(int src_h, int dst_h, in scl_get_bili_dn_vskip() argument 387 if (act_height == dst_h) in scl_get_bili_dn_vskip() 388 return GET_SCL_FT_BILI_DN(src_h, dst_h) / vskiplines; in scl_get_bili_dn_vskip() 390 return GET_SCL_FT_BILI_DN(act_height, dst_h); in scl_get_bili_dn_vskip()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
H A D | intel_atomic_plane.c | 139 unsigned int src_w, src_h, dst_w, dst_h; in intel_plane_pixel_rate() local 145 dst_h = drm_rect_height(&plane_state->uapi.dst); in intel_plane_pixel_rate() 149 dst_h = min(src_h, dst_h); in intel_plane_pixel_rate() 152 dst_w * dst_h); in intel_plane_pixel_rate()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
H A D | skl_scaler.c | 104 int src_w, int src_h, int dst_w, int dst_h, in skl_update_scaler() 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() 102 skl_update_scaler(struct intel_crtc_state *crtc_state, bool force_detach, unsigned int scaler_user, int *scaler_id, int src_w, int src_h, int dst_w, int dst_h, const struct drm_format_info *format, u64 modifier, bool need_scaler) skl_update_scaler() argument
|