Home
last modified time | relevance | path

Searched refs:crtc_hdisplay (Results 1 – 25 of 66) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Datombios_crtc.c58 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 …]
Damdgpu_encoders.c192 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/gma500/
Dmdfld_intel_display.c742 | (min(mode->crtc_hdisplay, adjusted_mode->crtc_hdisplay) - 1)); in mdfld_crtc_mode_set()
744 REG_WRITE(map->src, ((mode->crtc_hdisplay - 1) << 16) in mdfld_crtc_mode_set()
749 (mode->crtc_hdisplay - 1)); in mdfld_crtc_mode_set()
751 ((mode->crtc_hdisplay - 1) << 16) | in mdfld_crtc_mode_set()
768 offsetX = (adjusted_mode->crtc_hdisplay - in mdfld_crtc_mode_set()
769 mode->crtc_hdisplay) / 2; in mdfld_crtc_mode_set()
773 REG_WRITE(map->htotal, (mode->crtc_hdisplay - 1) | in mdfld_crtc_mode_set()
790 REG_WRITE(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in mdfld_crtc_mode_set()
Doaktrail_crtc.c422 REG_WRITE_WITH_AUX(map->src, ((mode->crtc_hdisplay - 1) << 16) | in oaktrail_crtc_mode_set()
436 offsetX = (adjusted_mode->crtc_hdisplay - in oaktrail_crtc_mode_set()
437 mode->crtc_hdisplay) / 2; in oaktrail_crtc_mode_set()
442 REG_WRITE_WITH_AUX(map->htotal, (mode->crtc_hdisplay - 1) | in oaktrail_crtc_mode_set()
461 REG_WRITE_WITH_AUX(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in oaktrail_crtc_mode_set()
Doaktrail_lvds.c135 (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()
Doaktrail_hdmi.c172 return (mode->crtc_hdisplay - 1) | (new_crtc_htotal << 16); in htotal_calculate()
333 REG_WRITE(pipesrc_reg, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); in oaktrail_crtc_hdmi_mode_set()
335 …REG_WRITE(PCH_HTOTAL_B, (adjusted_mode->crtc_hdisplay - 1) | ((adjusted_mode->crtc_htotal - 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()
344 HDMI_WRITE(HDMI_HBLANK_A, ((adjusted_mode->crtc_hdisplay - 1) << 16) | temp); in oaktrail_crtc_hdmi_mode_set()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
Dintel_panel.c185 if (adjusted_mode->crtc_hdisplay == crtc_state->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()
228 WARN_ON(adjusted_mode->crtc_hdisplay != crtc_state->pipe_src_w); in intel_pch_panel_fitting()
233 width = adjusted_mode->crtc_hdisplay; in intel_pch_panel_fitting()
260 border = (adjusted_mode->crtc_hdisplay - width + 1) / 2; in centre_horizontally()
263 adjusted_mode->crtc_hdisplay = width; in centre_horizontally()
[all …]
Dvlv_dsi.c1114 adjusted_mode->crtc_hdisplay = in bxt_dsi_get_pipe_config()
1124 hactive = adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config()
1154 adjusted_mode->crtc_hsync_start = hfp + adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config()
1156 adjusted_mode->crtc_hblank_start = adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config()
1177 adjusted_mode_sw->crtc_hdisplay; in bxt_dsi_get_pipe_config()
1210 crtc_htotal_sw = adjusted_mode_sw->crtc_hdisplay + hfp_sw + in bxt_dsi_get_pipe_config()
1212 crtc_hsync_start_sw = hfp_sw + adjusted_mode_sw->crtc_hdisplay; in bxt_dsi_get_pipe_config()
1214 crtc_hblank_start_sw = adjusted_mode_sw->crtc_hdisplay; in bxt_dsi_get_pipe_config()
1285 hactive = adjusted_mode->crtc_hdisplay; in set_dsi_timings()
1286 hfp = adjusted_mode->crtc_hsync_start - adjusted_mode->crtc_hdisplay; in set_dsi_timings()
[all …]
Ddvo_ivch.c418 if (mode->hdisplay != adjusted_mode->crtc_hdisplay || in ivch_mode_set()
425 (adjusted_mode->crtc_hdisplay - 1)) >> 2; in ivch_mode_set()
Dintel_psr.c718 int crtc_hdisplay = crtc_state->hw.adjusted_mode.crtc_hdisplay; in intel_psr2_config_valid() local
776 if (crtc_hdisplay % dev_priv->psr.su_x_granularity) { in intel_psr2_config_valid()
779 crtc_hdisplay, dev_priv->psr.su_x_granularity); in intel_psr2_config_valid()
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()
Dintel_fbdev.c370 cur_size = crtc->state->adjusted_mode.crtc_hdisplay; in intel_fbdev_init_bios()
387 crtc->state->adjusted_mode.crtc_hdisplay, in intel_fbdev_init_bios()
Dicl_dsi.c290 u16 hactive = adjusted_mode->crtc_hdisplay; in configure_dual_link_mode()
854 hactive = adjusted_mode->crtc_hdisplay; in gen11_dsi_set_transcoder_timings()
894 if (adjusted_mode->crtc_hdisplay < 256) in gen11_dsi_set_transcoder_timings()
1415 adjusted_mode->crtc_hdisplay *= 2; in gen11_dsi_get_timings()
1417 adjusted_mode->crtc_hdisplay -= in gen11_dsi_get_timings()
1421 adjusted_mode->crtc_hblank_start = adjusted_mode->crtc_hdisplay; in gen11_dsi_get_timings()
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Datombios_crtc.c57 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 …]
Dradeon_encoders.c356 adjusted_mode->crtc_hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup()
360 adjusted_mode->crtc_htotal = adjusted_mode->crtc_hdisplay + hblank; in radeon_panel_mode_fixup()
361 adjusted_mode->crtc_hsync_start = adjusted_mode->crtc_hdisplay + hover; in radeon_panel_mode_fixup()
Drs690.c253 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()
Dradeon_legacy_crtc.c85 | ((((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()
Drv515.c990 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()
Dradeon_cursor.c193 frame_end = crtc->x + crtc->mode.crtc_hdisplay; in radeon_cursor_move_locked()
/kernel/linux/linux-5.10/drivers/gpu/drm/arc/
Darcpgu_crtc.c86 ENCODE_PGU_XY(m->crtc_hsync_start - m->crtc_hdisplay, in arc_pgu_crtc_mode_set_nofb()
87 m->crtc_hsync_end - m->crtc_hdisplay)); in arc_pgu_crtc_mode_set_nofb()
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/
Dhdlcd_crtc.c138 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_crtc.c85 vm.hfront_porch = adj->crtc_hsync_start - adj->crtc_hdisplay; in atmel_hlcdc_crtc_mode_set_nofb()
99 (adj->crtc_hdisplay - 1) | in atmel_hlcdc_crtc_mode_set_nofb()
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/
Dsun4i_tcon.c301 SUN4I_TCON0_BASIC0_X(mode->crtc_hdisplay) | in sun4i_tcon0_mode_set_common()
620 SUN4I_TCON1_BASIC0_X(mode->crtc_hdisplay) | in sun4i_tcon1_mode_set()
625 SUN4I_TCON1_BASIC1_X(mode->crtc_hdisplay) | in sun4i_tcon1_mode_set()
630 SUN4I_TCON1_BASIC2_X(mode->crtc_hdisplay) | in sun4i_tcon1_mode_set()
/kernel/linux/linux-5.10/drivers/gpu/drm/ast/
Dast_mode.c107 switch (mode->crtc_hdisplay) { in ast_get_vbios_mode_info()
252 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x94, adjusted_mode->crtc_hdisplay); in ast_set_vbios_mode_reg()
253 ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0x95, adjusted_mode->crtc_hdisplay >> 8); in ast_set_vbios_mode_reg()
325 temp = (mode->crtc_hdisplay >> 3) - 1; in ast_set_crtc_reg()
/kernel/linux/linux-5.10/include/drm/
Ddrm_modes.h293 u16 crtc_hdisplay; member
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/
Dexynos5433_drm_decon.c203 m->crtc_hsync_start = m->crtc_hdisplay + 10; in decon_commit()
249 m->crtc_hsync_start - m->crtc_hdisplay - 1); in decon_commit()

123