/kernel/linux/linux-5.10/drivers/gpu/drm/armada/ |
D | armada_trace.h | 33 int crtc_x, int crtc_y, unsigned crtc_w, unsigned crtc_h, 35 TP_ARGS(plane, crtc, fb, crtc_x, crtc_y, crtc_w, crtc_h, src_x, src_y, src_w, src_h), 42 __field(unsigned int, crtc_w) 55 __entry->crtc_w = crtc_w; 65 __entry->crtc_w, __entry->crtc_h,
|
D | armada_overlay.c | 253 int crtc_x, int crtc_y, unsigned crtc_w, unsigned crtc_h, in armada_overlay_plane_update() argument 262 crtc_x, crtc_y, crtc_w, crtc_h, in armada_overlay_plane_update() 284 plane_state->crtc_w = crtc_w; in armada_overlay_plane_update()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp4/ |
D | mdp4_plane.c | 49 unsigned int crtc_w, unsigned int crtc_h, 123 state->crtc_w, state->crtc_h, in mdp4_plane_atomic_update() 195 unsigned int crtc_w, unsigned int crtc_h, in mdp4_plane_mode_set() argument 224 crtc->base.id, crtc_x, crtc_y, crtc_w, crtc_h); in mdp4_plane_mode_set() 228 if (src_w > (crtc_w * DOWN_SCALE_MAX)) { in mdp4_plane_mode_set() 238 if (crtc_w > (src_w * UP_SCALE_MAX)) { in mdp4_plane_mode_set() 248 if (src_w != crtc_w) { in mdp4_plane_mode_set() 253 if (crtc_w > src_w) in mdp4_plane_mode_set() 255 else if (crtc_w <= (src_w / 4)) in mdp4_plane_mode_set() 260 src_w, crtc_w); in mdp4_plane_mode_set() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv04/ |
D | overlay.c | 95 uint32_t crtc_w, uint32_t crtc_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() 115 unsigned int crtc_w, unsigned int crtc_h, in nv10_update_plane() argument 140 ret = verify_scaling(fb, shift, 0, 0, src_w, src_h, crtc_w, crtc_h); in nv10_update_plane() 158 nvif_wr32(dev, NV_PVIDEO_DS_DX(flip), (src_w << 20) / crtc_w); in nv10_update_plane() 161 nvif_wr32(dev, NV_PVIDEO_SIZE_OUT(flip), crtc_h << 16 | crtc_w); in nv10_update_plane() 365 unsigned int crtc_w, unsigned int crtc_h, in nv04_update_plane() argument 385 ret = verify_scaling(fb, 0, src_x, src_y, src_w, src_h, crtc_w, crtc_h); in nv04_update_plane() 408 nvif_wr32(dev, NV_PVIDEO_WINDOW_SIZE, crtc_h << 16 | crtc_w); in nv04_update_plane() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/selftests/ |
D | test-drm_plane_helper.c | 52 unsigned crtc_w, unsigned crtc_h) in set_crtc() argument 56 plane_state->crtc_w = crtc_w; in set_crtc() 62 unsigned crtc_w, unsigned crtc_h) in check_crtc_eq() argument 66 drm_rect_width(&plane_state->dst) != crtc_w || in check_crtc_eq()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_plane.c | 610 uint32_t crtc_w, uint32_t crtc_h, in __setplane_check() argument 636 if (crtc_w > INT_MAX || in __setplane_check() 637 crtc_x > INT_MAX - (int32_t) crtc_w || in __setplane_check() 641 crtc_w, crtc_h, crtc_x, crtc_y); in __setplane_check() 687 uint32_t crtc_w, uint32_t crtc_h, in __setplane_internal() argument 711 crtc_x, crtc_y, crtc_w, crtc_h, in __setplane_internal() 718 crtc_x, crtc_y, crtc_w, crtc_h, in __setplane_internal() 740 uint32_t crtc_w, uint32_t crtc_h, in __setplane_atomic() argument 761 crtc_x, crtc_y, crtc_w, crtc_h, in __setplane_atomic() 767 crtc_x, crtc_y, crtc_w, crtc_h, in __setplane_atomic() [all …]
|
D | drm_plane_helper.c | 123 .crtc_w = drm_rect_width(dst), in drm_plane_helper_check_update() 151 unsigned int crtc_w, unsigned int crtc_h, in drm_primary_helper_update() argument 172 .x2 = crtc_x + crtc_w, in drm_primary_helper_update()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/shmobile/ |
D | shmob_drm_plane.c | 33 unsigned int crtc_w; member 133 (splane->crtc_w << LDBBSSZR_BHSS_SHIFT)); in __shmob_drm_plane_setup() 172 unsigned int crtc_w, unsigned int crtc_h, in shmob_drm_plane_update() argument 188 if (src_w >> 16 != crtc_w || src_h >> 16 != crtc_h) { in shmob_drm_plane_update() 199 splane->crtc_w = crtc_w; in shmob_drm_plane_update()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/ |
D | vc4_plane.c | 317 vc4_pstate->crtc_w = DIV_ROUND_CLOSEST(vc4_pstate->crtc_w * in vc4_plane_margins_adj() 324 if (!vc4_pstate->crtc_w || !vc4_pstate->crtc_h) in vc4_plane_margins_adj() 368 vc4_state->crtc_w = state->dst.x2 - state->dst.x1; in vc4_plane_setup_clipping_and_scaling() 376 vc4_state->crtc_w); in vc4_plane_setup_clipping_and_scaling() 391 vc4_state->crtc_w); in vc4_plane_setup_clipping_and_scaling() 461 pix_per_line = vc4_state->crtc_w; in vc4_lbm_size() 497 vc4_state->src_w[channel], vc4_state->crtc_w); in vc4_write_scaling_parameters() 510 vc4_state->src_w[channel], vc4_state->crtc_w); in vc4_write_scaling_parameters() 573 vc4_state->hvs_load += vc4_state->crtc_h * vc4_state->crtc_w; in vc4_plane_calc_load() 850 VC4_SET_FIELD(vc4_state->crtc_w, in vc4_plane_mode_set() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/ |
D | exynos_drm_plane.c | 63 unsigned int crtc_w, crtc_h; in exynos_plane_mode_set() local 77 crtc_w = state->crtc_w; in exynos_plane_mode_set() 86 exynos_state->h_ratio = (src_w << 16) / crtc_w; in exynos_plane_mode_set() 90 actual_w = exynos_plane_get_size(crtc_x, crtc_w, mode->hdisplay); in exynos_plane_mode_set()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_plane.c | 320 if (((state->src_w >> 16) != state->crtc_w) || in mdp5_plane_atomic_check_with_state() 481 plane->state->crtc_w != state->crtc_w || in mdp5_plane_atomic_async_check() 839 unsigned int crtc_w, unsigned int crtc_h, in mdp5_hwpipe_mode_set() argument 862 MDP5_PIPE_OUT_SIZE_WIDTH(crtc_w) | in mdp5_hwpipe_mode_set() 946 unsigned int crtc_w, crtc_h; in mdp5_plane_mode_set() local 968 crtc_w = drm_rect_width(dest); in mdp5_plane_mode_set() 982 crtc->base.id, crtc_x, crtc_y, crtc_w, crtc_h); in mdp5_plane_mode_set() 991 crtc_w /= 2; in mdp5_plane_mode_set() 996 ret = calc_scalex_steps(plane, pix_format, src_w, crtc_w, step.x); in mdp5_plane_mode_set() 1005 calc_pixel_ext(format, src_w, crtc_w, step.x, in mdp5_plane_mode_set() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/atmel-hlcdc/ |
D | atmel_hlcdc_plane.c | 48 unsigned int crtc_w; member 292 if (state->crtc_w == state->src_w && state->crtc_h == state->src_h) { in atmel_hlcdc_plane_setup_scaler() 300 state->crtc_w, in atmel_hlcdc_plane_setup_scaler() 308 state->crtc_w < state->src_w ? in atmel_hlcdc_plane_setup_scaler() 321 xfactor = (1024 * state->src_w) / state->crtc_w; in atmel_hlcdc_plane_setup_scaler() 339 ATMEL_HLCDC_LAYER_SIZE(state->crtc_w, in atmel_hlcdc_plane_update_pos_and_size() 558 if (ovl_state->crtc_h * ovl_state->crtc_w < disc_h * disc_w) in atmel_hlcdc_plane_prepare_disc_area() 564 disc_w = ovl_state->crtc_w; in atmel_hlcdc_plane_prepare_disc_area() 625 state->crtc_w = drm_rect_width(&s->dst); in atmel_hlcdc_plane_atomic_check() 700 (mode->hdisplay != state->crtc_w || in atmel_hlcdc_plane_atomic_check() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ingenic/ |
D | ingenic-ipu.c | 280 state->crtc_w != oldstate->crtc_w || in osd_changed() 424 ((state->crtc_w * 4) << JZ_IPU_OUT_GS_W_LSB) in ingenic_ipu_plane_atomic_update() 426 regmap_write(ipu->map, JZ_REG_IPU_OUT_STRIDE, state->crtc_w * 4); in ingenic_ipu_plane_atomic_update() 512 state->crtc_w, state->crtc_h, in ingenic_ipu_plane_atomic_update() 541 state->crtc_x + state->crtc_w > crtc_state->mode.hdisplay || in ingenic_ipu_plane_atomic_check() 550 if (((state->src_w >> 16) & 1) || (state->crtc_w & 1)) in ingenic_ipu_plane_atomic_check() 562 for (denom_w = xres, num_w = state->crtc_w; in ingenic_ipu_plane_atomic_check()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/tilcdc/ |
D | tilcdc_plane.c | 48 if (crtc_state->mode.hdisplay != state->crtc_w || in tilcdc_plane_atomic_check() 53 state->crtc_w, state->crtc_h); in tilcdc_plane_atomic_check()
|
/kernel/linux/linux-5.10/include/drm/ |
D | drm_plane.h | 100 uint32_t crtc_w, crtc_h; member 247 .x2 = state->crtc_x + state->crtc_w, in drm_plane_state_dest() 286 unsigned int crtc_w, unsigned int crtc_h,
|
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/ |
D | sun4i_frontend.c | 506 state->crtc_w, state->crtc_h); in sun4i_frontend_update_coord() 520 SUN4I_FRONTEND_OUTSIZE(state->crtc_h, state->crtc_w)); in sun4i_frontend_update_coord() 522 SUN4I_FRONTEND_OUTSIZE(state->crtc_h, state->crtc_w)); in sun4i_frontend_update_coord() 525 (luma_width << 16) / state->crtc_w); in sun4i_frontend_update_coord() 527 (chroma_width << 16) / state->crtc_w); in sun4i_frontend_update_coord()
|
D | sun4i_backend.c | 177 state->crtc_w, state->crtc_h); in sun4i_backend_update_layer_coord() 179 SUN4I_BACKEND_DISSIZE(state->crtc_w, in sun4i_backend_update_layer_coord() 185 state->crtc_w, state->crtc_h); in sun4i_backend_update_layer_coord() 187 SUN4I_BACKEND_LAYSIZE(state->crtc_w, in sun4i_backend_update_layer_coord() 417 src_w, src_h, state->crtc_w, state->crtc_h); in sun4i_backend_plane_uses_scaler() 419 if ((state->crtc_h != src_h) || (state->crtc_w != src_w)) in sun4i_backend_plane_uses_scaler()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
D | intel_sprite.c | 427 u32 crtc_w = drm_rect_width(&plane_state->uapi.dst); in skl_program_scaler() local 467 (crtc_w << 16) | crtc_h); in skl_program_scaler() 1044 u32 crtc_w = drm_rect_width(&plane_state->uapi.dst); in vlv_update_plane() local 1054 crtc_w--; in vlv_update_plane() 1066 (crtc_h << 16) | crtc_w); in vlv_update_plane() 1461 u32 crtc_w = drm_rect_width(&plane_state->uapi.dst); in ivb_update_plane() local 1475 crtc_w--; in ivb_update_plane() 1478 if (crtc_w != src_w || crtc_h != src_h) in ivb_update_plane() 1488 intel_de_write_fw(dev_priv, SPRSIZE(pipe), (crtc_h << 16) | crtc_w); in ivb_update_plane() 1770 u32 crtc_w = drm_rect_width(&plane_state->uapi.dst); in g4x_update_plane() local [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/hisilicon/kirin/ |
D | kirin_drm_ade.c | 711 int crtc_y, unsigned int crtc_w, in ade_update_channel() argument 724 crtc_x, crtc_y, crtc_w, crtc_h); in ade_update_channel() 772 u32 crtc_w = state->crtc_w; in ade_plane_atomic_check() local 787 if (src_w != crtc_w || src_h != crtc_h) { in ade_plane_atomic_check() 798 if (crtc_x + crtc_w > crtc_state->adjusted_mode.hdisplay || in ade_plane_atomic_check() 812 state->crtc_w, state->crtc_h, in ade_plane_atomic_update()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/imx/ |
D | ipuv3-plane.h | 40 unsigned int crtc_w, unsigned int crtc_h,
|
/kernel/linux/linux-5.10/drivers/gpu/drm/imx/dcss/ |
D | dcss-plane.c | 193 state->crtc_x + state->crtc_w > hdisplay || in dcss_plane_atomic_check() 253 state->crtc_w != old_state->crtc_w || in dcss_plane_needs_setup()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/ |
D | mtk_drm_plane.c | 119 plane->state->crtc_w = new_state->crtc_w; in mtk_plane_atomic_async_update()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/ |
D | malidp_planes.c | 297 if ((state->crtc_w == src_w) && (state->crtc_h == src_h)) { in malidp_se_check_scaling() 549 if ((state->crtc_w > mp->hwdev->max_line_size) || in malidp_de_plane_check() 551 (state->crtc_w < mp->hwdev->min_line_size) || in malidp_de_plane_check() 594 val = mp->hwdev->hw->rotmem_required(mp->hwdev, state->crtc_w, in malidp_de_plane_check() 818 dest_w = state->crtc_w; in malidp_de_plane_update()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/ |
D | virtgpu_plane.c | 171 plane->state->crtc_w, plane->state->crtc_h, in virtio_gpu_primary_plane_update() 266 plane->state->crtc_w, in virtio_gpu_cursor_plane_update()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/tidss/ |
D | tidss_dispc.c | 1631 sp->scale_x = sp->in_w != state->crtc_w; in dispc_vid_calc_scaling() 1662 sp->fir_xinc = dispc_calc_fir_inc(sp->in_w, state->crtc_w); in dispc_vid_calc_scaling() 1667 __func__, state->crtc_w, state->src_w >> 16, in dispc_vid_calc_scaling() 1674 state->crtc_w), in dispc_vid_calc_scaling() 1680 __func__, state->crtc_w, in dispc_vid_calc_scaling() 1709 sp->fir_xinc = dispc_calc_fir_inc(sp->in_w, state->crtc_w); in dispc_vid_calc_scaling() 1743 state->crtc_w, state->crtc_h); in dispc_vid_calc_scaling() 1749 state->crtc_w); in dispc_vid_calc_scaling() 1920 bool need_scaling = state->src_w >> 16 != state->crtc_w || in dispc_plane_check() 1942 state->crtc_w, state->crtc_h); in dispc_plane_check() [all …]
|