Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/u-boot/drivers/video/drm/
H A Drockchip_display_helper.c124 p->crtc_vdisplay = p->vdisplay; in drm_mode_set_crtcinfo()
131 p->crtc_vdisplay /= 2; in drm_mode_set_crtcinfo()
140 p->crtc_vdisplay *= 2; in drm_mode_set_crtcinfo()
149 p->crtc_vdisplay *= p->vscan; in drm_mode_set_crtcinfo()
162 p->crtc_vdisplay += p->crtc_vtotal; in drm_mode_set_crtcinfo()
170 p->crtc_vblank_start = min(p->crtc_vsync_start, p->crtc_vdisplay); in drm_mode_set_crtcinfo()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdgpu/
H A Datombios_crtc.c56 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 …]
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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/gma500/
H A Dmdfld_intel_display.c741 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 Doaktrail_crtc.c423 (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 Doaktrail_lvds.c134 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()
H A Doaktrail_hdmi.c330 REG_WRITE(vtot_reg, (adjusted_mode->crtc_vdisplay - 1) | ((adjusted_mode->crtc_vtotal - 1) << 16)); in oaktrail_crtc_hdmi_mode_set()
333 REG_WRITE(pipesrc_reg, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); in oaktrail_crtc_hdmi_mode_set()
338 …REG_WRITE(PCH_VTOTAL_B, (adjusted_mode->crtc_vdisplay - 1) | ((adjusted_mode->crtc_vtotal - 1) << … in oaktrail_crtc_hdmi_mode_set()
341 REG_WRITE(PCH_PIPEBSRC, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); in oaktrail_crtc_hdmi_mode_set()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/
H A Dintel_panel.c186 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 = height; in centre_vertically()
[all …]
H A Dintel_psr.c656 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 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.c1117 adjusted_mode->crtc_vdisplay = in bxt_dsi_get_pipe_config()
1159 adjusted_mode->crtc_vsync_start = vfp + adjusted_mode->crtc_vdisplay; in bxt_dsi_get_pipe_config()
1161 adjusted_mode->crtc_vblank_start = adjusted_mode->crtc_vdisplay; in bxt_dsi_get_pipe_config()
1299 vfp = adjusted_mode->crtc_vsync_start - adjusted_mode->crtc_vdisplay; in set_dsi_timings()
1322 adjusted_mode->crtc_vdisplay); in set_dsi_timings()
1420 …adjusted_mode->crtc_vdisplay << VERTICAL_ADDRESS_SHIFT | mode_hdisplay << HORIZONTAL_ADDRESS_SHIFT… in intel_dsi_prepare()
H A Dintel_fbdev.c381 cur_size = crtc->state->adjusted_mode.crtc_vdisplay; in intel_fbdev_init_bios()
388 crtc->state->adjusted_mode.crtc_vdisplay, in intel_fbdev_init_bios()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/radeon/
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_encoders.c357 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()
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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/arc/
H A Darcpgu_crtc.c90 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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/
H A Ddrm_modes.c795 *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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/ast/
H A Dast_mode.c118 if (mode->crtc_vdisplay == 800) in ast_get_vbios_mode_info()
130 if (mode->crtc_vdisplay == 900) in ast_get_vbios_mode_info()
139 if (mode->crtc_vdisplay == 1080) in ast_get_vbios_mode_info()
254 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x96, adjusted_mode->crtc_vdisplay); in ast_set_vbios_mode_reg()
255 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x97, adjusted_mode->crtc_vdisplay >> 8); in ast_set_vbios_mode_reg()
381 temp = mode->crtc_vdisplay - 1; in ast_set_crtc_reg()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/arm/
H A Dhdlcd_crtc.c135 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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/sun4i/
H A Dsun4i_tcon.c302 SUN4I_TCON0_BASIC0_Y(mode->crtc_vdisplay)); in sun4i_tcon0_mode_set_common()
408 start_delay = (mode->crtc_vtotal - mode->crtc_vdisplay - 10 - 1); in sun4i_tcon0_mode_set_cpu()
621 SUN4I_TCON1_BASIC0_Y(mode->crtc_vdisplay)); in sun4i_tcon1_mode_set()
626 SUN4I_TCON1_BASIC1_Y(mode->crtc_vdisplay)); in sun4i_tcon1_mode_set()
631 SUN4I_TCON1_BASIC2_Y(mode->crtc_vdisplay)); in sun4i_tcon1_mode_set()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/udl/
H A Dudl_modeset.c165 yde = yds + mode->crtc_vdisplay; in udl_set_vid_cmds()
193 wrptr = udl_set_register_16(wrptr, 0x17, mode->crtc_vdisplay); in udl_set_vid_cmds()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/vc4/
H A Dvc4_crtc.c355 VC4_SET_FIELD(mode->crtc_vsync_start - mode->crtc_vdisplay, in vc4_crtc_config_pv()
357 VC4_SET_FIELD(mode->crtc_vdisplay, PV_VERTB_VACTIVE)); in vc4_crtc_config_pv()
369 mode->crtc_vdisplay, in vc4_crtc_config_pv()
371 VC4_SET_FIELD(mode->crtc_vdisplay, PV_VERTB_VACTIVE)); in vc4_crtc_config_pv()
/OK3568_Linux_fs/u-boot/include/
H A Ddrm_modes.h205 int crtc_vdisplay; member
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/dispnv50/
H A Dhead.c291 m->v.blanks = m->v.blanke + mode->crtc_vdisplay; in nv50_head_atomic_check_mode()
294 blankus = (m->v.active - mode->crtc_vdisplay - 2) * m->h.active; in nv50_head_atomic_check_mode()
301 m->v.blank2s = m->v.blank2e + mode->crtc_vdisplay; in nv50_head_atomic_check_mode()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/atmel-hlcdc/
H A Datmel_hlcdc_crtc.c82 vm.vfront_porch = adj->crtc_vsync_start - adj->crtc_vdisplay; in atmel_hlcdc_crtc_mode_set_nofb()
100 ((adj->crtc_vdisplay - 1) << 16)); in atmel_hlcdc_crtc_mode_set_nofb()

123