| /linux/drivers/gpu/drm/i915/display/ |
| A D | intel_panel.c | 398 adjusted_mode->crtc_vdisplay == pipe_src_h && in pch_panel_fitting() 407 y = (adjusted_mode->crtc_vdisplay - height + 1)/2; in pch_panel_fitting() 421 height = adjusted_mode->crtc_vdisplay; in pch_panel_fitting() 432 height = adjusted_mode->crtc_vdisplay; in pch_panel_fitting() 439 WARN_ON(adjusted_mode->crtc_vdisplay != pipe_src_h); in pch_panel_fitting() 444 height = adjusted_mode->crtc_vdisplay; in pch_panel_fitting() 494 adjusted_mode->crtc_vdisplay = height; in centre_vertically() 557 if (pipe_src_h != adjusted_mode->crtc_vdisplay) { in i9xx_scale_aspect() 559 adjusted_mode->crtc_vdisplay); in i9xx_scale_aspect() 604 adjusted_mode->crtc_vdisplay == pipe_src_h) in gmch_panel_fitting() [all …]
|
| A D | intel_alpm.c | 296 context_latency = adjusted_mode->crtc_vblank_start - adjusted_mode->crtc_vdisplay; in intel_alpm_lobf_compute_config() 298 adjusted_mode->crtc_vdisplay - context_latency; in intel_alpm_lobf_compute_config()
|
| 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()
|
| A D | intel_psr.c | 1188 const u32 crtc_vdisplay = crtc_state->uapi.adjusted_mode.crtc_vdisplay; in tgl_dc3co_exitline_compute_config() local 1223 if (drm_WARN_ON(display->drm, exit_scanlines > crtc_vdisplay)) in tgl_dc3co_exitline_compute_config() 1226 crtc_state->dc3co_exitline = crtc_vdisplay - exit_scanlines; in tgl_dc3co_exitline_compute_config() 1257 const int crtc_vdisplay = crtc_state->hw.adjusted_mode.crtc_vdisplay; in psr2_granularity_check() local 1264 if (crtc_vdisplay % intel_dp->psr.su_y_granularity) in psr2_granularity_check() 1283 if (y_granularity == 0 || crtc_vdisplay % y_granularity) in psr2_granularity_check() 1333 adjusted_mode->crtc_vtotal - adjusted_mode->crtc_vdisplay - 1) { in intel_psr_entry_setup_frames() 1404 int crtc_vdisplay = crtc_state->hw.adjusted_mode.crtc_vdisplay; in intel_psr2_config_valid() local 1482 (crtc_hdisplay > psr_max_h || crtc_vdisplay > psr_max_v)) { in intel_psr2_config_valid() 1485 crtc_hdisplay, crtc_vdisplay, in intel_psr2_config_valid() [all …]
|
| A D | vlv_dsi.c | 1057 adjusted_mode->crtc_vdisplay = in bxt_dsi_get_pipe_config() 1098 adjusted_mode->crtc_vsync_start = vfp + adjusted_mode->crtc_vdisplay; in bxt_dsi_get_pipe_config() 1100 adjusted_mode->crtc_vblank_start = adjusted_mode->crtc_vdisplay; in bxt_dsi_get_pipe_config() 1242 vfp = adjusted_mode->crtc_vsync_start - adjusted_mode->crtc_vdisplay; in set_dsi_timings() 1265 adjusted_mode->crtc_vdisplay); in set_dsi_timings() 1359 …adjusted_mode->crtc_vdisplay << VERTICAL_ADDRESS_SHIFT | mode_hdisplay << HORIZONTAL_ADDRESS_SHIFT… in intel_dsi_prepare()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| 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 - (a1 / mode->crtc_hdisplay)) / … in amdgpu_atombios_crtc_overscan_setup() 203 args.usV_Size = cpu_to_le16(mode->crtc_vdisplay - (amdgpu_crtc->v_border * 2)); in amdgpu_atombios_crtc_set_dtd_timing() 205 cpu_to_le16(mode->crtc_vblank_end - mode->crtc_vdisplay + (amdgpu_crtc->v_border * 2)); in amdgpu_atombios_crtc_set_dtd_timing() [all …]
|
| 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()
|
| /linux/drivers/gpu/drm/kmb/ |
| 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()
|
| /linux/drivers/gpu/drm/vc4/ |
| A D | vc4_vec.c | 693 if (mode->crtc_vdisplay < 1 || mode->crtc_vdisplay > 253) in vc4_vec_encoder_atomic_check() 696 if (!(mode->crtc_vsync_start - mode->crtc_vdisplay)) in vc4_vec_encoder_atomic_check() 712 if (mode->crtc_vdisplay < 1 || mode->crtc_vdisplay > 305) in vc4_vec_encoder_atomic_check() 715 if (!(mode->crtc_vsync_start - mode->crtc_vdisplay)) in vc4_vec_encoder_atomic_check()
|
| /linux/drivers/gpu/drm/gma500/ |
| 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()
|
| 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()
|
| A D | oaktrail_hdmi.c | 333 REG_WRITE(vtot_reg, (adjusted_mode->crtc_vdisplay - 1) | ((adjusted_mode->crtc_vtotal - 1) << 16)); in oaktrail_crtc_hdmi_mode_set() 336 REG_WRITE(pipesrc_reg, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); in oaktrail_crtc_hdmi_mode_set() 341 …REG_WRITE(PCH_VTOTAL_B, (adjusted_mode->crtc_vdisplay - 1) | ((adjusted_mode->crtc_vtotal - 1) << … in oaktrail_crtc_hdmi_mode_set() 344 REG_WRITE(PCH_PIPEBSRC, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); in oaktrail_crtc_hdmi_mode_set()
|
| /linux/drivers/gpu/drm/ast/ |
| A D | ast_dp.c | 246 if (crtc->mode.crtc_vdisplay == 800) in ast_dp_set_mode() 259 if (crtc->mode.crtc_vdisplay == 900) in ast_dp_set_mode() 268 if (crtc->mode.crtc_vdisplay == 1080) in ast_dp_set_mode()
|
| A D | ast_mode.c | 148 if (mode->crtc_vdisplay == 800) in ast_get_vbios_mode_info() 160 if (mode->crtc_vdisplay == 900) in ast_get_vbios_mode_info() 169 if (mode->crtc_vdisplay == 1080) in ast_get_vbios_mode_info() 284 ast_set_index_reg(ast, AST_IO_VGACRI, 0x96, adjusted_mode->crtc_vdisplay); in ast_set_vbios_mode_reg() 285 ast_set_index_reg(ast, AST_IO_VGACRI, 0x97, adjusted_mode->crtc_vdisplay >> 8); in ast_set_vbios_mode_reg() 386 if (IS_AST_GEN7(ast) && (mode->crtc_vdisplay == 1080)) in ast_set_crtc_reg() 417 temp = mode->crtc_vdisplay - 1; in ast_set_crtc_reg()
|
| /linux/drivers/gpu/drm/radeon/ |
| A D | radeon_encoders.c | 354 adjusted_mode->crtc_vdisplay = native_mode->vdisplay; in radeon_panel_mode_fixup() 361 adjusted_mode->crtc_vtotal = adjusted_mode->crtc_vdisplay + vblank; in radeon_panel_mode_fixup() 362 adjusted_mode->crtc_vsync_start = adjusted_mode->crtc_vdisplay + vover; in radeon_panel_mode_fixup()
|
| 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() 316 args.usV_Size = cpu_to_le16(mode->crtc_vdisplay - (radeon_crtc->v_border * 2)); in atombios_set_crtc_dtd_timing() 318 cpu_to_le16(mode->crtc_vblank_end - mode->crtc_vdisplay + (radeon_crtc->v_border * 2)); in atombios_set_crtc_dtd_timing() 324 cpu_to_le16(mode->crtc_vsync_start - mode->crtc_vdisplay + radeon_crtc->v_border); in atombios_set_crtc_dtd_timing() [all …]
|
| A D | radeon_legacy_crtc.c | 99 | ((mode->crtc_vdisplay - 1) << 16)); in radeon_legacy_rmx_mode_set() 181 | ((mode->crtc_vdisplay - 1) << 16)); in radeon_legacy_rmx_mode_set() 638 | ((mode->crtc_vdisplay - 1) << 16)); in radeon_set_crtc_timing()
|
| /linux/drivers/gpu/drm/sun4i/ |
| 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()
|
| /linux/drivers/gpu/drm/amd/pm/ |
| A D | amdgpu_dpm_internal.c | 65 amdgpu_crtc->hw_mode.crtc_vdisplay + in amdgpu_dpm_get_vblank_time()
|
| /linux/drivers/gpu/drm/arm/ |
| A D | hdlcd_crtc.c | 134 vm.vfront_porch = m->crtc_vsync_start - m->crtc_vdisplay; in hdlcd_crtc_mode_set_nofb() 152 hdlcd_write(hdlcd, HDLCD_REG_V_DATA, m->crtc_vdisplay - 1); in hdlcd_crtc_mode_set_nofb()
|
| /linux/drivers/gpu/drm/tiny/ |
| A 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/drivers/gpu/drm/nouveau/dispnv50/ |
| A D | head.c | 301 m->v.blanks = m->v.blanke + mode->crtc_vdisplay; in nv50_head_atomic_check_mode() 304 blankus = (m->v.active - mode->crtc_vdisplay - 2) * m->h.active; in nv50_head_atomic_check_mode() 311 m->v.blank2s = m->v.blank2e + mode->crtc_vdisplay; in nv50_head_atomic_check_mode()
|
| /linux/drivers/gpu/drm/ |
| A D | drm_modes.c | 1327 *vdisplay = adjusted.crtc_vdisplay; in drm_mode_get_hv_timing() 1357 p->crtc_vdisplay = p->vdisplay; in drm_mode_set_crtcinfo() 1364 p->crtc_vdisplay /= 2; in drm_mode_set_crtcinfo() 1373 p->crtc_vdisplay *= 2; in drm_mode_set_crtcinfo() 1382 p->crtc_vdisplay *= p->vscan; in drm_mode_set_crtcinfo() 1395 p->crtc_vdisplay += p->crtc_vtotal; in drm_mode_set_crtcinfo() 1403 p->crtc_vblank_start = min(p->crtc_vsync_start, p->crtc_vdisplay); in drm_mode_set_crtcinfo()
|
| /linux/drivers/gpu/drm/udl/ |
| A D | udl_modeset.c | 154 u16 reg07 = reg05 + mode->crtc_vdisplay; in udl_set_display_mode() 162 u16 reg17 = mode->crtc_vdisplay; in udl_set_display_mode()
|
| /linux/drivers/gpu/drm/loongson/ |
| A D | lsdc_crtc.c | 227 (mode->crtc_vtotal << 16) | mode->crtc_vdisplay); in lsdc_crtc0_set_mode() 245 (mode->crtc_vtotal << 16) | mode->crtc_vdisplay); in lsdc_crtc1_set_mode() 915 vactive_end = vactive_start + mode->crtc_vdisplay; in lsdc_crtc_get_scanout_position()
|