Home
last modified time | relevance | path

Searched refs:src_h (Results 1 – 25 of 93) sorted by relevance

1234

/linux-5.19.10/drivers/media/platform/ti/vpe/
Dsc.c110 void sc_set_vs_coeffs(struct sc_data *sc, void *addr, unsigned int src_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()
148 u32 *sc_reg17, unsigned int src_w, unsigned int src_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()
238 src_h, dst_h, factor, row_acc_init_rav, in sc_config_scaler()
242 row_acc_inc = ((src_h - 1) << 16) / (dst_h - 1); in sc_config_scaler()
[all …]
/linux-5.19.10/drivers/media/pci/ivtv/
Divtv-yuv.c40 y_decode_height = uv_decode_height = f->src_h + f->src_y; in ivtv_yuv_prep_user_dma()
391 f->tru_h, f->src_h, f->dst_h, f->src_y, f->dst_y); in ivtv_yuv_handle_vertical()
421 reg_2918 = (f->dst_h << 16) | (f->src_h + src_minor_y); in ivtv_yuv_handle_vertical()
423 reg_2918 = (f->dst_h << 16) | ((f->src_h + src_minor_y) << 1); in ivtv_yuv_handle_vertical()
426 reg_291c = (f->dst_h << 16) | ((f->src_h + src_minor_uv) >> 1); in ivtv_yuv_handle_vertical()
428 reg_291c = (f->dst_h << 16) | (f->src_h + src_minor_uv); in ivtv_yuv_handle_vertical()
430 reg_2964_base = (src_minor_y * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical()
431 reg_2968_base = (src_minor_uv * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical()
433 if (f->dst_h / 2 >= f->src_h && !f->interlaced_y) { in ivtv_yuv_handle_vertical()
434 master_height = (f->src_h * 0x00400000) / f->dst_h; in ivtv_yuv_handle_vertical()
[all …]
/linux-5.19.10/drivers/gpu/drm/armada/
Darmada_trace.h34 uint32_t src_x, uint32_t src_y, uint32_t src_w, uint32_t src_h),
35 TP_ARGS(plane, crtc, fb, crtc_x, crtc_y, crtc_w, crtc_h, src_x, src_y, src_w, src_h),
47 __field(u32, src_h)
60 __entry->src_h = src_h;
67 __entry->src_w >> 16, __entry->src_h >> 16)
/linux-5.19.10/drivers/gpu/drm/msm/disp/mdp4/
Dmdp4_plane.c53 uint32_t src_w, uint32_t src_h);
142 new_state->src_w, new_state->src_h); in mdp4_plane_atomic_update()
214 uint32_t src_w, uint32_t src_h) in mdp4_plane_mode_set() argument
237 src_h = src_h >> 16; in mdp4_plane_mode_set()
240 fb->base.id, src_x, src_y, src_w, src_h, in mdp4_plane_mode_set()
250 if (src_h > (crtc_h * DOWN_SCALE_MAX)) { in mdp4_plane_mode_set()
260 if (crtc_h > (src_h * UP_SCALE_MAX)) { in mdp4_plane_mode_set()
281 if (src_h != crtc_h) { in mdp4_plane_mode_set()
287 if (crtc_h > src_h) in mdp4_plane_mode_set()
289 else if (crtc_h <= (src_h / 4)) in mdp4_plane_mode_set()
[all …]
/linux-5.19.10/drivers/gpu/drm/sti/
Dsti_hqvdp.c480 int src_w, src_h, dst_w, dst_h; in hqvdp_dbg_dump_cmd() local
513 src_h = c->top.input_viewport_size >> 16; in hqvdp_dbg_dump_cmd()
514 seq_printf(s, "\t%dx%d", src_w, src_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()
734 int src_w, int src_h, in sti_hqvdp_check_hw_scaling() argument
743 inv_zy = DIV_ROUND_UP(src_h, dst_h); in sti_hqvdp_check_hw_scaling()
1031 int src_x, src_y, src_w, src_h; in sti_hqvdp_atomic_check() local
1047 src_h = new_plane_state->src_h >> 16; in sti_hqvdp_atomic_check()
[all …]
Dsti_cursor.c195 int src_w, src_h; in sti_cursor_atomic_check() local
211 src_h = new_plane_state->src_h >> 16; in sti_cursor_atomic_check()
214 src_h < STI_CURS_MIN_SIZE || in sti_cursor_atomic_check()
216 src_h > STI_CURS_MAX_SIZE) { in sti_cursor_atomic_check()
218 src_w, src_h); in sti_cursor_atomic_check()
225 (cursor->height != src_h)) { in sti_cursor_atomic_check()
227 cursor->height = src_h; in sti_cursor_atomic_check()
Dsti_gdp.c630 int src_x, src_y, src_w, src_h; in sti_gdp_atomic_check() local
649 src_h = clamp_val(new_plane_state->src_h >> 16, 0, in sti_gdp_atomic_check()
696 src_w, src_h, src_x, src_y); in sti_gdp_atomic_check()
714 int src_x, src_y, src_w, src_h; in sti_gdp_atomic_update() local
736 (oldstate->src_h == newstate->src_h)) { in sti_gdp_atomic_update()
762 src_h = clamp_val(newstate->src_h >> 16, 0, GAM_GDP_SIZE_MAX_HEIGHT); in sti_gdp_atomic_update()
793 dst_h = sti_gdp_get_dst(gdp->dev, dst_h, src_h); in sti_gdp_atomic_update()
804 top_field->gam_gdp_size = src_h << 16 | src_w; in sti_gdp_atomic_update()
/linux-5.19.10/drivers/gpu/drm/nouveau/dispnv04/
Doverlay.c94 uint32_t src_x, uint32_t src_y, uint32_t src_w, uint32_t src_h, in verify_scaling() argument
97 if (crtc_w < (src_w >> shift) || crtc_h < (src_h >> shift)) { in verify_scaling()
99 src_w, src_h, crtc_w, crtc_h); in verify_scaling()
117 uint32_t src_w, uint32_t src_h, in nv10_update_plane() argument
138 src_h >>= 16; in nv10_update_plane()
140 ret = verify_scaling(fb, shift, 0, 0, src_w, src_h, crtc_w, crtc_h); in nv10_update_plane()
156 nvif_wr32(dev, NV_PVIDEO_SIZE_IN(flip), src_h << 16 | src_w); in nv10_update_plane()
159 nvif_wr32(dev, NV_PVIDEO_DT_DY(flip), (src_h << 20) / crtc_h); in nv10_update_plane()
367 uint32_t src_w, uint32_t src_h, in nv04_update_plane() argument
383 src_h >>= 16; in nv04_update_plane()
[all …]
/linux-5.19.10/drivers/media/platform/rockchip/rga/
Drga-hw.c166 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
180 src_h = ctx->in.crop.height; in rga_cmd_set_trans_info()
262 if (dst_w == src_h) in rga_cmd_set_trans_info()
263 src_h -= 8; in rga_cmd_set_trans_info()
288 if (src_h == scale_dst_h) { in rga_cmd_set_trans_info()
291 } else if (src_h > scale_dst_h) { in rga_cmd_set_trans_info()
294 rga_get_scaling(src_h, scale_dst_h) + 1; in rga_cmd_set_trans_info()
298 rga_get_scaling(src_h - 1, scale_dst_h - 1); in rga_cmd_set_trans_info()
308 src_act_info.data.act_height = src_h - 1; in rga_cmd_set_trans_info()
319 src_w, src_h); in rga_cmd_set_trans_info()
/linux-5.19.10/drivers/gpu/drm/imx/dcss/
Ddcss-plane.c126 static bool dcss_plane_is_source_size_allowed(u16 src_w, u16 src_h, u32 pix_fmt) in dcss_plane_is_source_size_allowed() argument
136 return src_w >= 16 && src_h >= 8; in dcss_plane_is_source_size_allowed()
167 new_plane_state->src_h >> 16, in dcss_plane_atomic_check()
259 state->src_h != old_state->src_h || in dcss_plane_needs_setup()
278 u32 src_w, src_h, dst_w, dst_h; in dcss_plane_atomic_update() local
302 src_h = drm_rect_height(&src) >> 16; in dcss_plane_atomic_update()
314 dcss_dpr_set_res(dcss->dpr, dcss_plane->ch_num, src_w, src_h); in dcss_plane_atomic_update()
328 is_rotation_90_or_270 ? src_h : src_w, in dcss_plane_atomic_update()
329 is_rotation_90_or_270 ? src_w : src_h, in dcss_plane_atomic_update()
/linux-5.19.10/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_plane.c199 if (state->src_h > max_height) in mdp5_plane_atomic_check_with_state()
242 ((state->src_h >> 16) != state->crtc_h)) in mdp5_plane_atomic_check_with_state()
407 plane->state->src_h != new_plane_state->src_h || in mdp5_plane_atomic_async_check()
691 uint32_t src_h, int pe_top[COMP_MAX], int pe_bottom[COMP_MAX]) in mdp5_write_pixel_ext() argument
699 uint32_t roi_h = src_h; in mdp5_write_pixel_ext()
771 u32 src_w, u32 src_h) in mdp5_hwpipe_mode_set() argument
784 MDP5_PIPE_SRC_SIZE_HEIGHT(src_h)); in mdp5_hwpipe_mode_set()
828 src_h, pe->top, pe->bottom); in mdp5_hwpipe_mode_set()
877 uint32_t src_w, src_h; in mdp5_plane_mode_set() local
893 src_h = drm_rect_height(src); in mdp5_plane_mode_set()
[all …]
/linux-5.19.10/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_plane.c54 uint32_t src_h; member
293 if (state->crtc_w == state->src_w && state->crtc_h == state->src_h) { in atmel_hlcdc_plane_setup_scaler()
304 yfactor = atmel_hlcdc_plane_phiscaler_get_factor(state->src_h, in atmel_hlcdc_plane_setup_scaler()
316 state->crtc_h < state->src_h ? in atmel_hlcdc_plane_setup_scaler()
323 yfactor = (1024 * state->src_h) / state->crtc_h; in atmel_hlcdc_plane_setup_scaler()
347 state->src_h)); in atmel_hlcdc_plane_update_pos_and_size()
500 pixels = (plane_state->src_w * plane_state->src_h) - in atmel_hlcdc_plane_prepare_ahb_routing()
624 hstate->src_h = drm_rect_height(&s->src); in atmel_hlcdc_plane_atomic_check()
630 if ((hstate->src_x | hstate->src_y | hstate->src_w | hstate->src_h) & in atmel_hlcdc_plane_atomic_check()
637 hstate->src_h >>= 16; in atmel_hlcdc_plane_atomic_check()
[all …]
/linux-5.19.10/drivers/gpu/drm/arm/
Dmalidp_planes.c276 u32 src_w, src_h; in malidp_se_check_scaling() local
290 src_w = state->src_h >> 16; in malidp_se_check_scaling()
291 src_h = state->src_w >> 16; in malidp_se_check_scaling()
294 src_h = state->src_h >> 16; in malidp_se_check_scaling()
297 if ((state->crtc_w == src_w) && (state->crtc_h == src_h)) { in malidp_se_check_scaling()
750 u32 src_w, src_h, val = 0, src_x, src_y; in malidp_de_set_plane_afbc() local
766 src_h = plane->state->src_h >> 16; in malidp_de_set_plane_afbc()
775 val = ((fb->height - (src_y + src_h)) << MALIDP_AD_CROP_BOTTOM_OFFSET) | in malidp_de_set_plane_afbc()
800 u32 src_w, src_h, dest_w, dest_h, val; in malidp_de_plane_update() local
812 src_h = fb->height; in malidp_de_plane_update()
[all …]
/linux-5.19.10/drivers/gpu/drm/selftests/
Dtest-drm_plane_helper.c16 unsigned src_w, unsigned src_h) in set_src() argument
21 plane_state->src_h = src_h; in set_src()
26 unsigned src_w, unsigned src_h) in check_src_eq() argument
42 drm_rect_height(&plane_state->src) != src_h) { in check_src_eq()
/linux-5.19.10/drivers/gpu/drm/sun4i/
Dsun8i_vi_layer.c105 u32 src_w, src_h, dst_w, dst_h; in sun8i_vi_layer_update_coord() local
120 src_h = drm_rect_height(&state->src) >> 16; in sun8i_vi_layer_update_coord()
142 src_h = (src_h + remainder) & ~mask; in sun8i_vi_layer_update_coord()
146 insize = SUN8I_MIXER_SIZE(src_w, src_h); in sun8i_vi_layer_update_coord()
153 DRM_DEBUG_DRIVER("Layer source size W: %d H: %d\n", src_w, src_h); in sun8i_vi_layer_update_coord()
182 required = src_h * 100 / dst_h; in sun8i_vi_layer_update_coord()
186 vm = src_h; in sun8i_vi_layer_update_coord()
188 src_h = vn; in sun8i_vi_layer_update_coord()
202 vscale = (src_h << 16) / dst_h; in sun8i_vi_layer_update_coord()
204 sun8i_vi_scaler_setup(mixer, channel, src_w, src_h, dst_w, in sun8i_vi_layer_update_coord()
Dsun8i_ui_layer.c101 u32 src_w, src_h, dst_w, dst_h; in sun8i_ui_layer_update_coord() local
113 src_h = drm_rect_height(&state->src) >> 16; in sun8i_ui_layer_update_coord()
120 insize = SUN8I_MIXER_SIZE(src_w, src_h); in sun8i_ui_layer_update_coord()
126 DRM_DEBUG_DRIVER("Layer source size W: %d H: %d\n", src_w, src_h); in sun8i_ui_layer_update_coord()
140 vscale = state->src_h / state->crtc_h; in sun8i_ui_layer_update_coord()
142 sun8i_ui_scaler_setup(mixer, channel, src_w, src_h, dst_w, in sun8i_ui_layer_update_coord()
Dsun8i_vi_scaler.c927 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h, in sun8i_vi_scaler_setup() argument
942 insize = SUN8I_VI_SCALER_SIZE(src_w, src_h); in sun8i_vi_scaler_setup()
986 src_h / format->vsub)); in sun8i_vi_scaler_setup()
/linux-5.19.10/drivers/gpu/drm/arm/display/komeda/
Dkomeda_framebuffer.c209 u32 src_x, u32 src_y, u32 src_w, u32 src_h) in komeda_fb_check_src_coords() argument
216 if ((src_x + src_w > fb->width) || (src_y + src_h > fb->height)) { in komeda_fb_check_src_coords()
222 (src_y % info->vsub) || (src_h % info->vsub)) { in komeda_fb_check_src_coords()
224 src_x, src_y, src_w, src_h, info->format); in komeda_fb_check_src_coords()
229 (src_y % block_h) || (src_h % block_h)) { in komeda_fb_check_src_coords()
231 src_x, src_y, src_w, src_h, info->format); in komeda_fb_check_src_coords()
/linux-5.19.10/drivers/gpu/drm/i915/display/
Dskl_scaler.c94 int src_w, int src_h, int dst_w, int dst_h, in skl_update_scaler() argument
110 if (src_w != dst_w || src_h != dst_h) in skl_update_scaler()
152 (src_h < SKL_MIN_YUV_420_SRC_H || src_w < SKL_MIN_YUV_420_SRC_W)) { in skl_update_scaler()
159 if (src_w < SKL_MIN_SRC_W || src_h < SKL_MIN_SRC_H || in skl_update_scaler()
162 (src_w > ICL_MAX_SRC_W || src_h > ICL_MAX_SRC_H || in skl_update_scaler()
165 (src_w > SKL_MAX_SRC_W || src_h > SKL_MAX_SRC_H || in skl_update_scaler()
170 crtc->pipe, scaler_user, src_w, src_h, in skl_update_scaler()
179 crtc->pipe, scaler_user, src_w, src_h, dst_w, dst_h, in skl_update_scaler()
Dintel_sprite.c61 u32 src_x, src_y, src_w, src_h, hsub, vsub; in intel_plane_check_src_coordinates() local
83 src_h = drm_rect_height(src) >> 16; in intel_plane_check_src_coordinates()
86 src_w << 16, src_h << 16); in intel_plane_check_src_coordinates()
105 if (src_y % vsub || src_h % vsub) { in intel_plane_check_src_coordinates()
107 src_y, src_h, vsub, str_yes_no(rotated)); in intel_plane_check_src_coordinates()
850 u32 src_h = drm_rect_height(&plane_state->uapi.src) >> 16; in ivb_sprite_update_noarm() local
853 if (crtc_w != src_w || crtc_h != src_h) in ivb_sprite_update_noarm()
856 SPRITE_SRC_HEIGHT(src_h - 1); in ivb_sprite_update_noarm()
1177 u32 src_h = drm_rect_height(&plane_state->uapi.src) >> 16; in g4x_sprite_update_noarm() local
1180 if (crtc_w != src_w || crtc_h != src_h) in g4x_sprite_update_noarm()
[all …]
/linux-5.19.10/drivers/gpu/drm/
Ddrm_plane.c772 uint32_t src_w, uint32_t src_h) in __setplane_check() argument
801 ret = drm_framebuffer_check_src_coords(src_x, src_y, src_w, src_h, fb); in __setplane_check()
846 uint32_t src_w, uint32_t src_h, in __setplane_internal() argument
868 src_x, src_y, src_w, src_h); in __setplane_internal()
875 src_x, src_y, src_w, src_h, ctx); in __setplane_internal()
898 uint32_t src_w, uint32_t src_h, in __setplane_atomic() argument
918 src_x, src_y, src_w, src_h); in __setplane_atomic()
924 src_x, src_y, src_w, src_h, ctx); in __setplane_atomic()
934 uint32_t src_w, uint32_t src_h) in setplane_internal() argument
945 src_x, src_y, src_w, src_h, &ctx); in setplane_internal()
[all …]
Ddrm_plane_helper.c120 .src_h = drm_rect_height(src), in drm_plane_helper_check_update()
153 uint32_t src_w, uint32_t src_h, in drm_primary_helper_update() argument
167 .y2 = src_y + src_h, in drm_primary_helper_update()
/linux-5.19.10/drivers/gpu/drm/vc4/
Dvc4_plane.c371 vc4_state->src_h[0] = DIV_ROUND_CLOSEST(state->src.y2, 1 << 16) - vc4_state->src_y; in vc4_plane_setup_clipping_and_scaling()
384 vc4_state->y_scaling[0] = vc4_get_scaling_mode(vc4_state->src_h[0], in vc4_plane_setup_clipping_and_scaling()
394 vc4_state->src_h[1] = vc4_state->src_h[0] / v_subsample; in vc4_plane_setup_clipping_and_scaling()
400 vc4_get_scaling_mode(vc4_state->src_h[1], in vc4_plane_setup_clipping_and_scaling()
510 vc4_state->src_h[channel], vc4_state->crtc_h); in vc4_write_scaling_parameters()
523 vc4_state->src_h[channel], vc4_state->crtc_h); in vc4_write_scaling_parameters()
570 vscale_factor = DIV_ROUND_UP(vc4_state->src_h[i], in vc4_plane_calc_load()
573 vc4_state->src_h[i] * vscale_factor * in vc4_plane_calc_load()
719 src_y += vc4_state->src_h[0] - 1; in vc4_plane_mode_set()
958 VC4_SET_FIELD(vc4_state->src_h[0], in vc4_plane_mode_set()
[all …]
/linux-5.19.10/drivers/gpu/drm/meson/
Dmeson_plane.c147 int src_w, src_h, dst_w, dst_h; in meson_plane_atomic_update() local
264 src_h = fixed16_to_int(new_state->src_h); in meson_plane_atomic_update()
282 vf_phase_step = (src_h << 20) / dst_h; in meson_plane_atomic_update()
292 if (src_h != dst_h || src_w != dst_w) { in meson_plane_atomic_update()
294 SCI_WH_M1_H(src_h - 1); in meson_plane_atomic_update()
309 if (src_h != dst_h) { in meson_plane_atomic_update()
/linux-5.19.10/drivers/gpu/drm/virtio/
Dvirtgpu_plane.c188 plane->state->src_h >> 16, in virtio_gpu_primary_plane_update()
203 plane->state->src_h != old_state->src_h || in virtio_gpu_primary_plane_update()
213 plane->state->src_h >> 16, in virtio_gpu_primary_plane_update()
222 plane->state->src_h >> 16, in virtio_gpu_primary_plane_update()
229 plane->state->src_h >> 16, in virtio_gpu_primary_plane_update()

1234