Home
last modified time | relevance | path

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

123

/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_encoders.c165 struct drm_display_mode *adjusted_mode) in amdgpu_panel_mode_fixup() argument
176 adjusted_mode->clock = native_mode->clock; in amdgpu_panel_mode_fixup()
177 adjusted_mode->flags = native_mode->flags; in amdgpu_panel_mode_fixup()
179 adjusted_mode->hdisplay = native_mode->hdisplay; in amdgpu_panel_mode_fixup()
180 adjusted_mode->vdisplay = native_mode->vdisplay; in amdgpu_panel_mode_fixup()
182 adjusted_mode->htotal = native_mode->hdisplay + hblank; in amdgpu_panel_mode_fixup()
183 adjusted_mode->hsync_start = native_mode->hdisplay + hover; in amdgpu_panel_mode_fixup()
184 adjusted_mode->hsync_end = adjusted_mode->hsync_start + hsync_width; in amdgpu_panel_mode_fixup()
186 adjusted_mode->vtotal = native_mode->vdisplay + vblank; in amdgpu_panel_mode_fixup()
187 adjusted_mode->vsync_start = native_mode->vdisplay + vover; in amdgpu_panel_mode_fixup()
[all …]
H A Datombios_crtc.c40 struct drm_display_mode *adjusted_mode) in amdgpu_atombios_crtc_overscan_setup() argument
55 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup()
56 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup()
57 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup()
58 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup()
61 a1 = mode->crtc_vdisplay * adjusted_mode->crtc_hdisplay; in amdgpu_atombios_crtc_overscan_setup()
62 a2 = adjusted_mode->crtc_vdisplay * mode->crtc_hdisplay; in amdgpu_atombios_crtc_overscan_setup()
65 …args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in amdgpu_atombios_crtc_overscan_setup()
66 …args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2… in amdgpu_atombios_crtc_overscan_setup()
68 … args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); in amdgpu_atombios_crtc_overscan_setup()
[all …]
H A Datombios_crtc.h29 struct drm_display_mode *adjusted_mode);
H A Datombios_encoders.h44 struct drm_display_mode *adjusted_mode);
/linux/drivers/gpu/drm/radeon/
H A Dradeon_encoders.c321 struct drm_display_mode *adjusted_mode) in radeon_panel_mode_fixup() argument
334 adjusted_mode->clock = native_mode->clock; in radeon_panel_mode_fixup()
335 adjusted_mode->flags = native_mode->flags; in radeon_panel_mode_fixup()
338 adjusted_mode->hdisplay = native_mode->hdisplay; in radeon_panel_mode_fixup()
339 adjusted_mode->vdisplay = native_mode->vdisplay; in radeon_panel_mode_fixup()
342 adjusted_mode->htotal = native_mode->hdisplay + hblank; in radeon_panel_mode_fixup()
343 adjusted_mode->hsync_start = native_mode->hdisplay + hover; in radeon_panel_mode_fixup()
344 adjusted_mode->hsync_end = adjusted_mode->hsync_start + hsync_width; in radeon_panel_mode_fixup()
346 adjusted_mode->vtotal = native_mode->vdisplay + vblank; in radeon_panel_mode_fixup()
347 adjusted_mode->vsync_start = native_mode->vdisplay + vover; in radeon_panel_mode_fixup()
[all …]
H A Dradeon_legacy_encoders.c188 struct drm_display_mode *adjusted_mode) in radeon_legacy_lvds_mode_set() argument
206 radeon_encoder->pixel_clock = adjusted_mode->clock; in radeon_legacy_lvds_mode_set()
258 struct drm_display_mode *adjusted_mode) in radeon_legacy_mode_fixup() argument
264 drm_mode_set_crtcinfo(adjusted_mode, 0); in radeon_legacy_mode_fixup()
268 radeon_panel_mode_fixup(encoder, adjusted_mode); in radeon_legacy_mode_fixup()
579 struct drm_display_mode *adjusted_mode) in radeon_legacy_primary_dac_mode_set() argument
776 struct drm_display_mode *adjusted_mode) in radeon_legacy_tmds_int_mode_set() argument
941 struct drm_display_mode *adjusted_mode) in radeon_legacy_tmds_ext_mode_set() argument
952 radeon_encoder->pixel_clock = adjusted_mode->clock; in radeon_legacy_tmds_ext_mode_set()
1147 struct drm_display_mode *adjusted_mode) in radeon_legacy_tv_dac_mode_set() argument
[all …]
H A Datombios_encoders.c298 struct drm_display_mode *adjusted_mode) in radeon_atom_mode_fixup() argument
306 drm_mode_set_crtcinfo(adjusted_mode, 0); in radeon_atom_mode_fixup()
311 adjusted_mode->crtc_vsync_start = adjusted_mode->crtc_vdisplay + 2; in radeon_atom_mode_fixup()
315 adjusted_mode->crtc_vsync_start++; in radeon_atom_mode_fixup()
319 radeon_panel_mode_fixup(encoder, adjusted_mode); in radeon_atom_mode_fixup()
326 radeon_atom_get_tv_timings(rdev, 0, adjusted_mode); in radeon_atom_mode_fixup()
328 radeon_atom_get_tv_timings(rdev, 1, adjusted_mode); in radeon_atom_mode_fixup()
331 radeon_panel_mode_fixup(encoder, adjusted_mode); in radeon_atom_mode_fixup()
338 radeon_dp_set_link_config(connector, adjusted_mode); in radeon_atom_mode_fixup()
2210 struct drm_display_mode *adjusted_mode) in radeon_atom_encoder_mode_set() argument
[all …]
/linux/drivers/gpu/drm/i915/display/
H A Dintel_vrr.c195 struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode; in is_cmrr_frac_required() local
202 drm_mode_vrefresh(adjusted_mode) * FIXED_POINT_PRECISION; in is_cmrr_frac_required()
204 adjusted_mode->crtc_clock * 1000 / adjusted_mode->crtc_htotal; in is_cmrr_frac_required()
206 pixel_clock_per_line * FIXED_POINT_PRECISION / adjusted_mode->crtc_vtotal; in is_cmrr_frac_required()
219 struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode; in cmrr_get_vtotal() local
221 desired_refresh_rate = drm_mode_vrefresh(adjusted_mode); in cmrr_get_vtotal()
228 crtc_state->cmrr.cmrr_n = mul_u32_u32(desired_refresh_rate * adjusted_mode->crtc_htotal, in cmrr_get_vtotal()
230 vtotal = DIV_ROUND_UP_ULL(mul_u32_u32(adjusted_mode->crtc_clock * 1000, multiplier_n), in cmrr_get_vtotal()
232 adjusted_pixel_rate = mul_u32_u32(adjusted_mode->crtc_clock * 1000, multiplier_m); in cmrr_get_vtotal()
271 crtc_state->vrr.vmax = crtc_state->hw.adjusted_mode.crtc_vtotal; in intel_vrr_compute_fixed_rr_timings()
[all …]
H A 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 …]
H A Dintel_dp_mst.c148 const struct drm_display_mode *adjusted_mode = in intel_dp_mst_max_dpt_bpp() local
149 &crtc_state->hw.adjusted_mode; in intel_dp_mst_max_dpt_bpp()
176 mul_u32_u32(adjusted_mode->crtc_clock, 1030000)); in intel_dp_mst_max_dpt_bpp()
182 const struct drm_display_mode *adjusted_mode = in intel_dp_mst_bw_overhead() local
183 &crtc_state->hw.adjusted_mode; in intel_dp_mst_bw_overhead()
191 adjusted_mode->hdisplay, in intel_dp_mst_bw_overhead()
202 const struct drm_display_mode *adjusted_mode = in intel_dp_mst_compute_m_n() local
203 &crtc_state->hw.adjusted_mode; in intel_dp_mst_compute_m_n()
207 adjusted_mode->crtc_clock, in intel_dp_mst_compute_m_n()
230 const struct drm_display_mode *adjusted_mode = in intel_dp_mst_dsc_get_slice_count() local
[all …]
H A Ddvo_ivch.c401 const struct drm_display_mode *adjusted_mode) in ivch_mode_set() argument
420 if (mode->hdisplay != adjusted_mode->crtc_hdisplay || in ivch_mode_set()
421 mode->vdisplay != adjusted_mode->crtc_vdisplay) { in ivch_mode_set()
427 (adjusted_mode->crtc_hdisplay - 1)) >> 2; in ivch_mode_set()
429 (adjusted_mode->crtc_vdisplay - 1)) >> 2; in ivch_mode_set()
/linux/drivers/gpu/drm/mediatek/
H A Dmtk_hdmi_common.c219 struct drm_display_mode *adjusted_mode) in mtk_hdmi_bridge_mode_fixup() argument
227 const struct drm_display_mode *adjusted_mode) in mtk_hdmi_bridge_mode_set() argument
232 adjusted_mode->name, adjusted_mode->hdisplay); in mtk_hdmi_bridge_mode_set()
234 adjusted_mode->hsync_start, adjusted_mode->hsync_end, in mtk_hdmi_bridge_mode_set()
235 adjusted_mode->htotal); in mtk_hdmi_bridge_mode_set()
237 adjusted_mode->hskew, adjusted_mode->vdisplay); in mtk_hdmi_bridge_mode_set()
239 adjusted_mode->vsync_start, adjusted_mode->vsync_end, in mtk_hdmi_bridge_mode_set()
240 adjusted_mode->vtotal); in mtk_hdmi_bridge_mode_set()
242 adjusted_mode->vscan, adjusted_mode->flags); in mtk_hdmi_bridge_mode_set()
244 drm_mode_copy(&hdmi->mode, adjusted_mode); in mtk_hdmi_bridge_mode_set()
H A Dmtk_hdmi_common.h192 struct drm_display_mode *adjusted_mode);
195 const struct drm_display_mode *adjusted_mode);
/linux/drivers/gpu/drm/gma500/
H A Dpsb_intel_display.c96 struct drm_display_mode *adjusted_mode, in psb_intel_crtc_mode_set() argument
149 ok = limit->find_pll(limit, crtc, adjusted_mode->clock, refclk, in psb_intel_crtc_mode_set()
153 adjusted_mode->clock, clock.dot); in psb_intel_crtc_mode_set()
167 adjusted_mode->clock / mode->clock; in psb_intel_crtc_mode_set()
268 REG_WRITE(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in psb_intel_crtc_mode_set()
269 ((adjusted_mode->crtc_htotal - 1) << 16)); in psb_intel_crtc_mode_set()
270 REG_WRITE(map->hblank, (adjusted_mode->crtc_hblank_start - 1) | in psb_intel_crtc_mode_set()
271 ((adjusted_mode->crtc_hblank_end - 1) << 16)); in psb_intel_crtc_mode_set()
272 REG_WRITE(map->hsync, (adjusted_mode->crtc_hsync_start - 1) | in psb_intel_crtc_mode_set()
273 ((adjusted_mode->crtc_hsync_end - 1) << 16)); in psb_intel_crtc_mode_set()
[all …]
H A Dcdv_intel_display.c574 struct drm_display_mode *adjusted_mode, in cdv_intel_crtc_mode_set() argument
654 drm_mode_debug_printmodeline(adjusted_mode); in cdv_intel_crtc_mode_set()
658 ok = limit->find_pll(limit, crtc, adjusted_mode->clock, refclk, in cdv_intel_crtc_mode_set()
662 adjusted_mode->clock, clock.dot); in cdv_intel_crtc_mode_set()
669 cdv_intel_dp_set_m_n(crtc, mode, adjusted_mode); in cdv_intel_crtc_mode_set()
780 int sdvo_pixel_multiply = adjusted_mode->clock / mode->clock; in cdv_intel_crtc_mode_set()
784 REG_WRITE(map->htotal, (adjusted_mode->crtc_hdisplay - 1) | in cdv_intel_crtc_mode_set()
785 ((adjusted_mode->crtc_htotal - 1) << 16)); in cdv_intel_crtc_mode_set()
786 REG_WRITE(map->hblank, (adjusted_mode->crtc_hblank_start - 1) | in cdv_intel_crtc_mode_set()
787 ((adjusted_mode->crtc_hblank_end - 1) << 16)); in cdv_intel_crtc_mode_set()
[all …]
/linux/drivers/gpu/drm/nouveau/include/dispnv04/i2c/
H A Dencoder_i2c.h81 struct drm_display_mode *adjusted_mode);
94 struct drm_display_mode *adjusted_mode);
230 struct drm_display_mode *adjusted_mode);
/linux/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_encoder.c21 struct drm_display_mode *adjusted_mode) in mdp5_vid_encoder_mode_set() argument
34 mode = adjusted_mode; in mdp5_vid_encoder_mode_set()
179 struct drm_display_mode *adjusted_mode) in mdp5_encoder_mode_set() argument
185 mdp5_cmd_encoder_mode_set(encoder, mode, adjusted_mode); in mdp5_encoder_mode_set()
187 mdp5_vid_encoder_mode_set(encoder, mode, adjusted_mode); in mdp5_encoder_mode_set()
208 mdp5_encoder_mode_set(encoder, &cstate->mode, &cstate->adjusted_mode); in mdp5_encoder_enable()
H A Dmdp5_cmd_encoder.c115 struct drm_display_mode *adjusted_mode) in mdp5_cmd_encoder_mode_set() argument
117 mode = adjusted_mode; in mdp5_cmd_encoder_mode_set()
/linux/drivers/gpu/drm/nouveau/dispnv04/
H A Dtvnv04.c142 struct drm_display_mode *adjusted_mode) in nv04_tv_mode_set() argument
148 regp->tv_htotal = adjusted_mode->htotal; in nv04_tv_mode_set()
149 regp->tv_vtotal = adjusted_mode->vtotal; in nv04_tv_mode_set()
161 get_encoder_i2c_funcs(encoder)->mode_set(encoder, mode, adjusted_mode); in nv04_tv_mode_set()
H A Ddfp.c184 struct drm_display_mode *adjusted_mode) in nv04_dfp_mode_fixup() argument
194 nv_encoder->mode = *adjusted_mode; in nv04_dfp_mode_fixup()
198 adjusted_mode->clock = nv_connector->native_mode->clock; in nv04_dfp_mode_fixup()
282 struct drm_display_mode *adjusted_mode) in nv04_dfp_mode_set() argument
335 else if (adjusted_mode->hdisplay == output_mode->hdisplay && in nv04_dfp_mode_set()
336 adjusted_mode->vdisplay == output_mode->vdisplay) /* native mode */ in nv04_dfp_mode_set()
375 mode_ratio = (1 << 12) * adjusted_mode->hdisplay / adjusted_mode->vdisplay; in nv04_dfp_mode_set()
389 scale = (1 << 12) * adjusted_mode->vdisplay / output_mode->vdisplay; in nv04_dfp_mode_set()
405 scale = (1 << 12) * adjusted_mode->hdisplay / output_mode->hdisplay; in nv04_dfp_mode_set()
H A Dnouveau_i2c_encoder.c103 struct drm_display_mode *adjusted_mode) in nouveau_i2c_encoder_mode_fixup() argument
108 return get_encoder_i2c_funcs(encoder)->mode_fixup(encoder, mode, adjusted_mode); in nouveau_i2c_encoder_mode_fixup()
/linux/drivers/gpu/drm/omapdrm/
H A Domap_encoder.c74 struct drm_display_mode *adjusted_mode) in omap_encoder_mode_set() argument
88 drm_display_mode_to_videomode(adjusted_mode, &vm); in omap_encoder_mode_set()
/linux/drivers/gpu/drm/bridge/
H A Dssd2825.c534 mode = &crtc_state->adjusted_mode; in ssd2825_bridge_atomic_pre_enable()
659 struct drm_display_mode *adjusted_mode) in ssd2825_mode_fixup() argument
663 if (!(adjusted_mode->flags & in ssd2825_mode_fixup()
665 adjusted_mode->flags |= DRM_MODE_FLAG_PHSYNC; in ssd2825_mode_fixup()
667 if (!(adjusted_mode->flags & in ssd2825_mode_fixup()
669 adjusted_mode->flags |= DRM_MODE_FLAG_PVSYNC; in ssd2825_mode_fixup()
/linux/drivers/gpu/drm/msm/disp/mdp4/
H A Dmdp4_dsi_encoder.c31 struct drm_display_mode *adjusted_mode) in mdp4_dsi_encoder_mode_set() argument
38 mode = adjusted_mode; in mdp4_dsi_encoder_mode_set()
H A Dmdp4_dtv_encoder.c30 struct drm_display_mode *adjusted_mode) in mdp4_dtv_encoder_mode_set() argument
38 mode = adjusted_mode; in mdp4_dtv_encoder_mode_set()

123