Home
last modified time | relevance | path

Searched refs:crtc_state (Results 1 – 25 of 128) sorted by relevance

123456

/Linux-v4.19/drivers/gpu/drm/i915/
Dintel_atomic.c113 struct drm_crtc_state *crtc_state; in intel_digital_connector_atomic_check() local
120 crtc_state = drm_atomic_get_new_crtc_state(new_state->state, new_state->crtc); in intel_digital_connector_atomic_check()
131 crtc_state->mode_changed = true; in intel_digital_connector_atomic_check()
170 struct intel_crtc_state *crtc_state; in intel_crtc_duplicate_state() local
172 crtc_state = kmemdup(crtc->state, sizeof(*crtc_state), GFP_KERNEL); in intel_crtc_duplicate_state()
173 if (!crtc_state) in intel_crtc_duplicate_state()
176 __drm_atomic_helper_crtc_duplicate_state(crtc, &crtc_state->base); in intel_crtc_duplicate_state()
178 crtc_state->update_pipe = false; in intel_crtc_duplicate_state()
179 crtc_state->disable_lp_wm = false; in intel_crtc_duplicate_state()
180 crtc_state->disable_cxsr = false; in intel_crtc_duplicate_state()
[all …]
Dintel_ddi.c963 const struct intel_crtc_state *crtc_state) in intel_prepare_dp_ddi_buffers() argument
971 if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_ANALOG)) in intel_prepare_dp_ddi_buffers()
974 else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_EDP)) in intel_prepare_dp_ddi_buffers()
1108 const struct intel_crtc_state *crtc_state) in hsw_fdi_link_train() argument
1117 intel_prepare_dp_ddi_buffers(encoder, crtc_state); in hsw_fdi_link_train()
1134 FDI_DP_PORT_WIDTH(crtc_state->fdi_lanes); in hsw_fdi_link_train()
1144 ddi_pll_sel = hsw_pll_to_ddi_pll_sel(crtc_state->shared_dpll); in hsw_fdi_link_train()
1164 ((crtc_state->fdi_lanes - 1) << 1) | in hsw_fdi_link_train()
1628 static int bxt_calc_pll_link(struct intel_crtc_state *crtc_state) in bxt_calc_pll_link() argument
1634 if (WARN_ON(!crtc_state->shared_dpll)) in bxt_calc_pll_link()
[all …]
Dintel_audio.c115 audio_config_dp_get_n_m(const struct intel_crtc_state *crtc_state, int rate) in audio_config_dp_get_n_m() argument
121 crtc_state->port_clock == dp_aud_n_m[i].clock) in audio_config_dp_get_n_m()
170 static u32 audio_config_hdmi_pixel_clock(const struct intel_crtc_state *crtc_state) in audio_config_hdmi_pixel_clock() argument
173 &crtc_state->base.adjusted_mode; in audio_config_hdmi_pixel_clock()
194 static int audio_config_hdmi_get_n(const struct intel_crtc_state *crtc_state, in audio_config_hdmi_get_n() argument
198 &crtc_state->base.adjusted_mode; in audio_config_hdmi_get_n()
259 const struct intel_crtc_state *crtc_state, in g4x_audio_codec_enable() argument
300 const struct intel_crtc_state *crtc_state) in hsw_dp_audio_config_update() argument
304 struct intel_crtc *crtc = to_intel_crtc(crtc_state->base.crtc); in hsw_dp_audio_config_update()
312 nm = audio_config_dp_get_n_m(crtc_state, rate); in hsw_dp_audio_config_update()
[all …]
Dintel_color.c135 static void ilk_load_csc_matrix(struct drm_crtc_state *crtc_state) in ilk_load_csc_matrix() argument
137 struct drm_crtc *crtc = crtc_state->crtc; in ilk_load_csc_matrix()
142 struct intel_crtc_state *intel_crtc_state = to_intel_crtc_state(crtc_state); in ilk_load_csc_matrix()
155 } else if (crtc_state->ctm) { in ilk_load_csc_matrix()
156 struct drm_color_ctm *ctm = crtc_state->ctm->data; in ilk_load_csc_matrix()
303 void intel_color_set_csc(struct drm_crtc_state *crtc_state) in intel_color_set_csc() argument
305 struct drm_device *dev = crtc_state->crtc->dev; in intel_color_set_csc()
309 dev_priv->display.load_csc_matrix(crtc_state); in intel_color_set_csc()
315 struct intel_crtc_state *crtc_state) in i9xx_load_luts_internal() argument
324 if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_DSI)) in i9xx_load_luts_internal()
[all …]
Dintel_dpll_mgr.c244 struct intel_crtc_state *crtc_state, in intel_find_shared_dpll() argument
253 shared_dpll = intel_atomic_get_shared_dpll_state(crtc_state->base.state); in intel_find_shared_dpll()
262 if (memcmp(&crtc_state->dpll_hw_state, in intel_find_shared_dpll()
264 sizeof(crtc_state->dpll_hw_state)) == 0) { in intel_find_shared_dpll()
290 struct intel_crtc_state *crtc_state) in intel_reference_shared_dpll() argument
293 struct intel_crtc *crtc = to_intel_crtc(crtc_state->base.crtc); in intel_reference_shared_dpll()
296 shared_dpll = intel_atomic_get_shared_dpll_state(crtc_state->base.state); in intel_reference_shared_dpll()
300 crtc_state->dpll_hw_state; in intel_reference_shared_dpll()
302 crtc_state->shared_dpll = pll; in intel_reference_shared_dpll()
427 ibx_get_dpll(struct intel_crtc *crtc, struct intel_crtc_state *crtc_state, in ibx_get_dpll() argument
[all …]
Dintel_hdmi.c152 const struct intel_crtc_state *crtc_state, in g4x_write_infoframe() argument
207 const struct intel_crtc_state *crtc_state, in ibx_write_infoframe() argument
214 struct intel_crtc *intel_crtc = to_intel_crtc(crtc_state->base.crtc); in ibx_write_infoframe()
267 const struct intel_crtc_state *crtc_state, in cpt_write_infoframe() argument
274 struct intel_crtc *intel_crtc = to_intel_crtc(crtc_state->base.crtc); in cpt_write_infoframe()
325 const struct intel_crtc_state *crtc_state, in vlv_write_infoframe() argument
332 struct intel_crtc *intel_crtc = to_intel_crtc(crtc_state->base.crtc); in vlv_write_infoframe()
384 const struct intel_crtc_state *crtc_state, in hsw_write_infoframe() argument
391 enum transcoder cpu_transcoder = crtc_state->cpu_transcoder; in hsw_write_infoframe()
447 const struct intel_crtc_state *crtc_state, in intel_write_infoframe() argument
[all …]
Dintel_drv.h259 struct intel_crtc_state *crtc_state);
300 void (*enable)(const struct intel_crtc_state *crtc_state,
970 const struct intel_crtc_state *crtc_state,
976 struct intel_crtc_state *crtc_state,
1173 const struct intel_crtc_state *crtc_state,
1178 const struct intel_crtc_state *crtc_state,
1407 const struct intel_crtc_state *crtc_state);
1410 void intel_ddi_enable_transcoder_func(const struct intel_crtc_state *crtc_state);
1411 void intel_ddi_disable_transcoder_func(const struct intel_crtc_state *crtc_state);
1412 void intel_ddi_enable_pipe_clock(const struct intel_crtc_state *crtc_state);
[all …]
Dintel_display.c159 struct intel_crtc_state *crtc_state);
648 const struct intel_crtc_state *crtc_state, in i9xx_select_p2_div() argument
651 struct drm_device *dev = crtc_state->base.crtc->dev; in i9xx_select_p2_div()
653 if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_LVDS)) { in i9xx_select_p2_div()
683 struct intel_crtc_state *crtc_state, in i9xx_find_best_dpll() argument
687 struct drm_device *dev = crtc_state->base.crtc->dev; in i9xx_find_best_dpll()
693 clock.p2 = i9xx_select_p2_div(limit, crtc_state, target); in i9xx_find_best_dpll()
741 struct intel_crtc_state *crtc_state, in pnv_find_best_dpll() argument
745 struct drm_device *dev = crtc_state->base.crtc->dev; in pnv_find_best_dpll()
751 clock.p2 = i9xx_select_p2_div(limit, crtc_state, target); in pnv_find_best_dpll()
[all …]
Dintel_atomic_plane.c111 struct intel_crtc_state *crtc_state, in intel_plane_atomic_check_with_state() argument
120 &crtc_state->base.adjusted_mode; in intel_plane_atomic_check_with_state()
162 ret = intel_plane->check_plane(intel_plane, crtc_state, intel_state); in intel_plane_atomic_check_with_state()
170 if (state->fb && INTEL_GEN(dev_priv) >= 9 && crtc_state->base.enable && in intel_plane_atomic_check_with_state()
181 crtc_state->active_planes |= BIT(intel_plane->id); in intel_plane_atomic_check_with_state()
183 crtc_state->active_planes &= ~BIT(intel_plane->id); in intel_plane_atomic_check_with_state()
186 crtc_state->nv12_planes |= BIT(intel_plane->id); in intel_plane_atomic_check_with_state()
188 crtc_state->nv12_planes &= ~BIT(intel_plane->id); in intel_plane_atomic_check_with_state()
191 &crtc_state->base, in intel_plane_atomic_check_with_state()
Dintel_dpio_phy.c735 const struct intel_crtc_state *crtc_state, in chv_data_lane_soft_reset() argument
740 struct intel_crtc *crtc = to_intel_crtc(crtc_state->base.crtc); in chv_data_lane_soft_reset()
780 const struct intel_crtc_state *crtc_state) in chv_phy_pre_pll_enable() argument
784 struct intel_crtc *crtc = to_intel_crtc(crtc_state->base.crtc); in chv_phy_pre_pll_enable()
788 intel_dp_unused_lane_mask(crtc_state->lane_count); in chv_phy_pre_pll_enable()
804 chv_data_lane_soft_reset(encoder, crtc_state, true); in chv_phy_pre_pll_enable()
834 if (crtc_state->lane_count > 2) { in chv_phy_pre_pll_enable()
860 const struct intel_crtc_state *crtc_state) in chv_phy_pre_encoder_enable() argument
865 struct intel_crtc *crtc = to_intel_crtc(crtc_state->base.crtc); in chv_phy_pre_encoder_enable()
878 if (crtc_state->lane_count > 2) { in chv_phy_pre_encoder_enable()
[all …]
Dintel_psr.c245 const struct intel_crtc_state *crtc_state) in intel_psr_setup_vsc() argument
272 intel_dig_port->write_infoframe(&intel_dig_port->base.base, crtc_state, in intel_psr_setup_vsc()
428 struct intel_crtc_state *crtc_state) in intel_psr2_config_valid() argument
432 int crtc_hdisplay = crtc_state->base.adjusted_mode.crtc_hdisplay; in intel_psr2_config_valid()
433 int crtc_vdisplay = crtc_state->base.adjusted_mode.crtc_vdisplay; in intel_psr2_config_valid()
463 struct intel_crtc_state *crtc_state) in intel_psr_compute_config() argument
468 &crtc_state->base.adjusted_mode; in intel_psr_compute_config()
492 I915_READ(HSW_STEREO_3D_CTL(crtc_state->cpu_transcoder)) & in intel_psr_compute_config()
518 crtc_state->has_psr = true; in intel_psr_compute_config()
519 crtc_state->has_psr2 = intel_psr2_config_valid(intel_dp, crtc_state); in intel_psr_compute_config()
[all …]
Dintel_pm.c473 static void vlv_get_fifo_size(struct intel_crtc_state *crtc_state) in vlv_get_fifo_size() argument
475 struct intel_crtc *crtc = to_intel_crtc(crtc_state->base.crtc); in vlv_get_fifo_size()
477 struct vlv_fifo_state *fifo_state = &crtc_state->wm.vlv.fifo_state; in vlv_get_fifo_size()
803 static bool intel_wm_plane_visible(const struct intel_crtc_state *crtc_state, in intel_wm_plane_visible() argument
809 if (!crtc_state->base.active) in intel_wm_plane_visible()
1091 static uint16_t g4x_compute_wm(const struct intel_crtc_state *crtc_state, in g4x_compute_wm() argument
1098 &crtc_state->base.adjusted_mode; in g4x_compute_wm()
1105 if (!intel_wm_plane_visible(crtc_state, plane_state)) in g4x_compute_wm()
1155 static bool g4x_raw_plane_wm_set(struct intel_crtc_state *crtc_state, in g4x_raw_plane_wm_set() argument
1158 struct drm_i915_private *dev_priv = to_i915(crtc_state->base.crtc->dev); in g4x_raw_plane_wm_set()
[all …]
Dintel_crt.c150 const struct intel_crtc_state *crtc_state, in intel_crt_set_dpms() argument
155 struct intel_crtc *crtc = to_intel_crtc(crtc_state->base.crtc); in intel_crt_set_dpms()
156 const struct drm_display_mode *adjusted_mode = &crtc_state->base.adjusted_mode; in intel_crt_set_dpms()
250 const struct intel_crtc_state *crtc_state, in hsw_pre_pll_enable_crt() argument
255 WARN_ON(!crtc_state->has_pch_encoder); in hsw_pre_pll_enable_crt()
261 const struct intel_crtc_state *crtc_state, in hsw_pre_enable_crt() argument
265 struct intel_crtc *crtc = to_intel_crtc(crtc_state->base.crtc); in hsw_pre_enable_crt()
268 WARN_ON(!crtc_state->has_pch_encoder); in hsw_pre_enable_crt()
272 dev_priv->display.fdi_link_train(crtc, crtc_state); in hsw_pre_enable_crt()
274 intel_ddi_enable_pipe_clock(crtc_state); in hsw_pre_enable_crt()
[all …]
/Linux-v4.19/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_crc.c52 struct dm_crtc_state *crtc_state = to_dm_crtc_state(crtc->state); in amdgpu_dm_crtc_set_crc_source() local
53 struct dc_stream_state *stream_state = crtc_state->stream; in amdgpu_dm_crtc_set_crc_source()
68 crtc_state->crc_enabled = true; in amdgpu_dm_crtc_set_crc_source()
78 crtc_state->crc_enabled = false; in amdgpu_dm_crtc_set_crc_source()
88 crtc_state->crc_skip_count = 0; in amdgpu_dm_crtc_set_crc_source()
101 struct dm_crtc_state *crtc_state; in amdgpu_dm_crtc_handle_crc_irq() local
108 crtc_state = to_dm_crtc_state(crtc->state); in amdgpu_dm_crtc_handle_crc_irq()
109 stream_state = crtc_state->stream; in amdgpu_dm_crtc_handle_crc_irq()
112 if (!crtc_state->crc_enabled) in amdgpu_dm_crtc_handle_crc_irq()
121 if (crtc_state->crc_skip_count < 2) { in amdgpu_dm_crtc_handle_crc_irq()
[all …]
/Linux-v4.19/drivers/gpu/drm/gma500/
Dgma_display.c505 kfree(gma_crtc->crtc_state); in gma_crtc_destroy()
535 struct psb_intel_crtc_state *crtc_state = gma_crtc->crtc_state; in gma_crtc_save() local
540 if (!crtc_state) { in gma_crtc_save()
545 crtc_state->saveDSPCNTR = REG_READ(map->cntr); in gma_crtc_save()
546 crtc_state->savePIPECONF = REG_READ(map->conf); in gma_crtc_save()
547 crtc_state->savePIPESRC = REG_READ(map->src); in gma_crtc_save()
548 crtc_state->saveFP0 = REG_READ(map->fp0); in gma_crtc_save()
549 crtc_state->saveFP1 = REG_READ(map->fp1); in gma_crtc_save()
550 crtc_state->saveDPLL = REG_READ(map->dpll); in gma_crtc_save()
551 crtc_state->saveHTOTAL = REG_READ(map->htotal); in gma_crtc_save()
[all …]
/Linux-v4.19/drivers/gpu/drm/tilcdc/
Dtilcdc_plane.c39 struct drm_crtc_state *crtc_state; in tilcdc_plane_atomic_check() local
55 crtc_state = drm_atomic_get_existing_crtc_state(state->state, in tilcdc_plane_atomic_check()
58 if (WARN_ON(!crtc_state)) in tilcdc_plane_atomic_check()
61 if (crtc_state->mode.hdisplay != state->crtc_w || in tilcdc_plane_atomic_check()
62 crtc_state->mode.vdisplay != state->crtc_h) { in tilcdc_plane_atomic_check()
65 crtc_state->mode.hdisplay, crtc_state->mode.vdisplay, in tilcdc_plane_atomic_check()
70 pitch = crtc_state->mode.hdisplay * in tilcdc_plane_atomic_check()
83 crtc_state->mode_changed = true; in tilcdc_plane_atomic_check()
/Linux-v4.19/drivers/gpu/drm/selftests/
Dtest-drm-helper.c92 const struct drm_crtc_state crtc_state = { in igt_check_plane_state() local
115 ret = drm_atomic_helper_check_plane_state(&plane_state, &crtc_state, in igt_check_plane_state()
126 ret = drm_atomic_helper_check_plane_state(&plane_state, &crtc_state, in igt_check_plane_state()
139 ret = drm_atomic_helper_check_plane_state(&plane_state, &crtc_state, in igt_check_plane_state()
145 ret = drm_atomic_helper_check_plane_state(&plane_state, &crtc_state, in igt_check_plane_state()
157 ret = drm_atomic_helper_check_plane_state(&plane_state, &crtc_state, in igt_check_plane_state()
162 ret = drm_atomic_helper_check_plane_state(&plane_state, &crtc_state, in igt_check_plane_state()
172 ret = drm_atomic_helper_check_plane_state(&plane_state, &crtc_state, in igt_check_plane_state()
176 ret = drm_atomic_helper_check_plane_state(&plane_state, &crtc_state, in igt_check_plane_state()
187 ret = drm_atomic_helper_check_plane_state(&plane_state, &crtc_state, in igt_check_plane_state()
[all …]
/Linux-v4.19/drivers/gpu/drm/
Ddrm_atomic_helper.c72 struct drm_crtc_state *crtc_state; in drm_atomic_helper_plane_changed() local
75 crtc_state = drm_atomic_get_new_crtc_state(state, in drm_atomic_helper_plane_changed()
78 if (WARN_ON(!crtc_state)) in drm_atomic_helper_plane_changed()
81 crtc_state->planes_changed = true; in drm_atomic_helper_plane_changed()
85 crtc_state = drm_atomic_get_new_crtc_state(state, plane_state->crtc); in drm_atomic_helper_plane_changed()
87 if (WARN_ON(!crtc_state)) in drm_atomic_helper_plane_changed()
90 crtc_state->planes_changed = true; in drm_atomic_helper_plane_changed()
152 struct drm_crtc_state *crtc_state; in handle_conflicting_encoders() local
182 crtc_state = drm_atomic_get_new_crtc_state(state, new_conn_state->crtc); in handle_conflicting_encoders()
188 if (!crtc_state->connector_mask) { in handle_conflicting_encoders()
[all …]
Ddrm_atomic.c288 struct drm_crtc_state *crtc_state; in drm_atomic_get_crtc_state() local
292 crtc_state = drm_atomic_get_existing_crtc_state(state, crtc); in drm_atomic_get_crtc_state()
293 if (crtc_state) in drm_atomic_get_crtc_state()
294 return crtc_state; in drm_atomic_get_crtc_state()
300 crtc_state = crtc->funcs->atomic_duplicate_state(crtc); in drm_atomic_get_crtc_state()
301 if (!crtc_state) in drm_atomic_get_crtc_state()
304 state->crtcs[index].state = crtc_state; in drm_atomic_get_crtc_state()
306 state->crtcs[index].new_state = crtc_state; in drm_atomic_get_crtc_state()
308 crtc_state->state = state; in drm_atomic_get_crtc_state()
311 crtc->base.id, crtc->name, crtc_state, state); in drm_atomic_get_crtc_state()
[all …]
/Linux-v4.19/include/drm/
Ddrm_atomic_helper.h42 const struct drm_crtc_state *crtc_state,
214 #define drm_atomic_crtc_state_for_each_plane(plane, crtc_state) \ argument
215 drm_for_each_plane_mask(plane, (crtc_state)->state->dev, (crtc_state)->plane_mask)
232 #define drm_atomic_crtc_state_for_each_plane_state(plane, plane_state, crtc_state) \ argument
233 drm_for_each_plane_mask(plane, (crtc_state)->state->dev, (crtc_state)->plane_mask) \
235 __drm_atomic_get_current_plane_state((crtc_state)->state, \
/Linux-v4.19/drivers/gpu/drm/rockchip/
Drockchip_drm_fb.c134 struct drm_crtc_state *crtc_state; in rockchip_drm_psr_inhibit_get_state() local
139 for_each_old_crtc_in_state(state, crtc, crtc_state, i) { in rockchip_drm_psr_inhibit_get_state()
140 encoder_mask |= crtc_state->encoder_mask; in rockchip_drm_psr_inhibit_get_state()
152 struct drm_crtc_state *crtc_state; in rockchip_drm_psr_inhibit_put_state() local
157 for_each_old_crtc_in_state(state, crtc, crtc_state, i) { in rockchip_drm_psr_inhibit_put_state()
158 encoder_mask |= crtc_state->encoder_mask; in rockchip_drm_psr_inhibit_put_state()
/Linux-v4.19/drivers/gpu/drm/mediatek/
Dmtk_drm_plane.c93 struct drm_crtc_state *crtc_state; in mtk_plane_atomic_check() local
101 crtc_state = drm_atomic_get_crtc_state(state->state, state->crtc); in mtk_plane_atomic_check()
102 if (IS_ERR(crtc_state)) in mtk_plane_atomic_check()
103 return PTR_ERR(crtc_state); in mtk_plane_atomic_check()
105 return drm_atomic_helper_check_plane_state(state, crtc_state, in mtk_plane_atomic_check()
/Linux-v4.19/drivers/gpu/drm/imx/
Dipuv3-plane.c350 struct drm_crtc_state *crtc_state; in ipu_plane_atomic_check() local
366 crtc_state = in ipu_plane_atomic_check()
368 if (WARN_ON(!crtc_state)) in ipu_plane_atomic_check()
371 ret = drm_atomic_helper_check_plane_state(state, crtc_state, in ipu_plane_atomic_check()
379 if (!crtc_state->enable) in ipu_plane_atomic_check()
409 crtc_state->mode_changed = true; in ipu_plane_atomic_check()
420 crtc_state->mode_changed = true; in ipu_plane_atomic_check()
445 crtc_state->mode_changed = true; in ipu_plane_atomic_check()
462 crtc_state->mode_changed = true; in ipu_plane_atomic_check()
469 crtc_state->mode_changed = true; in ipu_plane_atomic_check()
[all …]
/Linux-v4.19/drivers/gpu/drm/meson/
Dmeson_plane.c51 struct drm_crtc_state *crtc_state; in meson_plane_atomic_check() local
56 crtc_state = drm_atomic_get_crtc_state(state->state, state->crtc); in meson_plane_atomic_check()
57 if (IS_ERR(crtc_state)) in meson_plane_atomic_check()
58 return PTR_ERR(crtc_state); in meson_plane_atomic_check()
60 return drm_atomic_helper_check_plane_state(state, crtc_state, in meson_plane_atomic_check()
/Linux-v4.19/drivers/gpu/drm/zte/
Dzx_plane.c57 struct drm_crtc_state *crtc_state; in zx_vl_plane_atomic_check() local
64 crtc_state = drm_atomic_get_existing_crtc_state(plane_state->state, in zx_vl_plane_atomic_check()
66 if (WARN_ON(!crtc_state)) in zx_vl_plane_atomic_check()
70 if (!crtc_state->enable) in zx_vl_plane_atomic_check()
77 return drm_atomic_helper_check_plane_state(plane_state, crtc_state, in zx_vl_plane_atomic_check()
288 struct drm_crtc_state *crtc_state; in zx_gl_plane_atomic_check() local
293 crtc_state = drm_atomic_get_existing_crtc_state(plane_state->state, in zx_gl_plane_atomic_check()
295 if (WARN_ON(!crtc_state)) in zx_gl_plane_atomic_check()
299 if (!crtc_state->enable) in zx_gl_plane_atomic_check()
306 return drm_atomic_helper_check_plane_state(plane_state, crtc_state, in zx_gl_plane_atomic_check()

123456