/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
H A D | intel_panel.c | 404 adjusted_mode->crtc_vdisplay == pipe_src_h && in pch_panel_fitting() 413 y = (adjusted_mode->crtc_vdisplay - height + 1)/2; in pch_panel_fitting() 420 u32 scaled_height = pipe_src_w * adjusted_mode->crtc_vdisplay; in pch_panel_fitting() 427 height = adjusted_mode->crtc_vdisplay; in pch_panel_fitting() 432 y = (adjusted_mode->crtc_vdisplay - height + 1) / 2; in pch_panel_fitting() 438 height = adjusted_mode->crtc_vdisplay; in pch_panel_fitting() 445 WARN_ON(adjusted_mode->crtc_vdisplay != pipe_src_h); in pch_panel_fitting() 450 height = adjusted_mode->crtc_vdisplay; in pch_panel_fitting() 498 border = (adjusted_mode->crtc_vdisplay - height + 1) / 2; in centre_vertically() 500 adjusted_mode->crtc_vdisplay in centre_vertically() [all...] |
H A D | intel_psr.c | 897 const u32 crtc_vdisplay = crtc_state->uapi.adjusted_mode.crtc_vdisplay; in tgl_dc3co_exitline_compute_config() local 933 if (drm_WARN_ON(&dev_priv->drm, exit_scanlines > crtc_vdisplay)) in tgl_dc3co_exitline_compute_config() 936 crtc_state->dc3co_exitline = crtc_vdisplay - exit_scanlines; in tgl_dc3co_exitline_compute_config() 966 const int crtc_vdisplay = crtc_state->hw.adjusted_mode.crtc_vdisplay; in psr2_granularity_check() local 973 if (crtc_vdisplay % intel_dp->psr.su_y_granularity) in psr2_granularity_check() 992 if (y_granularity == 0 || crtc_vdisplay % y_granularity) in psr2_granularity_check() 1072 int crtc_vdisplay = crtc_state->hw.adjusted_mode.crtc_vdisplay; in intel_psr2_config_valid() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | atombios_crtc.c | 56 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup() 57 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup() 62 a1 = mode->crtc_vdisplay * adjusted_mode->crtc_hdisplay; in amdgpu_atombios_crtc_overscan_setup() 63 a2 = adjusted_mode->crtc_vdisplay * mode->crtc_hdisplay; in amdgpu_atombios_crtc_overscan_setup() 66 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in amdgpu_atombios_crtc_overscan_setup() 67 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in amdgpu_atombios_crtc_overscan_setup() 69 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); in amdgpu_atombios_crtc_overscan_setup() 70 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay in amdgpu_atombios_crtc_overscan_setup() [all...] |
H A D | amdgpu_encoders.c | 193 adjusted_mode->crtc_vdisplay = native_mode->vdisplay; in amdgpu_panel_mode_fixup() 199 adjusted_mode->crtc_vtotal = adjusted_mode->crtc_vdisplay + vblank; in amdgpu_panel_mode_fixup() 200 adjusted_mode->crtc_vsync_start = adjusted_mode->crtc_vdisplay + vover; in amdgpu_panel_mode_fixup()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | atombios_crtc.c | 55 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup() 56 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup() 61 a1 = mode->crtc_vdisplay * adjusted_mode->crtc_hdisplay; in amdgpu_atombios_crtc_overscan_setup() 62 a2 = adjusted_mode->crtc_vdisplay * mode->crtc_hdisplay; in amdgpu_atombios_crtc_overscan_setup() 65 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in amdgpu_atombios_crtc_overscan_setup() 66 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in amdgpu_atombios_crtc_overscan_setup() 68 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); in amdgpu_atombios_crtc_overscan_setup() 69 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay in amdgpu_atombios_crtc_overscan_setup() [all...] |
H A D | amdgpu_encoders.c | 193 adjusted_mode->crtc_vdisplay = native_mode->vdisplay; in amdgpu_panel_mode_fixup() 199 adjusted_mode->crtc_vtotal = adjusted_mode->crtc_vdisplay + vblank; in amdgpu_panel_mode_fixup() 200 adjusted_mode->crtc_vsync_start = adjusted_mode->crtc_vdisplay + vover; in amdgpu_panel_mode_fixup()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/kmb/ |
H A D | kmb_crtc.c | 81 m->crtc_vsync_start - m->crtc_vdisplay, in kmb_crtc_set_mode() 99 m->crtc_vdisplay, vm.vback_porch, vm.vfront_porch, in kmb_crtc_set_mode() 103 m->crtc_vdisplay - 1); in kmb_crtc_set_mode() 125 m->crtc_vdisplay - 1); in kmb_crtc_set_mode()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/gma500/ |
H A D | mdfld_intel_display.c | 741 REG_WRITE(map->size, ((min(mode->crtc_vdisplay, adjusted_mode->crtc_vdisplay) - 1) << 16) in mdfld_crtc_mode_set() 745 | (mode->crtc_vdisplay - 1)); in mdfld_crtc_mode_set() 748 ((mode->crtc_vdisplay - 1) << 16) | in mdfld_crtc_mode_set() 752 (mode->crtc_vdisplay - 1)); in mdfld_crtc_mode_set() 770 offsetY = (adjusted_mode->crtc_vdisplay - in mdfld_crtc_mode_set() 771 mode->crtc_vdisplay) / 2; in mdfld_crtc_mode_set() 775 REG_WRITE(map->vtotal, (mode->crtc_vdisplay - 1) | in mdfld_crtc_mode_set() 792 REG_WRITE(map->vtotal, (adjusted_mode->crtc_vdisplay - 1) | in mdfld_crtc_mode_set()
|
H A D | oaktrail_crtc.c | 423 (mode->crtc_vdisplay - 1), i); in oaktrail_crtc_mode_set() 438 offsetY = (adjusted_mode->crtc_vdisplay - in oaktrail_crtc_mode_set() 439 mode->crtc_vdisplay) / 2; in oaktrail_crtc_mode_set() 444 REG_WRITE_WITH_AUX(map->vtotal, (mode->crtc_vdisplay - 1) | in oaktrail_crtc_mode_set() 463 REG_WRITE_WITH_AUX(map->vtotal, (adjusted_mode->crtc_vdisplay - 1) | in oaktrail_crtc_mode_set()
|
H A D | oaktrail_lvds.c | 134 if ((mode->vdisplay != adjusted_mode->crtc_vdisplay) || in oaktrail_lvds_mode_set() 137 (mode->hdisplay * adjusted_mode->crtc_vdisplay)) in oaktrail_lvds_mode_set() 141 adjusted_mode->crtc_vdisplay)) in oaktrail_lvds_mode_set()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/ast/ |
H A D | ast_dp.c | 231 if (crtc->mode.crtc_vdisplay == 800) in ast_dp_set_mode() 244 if (crtc->mode.crtc_vdisplay == 900) in ast_dp_set_mode() 253 if (crtc->mode.crtc_vdisplay == 1080) in ast_dp_set_mode()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/vc4/ |
H A D | vc4_vec.c | 665 if (mode->crtc_vdisplay < 1 || mode->crtc_vdisplay > 253) in vc4_vec_encoder_atomic_check() 668 if (!(mode->crtc_vsync_start - mode->crtc_vdisplay)) in vc4_vec_encoder_atomic_check() 684 if (mode->crtc_vdisplay < 1 || mode->crtc_vdisplay > 305) in vc4_vec_encoder_atomic_check() 687 if (!(mode->crtc_vsync_start - mode->crtc_vdisplay)) in vc4_vec_encoder_atomic_check()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/gma500/ |
H A D | oaktrail_crtc.c | 431 (mode->crtc_vdisplay - 1), i); in oaktrail_crtc_mode_set() 442 offsetY = (adjusted_mode->crtc_vdisplay - in oaktrail_crtc_mode_set() 443 mode->crtc_vdisplay) / 2; in oaktrail_crtc_mode_set() 448 REG_WRITE_WITH_AUX(map->vtotal, (mode->crtc_vdisplay - 1) | in oaktrail_crtc_mode_set() 467 REG_WRITE_WITH_AUX(map->vtotal, (adjusted_mode->crtc_vdisplay - 1) | in oaktrail_crtc_mode_set()
|
H A D | oaktrail_lvds.c | 136 if ((mode->vdisplay != adjusted_mode->crtc_vdisplay) || in oaktrail_lvds_mode_set() 139 (mode->hdisplay * adjusted_mode->crtc_vdisplay)) in oaktrail_lvds_mode_set() 143 adjusted_mode->crtc_vdisplay)) in oaktrail_lvds_mode_set()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
H A D | intel_psr.c | 656 const u32 crtc_vdisplay = crtc_state->uapi.adjusted_mode.crtc_vdisplay; in tgl_dc3co_exitline_compute_config() local 676 if (drm_WARN_ON(&dev_priv->drm, exit_scanlines > crtc_vdisplay)) in tgl_dc3co_exitline_compute_config() 679 crtc_state->dc3co_exitline = crtc_vdisplay - exit_scanlines; in tgl_dc3co_exitline_compute_config() 719 int crtc_vdisplay = crtc_state->hw.adjusted_mode.crtc_vdisplay; in intel_psr2_config_valid() local 793 (crtc_hdisplay > psr_max_h || crtc_vdisplay > psr_max_v)) { in intel_psr2_config_valid() 796 crtc_hdisplay, crtc_vdisplay, in intel_psr2_config_valid() 855 adjusted_mode->crtc_vtotal - adjusted_mode->crtc_vdisplay - 1) { in intel_psr_compute_config()
|
H A D | intel_panel.c | 186 adjusted_mode->crtc_vdisplay == crtc_state->pipe_src_h && in intel_pch_panel_fitting() 195 y = (adjusted_mode->crtc_vdisplay - height + 1)/2; in intel_pch_panel_fitting() 204 * adjusted_mode->crtc_vdisplay; in intel_pch_panel_fitting() 211 height = adjusted_mode->crtc_vdisplay; in intel_pch_panel_fitting() 216 y = (adjusted_mode->crtc_vdisplay - height + 1) / 2; in intel_pch_panel_fitting() 222 height = adjusted_mode->crtc_vdisplay; in intel_pch_panel_fitting() 229 WARN_ON(adjusted_mode->crtc_vdisplay != crtc_state->pipe_src_h); in intel_pch_panel_fitting() 234 height = adjusted_mode->crtc_vdisplay; in intel_pch_panel_fitting() 282 border = (adjusted_mode->crtc_vdisplay - height + 1) / 2; in centre_vertically() 284 adjusted_mode->crtc_vdisplay in centre_vertically() [all...] |
H A D | dvo_ivch.c | 419 mode->vdisplay != adjusted_mode->crtc_vdisplay) { in ivch_mode_set() 427 (adjusted_mode->crtc_vdisplay - 1)) >> 2; in ivch_mode_set()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/arc/ |
H A D | arcpgu_crtc.c | 90 ENCODE_PGU_XY(m->crtc_vsync_start - m->crtc_vdisplay, in arc_pgu_crtc_mode_set_nofb() 91 m->crtc_vsync_end - m->crtc_vdisplay)); in arc_pgu_crtc_mode_set_nofb()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
H A D | atombios_crtc.c | 55 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in atombios_overscan_setup() 56 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in atombios_overscan_setup() 61 a1 = mode->crtc_vdisplay * adjusted_mode->crtc_hdisplay; in atombios_overscan_setup() 62 a2 = adjusted_mode->crtc_vdisplay * mode->crtc_hdisplay; in atombios_overscan_setup() 65 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in atombios_overscan_setup() 66 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in atombios_overscan_setup() 68 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); in atombios_overscan_setup() 69 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay in atombios_overscan_setup() [all...] |
H A D | radeon_encoders.c | 357 adjusted_mode->crtc_vdisplay = native_mode->vdisplay; in radeon_panel_mode_fixup() 364 adjusted_mode->crtc_vtotal = adjusted_mode->crtc_vdisplay + vblank; in radeon_panel_mode_fixup() 365 adjusted_mode->crtc_vsync_start = adjusted_mode->crtc_vdisplay + vover; in radeon_panel_mode_fixup()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
H A D | atombios_crtc.c | 55 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in atombios_overscan_setup() 56 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in atombios_overscan_setup() 61 a1 = mode->crtc_vdisplay * adjusted_mode->crtc_hdisplay; in atombios_overscan_setup() 62 a2 = adjusted_mode->crtc_vdisplay * mode->crtc_hdisplay; in atombios_overscan_setup() 65 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in atombios_overscan_setup() 66 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in atombios_overscan_setup() 68 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); in atombios_overscan_setup() 69 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay in atombios_overscan_setup() [all...] |
H A D | radeon_encoders.c | 353 adjusted_mode->crtc_vdisplay = native_mode->vdisplay; in radeon_panel_mode_fixup() 360 adjusted_mode->crtc_vtotal = adjusted_mode->crtc_vdisplay + vblank; in radeon_panel_mode_fixup() 361 adjusted_mode->crtc_vsync_start = adjusted_mode->crtc_vdisplay + vover; in radeon_panel_mode_fixup()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_modes.c | 795 *vdisplay = adjusted.crtc_vdisplay; in drm_mode_get_hv_timing() 825 p->crtc_vdisplay = p->vdisplay; in drm_mode_set_crtcinfo() 832 p->crtc_vdisplay /= 2; in drm_mode_set_crtcinfo() 841 p->crtc_vdisplay *= 2; in drm_mode_set_crtcinfo() 850 p->crtc_vdisplay *= p->vscan; in drm_mode_set_crtcinfo() 863 p->crtc_vdisplay += p->crtc_vtotal; in drm_mode_set_crtcinfo() 871 p->crtc_vblank_start = min(p->crtc_vsync_start, p->crtc_vdisplay); in drm_mode_set_crtcinfo()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/sun4i/ |
H A D | sun4i_tcon.c | 369 SUN4I_TCON0_BASIC0_Y(mode->crtc_vdisplay)); in sun4i_tcon0_mode_set_cpu() 405 start_delay = (mode->crtc_vtotal - mode->crtc_vdisplay - 10 - 1); in sun4i_tcon0_mode_set_cpu() 442 SUN4I_TCON0_BASIC0_Y(mode->crtc_vdisplay)); in sun4i_tcon0_mode_set_lvds() 524 SUN4I_TCON0_BASIC0_Y(mode->crtc_vdisplay)); in sun4i_tcon0_mode_set_rgb() 628 SUN4I_TCON1_BASIC0_Y(mode->crtc_vdisplay)); in sun4i_tcon1_mode_set() 633 SUN4I_TCON1_BASIC1_Y(mode->crtc_vdisplay)); in sun4i_tcon1_mode_set() 638 SUN4I_TCON1_BASIC2_Y(mode->crtc_vdisplay)); in sun4i_tcon1_mode_set()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/pm/ |
H A D | amdgpu_dpm_internal.c | 65 amdgpu_crtc->hw_mode.crtc_vdisplay + in amdgpu_dpm_get_vblank_time()
|