/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_pfit.c | 43 if (adjusted_mode->crtc_hdisplay != 2 * x + width || in intel_pch_pfit_check_dst_window() 191 if (adjusted_mode->crtc_hdisplay == pipe_src_w && in pch_panel_fitting() 200 x = (adjusted_mode->crtc_hdisplay - width + 1)/2; in pch_panel_fitting() 207 u32 scaled_width = adjusted_mode->crtc_hdisplay * pipe_src_h; in pch_panel_fitting() 214 x = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in pch_panel_fitting() 223 width = adjusted_mode->crtc_hdisplay; in pch_panel_fitting() 226 width = adjusted_mode->crtc_hdisplay; in pch_panel_fitting() 233 WARN_ON(adjusted_mode->crtc_hdisplay != pipe_src_w); in pch_panel_fitting() 238 width = adjusted_mode->crtc_hdisplay; in pch_panel_fitting() 292 border = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in centre_horizontally() [all …]
|
H A D | vlv_dsi.c | 1055 adjusted_mode->crtc_hdisplay = in bxt_dsi_get_pipe_config() 1065 hactive = adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1094 adjusted_mode->crtc_hsync_start = hfp + adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1096 adjusted_mode->crtc_hblank_start = adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1117 adjusted_mode_sw->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1150 crtc_htotal_sw = adjusted_mode_sw->crtc_hdisplay + hfp_sw + in bxt_dsi_get_pipe_config() 1152 crtc_hsync_start_sw = hfp_sw + adjusted_mode_sw->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1154 crtc_hblank_start_sw = adjusted_mode_sw->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1229 hactive = adjusted_mode->crtc_hdisplay; in set_dsi_timings() 1230 hfp = adjusted_mode->crtc_hsync_start - adjusted_mode->crtc_hdisplay; in set_dsi_timings() [all …]
|
H A D | dvo_ivch.c | 418 if (mode->hdisplay != adjusted_mode->crtc_hdisplay || in ivch_mode_set() 425 (adjusted_mode->crtc_hdisplay - 1)) >> 2; in ivch_mode_set()
|
H A D | icl_dsi.c | 307 u16 hactive = adjusted_mode->crtc_hdisplay; in configure_dual_link_mode() 880 hactive = adjusted_mode->crtc_hdisplay; in gen11_dsi_set_transcoder_timings() 920 if (adjusted_mode->crtc_hdisplay < 256) in gen11_dsi_set_transcoder_timings() 1496 adjusted_mode->crtc_hdisplay *= 2; in gen11_dsi_get_timings() 1498 adjusted_mode->crtc_hdisplay -= in gen11_dsi_get_timings() 1502 adjusted_mode->crtc_hblank_start = adjusted_mode->crtc_hdisplay; in gen11_dsi_get_timings()
|
H A D | intel_psr.c | 1261 const int crtc_hdisplay = crtc_state->hw.adjusted_mode.crtc_hdisplay; in psr2_granularity_check() local 1266 if (crtc_hdisplay % intel_dp->psr.su_w_granularity) in psr2_granularity_check() 1408 int crtc_hdisplay = crtc_state->hw.adjusted_mode.crtc_hdisplay; in intel_psr2_config_valid() local 1455 psr_max_h = crtc_hdisplay; in intel_psr2_config_valid() 1491 (crtc_hdisplay > psr_max_h || crtc_vdisplay > psr_max_v)) { in intel_psr2_config_valid() 1494 crtc_hdisplay, crtc_vdisplay, in intel_psr2_config_valid()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | atombios_crtc.c | 57 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup() 58 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 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() 200 args.usH_Size = cpu_to_le16(mode->crtc_hdisplay - (amdgpu_crtc->h_border * 2)); in amdgpu_atombios_crtc_set_dtd_timing() 202 cpu_to_le16(mode->crtc_hblank_end - mode->crtc_hdisplay + (amdgpu_crtc->h_border * 2)); in amdgpu_atombios_crtc_set_dtd_timing() [all …]
|
H A D | amdgpu_encoders.c | 192 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in amdgpu_panel_mode_fixup() 195 adjusted_mode->crtc_htotal = adjusted_mode->crtc_hdisplay + hblank; in amdgpu_panel_mode_fixup() 196 adjusted_mode->crtc_hsync_start = adjusted_mode->crtc_hdisplay + hover; in amdgpu_panel_mode_fixup()
|
H A D | dce_v8_0.c | 564 if (mode->crtc_hdisplay < 1920) { in dce_v8_0_line_buffer_adjust() 567 } else if (mode->crtc_hdisplay < 2560) { in dce_v8_0_line_buffer_adjust() 570 } else if (mode->crtc_hdisplay < 4096) { in dce_v8_0_line_buffer_adjust() 991 active_time = (u32) div_u64((u64)mode->crtc_hdisplay * 1000000, in dce_v8_0_program_watermarks() 1009 wm_high.src_width = mode->crtc_hdisplay; in dce_v8_0_program_watermarks() 1048 wm_low.src_width = mode->crtc_hdisplay; in dce_v8_0_program_watermarks() 1074 lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); in dce_v8_0_program_watermarks()
|
/linux/drivers/gpu/drm/kmb/ |
H A D | kmb_crtc.c | 84 m->crtc_hsync_start - m->crtc_hdisplay, in kmb_crtc_set_mode() 100 vm.vsync_len, m->crtc_hdisplay, vm.hback_porch, in kmb_crtc_set_mode() 108 m->crtc_hdisplay - 1); in kmb_crtc_set_mode()
|
/linux/drivers/gpu/drm/gma500/ |
H A D | oaktrail_crtc.c | 430 REG_WRITE_WITH_AUX(map->src, ((mode->crtc_hdisplay - 1) << 16) | in oaktrail_crtc_mode_set() 440 offsetX = (adjusted_mode->crtc_hdisplay - in oaktrail_crtc_mode_set() 441 mode->crtc_hdisplay) / 2; in oaktrail_crtc_mode_set() 446 REG_WRITE_WITH_AUX(map->htotal, (mode->crtc_hdisplay - 1) | in oaktrail_crtc_mode_set() 465 REG_WRITE_WITH_AUX(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in oaktrail_crtc_mode_set()
|
H A D | oaktrail_lvds.c | 135 (mode->hdisplay != adjusted_mode->crtc_hdisplay)) { in oaktrail_lvds_mode_set() 136 if ((adjusted_mode->crtc_hdisplay * mode->vdisplay) == in oaktrail_lvds_mode_set() 139 else if ((adjusted_mode->crtc_hdisplay * in oaktrail_lvds_mode_set()
|
H A D | oaktrail_hdmi.c | 175 return (mode->crtc_hdisplay - 1) | (new_crtc_htotal << 16); in htotal_calculate() 336 REG_WRITE(pipesrc_reg, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); in oaktrail_crtc_hdmi_mode_set() 338 …REG_WRITE(PCH_HTOTAL_B, (adjusted_mode->crtc_hdisplay - 1) | ((adjusted_mode->crtc_htotal - 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() 347 HDMI_WRITE(HDMI_HBLANK_A, ((adjusted_mode->crtc_hdisplay - 1) << 16) | temp); in oaktrail_crtc_hdmi_mode_set()
|
/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_encoders.c | 353 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup() 357 adjusted_mode->crtc_htotal = adjusted_mode->crtc_hdisplay + hblank; in radeon_panel_mode_fixup() 358 adjusted_mode->crtc_hsync_start = adjusted_mode->crtc_hdisplay + hover; in radeon_panel_mode_fixup()
|
H A D | atombios_crtc.c | 57 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in atombios_overscan_setup() 58 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 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() 313 args.usH_Size = cpu_to_le16(mode->crtc_hdisplay - (radeon_crtc->h_border * 2)); in atombios_set_crtc_dtd_timing() 315 cpu_to_le16(mode->crtc_hblank_end - mode->crtc_hdisplay + (radeon_crtc->h_border * 2)); in atombios_set_crtc_dtd_timing() [all …]
|
H A D | rs690.c | 253 rdev->mode_info.crtcs[0]->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode1->crtc_hdisplay); in rs690_line_buffer_adjust() 256 rdev->mode_info.crtcs[1]->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode2->crtc_hdisplay); in rs690_line_buffer_adjust() 310 b.full = dfixed_const(mode->crtc_hdisplay); in rs690_crtc_bandwidth_compute() 360 b.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rs690_crtc_bandwidth_compute() 443 wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rs690_crtc_bandwidth_compute() 450 if (dfixed_trunc(estimated_width) > crtc->base.mode.crtc_hdisplay) { in rs690_crtc_bandwidth_compute()
|
H A D | radeon_legacy_crtc.c | 85 | ((((mode->crtc_hdisplay / 8) - 1) & 0x1ff) << 16)); in radeon_legacy_rmx_mode_set() 168 | ((((mode->crtc_hdisplay / 8) - 1) & 0x1ff) << 16)); in radeon_legacy_rmx_mode_set() 623 | ((((mode->crtc_hdisplay / 8) - 1) & 0x1ff) << 16)); in radeon_set_crtc_timing()
|
H A D | rv515.c | 958 b.full = dfixed_const(mode->crtc_hdisplay); in rv515_crtc_bandwidth_compute() 1008 b.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rv515_crtc_bandwidth_compute() 1062 wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rv515_crtc_bandwidth_compute() 1069 if (dfixed_trunc(estimated_width) > crtc->base.mode.crtc_hdisplay) { in rv515_crtc_bandwidth_compute()
|
/linux/drivers/gpu/drm/sun4i/ |
H A D | sun4i_tcon.c | 368 SUN4I_TCON0_BASIC0_X(mode->crtc_hdisplay) | in sun4i_tcon0_mode_set_cpu() 441 SUN4I_TCON0_BASIC0_X(mode->crtc_hdisplay) | in sun4i_tcon0_mode_set_lvds() 523 SUN4I_TCON0_BASIC0_X(mode->crtc_hdisplay) | in sun4i_tcon0_mode_set_rgb() 627 SUN4I_TCON1_BASIC0_X(mode->crtc_hdisplay) | in sun4i_tcon1_mode_set() 632 SUN4I_TCON1_BASIC1_X(mode->crtc_hdisplay) | in sun4i_tcon1_mode_set() 637 SUN4I_TCON1_BASIC2_X(mode->crtc_hdisplay) | in sun4i_tcon1_mode_set()
|
/linux/drivers/gpu/drm/arm/ |
H A D | hdlcd_crtc.c | 137 vm.hfront_porch = m->crtc_hsync_start - m->crtc_hdisplay; in hdlcd_crtc_mode_set_nofb() 156 hdlcd_write(hdlcd, HDLCD_REG_H_DATA, m->crtc_hdisplay - 1); in hdlcd_crtc_mode_set_nofb()
|
/linux/drivers/gpu/drm/tiny/ |
H A D | arcpgu.c | 165 ENCODE_PGU_XY(m->crtc_hsync_start - m->crtc_hdisplay, in arc_pgu_mode_set() 166 m->crtc_hsync_end - m->crtc_hdisplay)); in arc_pgu_mode_set()
|
/linux/drivers/gpu/drm/ast/ |
H A D | ast_mode.c | 134 switch (mode->crtc_hdisplay) { in ast_get_vbios_mode_info() 282 ast_set_index_reg(ast, AST_IO_VGACRI, 0x94, adjusted_mode->crtc_hdisplay); in ast_set_vbios_mode_reg() 283 ast_set_index_reg(ast, AST_IO_VGACRI, 0x95, adjusted_mode->crtc_hdisplay >> 8); in ast_set_vbios_mode_reg() 355 temp = (mode->crtc_hdisplay >> 3) - 1; in ast_set_crtc_reg()
|
/linux/drivers/gpu/drm/atmel-hlcdc/ |
H A D | atmel_hlcdc_crtc.c | 109 vm.hfront_porch = adj->crtc_hsync_start - adj->crtc_hdisplay; in atmel_hlcdc_crtc_mode_set_nofb() 123 (adj->crtc_hdisplay - 1) | in atmel_hlcdc_crtc_mode_set_nofb()
|
/linux/drivers/gpu/drm/mgag200/ |
H A D | mgag200_mode.c | 212 hdispend = mode->crtc_hdisplay / 8 - 1; in mgag200_set_mode_regs() 590 if (mode->crtc_hdisplay > 2048 || mode->crtc_hsync_start > 4096 || in mgag200_crtc_helper_mode_valid()
|
/linux/include/drm/ |
H A D | drm_modes.h | 321 u16 crtc_hdisplay; member
|
/linux/drivers/gpu/drm/exynos/ |
H A D | exynos5433_drm_decon.c | 204 m->crtc_hsync_start = m->crtc_hdisplay + 10; in decon_commit() 250 m->crtc_hsync_start - m->crtc_hdisplay - 1); in decon_commit()
|