Home
last modified time | relevance | path

Searched refs:crtc_vdisplay (Results 1 – 25 of 68) sorted by relevance

123

/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_panel.c404 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 = height; in centre_vertically()
[all …]
H A Dintel_psr.c897 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
1191 (crtc_hdisplay > psr_max_h || crtc_vdisplay > psr_max_v)) { in intel_psr2_config_valid()
1194 crtc_hdisplay, crtc_vdisplay, in intel_psr2_config_valid()
1252 adjusted_mode->crtc_vtotal - adjusted_mode->crtc_vdisplay - 1) { in intel_psr_compute_config()
[all …]
H A Ddvo_ivch.c419 mode->vdisplay != adjusted_mode->crtc_vdisplay) { in ivch_mode_set()
427 (adjusted_mode->crtc_vdisplay - 1)) >> 2; in ivch_mode_set()
H A Dvlv_dsi.c1050 adjusted_mode->crtc_vdisplay = in bxt_dsi_get_pipe_config()
1091 adjusted_mode->crtc_vsync_start = vfp + adjusted_mode->crtc_vdisplay; in bxt_dsi_get_pipe_config()
1093 adjusted_mode->crtc_vblank_start = adjusted_mode->crtc_vdisplay; in bxt_dsi_get_pipe_config()
1235 vfp = adjusted_mode->crtc_vsync_start - adjusted_mode->crtc_vdisplay; in set_dsi_timings()
1258 adjusted_mode->crtc_vdisplay); in set_dsi_timings()
1353 …adjusted_mode->crtc_vdisplay << VERTICAL_ADDRESS_SHIFT | mode_hdisplay << HORIZONTAL_ADDRESS_SHIFT… in intel_dsi_prepare()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Datombios_crtc.c55 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 …]
H A Damdgpu_encoders.c193 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()
/openbmc/linux/drivers/gpu/drm/kmb/
H A Dkmb_crtc.c81 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()
/openbmc/linux/drivers/gpu/drm/ast/
H A Dast_dp.c234 if (crtc->mode.crtc_vdisplay == 800) in ast_dp_set_mode()
247 if (crtc->mode.crtc_vdisplay == 900) in ast_dp_set_mode()
256 if (crtc->mode.crtc_vdisplay == 1080) in ast_dp_set_mode()
H A Dast_mode.c149 if (mode->crtc_vdisplay == 800) in ast_get_vbios_mode_info()
161 if (mode->crtc_vdisplay == 900) in ast_get_vbios_mode_info()
170 if (mode->crtc_vdisplay == 1080) in ast_get_vbios_mode_info()
285 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x96, adjusted_mode->crtc_vdisplay); in ast_set_vbios_mode_reg()
286 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x97, adjusted_mode->crtc_vdisplay >> 8); in ast_set_vbios_mode_reg()
387 if (IS_AST_GEN7(ast) && (mode->crtc_vdisplay == 1080)) in ast_set_crtc_reg()
418 temp = mode->crtc_vdisplay - 1; in ast_set_crtc_reg()
/openbmc/linux/drivers/gpu/drm/vc4/
H A Dvc4_vec.c665 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()
/openbmc/linux/drivers/gpu/drm/gma500/
H A Doaktrail_crtc.c431 (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 Doaktrail_lvds.c136 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()
H A Doaktrail_hdmi.c333 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()
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dradeon_encoders.c353 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()
H A Datombios_crtc.c55 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 - (a1 / mode->crtc_hdisplay)) / … 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()
[all …]
H A Dradeon_legacy_crtc.c99 | ((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()
/openbmc/linux/drivers/gpu/drm/sun4i/
H A Dsun4i_tcon.c369 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()
/openbmc/linux/drivers/gpu/drm/amd/pm/
H A Damdgpu_dpm_internal.c65 amdgpu_crtc->hw_mode.crtc_vdisplay + in amdgpu_dpm_get_vblank_time()
/openbmc/linux/drivers/gpu/drm/arm/
H A Dhdlcd_crtc.c134 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()
/openbmc/linux/drivers/gpu/drm/tiny/
H A Darcpgu.c167 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()
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_modes.c1328 *vdisplay = adjusted.crtc_vdisplay; in drm_mode_get_hv_timing()
1358 p->crtc_vdisplay = p->vdisplay; in drm_mode_set_crtcinfo()
1365 p->crtc_vdisplay /= 2; in drm_mode_set_crtcinfo()
1374 p->crtc_vdisplay *= 2; in drm_mode_set_crtcinfo()
1383 p->crtc_vdisplay *= p->vscan; in drm_mode_set_crtcinfo()
1396 p->crtc_vdisplay += p->crtc_vtotal; in drm_mode_set_crtcinfo()
1404 p->crtc_vblank_start = min(p->crtc_vsync_start, p->crtc_vdisplay); in drm_mode_set_crtcinfo()
/openbmc/linux/drivers/gpu/drm/atmel-hlcdc/
H A Datmel_hlcdc_crtc.c104 vm.vfront_porch = adj->crtc_vsync_start - adj->crtc_vdisplay; in atmel_hlcdc_crtc_mode_set_nofb()
122 ((adj->crtc_vdisplay - 1) << 16)); in atmel_hlcdc_crtc_mode_set_nofb()
/openbmc/linux/drivers/gpu/drm/nouveau/dispnv50/
H A Dhead.c306 m->v.blanks = m->v.blanke + mode->crtc_vdisplay; in nv50_head_atomic_check_mode()
309 blankus = (m->v.active - mode->crtc_vdisplay - 2) * m->h.active; in nv50_head_atomic_check_mode()
316 m->v.blank2s = m->v.blank2e + mode->crtc_vdisplay; in nv50_head_atomic_check_mode()
/openbmc/linux/drivers/gpu/drm/loongson/
H A Dlsdc_crtc.c226 (mode->crtc_vtotal << 16) | mode->crtc_vdisplay); in lsdc_crtc0_set_mode()
244 (mode->crtc_vtotal << 16) | mode->crtc_vdisplay); in lsdc_crtc1_set_mode()
914 vactive_end = vactive_start + mode->crtc_vdisplay; in lsdc_crtc_get_scanout_position()
/openbmc/linux/drivers/gpu/drm/udl/
H A Dudl_modeset.c154 u16 reg07 = reg05 + mode->crtc_vdisplay; in udl_set_display_mode()
162 u16 reg17 = mode->crtc_vdisplay; in udl_set_display_mode()

123