Home
last modified time | relevance | path

Searched refs:adjusted_mode (Results 1 – 25 of 185) sorted by relevance

12345678

/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_encoders.c149 struct drm_display_mode *adjusted_mode) in amdgpu_panel_mode_fixup() argument
160 adjusted_mode->clock = native_mode->clock; in amdgpu_panel_mode_fixup()
161 adjusted_mode->flags = native_mode->flags; in amdgpu_panel_mode_fixup()
163 adjusted_mode->hdisplay = native_mode->hdisplay; in amdgpu_panel_mode_fixup()
164 adjusted_mode->vdisplay = native_mode->vdisplay; in amdgpu_panel_mode_fixup()
166 adjusted_mode->htotal = native_mode->hdisplay + hblank; in amdgpu_panel_mode_fixup()
167 adjusted_mode->hsync_start = native_mode->hdisplay + hover; in amdgpu_panel_mode_fixup()
168 adjusted_mode->hsync_end = adjusted_mode->hsync_start + hsync_width; in amdgpu_panel_mode_fixup()
170 adjusted_mode->vtotal = native_mode->vdisplay + vblank; in amdgpu_panel_mode_fixup()
171 adjusted_mode->vsync_start = native_mode->vdisplay + vover; in amdgpu_panel_mode_fixup()
[all …]
/Linux-v5.4/drivers/gpu/drm/radeon/
Dradeon_encoders.c323 struct drm_display_mode *adjusted_mode) in radeon_panel_mode_fixup() argument
336 adjusted_mode->clock = native_mode->clock; in radeon_panel_mode_fixup()
337 adjusted_mode->flags = native_mode->flags; in radeon_panel_mode_fixup()
340 adjusted_mode->hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup()
341 adjusted_mode->vdisplay = native_mode->vdisplay; in radeon_panel_mode_fixup()
344 adjusted_mode->htotal = native_mode->hdisplay + hblank; in radeon_panel_mode_fixup()
345 adjusted_mode->hsync_start = native_mode->hdisplay + hover; in radeon_panel_mode_fixup()
346 adjusted_mode->hsync_end = adjusted_mode->hsync_start + hsync_width; in radeon_panel_mode_fixup()
348 adjusted_mode->vtotal = native_mode->vdisplay + vblank; in radeon_panel_mode_fixup()
349 adjusted_mode->vsync_start = native_mode->vdisplay + vover; in radeon_panel_mode_fixup()
[all …]
/Linux-v5.4/drivers/gpu/drm/gma500/
Dmdfld_intel_display.c658 struct drm_display_mode *adjusted_mode, in mdfld_crtc_mode_set() argument
688 android_hdmi_crtc_mode_set(crtc, mode, adjusted_mode, in mdfld_crtc_mode_set()
699 adjusted_mode->hdisplay); in mdfld_crtc_mode_set()
701 adjusted_mode->vdisplay); in mdfld_crtc_mode_set()
703 adjusted_mode->hsync_start); in mdfld_crtc_mode_set()
705 adjusted_mode->hsync_end); in mdfld_crtc_mode_set()
707 adjusted_mode->htotal); in mdfld_crtc_mode_set()
709 adjusted_mode->vsync_start); in mdfld_crtc_mode_set()
711 adjusted_mode->vsync_end); in mdfld_crtc_mode_set()
713 adjusted_mode->vtotal); in mdfld_crtc_mode_set()
[all …]
Doaktrail_crtc.c356 struct drm_display_mode *adjusted_mode, in oaktrail_crtc_mode_set() argument
380 return oaktrail_crtc_hdmi_mode_set(crtc, mode, adjusted_mode, x, y, old_fb); in oaktrail_crtc_mode_set()
389 adjusted_mode, in oaktrail_crtc_mode_set()
434 offsetX = (adjusted_mode->crtc_hdisplay - in oaktrail_crtc_mode_set()
436 offsetY = (adjusted_mode->crtc_vdisplay - in oaktrail_crtc_mode_set()
441 ((adjusted_mode->crtc_htotal - 1) << 16), i); in oaktrail_crtc_mode_set()
443 ((adjusted_mode->crtc_vtotal - 1) << 16), i); in oaktrail_crtc_mode_set()
445 (adjusted_mode->crtc_hblank_start - offsetX - 1) | in oaktrail_crtc_mode_set()
446 ((adjusted_mode->crtc_hblank_end - offsetX - 1) << 16), i); in oaktrail_crtc_mode_set()
448 (adjusted_mode->crtc_hsync_start - offsetX - 1) | in oaktrail_crtc_mode_set()
[all …]
Doaktrail_hdmi.c263 struct drm_display_mode *adjusted_mode, in oaktrail_crtc_hdmi_mode_set() argument
306 oaktrail_hdmi_find_dpll(crtc, adjusted_mode->clock, refclk, &clock); in oaktrail_crtc_hdmi_mode_set()
327 temp = htotal_calculate(adjusted_mode); in oaktrail_crtc_hdmi_mode_set()
329 …REG_WRITE(hblank_reg, (adjusted_mode->crtc_hblank_start - 1) | ((adjusted_mode->crtc_hblank_end - … in oaktrail_crtc_hdmi_mode_set()
330 …REG_WRITE(hsync_reg, (adjusted_mode->crtc_hsync_start - 1) | ((adjusted_mode->crtc_hsync_end - 1) … in oaktrail_crtc_hdmi_mode_set()
331 REG_WRITE(vtot_reg, (adjusted_mode->crtc_vdisplay - 1) | ((adjusted_mode->crtc_vtotal - 1) << 16)); in oaktrail_crtc_hdmi_mode_set()
332 …REG_WRITE(vblank_reg, (adjusted_mode->crtc_vblank_start - 1) | ((adjusted_mode->crtc_vblank_end - … in oaktrail_crtc_hdmi_mode_set()
333 …REG_WRITE(vsync_reg, (adjusted_mode->crtc_vsync_start - 1) | ((adjusted_mode->crtc_vsync_end - 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()
337 …REG_WRITE(PCH_HBLANK_B, (adjusted_mode->crtc_hblank_start - 1) | ((adjusted_mode->crtc_hblank_end … in oaktrail_crtc_hdmi_mode_set()
[all …]
Dpsb_intel_display.c93 struct drm_display_mode *adjusted_mode, in psb_intel_crtc_mode_set() argument
142 ok = limit->find_pll(limit, crtc, adjusted_mode->clock, refclk, in psb_intel_crtc_mode_set()
146 adjusted_mode->clock, clock.dot); in psb_intel_crtc_mode_set()
160 adjusted_mode->clock / mode->clock; in psb_intel_crtc_mode_set()
261 REG_WRITE(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in psb_intel_crtc_mode_set()
262 ((adjusted_mode->crtc_htotal - 1) << 16)); in psb_intel_crtc_mode_set()
263 REG_WRITE(map->hblank, (adjusted_mode->crtc_hblank_start - 1) | in psb_intel_crtc_mode_set()
264 ((adjusted_mode->crtc_hblank_end - 1) << 16)); in psb_intel_crtc_mode_set()
265 REG_WRITE(map->hsync, (adjusted_mode->crtc_hsync_start - 1) | in psb_intel_crtc_mode_set()
266 ((adjusted_mode->crtc_hsync_end - 1) << 16)); in psb_intel_crtc_mode_set()
[all …]
Dcdv_intel_lvds.c261 struct drm_display_mode *adjusted_mode) in cdv_intel_lvds_mode_fixup() argument
286 adjusted_mode->hdisplay = panel_fixed_mode->hdisplay; in cdv_intel_lvds_mode_fixup()
287 adjusted_mode->hsync_start = panel_fixed_mode->hsync_start; in cdv_intel_lvds_mode_fixup()
288 adjusted_mode->hsync_end = panel_fixed_mode->hsync_end; in cdv_intel_lvds_mode_fixup()
289 adjusted_mode->htotal = panel_fixed_mode->htotal; in cdv_intel_lvds_mode_fixup()
290 adjusted_mode->vdisplay = panel_fixed_mode->vdisplay; in cdv_intel_lvds_mode_fixup()
291 adjusted_mode->vsync_start = panel_fixed_mode->vsync_start; in cdv_intel_lvds_mode_fixup()
292 adjusted_mode->vsync_end = panel_fixed_mode->vsync_end; in cdv_intel_lvds_mode_fixup()
293 adjusted_mode->vtotal = panel_fixed_mode->vtotal; in cdv_intel_lvds_mode_fixup()
294 adjusted_mode->clock = panel_fixed_mode->clock; in cdv_intel_lvds_mode_fixup()
[all …]
Dpsb_intel_lvds.c363 struct drm_display_mode *adjusted_mode) in psb_intel_lvds_mode_fixup() argument
402 adjusted_mode->hdisplay = panel_fixed_mode->hdisplay; in psb_intel_lvds_mode_fixup()
403 adjusted_mode->hsync_start = panel_fixed_mode->hsync_start; in psb_intel_lvds_mode_fixup()
404 adjusted_mode->hsync_end = panel_fixed_mode->hsync_end; in psb_intel_lvds_mode_fixup()
405 adjusted_mode->htotal = panel_fixed_mode->htotal; in psb_intel_lvds_mode_fixup()
406 adjusted_mode->vdisplay = panel_fixed_mode->vdisplay; in psb_intel_lvds_mode_fixup()
407 adjusted_mode->vsync_start = panel_fixed_mode->vsync_start; in psb_intel_lvds_mode_fixup()
408 adjusted_mode->vsync_end = panel_fixed_mode->vsync_end; in psb_intel_lvds_mode_fixup()
409 adjusted_mode->vtotal = panel_fixed_mode->vtotal; in psb_intel_lvds_mode_fixup()
410 adjusted_mode->clock = panel_fixed_mode->clock; in psb_intel_lvds_mode_fixup()
[all …]
Dcdv_intel_display.c570 struct drm_display_mode *adjusted_mode, in cdv_intel_crtc_mode_set() argument
651 drm_mode_debug_printmodeline(adjusted_mode); in cdv_intel_crtc_mode_set()
655 ok = limit->find_pll(limit, crtc, adjusted_mode->clock, refclk, in cdv_intel_crtc_mode_set()
659 adjusted_mode->clock, clock.dot); in cdv_intel_crtc_mode_set()
672 cdv_intel_dp_set_m_n(crtc, mode, adjusted_mode); in cdv_intel_crtc_mode_set()
783 int sdvo_pixel_multiply = adjusted_mode->clock / mode->clock; in cdv_intel_crtc_mode_set()
787 REG_WRITE(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in cdv_intel_crtc_mode_set()
788 ((adjusted_mode->crtc_htotal - 1) << 16)); in cdv_intel_crtc_mode_set()
789 REG_WRITE(map->hblank, (adjusted_mode->crtc_hblank_start - 1) | in cdv_intel_crtc_mode_set()
790 ((adjusted_mode->crtc_hblank_end - 1) << 16)); in cdv_intel_crtc_mode_set()
[all …]
/Linux-v5.4/drivers/gpu/drm/i915/display/
Dvlv_dsi.c266 struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_dsi_compute_config() local
273 intel_fixed_panel_mode(fixed_mode, adjusted_mode); in intel_dsi_compute_config()
283 if (adjusted_mode->flags & DRM_MODE_FLAG_DBLSCAN) in intel_dsi_compute_config()
287 adjusted_mode->flags = 0; in intel_dsi_compute_config()
296 adjusted_mode->private_flags |= in intel_dsi_compute_config()
1034 struct drm_display_mode *adjusted_mode = in bxt_dsi_get_pipe_config() local
1035 &pipe_config->base.adjusted_mode; in bxt_dsi_get_pipe_config()
1048 adjusted_mode_sw = &crtc->config->base.adjusted_mode; in bxt_dsi_get_pipe_config()
1066 adjusted_mode->private_flags |= in bxt_dsi_get_pipe_config()
1070 adjusted_mode->crtc_hdisplay = in bxt_dsi_get_pipe_config()
[all …]
Dintel_panel.c47 struct drm_display_mode *adjusted_mode) in intel_fixed_panel_mode() argument
49 drm_mode_copy(adjusted_mode, fixed_mode); in intel_fixed_panel_mode()
51 drm_mode_set_crtcinfo(adjusted_mode, 0); in intel_fixed_panel_mode()
181 const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_pch_panel_fitting() local
185 if (adjusted_mode->crtc_hdisplay == pipe_config->pipe_src_w && in intel_pch_panel_fitting()
186 adjusted_mode->crtc_vdisplay == pipe_config->pipe_src_h && in intel_pch_panel_fitting()
194 x = (adjusted_mode->crtc_hdisplay - width + 1)/2; in intel_pch_panel_fitting()
195 y = (adjusted_mode->crtc_vdisplay - height + 1)/2; in intel_pch_panel_fitting()
201 u32 scaled_width = adjusted_mode->crtc_hdisplay in intel_pch_panel_fitting()
204 * adjusted_mode->crtc_vdisplay; in intel_pch_panel_fitting()
[all …]
Ddvo_ns2501.c551 const struct drm_display_mode *adjusted_mode) in ns2501_mode_set() argument
576 adjusted_mode->crtc_clock, in ns2501_mode_set()
577 adjusted_mode->crtc_hdisplay, in ns2501_mode_set()
578 adjusted_mode->crtc_hblank_start, in ns2501_mode_set()
579 adjusted_mode->crtc_hblank_end, in ns2501_mode_set()
580 adjusted_mode->crtc_hsync_start, in ns2501_mode_set()
581 adjusted_mode->crtc_hsync_end, in ns2501_mode_set()
582 adjusted_mode->crtc_htotal, in ns2501_mode_set()
583 adjusted_mode->crtc_hskew, in ns2501_mode_set()
584 adjusted_mode->crtc_vdisplay, in ns2501_mode_set()
[all …]
Dicl_dsi.c278 const struct drm_display_mode *adjusted_mode = in configure_dual_link_mode() local
279 &pipe_config->base.adjusted_mode; in configure_dual_link_mode()
281 u16 hactive = adjusted_mode->crtc_hdisplay; in configure_dual_link_mode()
770 const struct drm_display_mode *adjusted_mode = in gen11_dsi_set_transcoder_timings() local
771 &pipe_config->base.adjusted_mode; in gen11_dsi_set_transcoder_timings()
780 hactive = adjusted_mode->crtc_hdisplay; in gen11_dsi_set_transcoder_timings()
781 htotal = adjusted_mode->crtc_htotal; in gen11_dsi_set_transcoder_timings()
782 hsync_start = adjusted_mode->crtc_hsync_start; in gen11_dsi_set_transcoder_timings()
783 hsync_end = adjusted_mode->crtc_hsync_end; in gen11_dsi_set_transcoder_timings()
785 hback_porch = (adjusted_mode->crtc_htotal - in gen11_dsi_set_transcoder_timings()
[all …]
Dintel_dvo.c181 pipe_config->base.adjusted_mode.flags |= flags; in intel_dvo_get_config()
183 pipe_config->base.adjusted_mode.crtc_clock = pipe_config->port_clock; in intel_dvo_get_config()
211 &pipe_config->base.adjusted_mode); in intel_enable_dvo()
256 struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_dvo_compute_config() local
265 intel_fixed_panel_mode(fixed_mode, adjusted_mode); in intel_dvo_compute_config()
267 if (adjusted_mode->flags & DRM_MODE_FLAG_DBLSCAN) in intel_dvo_compute_config()
281 const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_dvo_pre_enable() local
296 if (adjusted_mode->flags & DRM_MODE_FLAG_PHSYNC) in intel_dvo_pre_enable()
298 if (adjusted_mode->flags & DRM_MODE_FLAG_PVSYNC) in intel_dvo_pre_enable()
305 (adjusted_mode->crtc_hdisplay << DVO_SRCDIM_HORIZONTAL_SHIFT) | in intel_dvo_pre_enable()
[all …]
Dintel_crt.c135 pipe_config->base.adjusted_mode.flags |= intel_crt_get_flags(encoder); in intel_crt_get_config()
137 pipe_config->base.adjusted_mode.crtc_clock = pipe_config->port_clock; in intel_crt_get_config()
147 pipe_config->base.adjusted_mode.flags &= ~(DRM_MODE_FLAG_PHSYNC | in hsw_crt_get_config()
151 pipe_config->base.adjusted_mode.flags |= intel_crt_get_flags(encoder); in hsw_crt_get_config()
153 pipe_config->base.adjusted_mode.crtc_clock = lpt_get_iclkip(dev_priv); in hsw_crt_get_config()
165 const struct drm_display_mode *adjusted_mode = &crtc_state->base.adjusted_mode; in intel_crt_set_dpms() local
173 if (adjusted_mode->flags & DRM_MODE_FLAG_PHSYNC) in intel_crt_set_dpms()
175 if (adjusted_mode->flags & DRM_MODE_FLAG_PVSYNC) in intel_crt_set_dpms()
360 struct drm_display_mode *adjusted_mode = in intel_crt_compute_config() local
361 &pipe_config->base.adjusted_mode; in intel_crt_compute_config()
[all …]
Dintel_tv.c1088 struct drm_display_mode *adjusted_mode = in intel_tv_get_config() local
1089 &pipe_config->base.adjusted_mode; in intel_tv_get_config()
1093 int hdisplay = adjusted_mode->crtc_hdisplay; in intel_tv_get_config()
1094 int vdisplay = adjusted_mode->crtc_vdisplay; in intel_tv_get_config()
1156 adjusted_mode->crtc_clock = mode.clock; in intel_tv_get_config()
1157 if (adjusted_mode->flags & DRM_MODE_FLAG_INTERLACE) in intel_tv_get_config()
1158 adjusted_mode->crtc_clock /= 2; in intel_tv_get_config()
1162 adjusted_mode->private_flags |= in intel_tv_get_config()
1191 struct drm_display_mode *adjusted_mode = in intel_tv_compute_config() local
1192 &pipe_config->base.adjusted_mode; in intel_tv_compute_config()
[all …]
Dintel_lspcon.c191 const struct drm_display_mode *adjusted_mode = in lspcon_ycbcr420_config() local
192 &crtc_state->base.adjusted_mode; in lspcon_ycbcr420_config()
194 if (drm_mode_is_420_only(info, adjusted_mode) && in lspcon_ycbcr420_config()
477 const struct drm_display_mode *adjusted_mode = in lspcon_set_infoframes() local
478 &crtc_state->base.adjusted_mode; in lspcon_set_infoframes()
489 adjusted_mode); in lspcon_set_infoframes()
506 adjusted_mode, in lspcon_set_infoframes()
/Linux-v5.4/drivers/gpu/drm/omapdrm/
Domap_encoder.c74 struct drm_display_mode *adjusted_mode) in omap_encoder_hdmi_mode_set() argument
90 adjusted_mode); in omap_encoder_hdmi_mode_set()
98 struct drm_display_mode *adjusted_mode) in omap_encoder_mode_set() argument
114 drm_display_mode_to_videomode(adjusted_mode, &vm); in omap_encoder_mode_set()
144 dssdev->ops->set_timings(dssdev, adjusted_mode); in omap_encoder_mode_set()
149 omap_encoder_hdmi_mode_set(connector, encoder, adjusted_mode); in omap_encoder_mode_set()
232 &crtc_state->adjusted_mode); in omap_encoder_atomic_check()
/Linux-v5.4/include/drm/
Ddrm_encoder_slave.h58 struct drm_display_mode *adjusted_mode);
63 struct drm_display_mode *adjusted_mode);
170 struct drm_display_mode *adjusted_mode);
175 struct drm_display_mode *adjusted_mode);
Ddrm_bridge.h134 struct drm_display_mode *adjusted_mode);
200 const struct drm_display_mode *adjusted_mode);
411 struct drm_display_mode *adjusted_mode);
418 const struct drm_display_mode *adjusted_mode);
Ddrm_modeset_helper_vtables.h189 struct drm_display_mode *adjusted_mode);
207 struct drm_display_mode *adjusted_mode, int x, int y,
567 struct drm_display_mode *adjusted_mode);
623 struct drm_display_mode *adjusted_mode);
/Linux-v5.4/drivers/gpu/drm/ast/
Dast_mode.c86 struct drm_display_mode *adjusted_mode, in ast_get_vbios_mode_info() argument
188 adjusted_mode->crtc_htotal = vbios_mode->enh_table->ht; in ast_get_vbios_mode_info()
189 adjusted_mode->crtc_hblank_start = vbios_mode->enh_table->hde + hborder; in ast_get_vbios_mode_info()
190 adjusted_mode->crtc_hblank_end = vbios_mode->enh_table->ht - hborder; in ast_get_vbios_mode_info()
191 adjusted_mode->crtc_hsync_start = vbios_mode->enh_table->hde + hborder + in ast_get_vbios_mode_info()
193 adjusted_mode->crtc_hsync_end = (vbios_mode->enh_table->hde + hborder + in ast_get_vbios_mode_info()
197 adjusted_mode->crtc_vtotal = vbios_mode->enh_table->vt; in ast_get_vbios_mode_info()
198 adjusted_mode->crtc_vblank_start = vbios_mode->enh_table->vde + vborder; in ast_get_vbios_mode_info()
199 adjusted_mode->crtc_vblank_end = vbios_mode->enh_table->vt - vborder; in ast_get_vbios_mode_info()
200 adjusted_mode->crtc_vsync_start = vbios_mode->enh_table->vde + vborder + in ast_get_vbios_mode_info()
[all …]
/Linux-v5.4/drivers/gpu/drm/arm/display/komeda/
Dkomeda_crtc.c30 pxlclk = kcrtc_st->base.adjusted_mode.crtc_clock * 1000ULL; in komeda_crtc_update_clock_ratio()
87 struct drm_display_mode *mode = &kcrtc_st->base.adjusted_mode; in komeda_crtc_prepare()
356 unsigned long pxlclk = kcrtc_st->base.adjusted_mode.crtc_clock * 1000; in komeda_crtc_get_aclk()
398 struct drm_display_mode *adjusted_mode) in komeda_crtc_mode_fixup() argument
403 drm_mode_set_crtcinfo(adjusted_mode, 0); in komeda_crtc_mode_fixup()
406 adjusted_mode->crtc_clock /= 2; in komeda_crtc_mode_fixup()
407 adjusted_mode->crtc_hdisplay /= 2; in komeda_crtc_mode_fixup()
408 adjusted_mode->crtc_hsync_start /= 2; in komeda_crtc_mode_fixup()
409 adjusted_mode->crtc_hsync_end /= 2; in komeda_crtc_mode_fixup()
410 adjusted_mode->crtc_htotal /= 2; in komeda_crtc_mode_fixup()
[all …]
/Linux-v5.4/drivers/gpu/drm/
Ddrm_bridge.c191 struct drm_display_mode *adjusted_mode) in drm_bridge_mode_fixup() argument
199 ret = bridge->funcs->mode_fixup(bridge, mode, adjusted_mode); in drm_bridge_mode_fixup()
201 ret = ret && drm_bridge_mode_fixup(bridge->next, mode, adjusted_mode); in drm_bridge_mode_fixup()
298 const struct drm_display_mode *adjusted_mode) in drm_bridge_mode_set() argument
304 bridge->funcs->mode_set(bridge, mode, adjusted_mode); in drm_bridge_mode_set()
306 drm_bridge_mode_set(bridge->next, mode, adjusted_mode); in drm_bridge_mode_set()
Ddrm_encoder_slave.c141 struct drm_display_mode *adjusted_mode) in drm_i2c_encoder_mode_fixup() argument
146 return get_slave_funcs(encoder)->mode_fixup(encoder, mode, adjusted_mode); in drm_i2c_encoder_mode_fixup()
164 struct drm_display_mode *adjusted_mode) in drm_i2c_encoder_mode_set() argument
166 get_slave_funcs(encoder)->mode_set(encoder, mode, adjusted_mode); in drm_i2c_encoder_mode_set()

12345678