| /linux/drivers/gpu/drm/armada/ |
| H 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,
|
| H A D | armada_overlay.c | 261 int crtc_x, int crtc_y, unsigned crtc_w, unsigned crtc_h, in armada_overlay_plane_update() argument 270 crtc_x, crtc_y, crtc_w, crtc_h, in armada_overlay_plane_update() 292 plane_state->crtc_w = crtc_w; in armada_overlay_plane_update()
|
| /linux/drivers/gpu/drm/loongson/ |
| H A D | lsdc_plane.c | 188 if (new_state->crtc_w != new_state->crtc_h) { in lsdc_cursor_plane_atomic_async_check() 190 new_state->crtc_w, new_state->crtc_h); in lsdc_cursor_plane_atomic_async_check() 194 if (new_state->crtc_w != 64 && new_state->crtc_w != 32) { in lsdc_cursor_plane_atomic_async_check() 196 new_state->crtc_w, new_state->crtc_h); in lsdc_cursor_plane_atomic_async_check() 207 plane->state->crtc_w != new_state->crtc_w || in lsdc_cursor_plane_atomic_async_check() 237 plane->state->crtc_w = new_state->crtc_w; in lsdc_cursor_plane_atomic_async_update() 247 switch (new_state->crtc_w) { in lsdc_cursor_plane_atomic_async_update() 285 if (new_plane_state->crtc_w != 32 || new_plane_state->crtc_h != 32) { in ls7a1000_cursor_plane_atomic_check() 287 new_plane_state->crtc_w, new_plane_state->crtc_h); in ls7a1000_cursor_plane_atomic_check() 358 if (new_plane_state->crtc_w != new_plane_state->crtc_h) { in ls7a2000_cursor_plane_atomic_check() [all …]
|
| /linux/drivers/gpu/drm/msm/disp/mdp4/ |
| H A D | mdp4_plane.c | 46 unsigned int crtc_w, unsigned int crtc_h, 120 new_state->crtc_w, new_state->crtc_h, in mdp4_plane_atomic_update() 191 unsigned int crtc_w, unsigned int crtc_h, in mdp4_plane_mode_set() argument 220 crtc->base.id, crtc_x, crtc_y, crtc_w, crtc_h); in mdp4_plane_mode_set() 224 if (src_w > (crtc_w * DOWN_SCALE_MAX)) { in mdp4_plane_mode_set() 234 if (crtc_w > (src_w * UP_SCALE_MAX)) { in mdp4_plane_mode_set() 244 if (src_w != crtc_w) { in mdp4_plane_mode_set() 249 if (crtc_w > src_w) in mdp4_plane_mode_set() 251 else if (crtc_w <= (src_w / 4)) in mdp4_plane_mode_set() 256 src_w, crtc_w); in mdp4_plane_mode_set() [all …]
|
| /linux/drivers/gpu/drm/nouveau/dispnv04/ |
| H 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() 366 unsigned int crtc_w, unsigned int crtc_h, in nv04_update_plane() argument 386 ret = verify_scaling(fb, 0, src_x, src_y, src_w, src_h, crtc_w, crtc_h); in nv04_update_plane() 409 nvif_wr32(dev, NV_PVIDEO_WINDOW_SIZE, crtc_h << 16 | crtc_w); in nv04_update_plane() [all …]
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_cursor_plane.c | 86 vps->base.crtc_w, vps->base.crtc_h, in vmw_cursor_plane_update_legacy() 117 const u32 image_size = vps->base.crtc_w * vps->base.crtc_h * sizeof(*image); in vmw_cursor_update_mob() 129 alpha_header->width = vps->base.crtc_w; in vmw_cursor_update_mob() 227 vps->base.crtc_w, vps->base.crtc_h); in vmw_cursor_mob_get() 240 if (size > mob_max_size || vps->base.crtc_w > cursor_max_dim || in vmw_cursor_mob_get() 433 vps->base.crtc_w, vps->base.crtc_h); in vmw_cursor_mob_map() 525 const u32 size = new_vps->base.crtc_w * in vmw_cursor_buffer_changed() 567 if (old_vps->base.crtc_w != new_vps->base.crtc_w || in vmw_cursor_plane_changed() 651 const u32 size = new_state->crtc_w * in vmw_cursor_plane_prepare_fb() 722 if (new_state->crtc_w != VMW_CURSOR_SNOOP_WIDTH || in vmw_cursor_plane_atomic_check() [all …]
|
| /linux/drivers/gpu/drm/msm/disp/mdp5/ |
| H A D | mdp5_plane.c | 225 if (((state->src_w >> 16) != state->crtc_w) || in mdp5_plane_atomic_check_with_state() 391 plane->state->crtc_w != new_plane_state->crtc_w || in mdp5_plane_atomic_async_check() 749 unsigned int crtc_w, unsigned int crtc_h, in mdp5_hwpipe_mode_set() argument 772 MDP5_PIPE_OUT_SIZE_WIDTH(crtc_w) | in mdp5_hwpipe_mode_set() 857 unsigned int crtc_w, crtc_h; in mdp5_plane_mode_set() local 879 crtc_w = drm_rect_width(dest); in mdp5_plane_mode_set() 893 crtc->base.id, crtc_x, crtc_y, crtc_w, crtc_h); in mdp5_plane_mode_set() 902 crtc_w /= 2; in mdp5_plane_mode_set() 907 ret = calc_scalex_steps(plane, pix_format, src_w, crtc_w, step.x); in mdp5_plane_mode_set() 916 calc_pixel_ext(format, src_w, crtc_w, step.x, in mdp5_plane_mode_set() [all …]
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_plane.c | 951 uint32_t crtc_w, uint32_t crtc_h, in __setplane_check() argument 971 if (crtc_w > INT_MAX || in __setplane_check() 972 crtc_x > INT_MAX - (int32_t) crtc_w || in __setplane_check() 976 crtc_w, crtc_h, crtc_x, crtc_y); in __setplane_check() 1022 uint32_t crtc_w, uint32_t crtc_h, in __setplane_internal() argument 1046 crtc_x, crtc_y, crtc_w, crtc_h, in __setplane_internal() 1053 crtc_x, crtc_y, crtc_w, crtc_h, in __setplane_internal() 1075 uint32_t crtc_w, uint32_t crtc_h, in __setplane_atomic() argument 1096 crtc_x, crtc_y, crtc_w, crtc_h, in __setplane_atomic() 1102 crtc_x, crtc_y, crtc_w, crtc_h, in __setplane_atomic() [all …]
|
| H A D | drm_plane_helper.c | 117 .crtc_w = drm_rect_width(dst), in drm_plane_helper_check_update() 168 unsigned int crtc_w, unsigned int crtc_h, in drm_plane_helper_update_primary() argument 189 .x2 = crtc_x + crtc_w, in drm_plane_helper_update_primary()
|
| /linux/drivers/gpu/drm/exynos/ |
| H A D | exynos_drm_plane.c | 65 unsigned int crtc_w, crtc_h; in exynos_plane_mode_set() local 79 crtc_w = state->crtc_w; in exynos_plane_mode_set() 88 exynos_state->h_ratio = (src_w << 16) / crtc_w; in exynos_plane_mode_set() 92 actual_w = exynos_plane_get_size(crtc_x, crtc_w, mode->hdisplay); in exynos_plane_mode_set()
|
| /linux/drivers/gpu/drm/atmel-hlcdc/ |
| H A D | atmel_hlcdc_plane.c | 51 unsigned int crtc_w; member 294 if (state->crtc_w == state->src_w && state->crtc_h == state->src_h) { in atmel_hlcdc_plane_setup_scaler() 302 state->crtc_w, in atmel_hlcdc_plane_setup_scaler() 310 state->crtc_w < state->src_w ? in atmel_hlcdc_plane_setup_scaler() 323 xfactor = (1024 * state->src_w) / state->crtc_w; in atmel_hlcdc_plane_setup_scaler() 343 if (state->crtc_w == state->src_w && state->crtc_h == state->src_h) { in atmel_xlcdc_plane_setup_scaler() 350 xfactor = (u32)(((1 << 20) * state->src_w) / state->crtc_w); in atmel_xlcdc_plane_setup_scaler() 412 ATMEL_HLCDC_LAYER_SIZE(state->crtc_w, in atmel_hlcdc_plane_update_pos_and_size() 684 if (ovl_state->crtc_h * ovl_state->crtc_w < disc_h * disc_w) in atmel_hlcdc_plane_prepare_disc_area() 690 disc_w = ovl_state->crtc_w; in atmel_hlcdc_plane_prepare_disc_area() [all …]
|
| /linux/drivers/gpu/drm/vc4/ |
| H A D | vc4_plane.c | 478 vc4_pstate->crtc_w = DIV_ROUND_CLOSEST(vc4_pstate->crtc_w * in vc4_plane_margins_adj() 485 if (!vc4_pstate->crtc_w || !vc4_pstate->crtc_h) in vc4_plane_margins_adj() 519 vc4_state->crtc_w = state->dst.x2 - state->dst.x1; in vc4_plane_setup_clipping_and_scaling() 527 vc4_state->crtc_w); in vc4_plane_setup_clipping_and_scaling() 542 vc4_state->crtc_w); in vc4_plane_setup_clipping_and_scaling() 681 pix_per_line = vc4_state->crtc_w; in __vc4_lbm_size() 761 width = min(state->src_w >> 16, state->crtc_w); in vc4_lbm_channel_size() 845 vc4_state->crtc_w, vc4_state->src_x, channel); in vc4_write_scaling_parameters() 858 vc4_state->crtc_w); in vc4_write_scaling_parameters() 916 vc4_state->hvs_load += vc4_state->crtc_h * vc4_state->crtc_w; in vc4_plane_calc_load() [all …]
|
| /linux/drivers/gpu/drm/omapdrm/ |
| H A D | omap_plane.c | 264 if (new_plane_state->crtc_x + new_plane_state->crtc_w > crtc_state->adjusted_mode.hdisplay) in omap_plane_atomic_check() 275 if (new_plane_state->src_w > max_width || new_plane_state->crtc_w > width) { in omap_plane_atomic_check() 279 new_plane_state->crtc_w / 2 & 1)) { in omap_plane_atomic_check() 286 new_plane_state->crtc_w <= (2 * width - 1)) in omap_plane_atomic_check() 292 new_plane_state->crtc_w <= (2 * width)) in omap_plane_atomic_check() 303 if ((new_plane_state->src_w >> 16) != new_plane_state->crtc_w || in omap_plane_atomic_check()
|
| /linux/drivers/gpu/drm/tilcdc/ |
| H A D | tilcdc_plane.c | 50 if (crtc_state->mode.hdisplay != new_state->crtc_w || in tilcdc_plane_atomic_check() 55 new_state->crtc_w, new_state->crtc_h); in tilcdc_plane_atomic_check()
|
| /linux/drivers/gpu/drm/ingenic/ |
| H A D | ingenic-ipu.c | 319 state->crtc_w != oldstate->crtc_w || in osd_changed() 474 ((newstate->crtc_w * 4) << JZ_IPU_OUT_GS_W_LSB) in ingenic_ipu_plane_atomic_update() 476 regmap_write(ipu->map, JZ_REG_IPU_OUT_STRIDE, newstate->crtc_w * 4); in ingenic_ipu_plane_atomic_update() 562 newstate->crtc_w, newstate->crtc_h, in ingenic_ipu_plane_atomic_update() 601 new_plane_state->crtc_x + new_plane_state->crtc_w > crtc_state->mode.hdisplay || in ingenic_ipu_plane_atomic_check() 610 if (((new_plane_state->src_w >> 16) & 1) || (new_plane_state->crtc_w & 1)) in ingenic_ipu_plane_atomic_check() 631 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/sun4i/ |
| H 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()
|
| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_plane_helper_test.c | 74 mock->crtc_w = params->crtc.w; in drm_plane_helper_init() 103 unsigned int crtc_w, unsigned int crtc_h) in check_crtc_eq() argument 105 struct drm_rect expected = DRM_RECT_INIT(crtc_x, crtc_y, crtc_w, crtc_h); in check_crtc_eq()
|
| /linux/include/drm/ |
| H A D | drm_plane.h | 105 uint32_t crtc_w, crtc_h; member 291 .x2 = state->crtc_x + state->crtc_w, in drm_plane_state_dest() 330 unsigned int crtc_w, unsigned int crtc_h,
|
| H A D | drm_plane_helper.h | 37 unsigned int crtc_w, unsigned int crtc_h,
|
| /linux/drivers/gpu/drm/hisilicon/kirin/ |
| H A D | kirin_drm_ade.c | 712 int crtc_y, unsigned int crtc_w, in ade_update_channel() argument 725 crtc_x, crtc_y, crtc_w, crtc_h); in ade_update_channel() 775 u32 crtc_w = new_plane_state->crtc_w; in ade_plane_atomic_check() local 790 if (src_w != crtc_w || src_h != crtc_h) { in ade_plane_atomic_check() 801 if (crtc_x + crtc_w > crtc_state->adjusted_mode.hdisplay || in ade_plane_atomic_check() 817 new_state->crtc_w, new_state->crtc_h, in ade_plane_atomic_update()
|
| /linux/drivers/gpu/drm/nouveau/dispnv50/ |
| H A D | curs507a.c | 115 if (asyw->state.crtc_w != asyw->state.crtc_h) { in curs507a_acquire() 120 if (asyw->image.w != asyw->state.crtc_w) { in curs507a_acquire()
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_plane.c | 1105 int viewport_width = state->crtc_w; in amdgpu_dm_plane_helper_check_state() 1110 else if (state->crtc_x + state->crtc_w > new_crtc_state->mode.crtc_hdisplay) in amdgpu_dm_plane_helper_check_state() 1188 if (state->crtc_w == 0) in amdgpu_dm_plane_fill_dc_scaling_info() 1191 scaling_info->dst_rect.width = state->crtc_w; in amdgpu_dm_plane_fill_dc_scaling_info() 1312 if ((plane->state->crtc_w > amdgpu_crtc->max_cursor_width) || in amdgpu_dm_plane_get_cursor_position() 1316 plane->state->crtc_w, in amdgpu_dm_plane_get_cursor_position() 1365 amdgpu_crtc->crtc_id, plane->state->crtc_w, in amdgpu_dm_plane_handle_cursor_update() 1383 amdgpu_crtc->cursor_width = plane->state->crtc_w; in amdgpu_dm_plane_handle_cursor_update() 1389 attributes.width = plane->state->crtc_w; in amdgpu_dm_plane_handle_cursor_update() 1436 plane->state->crtc_w = new_state->crtc_w; in amdgpu_dm_plane_atomic_async_update()
|
| /linux/drivers/gpu/drm/imx/dcss/ |
| H A D | dcss-plane.c | 197 new_plane_state->crtc_x + new_plane_state->crtc_w > hdisplay || in dcss_plane_atomic_check() 257 state->crtc_w != old_state->crtc_w || in dcss_plane_needs_setup()
|
| /linux/drivers/gpu/drm/imx/ipuv3/ |
| H A D | ipuv3-plane.h | 40 unsigned int crtc_w, unsigned int crtc_h,
|
| /linux/drivers/gpu/drm/arm/ |
| H A D | malidp_planes.c | 289 if ((state->crtc_w == src_w) && (state->crtc_h == src_h)) { in malidp_se_check_scaling() 539 if ((new_plane_state->crtc_w > mp->hwdev->max_line_size) || in malidp_de_plane_check() 541 (new_plane_state->crtc_w < mp->hwdev->min_line_size) || in malidp_de_plane_check() 584 val = mp->hwdev->hw->rotmem_required(mp->hwdev, new_plane_state->crtc_w, in malidp_de_plane_check() 811 dest_w = new_state->crtc_w; in malidp_de_plane_update()
|