Home
last modified time | relevance | path

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

1234

/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_encoders.c170 struct drm_display_mode *adjusted_mode) in amdgpu_panel_mode_fixup() argument
181 adjusted_mode->clock = native_mode->clock; in amdgpu_panel_mode_fixup()
182 adjusted_mode->flags = native_mode->flags; in amdgpu_panel_mode_fixup()
184 adjusted_mode->hdisplay = native_mode->hdisplay; in amdgpu_panel_mode_fixup()
185 adjusted_mode->vdisplay = native_mode->vdisplay; in amdgpu_panel_mode_fixup()
187 adjusted_mode->htotal = native_mode->hdisplay + hblank; in amdgpu_panel_mode_fixup()
188 adjusted_mode->hsync_start = native_mode->hdisplay + hover; in amdgpu_panel_mode_fixup()
189 adjusted_mode->hsync_end = adjusted_mode->hsync_start + hsync_width; in amdgpu_panel_mode_fixup()
191 adjusted_mode->vtotal = native_mode->vdisplay + vblank; in amdgpu_panel_mode_fixup()
192 adjusted_mode->vsync_start = native_mode->vdisplay + vover; in amdgpu_panel_mode_fixup()
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/radeon/
H A Dradeon_encoders.c329 struct drm_display_mode *adjusted_mode) in radeon_panel_mode_fixup() argument
342 adjusted_mode->clock = native_mode->clock; in radeon_panel_mode_fixup()
343 adjusted_mode->flags = native_mode->flags; in radeon_panel_mode_fixup()
346 adjusted_mode->hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup()
347 adjusted_mode->vdisplay = native_mode->vdisplay; in radeon_panel_mode_fixup()
350 adjusted_mode->htotal = native_mode->hdisplay + hblank; in radeon_panel_mode_fixup()
351 adjusted_mode->hsync_start = native_mode->hdisplay + hover; in radeon_panel_mode_fixup()
352 adjusted_mode->hsync_end = adjusted_mode->hsync_start + hsync_width; in radeon_panel_mode_fixup()
354 adjusted_mode->vtotal = native_mode->vdisplay + vblank; in radeon_panel_mode_fixup()
355 adjusted_mode->vsync_start = native_mode->vdisplay + vover; in radeon_panel_mode_fixup()
[all …]
H A Dradeon_atombios_crtc.c46 struct drm_display_mode *adjusted_mode) in atombios_overscan_setup() argument
61 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in atombios_overscan_setup()
62 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in atombios_overscan_setup()
63 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in atombios_overscan_setup()
64 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in atombios_overscan_setup()
67 a1 = mode->crtc_vdisplay * adjusted_mode->crtc_hdisplay; in atombios_overscan_setup()
68 a2 = adjusted_mode->crtc_vdisplay * mode->crtc_hdisplay; in atombios_overscan_setup()
71 …args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in atombios_overscan_setup()
72 …args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2… in atombios_overscan_setup()
74 … args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); in atombios_overscan_setup()
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/i915/display/
H A Dvlv_dsi.c270 struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode; in intel_dsi_compute_config() local
277 intel_fixed_panel_mode(fixed_mode, adjusted_mode); in intel_dsi_compute_config()
287 if (adjusted_mode->flags & DRM_MODE_FLAG_DBLSCAN) in intel_dsi_compute_config()
291 adjusted_mode->flags = 0; in intel_dsi_compute_config()
300 adjusted_mode->private_flags |= in intel_dsi_compute_config()
1038 struct drm_display_mode *adjusted_mode = in bxt_dsi_get_pipe_config() local
1039 &pipe_config->hw.adjusted_mode; in bxt_dsi_get_pipe_config()
1052 adjusted_mode_sw = &crtc->config->hw.adjusted_mode; in bxt_dsi_get_pipe_config()
1070 adjusted_mode->private_flags |= in bxt_dsi_get_pipe_config()
1074 adjusted_mode->crtc_hdisplay = in bxt_dsi_get_pipe_config()
[all …]
H A Dintel_panel.c52 struct drm_display_mode *adjusted_mode) in intel_fixed_panel_mode() argument
54 drm_mode_copy(adjusted_mode, fixed_mode); in intel_fixed_panel_mode()
56 drm_mode_set_crtcinfo(adjusted_mode, 0); in intel_fixed_panel_mode()
186 const struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode; in intel_pch_panel_fitting() local
190 if (adjusted_mode->crtc_hdisplay == pipe_config->pipe_src_w && in intel_pch_panel_fitting()
191 adjusted_mode->crtc_vdisplay == pipe_config->pipe_src_h && in intel_pch_panel_fitting()
199 x = (adjusted_mode->crtc_hdisplay - width + 1)/2; in intel_pch_panel_fitting()
200 y = (adjusted_mode->crtc_vdisplay - height + 1)/2; in intel_pch_panel_fitting()
206 u32 scaled_width = adjusted_mode->crtc_hdisplay in intel_pch_panel_fitting()
209 * adjusted_mode->crtc_vdisplay; in intel_pch_panel_fitting()
[all …]
H A Dicl_dsi.c284 const struct drm_display_mode *adjusted_mode = in configure_dual_link_mode() local
285 &pipe_config->hw.adjusted_mode; in configure_dual_link_mode()
287 u16 hactive = adjusted_mode->crtc_hdisplay; in configure_dual_link_mode()
798 const struct drm_display_mode *adjusted_mode = in gen11_dsi_set_transcoder_timings() local
799 &crtc_state->hw.adjusted_mode; in gen11_dsi_set_transcoder_timings()
822 hactive = adjusted_mode->crtc_hdisplay; in gen11_dsi_set_transcoder_timings()
823 htotal = DIV_ROUND_UP(adjusted_mode->crtc_htotal * mul, div); in gen11_dsi_set_transcoder_timings()
824 hsync_start = DIV_ROUND_UP(adjusted_mode->crtc_hsync_start * mul, div); in gen11_dsi_set_transcoder_timings()
825 hsync_end = DIV_ROUND_UP(adjusted_mode->crtc_hsync_end * mul, div); in gen11_dsi_set_transcoder_timings()
827 hback_porch = (adjusted_mode->crtc_htotal - in gen11_dsi_set_transcoder_timings()
[all …]
H A Ddvo_ns2501.c556 const struct drm_display_mode *adjusted_mode) in ns2501_mode_set() argument
581 adjusted_mode->crtc_clock, in ns2501_mode_set()
582 adjusted_mode->crtc_hdisplay, in ns2501_mode_set()
583 adjusted_mode->crtc_hblank_start, in ns2501_mode_set()
584 adjusted_mode->crtc_hblank_end, in ns2501_mode_set()
585 adjusted_mode->crtc_hsync_start, in ns2501_mode_set()
586 adjusted_mode->crtc_hsync_end, in ns2501_mode_set()
587 adjusted_mode->crtc_htotal, in ns2501_mode_set()
588 adjusted_mode->crtc_hskew, in ns2501_mode_set()
589 adjusted_mode->crtc_vdisplay, in ns2501_mode_set()
[all …]
H A Dintel_dvo.c186 pipe_config->hw.adjusted_mode.flags |= flags; in intel_dvo_get_config()
188 pipe_config->hw.adjusted_mode.crtc_clock = pipe_config->port_clock; in intel_dvo_get_config()
216 &pipe_config->hw.adjusted_mode); in intel_enable_dvo()
261 struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode; in intel_dvo_compute_config() local
270 intel_fixed_panel_mode(fixed_mode, adjusted_mode); in intel_dvo_compute_config()
272 if (adjusted_mode->flags & DRM_MODE_FLAG_DBLSCAN) in intel_dvo_compute_config()
286 const struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode; in intel_dvo_pre_enable() local
301 if (adjusted_mode->flags & DRM_MODE_FLAG_PHSYNC) in intel_dvo_pre_enable()
303 if (adjusted_mode->flags & DRM_MODE_FLAG_PVSYNC) in intel_dvo_pre_enable()
310 (adjusted_mode->crtc_hdisplay << DVO_SRCDIM_HORIZONTAL_SHIFT) | in intel_dvo_pre_enable()
[all …]
H A Dintel_crt.c140 pipe_config->hw.adjusted_mode.flags |= intel_crt_get_flags(encoder); in intel_crt_get_config()
142 pipe_config->hw.adjusted_mode.crtc_clock = pipe_config->port_clock; in intel_crt_get_config()
152 pipe_config->hw.adjusted_mode.flags &= ~(DRM_MODE_FLAG_PHSYNC | in hsw_crt_get_config()
156 pipe_config->hw.adjusted_mode.flags |= intel_crt_get_flags(encoder); in hsw_crt_get_config()
158 pipe_config->hw.adjusted_mode.crtc_clock = lpt_get_iclkip(dev_priv); in hsw_crt_get_config()
170 const struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode; in intel_crt_set_dpms() local
178 if (adjusted_mode->flags & DRM_MODE_FLAG_PHSYNC) in intel_crt_set_dpms()
180 if (adjusted_mode->flags & DRM_MODE_FLAG_PVSYNC) in intel_crt_set_dpms()
373 struct drm_display_mode *adjusted_mode = in intel_crt_compute_config() local
374 &pipe_config->hw.adjusted_mode; in intel_crt_compute_config()
[all …]
H A Dintel_tv.c1092 struct drm_display_mode *adjusted_mode = in intel_tv_get_config() local
1093 &pipe_config->hw.adjusted_mode; in intel_tv_get_config()
1097 int hdisplay = adjusted_mode->crtc_hdisplay; in intel_tv_get_config()
1098 int vdisplay = adjusted_mode->crtc_vdisplay; in intel_tv_get_config()
1160 adjusted_mode->crtc_clock = mode.clock; in intel_tv_get_config()
1161 if (adjusted_mode->flags & DRM_MODE_FLAG_INTERLACE) in intel_tv_get_config()
1162 adjusted_mode->crtc_clock /= 2; in intel_tv_get_config()
1166 adjusted_mode->private_flags |= in intel_tv_get_config()
1195 struct drm_display_mode *adjusted_mode = in intel_tv_compute_config() local
1196 &pipe_config->hw.adjusted_mode; in intel_tv_compute_config()
[all …]
H A Dintel_lspcon.c196 const struct drm_display_mode *adjusted_mode = in lspcon_ycbcr420_config() local
197 &crtc_state->hw.adjusted_mode; in lspcon_ycbcr420_config()
199 if (drm_mode_is_420_only(info, adjusted_mode) && in lspcon_ycbcr420_config()
482 const struct drm_display_mode *adjusted_mode = in lspcon_set_infoframes() local
483 &crtc_state->hw.adjusted_mode; in lspcon_set_infoframes()
494 adjusted_mode); in lspcon_set_infoframes()
511 adjusted_mode, in lspcon_set_infoframes()
H A Dintel_lvds.c143 pipe_config->hw.adjusted_mode.flags |= flags; in intel_lvds_get_config()
156 pipe_config->hw.adjusted_mode.crtc_clock = pipe_config->port_clock; in intel_lvds_get_config()
239 const struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode; in intel_pre_enable_lvds() local
302 if (adjusted_mode->flags & DRM_MODE_FLAG_NHSYNC) in intel_pre_enable_lvds()
304 if (adjusted_mode->flags & DRM_MODE_FLAG_NVSYNC) in intel_pre_enable_lvds()
400 struct drm_display_mode *adjusted_mode = &pipe_config->hw.adjusted_mode; in intel_lvds_compute_config() local
430 adjusted_mode); in intel_lvds_compute_config()
432 if (adjusted_mode->flags & DRM_MODE_FLAG_DBLSCAN) in intel_lvds_compute_config()
H A Ddvo_ivch.c404 const struct drm_display_mode *adjusted_mode) in ivch_mode_set() argument
423 if (mode->hdisplay != adjusted_mode->crtc_hdisplay || in ivch_mode_set()
424 mode->vdisplay != adjusted_mode->crtc_vdisplay) { in ivch_mode_set()
430 (adjusted_mode->crtc_hdisplay - 1)) >> 2; in ivch_mode_set()
432 (adjusted_mode->crtc_vdisplay - 1)) >> 2; in ivch_mode_set()
/netbsd-src/sys/arch/arm/ti/
H A Dti_lcdc.c137 const struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode) in tilcdc_mode_fixup() argument
140 adjusted_mode->hskew = mode->hsync_end - mode->hsync_start; in tilcdc_mode_fixup()
141 adjusted_mode->flags |= DRM_MODE_FLAG_HSKEW; in tilcdc_mode_fixup()
143 adjusted_mode->flags &= ~(DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_PHSYNC); in tilcdc_mode_fixup()
145 adjusted_mode->flags |= DRM_MODE_FLAG_PHSYNC; in tilcdc_mode_fixup()
147 adjusted_mode->flags |= DRM_MODE_FLAG_NHSYNC; in tilcdc_mode_fixup()
155 struct drm_display_mode *adjusted_mode, int x, int y, in tilcdc_mode_set() argument
163 const u_int hspw = adjusted_mode->crtc_hsync_end - adjusted_mode->crtc_hsync_start; in tilcdc_mode_set()
164 const u_int hbp = adjusted_mode->crtc_htotal - adjusted_mode->crtc_hsync_end; in tilcdc_mode_set()
165 const u_int hfp = adjusted_mode->crtc_hsync_start - adjusted_mode->crtc_hdisplay; in tilcdc_mode_set()
[all …]
/netbsd-src/sys/arch/arm/rockchip/
H A Drk_vop.c459 struct drm_display_mode *adjusted_mode = &crtc->state->adjusted_mode; in rk_vop_crtc_atomic_enable() local
467 const u_int hactive = adjusted_mode->hdisplay; in rk_vop_crtc_atomic_enable()
468 const u_int hsync_len = adjusted_mode->hsync_end - adjusted_mode->hsync_start; in rk_vop_crtc_atomic_enable()
469 const u_int hback_porch = adjusted_mode->htotal - adjusted_mode->hsync_end; in rk_vop_crtc_atomic_enable()
470 const u_int hfront_porch = adjusted_mode->hsync_start - adjusted_mode->hdisplay; in rk_vop_crtc_atomic_enable()
472 const u_int vactive = adjusted_mode->vdisplay; in rk_vop_crtc_atomic_enable()
473 const u_int vsync_len = adjusted_mode->vsync_end - adjusted_mode->vsync_start; in rk_vop_crtc_atomic_enable()
474 const u_int vback_porch = adjusted_mode->vtotal - adjusted_mode->vsync_end; in rk_vop_crtc_atomic_enable()
475 const u_int vfront_porch = adjusted_mode->vsync_start - adjusted_mode->vdisplay; in rk_vop_crtc_atomic_enable()
477 error = clk_set_rate(sc->sc_dclk, adjusted_mode->clock * 1000); in rk_vop_crtc_atomic_enable()
[all …]
H A Drk_dwhdmi.c200 const struct drm_display_mode *mode, const struct drm_display_mode *adjusted_mode) in rk_dwhdmi_mode_set() argument
206 error = clk_set_rate(sc->sc_clk_vpll, adjusted_mode->clock * 1000); in rk_dwhdmi_mode_set()
209 adjusted_mode->clock * 1000, error); in rk_dwhdmi_mode_set()
212 dwhdmi_phy_mode_set(dsc, mode, adjusted_mode); in rk_dwhdmi_mode_set()
/netbsd-src/sys/external/bsd/drm2/dist/drm/ast/
H A Dast_mode.c97 struct drm_display_mode *adjusted_mode, in ast_get_vbios_mode_info() argument
196 adjusted_mode->crtc_htotal = vbios_mode->enh_table->ht; in ast_get_vbios_mode_info()
197 adjusted_mode->crtc_hblank_start = vbios_mode->enh_table->hde + hborder; in ast_get_vbios_mode_info()
198 adjusted_mode->crtc_hblank_end = vbios_mode->enh_table->ht - hborder; in ast_get_vbios_mode_info()
199 adjusted_mode->crtc_hsync_start = vbios_mode->enh_table->hde + hborder + in ast_get_vbios_mode_info()
201 adjusted_mode->crtc_hsync_end = (vbios_mode->enh_table->hde + hborder + in ast_get_vbios_mode_info()
205 adjusted_mode->crtc_vtotal = vbios_mode->enh_table->vt; in ast_get_vbios_mode_info()
206 adjusted_mode->crtc_vblank_start = vbios_mode->enh_table->vde + vborder; in ast_get_vbios_mode_info()
207 adjusted_mode->crtc_vblank_end = vbios_mode->enh_table->vt - vborder; in ast_get_vbios_mode_info()
208 adjusted_mode->crtc_vsync_start = vbios_mode->enh_table->vde + vborder + in ast_get_vbios_mode_info()
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/include/drm/
H A Ddrm_encoder_slave.h60 struct drm_display_mode *adjusted_mode);
65 struct drm_display_mode *adjusted_mode);
172 struct drm_display_mode *adjusted_mode);
177 struct drm_display_mode *adjusted_mode);
H A Ddrm_bridge.h137 struct drm_display_mode *adjusted_mode);
203 const struct drm_display_mode *adjusted_mode);
475 struct drm_display_mode *adjusted_mode);
483 const struct drm_display_mode *adjusted_mode);
H A Ddrm_modeset_helper_vtables.h191 struct drm_display_mode *adjusted_mode);
209 struct drm_display_mode *adjusted_mode, int x, int y,
569 struct drm_display_mode *adjusted_mode);
625 struct drm_display_mode *adjusted_mode);
/netbsd-src/sys/external/bsd/drm2/dist/drm/
H A Ddrm_encoder_slave.c146 struct drm_display_mode *adjusted_mode) in drm_i2c_encoder_mode_fixup() argument
151 return get_slave_funcs(encoder)->mode_fixup(encoder, mode, adjusted_mode); in drm_i2c_encoder_mode_fixup()
169 struct drm_display_mode *adjusted_mode) in drm_i2c_encoder_mode_set() argument
171 get_slave_funcs(encoder)->mode_set(encoder, mode, adjusted_mode); in drm_i2c_encoder_mode_set()
H A Ddrm_crtc_helper.c287 struct drm_display_mode *adjusted_mode, saved_mode, saved_hwmode; in drm_crtc_helper_set_mode() local
304 adjusted_mode = drm_mode_duplicate(dev, mode); in drm_crtc_helper_set_mode()
305 if (!adjusted_mode) { in drm_crtc_helper_set_mode()
338 adjusted_mode))) { in drm_crtc_helper_set_mode()
347 adjusted_mode))) { in drm_crtc_helper_set_mode()
354 crtc->hwmode = *adjusted_mode; in drm_crtc_helper_set_mode()
378 ret = !crtc_funcs->mode_set(crtc, mode, adjusted_mode, x, y, old_fb); in drm_crtc_helper_set_mode()
394 encoder_funcs->mode_set(encoder, mode, adjusted_mode); in drm_crtc_helper_set_mode()
421 drm_mode_destroy(dev, adjusted_mode); in drm_crtc_helper_set_mode()
/netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/dispnv04/
H A Dnouveau_dispnv04_dfp.c189 struct drm_display_mode *adjusted_mode) in nv04_dfp_mode_fixup() argument
198 nv_encoder->mode = *adjusted_mode; in nv04_dfp_mode_fixup()
202 adjusted_mode->clock = nv_connector->native_mode->clock; in nv04_dfp_mode_fixup()
286 struct drm_display_mode *adjusted_mode) in nv04_dfp_mode_set() argument
339 else if (adjusted_mode->hdisplay == output_mode->hdisplay && in nv04_dfp_mode_set()
340 adjusted_mode->vdisplay == output_mode->vdisplay) /* native mode */ in nv04_dfp_mode_set()
379 mode_ratio = (1 << 12) * adjusted_mode->hdisplay / adjusted_mode->vdisplay; in nv04_dfp_mode_set()
393 scale = (1 << 12) * adjusted_mode->vdisplay / output_mode->vdisplay; in nv04_dfp_mode_set()
409 scale = (1 << 12) * adjusted_mode->hdisplay / output_mode->hdisplay; in nv04_dfp_mode_set()
H A Dnouveau_dispnv04_tvnv04.c147 struct drm_display_mode *adjusted_mode) in nv04_tv_mode_set() argument
153 regp->tv_htotal = adjusted_mode->htotal; in nv04_tv_mode_set()
154 regp->tv_vtotal = adjusted_mode->vtotal; in nv04_tv_mode_set()
166 get_slave_funcs(encoder)->mode_set(encoder, mode, adjusted_mode); in nv04_tv_mode_set()
/netbsd-src/sys/external/bsd/drm2/i2c/
H A Ddrm_encoder_slave.c239 struct drm_display_mode *adjusted_mode) in drm_i2c_encoder_mode_fixup() argument
243 adjusted_mode); in drm_i2c_encoder_mode_fixup()
248 struct drm_display_mode *mode, struct drm_display_mode *adjusted_mode) in drm_i2c_encoder_mode_set() argument
251 return (*slave_funcs(encoder)->mode_set)(encoder, mode, adjusted_mode); in drm_i2c_encoder_mode_set()

1234