/kernel/linux/linux-5.10/drivers/media/platform/ti-vpe/ |
H A D | sc.c | 62 unsigned int dst_w) in sc_set_hs_coeffs() 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() 178 if (src_w == dst_w in sc_config_scaler() 61 sc_set_hs_coeffs(struct sc_data *sc, void *addr, unsigned int src_w, unsigned int dst_w) sc_set_hs_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 | 200 unsigned int dst_w); 205 unsigned int dst_w, unsigned int dst_h);
|
/kernel/linux/linux-6.6/drivers/media/platform/ti/vpe/ |
H A D | sc.c | 62 unsigned int dst_w) in sc_set_hs_coeffs() 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() 178 if (src_w == dst_w in sc_config_scaler() 61 sc_set_hs_coeffs(struct sc_data *sc, void *addr, unsigned int src_w, unsigned int dst_w) sc_set_hs_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 | 200 unsigned int dst_w); 205 unsigned int dst_w, unsigned int dst_h);
|
/kernel/linux/linux-5.10/drivers/media/pci/ivtv/ |
H A D | ivtv-yuv.c | 223 ("Adjust to width %d src_w %d dst_w %d src_x %d dst_x %d\n", in ivtv_yuv_handle_horizontal() 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() [all...] |
/kernel/linux/linux-6.6/drivers/media/pci/ivtv/ |
H A D | ivtv-yuv.c | 223 ("Adjust to width %d src_w %d dst_w %d src_x %d dst_x %d\n", in ivtv_yuv_handle_horizontal() 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() [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() 173 zx_writel(rsz + RSZ_VL_LUMA_HOR, rsz_step_value(src_w, dst_w)); in zx_vl_rsz_setup() 175 zx_writel(rsz + RSZ_VL_CHROMA_HOR, rsz_step_value(src_chroma_w, dst_w)); in zx_vl_rsz_setup() 195 u32 dst_x, dst_y, dst_w, dst_h; in zx_vl_plane_atomic_update() local 212 dst_w = drm_rect_width(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 - 1) | RSZ_HOR(dst_w 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 519 dst_w = c->hvsrc.output_picture_size & 0x0000FFFF; in hqvdp_dbg_dump_cmd() 521 seq_printf(s, "\t%dx%d", dst_w, dst_h); in hqvdp_dbg_dump_cmd() 534 if (dst_w > src_w) in hqvdp_dbg_dump_cmd() 535 seq_printf(s, " %d/1", dst_w / src_w); in hqvdp_dbg_dump_cmd() 537 seq_printf(s, " 1/%d", src_w / dst_w); in hqvdp_dbg_dump_cmd() 717 * @dst_w: destination width 735 int dst_w, int dst_h) in sti_hqvdp_check_hw_scaling() 741 lfw /= max(src_w, dst_w) * mode->clock / 1000; in sti_hqvdp_check_hw_scaling() 1028 int dst_x, dst_y, dst_w, dst_ 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 | 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()
|
H A D | sti_gdp.c | 627 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_check() local 640 dst_w = clamp_val(state->crtc_w, 0, mode->hdisplay - dst_x); 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 749 dst_w = clamp_val(state->crtc_w, 0, mode->hdisplay - dst_x); in sti_gdp_atomic_update() 785 dst_w = sti_gdp_get_dst(gdp->dev, dst_w, src_w); in sti_gdp_atomic_update() 790 xds = sti_vtg_get_pixel_number(*mode, dst_x + dst_w - 1); in sti_gdp_atomic_update() 795 src_w = dst_w; 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 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() 719 * @dst_w: destination width 737 int dst_w, int dst_h) in sti_hqvdp_check_hw_scaling() 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_ 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 | 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()
|
H A 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()
|
/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 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()
|
/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 260 dst_w = state->crtc_w; in meson_plane_atomic_update() 276 hf_phase_step = ((src_w << 18) / dst_w) << 6; in meson_plane_atomic_update() 287 if (src_h != dst_h || src_w != dst_w) { in meson_plane_atomic_update() 326 if (src_w != dst_w) { 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 91 dst_w = drm_rect_width(&state->dst); in sun8i_vi_layer_update_coord() 117 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_vi_layer_update_coord() 150 do_div(ability, mode->vdisplay * fps * max(src_w, dst_w)); in sun8i_vi_layer_update_coord() 171 hscale = (src_w << 16) / dst_w; in sun8i_vi_layer_update_coord() 174 sun8i_vi_scaler_setup(mixer, channel, src_w, src_h, dst_w, 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 93 dst_w = drm_rect_width(&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() 151 sun8i_ui_scaler_setup(mixer, channel, src_w, src_h, dst_w, 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/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 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()
|
/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 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()
|
/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 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()
|
H A 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()
|
/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 144 dst_w = drm_rect_width(&plane_state->uapi.dst); in intel_plane_pixel_rate() 148 dst_w = min(src_w, dst_w); 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
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A 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()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A 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()
|