| /Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
| D | atombios_crtc.c | 58 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup() 59 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 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() 201 args.usH_Size = cpu_to_le16(mode->crtc_hdisplay - (amdgpu_crtc->h_border * 2)); in amdgpu_atombios_crtc_set_dtd_timing() 203 cpu_to_le16(mode->crtc_hblank_end - mode->crtc_hdisplay + (amdgpu_crtc->h_border * 2)); in amdgpu_atombios_crtc_set_dtd_timing() [all …]
|
| D | amdgpu_encoders.c | 176 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in amdgpu_panel_mode_fixup() 179 adjusted_mode->crtc_htotal = adjusted_mode->crtc_hdisplay + hblank; in amdgpu_panel_mode_fixup() 180 adjusted_mode->crtc_hsync_start = adjusted_mode->crtc_hdisplay + hover; in amdgpu_panel_mode_fixup()
|
| D | dce_v8_0.c | 540 if (mode->crtc_hdisplay < 1920) { in dce_v8_0_line_buffer_adjust() 543 } else if (mode->crtc_hdisplay < 2560) { in dce_v8_0_line_buffer_adjust() 546 } else if (mode->crtc_hdisplay < 4096) { in dce_v8_0_line_buffer_adjust() 967 active_time = (u32) div_u64((u64)mode->crtc_hdisplay * 1000000, in dce_v8_0_program_watermarks() 985 wm_high.src_width = mode->crtc_hdisplay; in dce_v8_0_program_watermarks() 1024 wm_low.src_width = mode->crtc_hdisplay; in dce_v8_0_program_watermarks() 1050 lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); in dce_v8_0_program_watermarks()
|
| /Linux-v5.4/drivers/gpu/drm/gma500/ |
| D | mdfld_intel_display.c | 775 | (min(mode->crtc_hdisplay, adjusted_mode->crtc_hdisplay) - 1)); in mdfld_crtc_mode_set() 777 REG_WRITE(map->src, ((mode->crtc_hdisplay - 1) << 16) in mdfld_crtc_mode_set() 782 (mode->crtc_hdisplay - 1)); in mdfld_crtc_mode_set() 784 ((mode->crtc_hdisplay - 1) << 16) | in mdfld_crtc_mode_set() 801 offsetX = (adjusted_mode->crtc_hdisplay - in mdfld_crtc_mode_set() 802 mode->crtc_hdisplay) / 2; in mdfld_crtc_mode_set() 806 REG_WRITE(map->htotal, (mode->crtc_hdisplay - 1) | in mdfld_crtc_mode_set() 823 REG_WRITE(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in mdfld_crtc_mode_set()
|
| D | oaktrail_crtc.c | 420 REG_WRITE_WITH_AUX(map->src, ((mode->crtc_hdisplay - 1) << 16) | in oaktrail_crtc_mode_set() 434 offsetX = (adjusted_mode->crtc_hdisplay - in oaktrail_crtc_mode_set() 435 mode->crtc_hdisplay) / 2; in oaktrail_crtc_mode_set() 440 REG_WRITE_WITH_AUX(map->htotal, (mode->crtc_hdisplay - 1) | in oaktrail_crtc_mode_set() 459 REG_WRITE_WITH_AUX(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in oaktrail_crtc_mode_set()
|
| D | oaktrail_hdmi.c | 164 htotal = (mode->crtc_hdisplay - 1) | ((mode->crtc_htotal - 1) << 16); in htotal_calculate() 173 return (mode->crtc_hdisplay - 1) | (new_crtc_htotal << 16); in htotal_calculate() 334 REG_WRITE(pipesrc_reg, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); in oaktrail_crtc_hdmi_mode_set() 336 …REG_WRITE(PCH_HTOTAL_B, (adjusted_mode->crtc_hdisplay - 1) | ((adjusted_mode->crtc_htotal - 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() 345 HDMI_WRITE(HDMI_HBLANK_A, ((adjusted_mode->crtc_hdisplay - 1) << 16) | temp); in oaktrail_crtc_hdmi_mode_set()
|
| D | oaktrail_lvds.c | 132 (mode->hdisplay != adjusted_mode->crtc_hdisplay)) { in oaktrail_lvds_mode_set() 133 if ((adjusted_mode->crtc_hdisplay * mode->vdisplay) == in oaktrail_lvds_mode_set() 136 else if ((adjusted_mode->crtc_hdisplay * in oaktrail_lvds_mode_set()
|
| /Linux-v5.4/drivers/gpu/drm/i915/display/ |
| D | vlv_dsi.c | 1070 adjusted_mode->crtc_hdisplay = in bxt_dsi_get_pipe_config() 1077 hactive = adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1107 adjusted_mode->crtc_hsync_start = hfp + adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1109 adjusted_mode->crtc_hblank_start = adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1130 adjusted_mode_sw->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1163 crtc_htotal_sw = adjusted_mode_sw->crtc_hdisplay + hfp_sw + in bxt_dsi_get_pipe_config() 1165 crtc_hsync_start_sw = hfp_sw + adjusted_mode_sw->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1167 crtc_hblank_start_sw = adjusted_mode_sw->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1238 hactive = adjusted_mode->crtc_hdisplay; in set_dsi_timings() 1239 hfp = adjusted_mode->crtc_hsync_start - adjusted_mode->crtc_hdisplay; in set_dsi_timings() [all …]
|
| D | intel_panel.c | 185 if (adjusted_mode->crtc_hdisplay == pipe_config->pipe_src_w && in intel_pch_panel_fitting() 194 x = (adjusted_mode->crtc_hdisplay - width + 1)/2; in intel_pch_panel_fitting() 201 u32 scaled_width = adjusted_mode->crtc_hdisplay in intel_pch_panel_fitting() 209 x = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in intel_pch_panel_fitting() 218 width = adjusted_mode->crtc_hdisplay; in intel_pch_panel_fitting() 221 width = adjusted_mode->crtc_hdisplay; in intel_pch_panel_fitting() 229 width = adjusted_mode->crtc_hdisplay; in intel_pch_panel_fitting() 255 border = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in centre_horizontally() 258 adjusted_mode->crtc_hdisplay = width; in centre_horizontally() 304 u32 scaled_width = adjusted_mode->crtc_hdisplay * in i965_scale_aspect() [all …]
|
| D | intel_psr.c | 540 int crtc_hdisplay = crtc_state->base.adjusted_mode.crtc_hdisplay; in intel_psr2_config_valid() local 565 if (crtc_hdisplay > psr_max_h || crtc_vdisplay > psr_max_v) { in intel_psr2_config_valid() 567 crtc_hdisplay, crtc_vdisplay, in intel_psr2_config_valid() 578 if (crtc_hdisplay % dev_priv->psr.su_x_granularity) { in intel_psr2_config_valid() 580 crtc_hdisplay, dev_priv->psr.su_x_granularity); in intel_psr2_config_valid()
|
| 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()
|
| D | icl_dsi.c | 281 u16 hactive = adjusted_mode->crtc_hdisplay; in configure_dual_link_mode() 780 hactive = adjusted_mode->crtc_hdisplay; in gen11_dsi_set_transcoder_timings() 801 if (adjusted_mode->crtc_hdisplay < 256) in gen11_dsi_set_transcoder_timings() 1222 adjusted_mode->crtc_hdisplay *= 2; in gen11_dsi_get_timings() 1224 adjusted_mode->crtc_hdisplay -= in gen11_dsi_get_timings() 1228 adjusted_mode->crtc_hblank_start = adjusted_mode->crtc_hdisplay; in gen11_dsi_get_timings()
|
| D | intel_fbdev.c | 369 cur_size = crtc->state->adjusted_mode.crtc_hdisplay; in intel_fbdev_init_bios() 384 crtc->state->adjusted_mode.crtc_hdisplay, in intel_fbdev_init_bios()
|
| /Linux-v5.4/drivers/gpu/drm/radeon/ |
| 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() 314 args.usH_Size = cpu_to_le16(mode->crtc_hdisplay - (radeon_crtc->h_border * 2)); in atombios_set_crtc_dtd_timing() 316 cpu_to_le16(mode->crtc_hblank_end - mode->crtc_hdisplay + (radeon_crtc->h_border * 2)); in atombios_set_crtc_dtd_timing() [all …]
|
| D | radeon_encoders.c | 355 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup() 359 adjusted_mode->crtc_htotal = adjusted_mode->crtc_hdisplay + hblank; in radeon_panel_mode_fixup() 360 adjusted_mode->crtc_hsync_start = adjusted_mode->crtc_hdisplay + hover; in radeon_panel_mode_fixup()
|
| 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()
|
| 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()
|
| D | rv515.c | 990 b.full = dfixed_const(mode->crtc_hdisplay); in rv515_crtc_bandwidth_compute() 1040 b.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rv515_crtc_bandwidth_compute() 1094 wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rv515_crtc_bandwidth_compute() 1101 if (dfixed_trunc(estimated_width) > crtc->base.mode.crtc_hdisplay) { in rv515_crtc_bandwidth_compute()
|
| /Linux-v5.4/drivers/gpu/drm/arc/ |
| D | arcpgu_crtc.c | 84 ENCODE_PGU_XY(m->crtc_hsync_start - m->crtc_hdisplay, in arc_pgu_crtc_mode_set_nofb() 85 m->crtc_hsync_end - m->crtc_hdisplay)); in arc_pgu_crtc_mode_set_nofb()
|
| /Linux-v5.4/drivers/gpu/drm/arm/ |
| D | hdlcd_crtc.c | 138 vm.hfront_porch = m->crtc_hsync_start - m->crtc_hdisplay; in hdlcd_crtc_mode_set_nofb() 157 hdlcd_write(hdlcd, HDLCD_REG_H_DATA, m->crtc_hdisplay - 1); in hdlcd_crtc_mode_set_nofb()
|
| /Linux-v5.4/drivers/gpu/drm/atmel-hlcdc/ |
| D | atmel_hlcdc_crtc.c | 81 vm.hfront_porch = adj->crtc_hsync_start - adj->crtc_hdisplay; in atmel_hlcdc_crtc_mode_set_nofb() 95 (adj->crtc_hdisplay - 1) | in atmel_hlcdc_crtc_mode_set_nofb()
|
| /Linux-v5.4/drivers/gpu/drm/sun4i/ |
| D | sun4i_tcon.c | 275 SUN4I_TCON0_BASIC0_X(mode->crtc_hdisplay) | in sun4i_tcon0_mode_set_common() 613 SUN4I_TCON1_BASIC0_X(mode->crtc_hdisplay) | in sun4i_tcon1_mode_set() 618 SUN4I_TCON1_BASIC1_X(mode->crtc_hdisplay) | in sun4i_tcon1_mode_set() 623 SUN4I_TCON1_BASIC2_X(mode->crtc_hdisplay) | in sun4i_tcon1_mode_set()
|
| /Linux-v5.4/drivers/gpu/drm/ast/ |
| D | ast_mode.c | 114 switch (crtc->mode.crtc_hdisplay) { in ast_get_vbios_mode_info() 222 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x94, adjusted_mode->crtc_hdisplay); in ast_get_vbios_mode_info() 223 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x95, adjusted_mode->crtc_hdisplay >> 8); in ast_get_vbios_mode_info() 297 temp = (mode->crtc_hdisplay >> 3) - 1; in ast_set_crtc_reg()
|
| /Linux-v5.4/include/drm/ |
| D | drm_modes.h | 359 int crtc_hdisplay; member
|
| /Linux-v5.4/drivers/gpu/drm/mxsfb/ |
| D | mxsfb_crtc.c | 233 TRANSFER_COUNT_SET_HCOUNT(m->crtc_hdisplay), in mxsfb_crtc_mode_set_nofb()
|