/dragonfly/sys/dev/drm/amd/amdgpu/ |
H A D | amdgpu_encoders.c | 148 struct drm_display_mode *adjusted_mode) in amdgpu_panel_mode_fixup() argument 159 adjusted_mode->clock = native_mode->clock; in amdgpu_panel_mode_fixup() 160 adjusted_mode->flags = native_mode->flags; in amdgpu_panel_mode_fixup() 167 adjusted_mode->hsync_end = adjusted_mode->hsync_start + hsync_width; in amdgpu_panel_mode_fixup() 171 adjusted_mode->vsync_end = adjusted_mode->vsync_start + vsync_width; 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() 180 adjusted_mode->crtc_hsync_end = adjusted_mode->crtc_hsync_start + hsync_width; in amdgpu_panel_mode_fixup() 182 adjusted_mode->crtc_vtotal = adjusted_mode->crtc_vdisplay + vblank; in amdgpu_panel_mode_fixup() 183 adjusted_mode->crtc_vsync_start = adjusted_mode->crtc_vdisplay + vover; in amdgpu_panel_mode_fixup() [all …]
|
H A D | atombios_crtc.c | 41 struct drm_display_mode *adjusted_mode) in amdgpu_atombios_crtc_overscan_setup() argument 56 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup() 57 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup() 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() [all …]
|
H A D | dce_virtual.c | 191 struct drm_display_mode *adjusted_mode, in dce_virtual_crtc_mode_set() argument 197 amdgpu_crtc->hw_mode = *adjusted_mode; in dce_virtual_crtc_mode_set() 204 struct drm_display_mode *adjusted_mode) in dce_virtual_crtc_mode_fixup() argument 558 struct drm_display_mode *adjusted_mode) in dce_virtual_encoder_mode_set() argument 576 struct drm_display_mode *adjusted_mode) in dce_virtual_encoder_mode_fixup() argument
|
/dragonfly/sys/dev/drm/radeon/ |
H A D | radeon_encoders.c | 313 struct drm_display_mode *adjusted_mode) in radeon_panel_mode_fixup() argument 326 adjusted_mode->clock = native_mode->clock; in radeon_panel_mode_fixup() 327 adjusted_mode->flags = native_mode->flags; in radeon_panel_mode_fixup() 336 adjusted_mode->hsync_end = adjusted_mode->hsync_start + hsync_width; in radeon_panel_mode_fixup() 340 adjusted_mode->vsync_end = adjusted_mode->vsync_start + vsync_width; in radeon_panel_mode_fixup() 349 adjusted_mode->crtc_htotal = adjusted_mode->crtc_hdisplay + hblank; in radeon_panel_mode_fixup() 350 adjusted_mode->crtc_hsync_start = adjusted_mode->crtc_hdisplay + hover; in radeon_panel_mode_fixup() 351 adjusted_mode->crtc_hsync_end = adjusted_mode->crtc_hsync_start + hsync_width; in radeon_panel_mode_fixup() 353 adjusted_mode->crtc_vtotal = adjusted_mode->crtc_vdisplay + vblank; in radeon_panel_mode_fixup() 354 adjusted_mode->crtc_vsync_start = adjusted_mode->crtc_vdisplay + vover; in radeon_panel_mode_fixup() [all …]
|
H A D | atombios_crtc.c | 37 struct drm_display_mode *adjusted_mode) in atombios_overscan_setup() argument 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() 2039 struct drm_display_mode *adjusted_mode, in atombios_crtc_mode_set() argument 2056 atombios_crtc_set_pll(crtc, adjusted_mode); in atombios_crtc_mode_set() 2059 atombios_set_crtc_dtd_timing(crtc, adjusted_mode); in atombios_crtc_mode_set() 2062 atombios_crtc_set_timing(crtc, adjusted_mode); in atombios_crtc_mode_set() 2066 atombios_crtc_set_timing(crtc, adjusted_mode); in atombios_crtc_mode_set() 2072 atombios_overscan_setup(crtc, mode, adjusted_mode); in atombios_crtc_mode_set() 2076 radeon_crtc->hw_mode = *adjusted_mode; in atombios_crtc_mode_set() [all …]
|
H A D | radeon_legacy_crtc.c | 1031 struct drm_display_mode *adjusted_mode) in radeon_crtc_mode_fixup() argument 1033 if (!radeon_crtc_scaling_mode_fixup(crtc, mode, adjusted_mode)) in radeon_crtc_mode_fixup() 1040 struct drm_display_mode *adjusted_mode, in radeon_crtc_mode_set() argument 1047 radeon_set_crtc_timing(crtc, adjusted_mode); in radeon_crtc_mode_set() 1048 radeon_set_pll(crtc, adjusted_mode); in radeon_crtc_mode_set() 1049 radeon_overscan_setup(crtc, adjusted_mode); in radeon_crtc_mode_set() 1051 radeon_legacy_rmx_mode_set(crtc, adjusted_mode); in radeon_crtc_mode_set()
|
/dragonfly/sys/dev/drm/i915/ |
H A D | intel_dsi.c | 313 struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_dsi_compute_config() local 1156 adjusted_mode->crtc_hsync_start = hfp + adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1158 adjusted_mode->crtc_hblank_start = adjusted_mode->crtc_hdisplay; in bxt_dsi_get_pipe_config() 1159 adjusted_mode->crtc_hblank_end = adjusted_mode->crtc_htotal; in bxt_dsi_get_pipe_config() 1161 adjusted_mode->crtc_vsync_start = vfp + adjusted_mode->crtc_vdisplay; in bxt_dsi_get_pipe_config() 1163 adjusted_mode->crtc_vblank_start = adjusted_mode->crtc_vdisplay; in bxt_dsi_get_pipe_config() 1164 adjusted_mode->crtc_vblank_end = adjusted_mode->crtc_vtotal; in bxt_dsi_get_pipe_config() 1312 hfp = adjusted_mode->crtc_hsync_start - adjusted_mode->crtc_hdisplay; in set_dsi_timings() 1314 hbp = adjusted_mode->crtc_htotal - adjusted_mode->crtc_hsync_end; in set_dsi_timings() 1325 vfp = adjusted_mode->crtc_vsync_start - adjusted_mode->crtc_vdisplay; in set_dsi_timings() [all …]
|
H A D | intel_panel.c | 108 const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_pch_panel_fitting() local 178 sync_width = adjusted_mode->crtc_hsync_end - adjusted_mode->crtc_hsync_start; in centre_horizontally() 179 blank_width = adjusted_mode->crtc_hblank_end - adjusted_mode->crtc_hblank_start; in centre_horizontally() 187 adjusted_mode->crtc_hblank_end = adjusted_mode->crtc_hblank_start + blank_width; in centre_horizontally() 189 adjusted_mode->crtc_hsync_start = adjusted_mode->crtc_hblank_start + sync_pos; in centre_horizontally() 190 adjusted_mode->crtc_hsync_end = adjusted_mode->crtc_hsync_start + sync_width; in centre_horizontally() 200 sync_width = adjusted_mode->crtc_vsync_end - adjusted_mode->crtc_vsync_start; in centre_vertically() 210 adjusted_mode->crtc_vsync_start = adjusted_mode->crtc_vblank_start + sync_pos; in centre_vertically() 211 adjusted_mode->crtc_vsync_end = adjusted_mode->crtc_vsync_start + sync_width; in centre_vertically() 251 struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in i9xx_scale_aspect() local [all …]
|
H A D | intel_audio.c | 171 adjusted_mode->crtc_clock); in audio_config_hdmi_pixel_clock() 244 const struct drm_display_mode *adjusted_mode) in g4x_audio_codec_enable() argument 283 const struct drm_display_mode *adjusted_mode) in hsw_dp_audio_config_update() argument 342 n = audio_config_hdmi_get_n(adjusted_mode, rate); in hsw_hdmi_audio_config_update() 367 const struct drm_display_mode *adjusted_mode) in hsw_audio_config_update() argument 407 const struct drm_display_mode *adjusted_mode) in hsw_audio_codec_enable() argument 502 const struct drm_display_mode *adjusted_mode) in ilk_audio_codec_enable() argument 592 const struct drm_display_mode *adjusted_mode = &crtc_state->base.adjusted_mode; in intel_audio_codec_enable() local 613 adjusted_mode); in intel_audio_codec_enable() 799 struct drm_display_mode *adjusted_mode; [all …]
|
H A D | dvo_ns2501.c | 575 adjusted_mode->crtc_clock, in ns2501_mode_set() 576 adjusted_mode->crtc_hdisplay, in ns2501_mode_set() 578 adjusted_mode->crtc_hblank_end, in ns2501_mode_set() 579 adjusted_mode->crtc_hsync_start, in ns2501_mode_set() 580 adjusted_mode->crtc_hsync_end, in ns2501_mode_set() 581 adjusted_mode->crtc_htotal, in ns2501_mode_set() 582 adjusted_mode->crtc_hskew, in ns2501_mode_set() 583 adjusted_mode->crtc_vdisplay, in ns2501_mode_set() 585 adjusted_mode->crtc_vblank_end, in ns2501_mode_set() 587 adjusted_mode->crtc_vsync_end, in ns2501_mode_set() [all …]
|
H A D | intel_dvo.c | 172 pipe_config->base.adjusted_mode.flags |= flags; in intel_dvo_get_config() 174 pipe_config->base.adjusted_mode.crtc_clock = pipe_config->port_clock; in intel_dvo_get_config() 202 &pipe_config->base.adjusted_mode); in intel_enable_dvo() 247 struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_dvo_compute_config() local 255 intel_fixed_panel_mode(fixed_mode, adjusted_mode); in intel_dvo_compute_config() 266 const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_dvo_pre_enable() local 282 if (adjusted_mode->flags & DRM_MODE_FLAG_PHSYNC) in intel_dvo_pre_enable() 284 if (adjusted_mode->flags & DRM_MODE_FLAG_PVSYNC) in intel_dvo_pre_enable() 291 (adjusted_mode->crtc_hdisplay << DVO_SRCDIM_HORIZONTAL_SHIFT) | in intel_dvo_pre_enable() 292 (adjusted_mode->crtc_vdisplay << DVO_SRCDIM_VERTICAL_SHIFT)); in intel_dvo_pre_enable()
|
H A D | dvo_ivch.c | 398 const struct drm_display_mode *adjusted_mode) in ivch_mode_set() argument 417 if (mode->hdisplay != adjusted_mode->crtc_hdisplay || in ivch_mode_set() 418 mode->vdisplay != adjusted_mode->crtc_vdisplay) { in ivch_mode_set() 424 (adjusted_mode->crtc_hdisplay - 1)) >> 2; in ivch_mode_set() 426 (adjusted_mode->crtc_vdisplay - 1)) >> 2; in ivch_mode_set()
|
H A D | intel_hdmi.c | 466 const struct drm_display_mode *adjusted_mode = in intel_hdmi_set_avi_infoframe() local 467 &crtc_state->base.adjusted_mode; in intel_hdmi_set_avi_infoframe() 474 adjusted_mode, in intel_hdmi_set_avi_infoframe() 522 &crtc_state->base.adjusted_mode); in intel_hdmi_set_hdmi_infoframe() 671 &crtc_state->base.adjusted_mode)) in intel_hdmi_set_gcp_infoframe() 884 const struct drm_display_mode *adjusted_mode = &crtc_state->base.adjusted_mode; in intel_hdmi_prepare() local 892 if (adjusted_mode->flags & DRM_MODE_FLAG_PVSYNC) in intel_hdmi_prepare() 894 if (adjusted_mode->flags & DRM_MODE_FLAG_PHSYNC) in intel_hdmi_prepare() 986 pipe_config->base.adjusted_mode.flags |= flags; in intel_hdmi_get_config() 1408 struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_hdmi_compute_config() local [all …]
|
H A D | intel_crt.c | 122 pipe_config->base.adjusted_mode.flags |= intel_crt_get_flags(encoder); in intel_crt_get_config() 124 pipe_config->base.adjusted_mode.crtc_clock = pipe_config->port_clock; in intel_crt_get_config() 134 pipe_config->base.adjusted_mode.flags &= ~(DRM_MODE_FLAG_PHSYNC | in hsw_crt_get_config() 138 pipe_config->base.adjusted_mode.flags |= intel_crt_get_flags(encoder); in hsw_crt_get_config() 140 pipe_config->base.adjusted_mode.crtc_clock = lpt_get_iclkip(dev_priv); in hsw_crt_get_config() 152 const struct drm_display_mode *adjusted_mode = &crtc_state->base.adjusted_mode; in intel_crt_set_dpms() local 160 if (adjusted_mode->flags & DRM_MODE_FLAG_PHSYNC) in intel_crt_set_dpms() 162 if (adjusted_mode->flags & DRM_MODE_FLAG_PVSYNC) in intel_crt_set_dpms()
|
H A D | intel_lvds.c | 139 pipe_config->base.adjusted_mode.flags |= flags; in intel_lvds_get_config() 152 pipe_config->base.adjusted_mode.crtc_clock = pipe_config->port_clock; in intel_lvds_get_config() 239 const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_pre_enable_lvds() local 298 if (adjusted_mode->flags & DRM_MODE_FLAG_NHSYNC) in intel_pre_enable_lvds() 300 if (adjusted_mode->flags & DRM_MODE_FLAG_NVSYNC) in intel_pre_enable_lvds() 393 struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_lvds_compute_config() local 421 adjusted_mode); in intel_lvds_compute_config()
|
H A D | intel_psr.c | 357 const struct drm_display_mode *adjusted_mode = in intel_psr_compute_config() local 358 &crtc_state->base.adjusted_mode; in intel_psr_compute_config() 398 adjusted_mode->flags & DRM_MODE_FLAG_INTERLACE) { in intel_psr_compute_config() 410 if (intel_usecs_to_scanlines(adjusted_mode, psr_setup_time) > in intel_psr_compute_config() 411 adjusted_mode->crtc_vtotal - adjusted_mode->crtc_vdisplay - 1) { in intel_psr_compute_config() 428 if (adjusted_mode->crtc_hdisplay > 3200 || in intel_psr_compute_config() 429 adjusted_mode->crtc_vdisplay > 2000) { in intel_psr_compute_config()
|
H A D | intel_atomic_plane.c | 119 const struct drm_display_mode *adjusted_mode = in intel_plane_atomic_check_with_state() local 120 &crtc_state->base.adjusted_mode; in intel_plane_atomic_check_with_state() 185 adjusted_mode->flags & DRM_MODE_FLAG_INTERLACE) { in intel_plane_atomic_check_with_state()
|
H A D | intel_display.c | 4538 &crtc_state->base.adjusted_mode; in ironlake_pch_enable() 4614 &crtc_state->base.adjusted_mode; in skl_update_scaler() 4696 const struct drm_display_mode *adjusted_mode = &state->base.adjusted_mode; in skl_update_scaler_crtc() local 4701 adjusted_mode->crtc_hdisplay, adjusted_mode->crtc_vdisplay); in skl_update_scaler_crtc() 6141 const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in ironlake_fdi_compute_config() local 6279 const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_crtc_compute_config() local 6327 adjusted_mode->crtc_hsync_start == adjusted_mode->crtc_hdisplay) in intel_crtc_compute_config() 6944 const struct drm_display_mode *adjusted_mode = &intel_crtc->config->base.adjusted_mode; in intel_set_pipe_timings() local 6962 adjusted_mode->crtc_htotal / 2; in intel_set_pipe_timings() 11757 const struct drm_display_mode *adjusted_mode = &crtc->config->base.adjusted_mode; in update_scanline_offset() local [all …]
|
H A D | intel_dp_mst.c | 45 const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode; in intel_dp_mst_compute_config() local 72 mst_pbn = drm_dp_calc_pbn_mode(adjusted_mode->crtc_clock, bpp); in intel_dp_mst_compute_config() 83 adjusted_mode->crtc_clock, in intel_dp_mst_compute_config() 302 pipe_config->base.adjusted_mode.flags |= flags; in intel_dp_mst_enc_get_config()
|
/dragonfly/sys/dev/drm/ |
H A D | drm_bridge.c | 187 struct drm_display_mode *adjusted_mode) in drm_bridge_mode_fixup() argument 195 ret = bridge->funcs->mode_fixup(bridge, mode, adjusted_mode); in drm_bridge_mode_fixup() 197 ret = ret && drm_bridge_mode_fixup(bridge->next, mode, adjusted_mode); in drm_bridge_mode_fixup() 294 struct drm_display_mode *adjusted_mode) in drm_bridge_mode_set() argument 300 bridge->funcs->mode_set(bridge, mode, adjusted_mode); in drm_bridge_mode_set() 302 drm_bridge_mode_set(bridge->next, mode, adjusted_mode); in drm_bridge_mode_set()
|
H A D | drm_crtc_helper.c | 290 adjusted_mode = drm_mode_duplicate(dev, mode); in drm_crtc_helper_set_mode() 291 if (!adjusted_mode) { in drm_crtc_helper_set_mode() 322 mode, adjusted_mode); in drm_crtc_helper_set_mode() 331 adjusted_mode))) { in drm_crtc_helper_set_mode() 340 adjusted_mode))) { in drm_crtc_helper_set_mode() 347 crtc->hwmode = *adjusted_mode; in drm_crtc_helper_set_mode() 392 encoder_funcs->mode_set(encoder, mode, adjusted_mode); in drm_crtc_helper_set_mode() 394 drm_bridge_mode_set(encoder->bridge, mode, adjusted_mode); in drm_crtc_helper_set_mode() 425 drm_mode_destroy(dev, adjusted_mode); in drm_crtc_helper_set_mode() 1005 struct drm_display_mode *adjusted_mode, int x, int y, in drm_helper_crtc_mode_set() argument [all …]
|
H A D | drm_encoder_slave.c | 143 struct drm_display_mode *adjusted_mode) in drm_i2c_encoder_mode_fixup() argument 148 return get_slave_funcs(encoder)->mode_fixup(encoder, mode, adjusted_mode); in drm_i2c_encoder_mode_fixup() 166 struct drm_display_mode *adjusted_mode) in drm_i2c_encoder_mode_set() argument 168 get_slave_funcs(encoder)->mode_set(encoder, mode, adjusted_mode); in drm_i2c_encoder_mode_set()
|
/dragonfly/sys/dev/drm/include/drm/ |
H A D | drm_bridge.h | 133 struct drm_display_mode *adjusted_mode); 183 struct drm_display_mode *adjusted_mode); 256 struct drm_display_mode *adjusted_mode); 263 struct drm_display_mode *adjusted_mode);
|
H A D | drm_encoder_slave.h | 59 struct drm_display_mode *adjusted_mode); 64 struct drm_display_mode *adjusted_mode); 173 struct drm_display_mode *adjusted_mode); 178 struct drm_display_mode *adjusted_mode);
|
H A D | drm_modeset_helper_vtables.h | 187 struct drm_display_mode *adjusted_mode); 205 struct drm_display_mode *adjusted_mode, int x, int y, 561 struct drm_display_mode *adjusted_mode); 617 struct drm_display_mode *adjusted_mode);
|