/linux-6.1.9/drivers/gpu/drm/i915/display/ |
D | intel_panel.c | 336 adjusted_mode->crtc_vdisplay == pipe_src_h && in pch_panel_fitting() 345 y = (adjusted_mode->crtc_vdisplay - height + 1)/2; in pch_panel_fitting() 352 u32 scaled_height = pipe_src_w * adjusted_mode->crtc_vdisplay; in pch_panel_fitting() 359 height = adjusted_mode->crtc_vdisplay; in pch_panel_fitting() 364 y = (adjusted_mode->crtc_vdisplay - height + 1) / 2; in pch_panel_fitting() 370 height = adjusted_mode->crtc_vdisplay; in pch_panel_fitting() 377 WARN_ON(adjusted_mode->crtc_vdisplay != pipe_src_h); in pch_panel_fitting() 382 height = adjusted_mode->crtc_vdisplay; in pch_panel_fitting() 430 border = (adjusted_mode->crtc_vdisplay - height + 1) / 2; in centre_vertically() 432 adjusted_mode->crtc_vdisplay = height; in centre_vertically() [all …]
|
D | intel_psr.c | 709 const u32 crtc_vdisplay = crtc_state->uapi.adjusted_mode.crtc_vdisplay; in tgl_dc3co_exitline_compute_config() local 744 if (drm_WARN_ON(&dev_priv->drm, exit_scanlines > crtc_vdisplay)) in tgl_dc3co_exitline_compute_config() 747 crtc_state->dc3co_exitline = crtc_vdisplay - exit_scanlines; in tgl_dc3co_exitline_compute_config() 783 const int crtc_vdisplay = crtc_state->hw.adjusted_mode.crtc_vdisplay; in psr2_granularity_check() local 790 if (crtc_vdisplay % intel_dp->psr.su_y_granularity) in psr2_granularity_check() 809 if (y_granularity == 0 || crtc_vdisplay % y_granularity) in psr2_granularity_check() 845 int crtc_vdisplay = crtc_state->hw.adjusted_mode.crtc_vdisplay; in intel_psr2_config_valid() local 955 (crtc_hdisplay > psr_max_h || crtc_vdisplay > psr_max_v)) { in intel_psr2_config_valid() 958 crtc_hdisplay, crtc_vdisplay, in intel_psr2_config_valid() 1016 adjusted_mode->crtc_vtotal - adjusted_mode->crtc_vdisplay - 1) { in intel_psr_compute_config() [all …]
|
D | intel_vrr.c | 153 crtc_state->vrr.vmin - adjusted_mode->crtc_vdisplay; in intel_vrr_compute_config() 166 min(255, crtc_state->vrr.vmin - adjusted_mode->crtc_vdisplay - 4 - 1); in intel_vrr_compute_config()
|
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()
|
D | vlv_dsi.c | 1142 adjusted_mode->crtc_vdisplay = in bxt_dsi_get_pipe_config() 1184 adjusted_mode->crtc_vsync_start = vfp + adjusted_mode->crtc_vdisplay; in bxt_dsi_get_pipe_config() 1186 adjusted_mode->crtc_vblank_start = adjusted_mode->crtc_vdisplay; in bxt_dsi_get_pipe_config() 1328 vfp = adjusted_mode->crtc_vsync_start - adjusted_mode->crtc_vdisplay; in set_dsi_timings() 1351 adjusted_mode->crtc_vdisplay); in set_dsi_timings() 1449 …adjusted_mode->crtc_vdisplay << VERTICAL_ADDRESS_SHIFT | mode_hdisplay << HORIZONTAL_ADDRESS_SHIFT… in intel_dsi_prepare()
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
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 - (a1 / mode->crtc_hdisplay)) / … in amdgpu_atombios_crtc_overscan_setup() 204 args.usV_Size = cpu_to_le16(mode->crtc_vdisplay - (amdgpu_crtc->v_border * 2)); in amdgpu_atombios_crtc_set_dtd_timing() 206 cpu_to_le16(mode->crtc_vblank_end - mode->crtc_vdisplay + (amdgpu_crtc->v_border * 2)); in amdgpu_atombios_crtc_set_dtd_timing() [all …]
|
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()
|
/linux-6.1.9/drivers/gpu/drm/kmb/ |
D | kmb_crtc.c | 82 m->crtc_vsync_start - m->crtc_vdisplay, in kmb_crtc_set_mode() 100 m->crtc_vdisplay, vm.vback_porch, vm.vfront_porch, in kmb_crtc_set_mode() 104 m->crtc_vdisplay - 1); in kmb_crtc_set_mode() 126 m->crtc_vdisplay - 1); in kmb_crtc_set_mode()
|
/linux-6.1.9/drivers/gpu/drm/ast/ |
D | ast_dp.c | 241 if (crtc->mode.crtc_vdisplay == 800) in ast_dp_set_mode() 254 if (crtc->mode.crtc_vdisplay == 900) in ast_dp_set_mode() 263 if (crtc->mode.crtc_vdisplay == 1080) in ast_dp_set_mode()
|
D | ast_mode.c | 120 if (mode->crtc_vdisplay == 800) in ast_get_vbios_mode_info() 132 if (mode->crtc_vdisplay == 900) in ast_get_vbios_mode_info() 141 if (mode->crtc_vdisplay == 1080) in ast_get_vbios_mode_info() 256 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x96, adjusted_mode->crtc_vdisplay); in ast_set_vbios_mode_reg() 257 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x97, adjusted_mode->crtc_vdisplay >> 8); in ast_set_vbios_mode_reg() 358 if ((ast->chip == AST2600) && (mode->crtc_vdisplay == 1080)) in ast_set_crtc_reg() 389 temp = mode->crtc_vdisplay - 1; in ast_set_crtc_reg()
|
/linux-6.1.9/drivers/gpu/drm/gma500/ |
D | oaktrail_crtc.c | 430 (mode->crtc_vdisplay - 1), i); in oaktrail_crtc_mode_set() 441 offsetY = (adjusted_mode->crtc_vdisplay - in oaktrail_crtc_mode_set() 442 mode->crtc_vdisplay) / 2; in oaktrail_crtc_mode_set() 447 REG_WRITE_WITH_AUX(map->vtotal, (mode->crtc_vdisplay - 1) | in oaktrail_crtc_mode_set() 466 REG_WRITE_WITH_AUX(map->vtotal, (adjusted_mode->crtc_vdisplay - 1) | in oaktrail_crtc_mode_set()
|
D | oaktrail_lvds.c | 135 if ((mode->vdisplay != adjusted_mode->crtc_vdisplay) || in oaktrail_lvds_mode_set() 138 (mode->hdisplay * adjusted_mode->crtc_vdisplay)) in oaktrail_lvds_mode_set() 142 adjusted_mode->crtc_vdisplay)) in oaktrail_lvds_mode_set()
|
D | oaktrail_hdmi.c | 331 REG_WRITE(vtot_reg, (adjusted_mode->crtc_vdisplay - 1) | ((adjusted_mode->crtc_vtotal - 1) << 16)); in oaktrail_crtc_hdmi_mode_set() 334 REG_WRITE(pipesrc_reg, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); in oaktrail_crtc_hdmi_mode_set() 339 …REG_WRITE(PCH_VTOTAL_B, (adjusted_mode->crtc_vdisplay - 1) | ((adjusted_mode->crtc_vtotal - 1) << … in oaktrail_crtc_hdmi_mode_set() 342 REG_WRITE(PCH_PIPEBSRC, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); in oaktrail_crtc_hdmi_mode_set()
|
/linux-6.1.9/drivers/gpu/drm/radeon/ |
D | radeon_encoders.c | 351 adjusted_mode->crtc_vdisplay = native_mode->vdisplay; in radeon_panel_mode_fixup() 358 adjusted_mode->crtc_vtotal = adjusted_mode->crtc_vdisplay + vblank; in radeon_panel_mode_fixup() 359 adjusted_mode->crtc_vsync_start = adjusted_mode->crtc_vdisplay + vover; in radeon_panel_mode_fixup()
|
D | atombios_crtc.c | 56 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in atombios_overscan_setup() 57 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in atombios_overscan_setup() 62 a1 = mode->crtc_vdisplay * adjusted_mode->crtc_hdisplay; in atombios_overscan_setup() 63 a2 = adjusted_mode->crtc_vdisplay * mode->crtc_hdisplay; in atombios_overscan_setup() 66 …args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in atombios_overscan_setup() 67 …args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2… in atombios_overscan_setup() 69 … args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); in atombios_overscan_setup() 70 …args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / … in atombios_overscan_setup() 317 args.usV_Size = cpu_to_le16(mode->crtc_vdisplay - (radeon_crtc->v_border * 2)); in atombios_set_crtc_dtd_timing() 319 cpu_to_le16(mode->crtc_vblank_end - mode->crtc_vdisplay + (radeon_crtc->v_border * 2)); in atombios_set_crtc_dtd_timing() [all …]
|
D | radeon_legacy_crtc.c | 100 | ((mode->crtc_vdisplay - 1) << 16)); in radeon_legacy_rmx_mode_set() 182 | ((mode->crtc_vdisplay - 1) << 16)); in radeon_legacy_rmx_mode_set() 639 | ((mode->crtc_vdisplay - 1) << 16)); in radeon_set_crtc_timing()
|
/linux-6.1.9/drivers/gpu/drm/amd/pm/ |
D | amdgpu_dpm_internal.c | 65 amdgpu_crtc->hw_mode.crtc_vdisplay + in amdgpu_dpm_get_vblank_time()
|
/linux-6.1.9/drivers/gpu/drm/arm/ |
D | hdlcd_crtc.c | 135 vm.vfront_porch = m->crtc_vsync_start - m->crtc_vdisplay; in hdlcd_crtc_mode_set_nofb() 153 hdlcd_write(hdlcd, HDLCD_REG_V_DATA, m->crtc_vdisplay - 1); in hdlcd_crtc_mode_set_nofb()
|
/linux-6.1.9/drivers/gpu/drm/ |
D | drm_modes.c | 848 *vdisplay = adjusted.crtc_vdisplay; in drm_mode_get_hv_timing() 878 p->crtc_vdisplay = p->vdisplay; in drm_mode_set_crtcinfo() 885 p->crtc_vdisplay /= 2; in drm_mode_set_crtcinfo() 894 p->crtc_vdisplay *= 2; in drm_mode_set_crtcinfo() 903 p->crtc_vdisplay *= p->vscan; in drm_mode_set_crtcinfo() 916 p->crtc_vdisplay += p->crtc_vtotal; in drm_mode_set_crtcinfo() 924 p->crtc_vblank_start = min(p->crtc_vsync_start, p->crtc_vdisplay); in drm_mode_set_crtcinfo()
|
/linux-6.1.9/drivers/gpu/drm/udl/ |
D | udl_modeset.c | 163 yde = yds + mode->crtc_vdisplay; in udl_set_vid_cmds() 191 wrptr = udl_set_register_16(wrptr, 0x17, mode->crtc_vdisplay); in udl_set_vid_cmds()
|
/linux-6.1.9/drivers/gpu/drm/sun4i/ |
D | sun4i_tcon.c | 303 SUN4I_TCON0_BASIC0_Y(mode->crtc_vdisplay)); in sun4i_tcon0_mode_set_common() 409 start_delay = (mode->crtc_vtotal - mode->crtc_vdisplay - 10 - 1); in sun4i_tcon0_mode_set_cpu() 622 SUN4I_TCON1_BASIC0_Y(mode->crtc_vdisplay)); in sun4i_tcon1_mode_set() 627 SUN4I_TCON1_BASIC1_Y(mode->crtc_vdisplay)); in sun4i_tcon1_mode_set() 632 SUN4I_TCON1_BASIC2_Y(mode->crtc_vdisplay)); in sun4i_tcon1_mode_set()
|
/linux-6.1.9/drivers/gpu/drm/tiny/ |
D | arcpgu.c | 167 ENCODE_PGU_XY(m->crtc_vsync_start - m->crtc_vdisplay, in arc_pgu_mode_set() 168 m->crtc_vsync_end - m->crtc_vdisplay)); in arc_pgu_mode_set()
|
/linux-6.1.9/drivers/gpu/drm/nouveau/dispnv50/ |
D | head.c | 307 m->v.blanks = m->v.blanke + mode->crtc_vdisplay; in nv50_head_atomic_check_mode() 310 blankus = (m->v.active - mode->crtc_vdisplay - 2) * m->h.active; in nv50_head_atomic_check_mode() 317 m->v.blank2s = m->v.blank2e + mode->crtc_vdisplay; in nv50_head_atomic_check_mode()
|
/linux-6.1.9/drivers/gpu/drm/atmel-hlcdc/ |
D | atmel_hlcdc_crtc.c | 83 vm.vfront_porch = adj->crtc_vsync_start - adj->crtc_vdisplay; in atmel_hlcdc_crtc_mode_set_nofb() 101 ((adj->crtc_vdisplay - 1) << 16)); in atmel_hlcdc_crtc_mode_set_nofb()
|
/linux-6.1.9/drivers/gpu/drm/vc4/ |
D | vc4_crtc.c | 365 VC4_SET_FIELD(mode->crtc_vsync_start - mode->crtc_vdisplay, in vc4_crtc_config_pv() 367 VC4_SET_FIELD(mode->crtc_vdisplay, PV_VERTB_VACTIVE)); in vc4_crtc_config_pv() 379 mode->crtc_vdisplay, in vc4_crtc_config_pv() 381 VC4_SET_FIELD(mode->crtc_vdisplay, PV_VERTB_VACTIVE)); in vc4_crtc_config_pv()
|