/Linux-v4.19/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 | 175 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in amdgpu_panel_mode_fixup() 178 adjusted_mode->crtc_htotal = adjusted_mode->crtc_hdisplay + hblank; in amdgpu_panel_mode_fixup() 179 adjusted_mode->crtc_hsync_start = adjusted_mode->crtc_hdisplay + hover; in amdgpu_panel_mode_fixup()
|
/Linux-v4.19/drivers/gpu/drm/gma500/ |
D | mdfld_intel_display.c | 784 | (min(mode->crtc_hdisplay, adjusted_mode->crtc_hdisplay) - 1)); in mdfld_crtc_mode_set() 786 REG_WRITE(map->src, ((mode->crtc_hdisplay - 1) << 16) in mdfld_crtc_mode_set() 791 (mode->crtc_hdisplay - 1)); in mdfld_crtc_mode_set() 793 ((mode->crtc_hdisplay - 1) << 16) | in mdfld_crtc_mode_set() 810 offsetX = (adjusted_mode->crtc_hdisplay - in mdfld_crtc_mode_set() 811 mode->crtc_hdisplay) / 2; in mdfld_crtc_mode_set() 815 REG_WRITE(map->htotal, (mode->crtc_hdisplay - 1) | in mdfld_crtc_mode_set() 832 REG_WRITE(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in mdfld_crtc_mode_set()
|
D | oaktrail_crtc.c | 430 REG_WRITE_WITH_AUX(map->src, ((mode->crtc_hdisplay - 1) << 16) | in oaktrail_crtc_mode_set() 444 offsetX = (adjusted_mode->crtc_hdisplay - in oaktrail_crtc_mode_set() 445 mode->crtc_hdisplay) / 2; in oaktrail_crtc_mode_set() 450 REG_WRITE_WITH_AUX(map->htotal, (mode->crtc_hdisplay - 1) | in oaktrail_crtc_mode_set() 469 REG_WRITE_WITH_AUX(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in oaktrail_crtc_mode_set()
|
D | oaktrail_hdmi.c | 162 htotal = (mode->crtc_hdisplay - 1) | ((mode->crtc_htotal - 1) << 16); in htotal_calculate() 171 return (mode->crtc_hdisplay - 1) | (new_crtc_htotal << 16); in htotal_calculate() 332 REG_WRITE(pipesrc_reg, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); in oaktrail_crtc_hdmi_mode_set() 334 …REG_WRITE(PCH_HTOTAL_B, (adjusted_mode->crtc_hdisplay - 1) | ((adjusted_mode->crtc_htotal - 1) << … in oaktrail_crtc_hdmi_mode_set() 340 REG_WRITE(PCH_PIPEBSRC, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); in oaktrail_crtc_hdmi_mode_set() 343 HDMI_WRITE(HDMI_HBLANK_A, ((adjusted_mode->crtc_hdisplay - 1) << 16) | temp); in oaktrail_crtc_hdmi_mode_set()
|
D | oaktrail_lvds.c | 144 (mode->hdisplay != adjusted_mode->crtc_hdisplay)) { in oaktrail_lvds_mode_set() 145 if ((adjusted_mode->crtc_hdisplay * mode->vdisplay) == in oaktrail_lvds_mode_set() 148 else if ((adjusted_mode->crtc_hdisplay * in oaktrail_lvds_mode_set()
|
/Linux-v4.19/drivers/gpu/drm/i915/ |
D | intel_panel.c | 112 if (adjusted_mode->crtc_hdisplay == pipe_config->pipe_src_w && in intel_pch_panel_fitting() 121 x = (adjusted_mode->crtc_hdisplay - width + 1)/2; in intel_pch_panel_fitting() 128 u32 scaled_width = adjusted_mode->crtc_hdisplay in intel_pch_panel_fitting() 136 x = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in intel_pch_panel_fitting() 145 width = adjusted_mode->crtc_hdisplay; in intel_pch_panel_fitting() 148 width = adjusted_mode->crtc_hdisplay; in intel_pch_panel_fitting() 156 width = adjusted_mode->crtc_hdisplay; in intel_pch_panel_fitting() 182 border = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in centre_horizontally() 185 adjusted_mode->crtc_hdisplay = width; in centre_horizontally() 231 u32 scaled_width = adjusted_mode->crtc_hdisplay * in i965_scale_aspect() [all …]
|
D | vlv_dsi.c | 1131 adjusted_mode->crtc_hdisplay = in bxt_dsi_get_pipe_config() 1138 hactive = adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1168 adjusted_mode->crtc_hsync_start = hfp + adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1170 adjusted_mode->crtc_hblank_start = adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1191 adjusted_mode_sw->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1224 crtc_htotal_sw = adjusted_mode_sw->crtc_hdisplay + hfp_sw + in bxt_dsi_get_pipe_config() 1226 crtc_hsync_start_sw = hfp_sw + adjusted_mode_sw->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1228 crtc_hblank_start_sw = adjusted_mode_sw->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1326 hactive = adjusted_mode->crtc_hdisplay; in set_dsi_timings() 1327 hfp = adjusted_mode->crtc_hsync_start - adjusted_mode->crtc_hdisplay; in set_dsi_timings() [all …]
|
D | dvo_ivch.c | 417 if (mode->hdisplay != adjusted_mode->crtc_hdisplay || in ivch_mode_set() 424 (adjusted_mode->crtc_hdisplay - 1)) >> 2; in ivch_mode_set()
|
D | intel_psr.c | 432 int crtc_hdisplay = crtc_state->base.adjusted_mode.crtc_hdisplay; in intel_psr2_config_valid() local 452 if (crtc_hdisplay > psr_max_h || crtc_vdisplay > psr_max_v) { in intel_psr2_config_valid() 454 crtc_hdisplay, crtc_vdisplay, in intel_psr2_config_valid()
|
D | intel_fbdev.c | 594 cur_size = intel_crtc->config->base.adjusted_mode.crtc_hdisplay; in intel_fbdev_init_bios() 609 intel_crtc->config->base.adjusted_mode.crtc_hdisplay, in intel_fbdev_init_bios()
|
/Linux-v4.19/drivers/gpu/drm/radeon/ |
D | atombios_crtc.c | 54 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in atombios_overscan_setup() 55 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in atombios_overscan_setup() 58 a1 = mode->crtc_vdisplay * adjusted_mode->crtc_hdisplay; in atombios_overscan_setup() 59 a2 = adjusted_mode->crtc_vdisplay * mode->crtc_hdisplay; in atombios_overscan_setup() 62 …args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in atombios_overscan_setup() 63 …args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2… in atombios_overscan_setup() 65 … args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); in atombios_overscan_setup() 66 …args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / … in atombios_overscan_setup() 311 args.usH_Size = cpu_to_le16(mode->crtc_hdisplay - (radeon_crtc->h_border * 2)); in atombios_set_crtc_dtd_timing() 313 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 | 352 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup() 356 adjusted_mode->crtc_htotal = adjusted_mode->crtc_hdisplay + hblank; in radeon_panel_mode_fixup() 357 adjusted_mode->crtc_hsync_start = adjusted_mode->crtc_hdisplay + hover; in radeon_panel_mode_fixup()
|
D | rs690.c | 251 rdev->mode_info.crtcs[0]->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode1->crtc_hdisplay); in rs690_line_buffer_adjust() 254 rdev->mode_info.crtcs[1]->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode2->crtc_hdisplay); in rs690_line_buffer_adjust() 308 b.full = dfixed_const(mode->crtc_hdisplay); in rs690_crtc_bandwidth_compute() 358 b.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rs690_crtc_bandwidth_compute() 441 wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rs690_crtc_bandwidth_compute() 448 if (dfixed_trunc(estimated_width) > crtc->base.mode.crtc_hdisplay) { in rs690_crtc_bandwidth_compute()
|
D | radeon_legacy_crtc.c | 82 | ((((mode->crtc_hdisplay / 8) - 1) & 0x1ff) << 16)); in radeon_legacy_rmx_mode_set() 165 | ((((mode->crtc_hdisplay / 8) - 1) & 0x1ff) << 16)); in radeon_legacy_rmx_mode_set() 620 | ((((mode->crtc_hdisplay / 8) - 1) & 0x1ff) << 16)); in radeon_set_crtc_timing()
|
D | rv515.c | 985 b.full = dfixed_const(mode->crtc_hdisplay); in rv515_crtc_bandwidth_compute() 1035 b.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rv515_crtc_bandwidth_compute() 1089 wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay); in rv515_crtc_bandwidth_compute() 1096 if (dfixed_trunc(estimated_width) > crtc->base.mode.crtc_hdisplay) { in rv515_crtc_bandwidth_compute()
|
/Linux-v4.19/drivers/gpu/drm/arc/ |
D | arcpgu_crtc.c | 91 ENCODE_PGU_XY(m->crtc_hsync_start - m->crtc_hdisplay, in arc_pgu_crtc_mode_set_nofb() 92 m->crtc_hsync_end - m->crtc_hdisplay)); in arc_pgu_crtc_mode_set_nofb()
|
/Linux-v4.19/drivers/gpu/drm/arm/ |
D | hdlcd_crtc.c | 136 vm.hfront_porch = m->crtc_hsync_start - m->crtc_hdisplay; in hdlcd_crtc_mode_set_nofb() 155 hdlcd_write(hdlcd, HDLCD_REG_H_DATA, m->crtc_hdisplay - 1); in hdlcd_crtc_mode_set_nofb()
|
/Linux-v4.19/drivers/gpu/drm/atmel-hlcdc/ |
D | atmel_hlcdc_crtc.c | 87 vm.hfront_porch = adj->crtc_hsync_start - adj->crtc_hdisplay; in atmel_hlcdc_crtc_mode_set_nofb() 101 (adj->crtc_hdisplay - 1) | in atmel_hlcdc_crtc_mode_set_nofb()
|
/Linux-v4.19/drivers/gpu/drm/sun4i/ |
D | sun4i_tcon.c | 274 SUN4I_TCON0_BASIC0_X(mode->crtc_hdisplay) | in sun4i_tcon0_mode_set_common() 519 SUN4I_TCON1_BASIC0_X(mode->crtc_hdisplay) | in sun4i_tcon1_mode_set() 524 SUN4I_TCON1_BASIC1_X(mode->crtc_hdisplay) | in sun4i_tcon1_mode_set() 529 SUN4I_TCON1_BASIC2_X(mode->crtc_hdisplay) | in sun4i_tcon1_mode_set()
|
/Linux-v4.19/drivers/gpu/drm/ast/ |
D | ast_mode.c | 109 switch (crtc->mode.crtc_hdisplay) { in ast_get_vbios_mode_info() 217 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x94, adjusted_mode->crtc_hdisplay); in ast_get_vbios_mode_info() 218 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x95, adjusted_mode->crtc_hdisplay >> 8); in ast_get_vbios_mode_info() 292 temp = (mode->crtc_hdisplay >> 3) - 1; in ast_set_crtc_reg()
|
/Linux-v4.19/include/drm/ |
D | drm_modes.h | 357 int crtc_hdisplay; member
|
/Linux-v4.19/drivers/gpu/drm/armada/ |
D | armada_crtc.c | 267 rm = adj->crtc_hsync_start - adj->crtc_hdisplay; in armada_drm_crtc_mode_set_nofb() 275 adj->crtc_hdisplay, adj->crtc_hsync_start, in armada_drm_crtc_mode_set_nofb() 315 val = adj->crtc_vdisplay << 16 | adj->crtc_hdisplay; in armada_drm_crtc_mode_set_nofb()
|
/Linux-v4.19/drivers/gpu/drm/mxsfb/ |
D | mxsfb_crtc.c | 228 TRANSFER_COUNT_SET_HCOUNT(m->crtc_hdisplay), in mxsfb_crtc_mode_set_nofb()
|
/Linux-v4.19/drivers/gpu/drm/exynos/ |
D | exynos5433_drm_decon.c | 202 m->crtc_hsync_start = m->crtc_hdisplay + 10; in decon_commit() 248 m->crtc_hsync_start - m->crtc_hdisplay - 1); in decon_commit()
|