/linux/drivers/gpu/drm/armada/ |
A 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,
|
A D | armada_overlay.c | 258 int crtc_x, int crtc_y, unsigned crtc_w, unsigned crtc_h, in armada_overlay_plane_update() argument 267 crtc_x, crtc_y, crtc_w, crtc_h, in armada_overlay_plane_update() 289 plane_state->crtc_w = crtc_w; in armada_overlay_plane_update()
|
/linux/drivers/gpu/drm/msm/disp/mdp4/ |
A D | mdp4_plane.c | 50 unsigned int crtc_w, unsigned int crtc_h, 125 new_state->crtc_w, new_state->crtc_h, in mdp4_plane_atomic_update() 197 unsigned int crtc_w, unsigned int crtc_h, in mdp4_plane_mode_set() argument 226 crtc->base.id, crtc_x, crtc_y, crtc_w, crtc_h); in mdp4_plane_mode_set() 230 if (src_w > (crtc_w * DOWN_SCALE_MAX)) { in mdp4_plane_mode_set() 240 if (crtc_w > (src_w * UP_SCALE_MAX)) { in mdp4_plane_mode_set() 250 if (src_w != crtc_w) { in mdp4_plane_mode_set() 255 if (crtc_w > src_w) in mdp4_plane_mode_set() 257 else if (crtc_w <= (src_w / 4)) in mdp4_plane_mode_set() 262 src_w, crtc_w); in mdp4_plane_mode_set() [all …]
|
/linux/drivers/gpu/drm/nouveau/dispnv04/ |
A 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 …]
|
/linux/drivers/gpu/drm/selftests/ |
A 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()
|
/linux/drivers/gpu/drm/shmobile/ |
A 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()
|
/linux/drivers/gpu/drm/ |
A D | drm_plane.c | 772 uint32_t crtc_w, uint32_t crtc_h, in __setplane_check() argument 794 if (crtc_w > INT_MAX || in __setplane_check() 799 crtc_w, crtc_h, crtc_x, crtc_y); in __setplane_check() 876 crtc_x, crtc_y, crtc_w, crtc_h, in __setplane_internal() 925 crtc_x, crtc_y, crtc_w, crtc_h, in __setplane_atomic() 946 crtc_x, crtc_y, crtc_w, crtc_h, in setplane_internal() 950 crtc_x, crtc_y, crtc_w, crtc_h, in setplane_internal() 1026 uint32_t crtc_w = 0, crtc_h = 0; in drm_mode_cursor_universal() local 1070 crtc_w = fb->width; in drm_mode_cursor_universal() 1078 crtc_x, crtc_y, crtc_w, crtc_h, in drm_mode_cursor_universal() [all …]
|
A 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()
|
/linux/drivers/gpu/drm/vc4/ |
A 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() 372 vc4_state->crtc_w = state->dst.x2 - state->dst.x1; in vc4_plane_setup_clipping_and_scaling() 380 vc4_state->crtc_w); in vc4_plane_setup_clipping_and_scaling() 395 vc4_state->crtc_w); in vc4_plane_setup_clipping_and_scaling() 465 pix_per_line = vc4_state->crtc_w; in vc4_lbm_size() 854 VC4_SET_FIELD(vc4_state->crtc_w, in vc4_plane_mode_set() 927 VC4_SET_FIELD(vc4_state->crtc_w, in vc4_plane_mode_set() 1029 vc4_state->crtc_w == state->crtc->mode.hdisplay && in vc4_plane_mode_set() 1147 plane->state->crtc_w = new_plane_state->crtc_w; in vc4_plane_atomic_async_update() [all …]
|
/linux/drivers/gpu/drm/msm/disp/mdp5/ |
A D | mdp5_plane.c | 221 if (((state->src_w >> 16) != state->crtc_w) || in mdp5_plane_atomic_check_with_state() 378 plane->state->crtc_w != new_plane_state->crtc_w || in mdp5_plane_atomic_async_check() 738 unsigned int crtc_w, unsigned int crtc_h, in mdp5_hwpipe_mode_set() argument 761 MDP5_PIPE_OUT_SIZE_WIDTH(crtc_w) | in mdp5_hwpipe_mode_set() 845 unsigned int crtc_w, crtc_h; in mdp5_plane_mode_set() local 867 crtc_w = drm_rect_width(dest); in mdp5_plane_mode_set() 881 crtc->base.id, crtc_x, crtc_y, crtc_w, crtc_h); in mdp5_plane_mode_set() 890 crtc_w /= 2; in mdp5_plane_mode_set() 904 calc_pixel_ext(format, src_w, crtc_w, step.x, in mdp5_plane_mode_set() 926 crtc_x, crtc_y, crtc_w, crtc_h, in mdp5_plane_mode_set() [all …]
|
/linux/drivers/gpu/drm/exynos/ |
A 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()
|
/linux/drivers/gpu/drm/atmel-hlcdc/ |
A D | atmel_hlcdc_plane.c | 49 unsigned int crtc_w; member 293 if (state->crtc_w == state->src_w && state->crtc_h == state->src_h) { in atmel_hlcdc_plane_setup_scaler() 301 state->crtc_w, in atmel_hlcdc_plane_setup_scaler() 309 state->crtc_w < state->src_w ? in atmel_hlcdc_plane_setup_scaler() 322 xfactor = (1024 * state->src_w) / state->crtc_w; in atmel_hlcdc_plane_setup_scaler() 340 ATMEL_HLCDC_LAYER_SIZE(state->crtc_w, in atmel_hlcdc_plane_update_pos_and_size() 559 if (ovl_state->crtc_h * ovl_state->crtc_w < disc_h * disc_w) in atmel_hlcdc_plane_prepare_disc_area() 565 disc_w = ovl_state->crtc_w; in atmel_hlcdc_plane_prepare_disc_area() 627 hstate->crtc_w = drm_rect_width(&s->dst); in atmel_hlcdc_plane_atomic_check() 702 (mode->hdisplay != hstate->crtc_w || in atmel_hlcdc_plane_atomic_check() [all …]
|
/linux/drivers/gpu/drm/ingenic/ |
A D | ingenic-ipu.c | 283 state->crtc_w != oldstate->crtc_w || in osd_changed() 433 ((newstate->crtc_w * 4) << JZ_IPU_OUT_GS_W_LSB) in ingenic_ipu_plane_atomic_update() 435 regmap_write(ipu->map, JZ_REG_IPU_OUT_STRIDE, newstate->crtc_w * 4); in ingenic_ipu_plane_atomic_update() 521 newstate->crtc_w, newstate->crtc_h, in ingenic_ipu_plane_atomic_update() 554 new_plane_state->crtc_x + new_plane_state->crtc_w > crtc_state->mode.hdisplay || in ingenic_ipu_plane_atomic_check() 563 if (((new_plane_state->src_w >> 16) & 1) || (new_plane_state->crtc_w & 1)) in ingenic_ipu_plane_atomic_check() 584 for (denom_w = xres, num_w = new_plane_state->crtc_w; num_w <= max_w; num_w++) in ingenic_ipu_plane_atomic_check()
|
/linux/drivers/gpu/drm/i915/display/ |
A D | intel_sprite.c | 432 u32 crtc_w = drm_rect_width(&plane_state->uapi.dst); in vlv_update_plane() local 442 crtc_w--; in vlv_update_plane() 454 (crtc_h << 16) | crtc_w); in vlv_update_plane() 849 u32 crtc_w = drm_rect_width(&plane_state->uapi.dst); in ivb_update_plane() local 863 crtc_w--; in ivb_update_plane() 866 if (crtc_w != src_w || crtc_h != src_h) in ivb_update_plane() 1191 crtc_w--; in g4x_update_plane() 1194 if (crtc_w != src_w || crtc_h != src_h) in g4x_update_plane() 1299 int src_x, src_w, src_h, crtc_w, crtc_h; in g4x_sprite_check_scaling() local 1307 crtc_w = drm_rect_width(dst); in g4x_sprite_check_scaling() [all …]
|
A D | intel_cursor.c | 617 unsigned int crtc_w, unsigned int crtc_h, in intel_legacy_cursor_update() argument 662 old_plane_state->uapi.crtc_w != crtc_w || in intel_legacy_cursor_update() 685 new_plane_state->uapi.crtc_w = crtc_w; in intel_legacy_cursor_update() 738 crtc_x, crtc_y, crtc_w, crtc_h, in intel_legacy_cursor_update()
|
/linux/drivers/gpu/drm/tilcdc/ |
A D | tilcdc_plane.c | 51 if (crtc_state->mode.hdisplay != new_state->crtc_w || in tilcdc_plane_atomic_check() 56 new_state->crtc_w, new_state->crtc_h); in tilcdc_plane_atomic_check()
|
/linux/include/drm/ |
A D | drm_plane.h | 105 uint32_t crtc_w, crtc_h; member 262 .x2 = state->crtc_x + state->crtc_w, in drm_plane_state_dest() 301 unsigned int crtc_w, unsigned int crtc_h,
|
/linux/drivers/gpu/drm/sun4i/ |
A 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()
|
A 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()
|
/linux/drivers/gpu/drm/hisilicon/kirin/ |
A D | kirin_drm_ade.c | 710 int crtc_y, unsigned int crtc_w, in ade_update_channel() argument 723 crtc_x, crtc_y, crtc_w, crtc_h); in ade_update_channel() 773 u32 crtc_w = new_plane_state->crtc_w; in ade_plane_atomic_check() local 788 if (src_w != crtc_w || src_h != crtc_h) { in ade_plane_atomic_check() 799 if (crtc_x + crtc_w > crtc_state->adjusted_mode.hdisplay || in ade_plane_atomic_check() 815 new_state->crtc_w, new_state->crtc_h, in ade_plane_atomic_update()
|
/linux/drivers/gpu/drm/imx/dcss/ |
A D | dcss-plane.c | 194 new_plane_state->crtc_x + new_plane_state->crtc_w > hdisplay || in dcss_plane_atomic_check() 254 state->crtc_w != old_state->crtc_w || in dcss_plane_needs_setup()
|
/linux/drivers/gpu/drm/imx/ |
A D | ipuv3-plane.h | 40 unsigned int crtc_w, unsigned int crtc_h,
|
/linux/drivers/gpu/drm/mediatek/ |
A D | mtk_drm_plane.c | 152 plane->state->crtc_w = new_state->crtc_w; in mtk_plane_atomic_async_update()
|
/linux/drivers/gpu/drm/arm/ |
A D | malidp_planes.c | 297 if ((state->crtc_w == src_w) && (state->crtc_h == src_h)) { in malidp_se_check_scaling() 551 if ((new_plane_state->crtc_w > mp->hwdev->max_line_size) || in malidp_de_plane_check() 553 (new_plane_state->crtc_w < mp->hwdev->min_line_size) || in malidp_de_plane_check() 596 val = mp->hwdev->hw->rotmem_required(mp->hwdev, new_plane_state->crtc_w, in malidp_de_plane_check() 823 dest_w = new_state->crtc_w; in malidp_de_plane_update()
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
A D | amdgpu_dm_trace.h | 238 __field(uint32_t, crtc_w) 267 __entry->crtc_w = state->crtc_w; 298 __entry->crtc_y, __entry->crtc_w, __entry->crtc_h,
|