Lines Matching refs:crtc_state

123 	struct drm_crtc_state *crtc_state;  in intel_digital_connector_atomic_check()  local
130 crtc_state = drm_atomic_get_new_crtc_state(state, new_state->crtc); in intel_digital_connector_atomic_check()
143 crtc_state->mode_changed = true; in intel_digital_connector_atomic_check()
199 struct intel_crtc_state *crtc_state; in intel_any_crtc_needs_modeset() local
202 for_each_new_intel_crtc_in_state(state, crtc, crtc_state, i) { in intel_any_crtc_needs_modeset()
203 if (intel_crtc_needs_modeset(crtc_state)) in intel_any_crtc_needs_modeset()
237 struct intel_crtc_state *crtc_state; in intel_crtc_duplicate_state() local
239 crtc_state = kmemdup(old_crtc_state, sizeof(*crtc_state), GFP_KERNEL); in intel_crtc_duplicate_state()
240 if (!crtc_state) in intel_crtc_duplicate_state()
243 __drm_atomic_helper_crtc_duplicate_state(crtc, &crtc_state->uapi); in intel_crtc_duplicate_state()
246 if (crtc_state->hw.degamma_lut) in intel_crtc_duplicate_state()
247 drm_property_blob_get(crtc_state->hw.degamma_lut); in intel_crtc_duplicate_state()
248 if (crtc_state->hw.ctm) in intel_crtc_duplicate_state()
249 drm_property_blob_get(crtc_state->hw.ctm); in intel_crtc_duplicate_state()
250 if (crtc_state->hw.gamma_lut) in intel_crtc_duplicate_state()
251 drm_property_blob_get(crtc_state->hw.gamma_lut); in intel_crtc_duplicate_state()
253 crtc_state->update_pipe = false; in intel_crtc_duplicate_state()
254 crtc_state->disable_lp_wm = false; in intel_crtc_duplicate_state()
255 crtc_state->disable_cxsr = false; in intel_crtc_duplicate_state()
256 crtc_state->update_wm_pre = false; in intel_crtc_duplicate_state()
257 crtc_state->update_wm_post = false; in intel_crtc_duplicate_state()
258 crtc_state->fifo_changed = false; in intel_crtc_duplicate_state()
259 crtc_state->preload_luts = false; in intel_crtc_duplicate_state()
260 crtc_state->inherited = false; in intel_crtc_duplicate_state()
261 crtc_state->wm.need_postvbl_update = false; in intel_crtc_duplicate_state()
262 crtc_state->fb_bits = 0; in intel_crtc_duplicate_state()
263 crtc_state->update_planes = 0; in intel_crtc_duplicate_state()
264 crtc_state->dsb = NULL; in intel_crtc_duplicate_state()
266 return &crtc_state->uapi; in intel_crtc_duplicate_state()
269 static void intel_crtc_put_color_blobs(struct intel_crtc_state *crtc_state) in intel_crtc_put_color_blobs() argument
271 drm_property_blob_put(crtc_state->hw.degamma_lut); in intel_crtc_put_color_blobs()
272 drm_property_blob_put(crtc_state->hw.gamma_lut); in intel_crtc_put_color_blobs()
273 drm_property_blob_put(crtc_state->hw.ctm); in intel_crtc_put_color_blobs()
276 void intel_crtc_free_hw_state(struct intel_crtc_state *crtc_state) in intel_crtc_free_hw_state() argument
278 intel_crtc_put_color_blobs(crtc_state); in intel_crtc_free_hw_state()
281 void intel_crtc_copy_color_blobs(struct intel_crtc_state *crtc_state, in intel_crtc_copy_color_blobs() argument
284 drm_property_replace_blob(&crtc_state->hw.degamma_lut, in intel_crtc_copy_color_blobs()
286 drm_property_replace_blob(&crtc_state->hw.gamma_lut, in intel_crtc_copy_color_blobs()
288 drm_property_replace_blob(&crtc_state->hw.ctm, in intel_crtc_copy_color_blobs()
304 struct intel_crtc_state *crtc_state = to_intel_crtc_state(state); in intel_crtc_destroy_state() local
306 drm_WARN_ON(crtc->dev, crtc_state->dsb); in intel_crtc_destroy_state()
308 __drm_atomic_helper_crtc_destroy_state(&crtc_state->uapi); in intel_crtc_destroy_state()
309 intel_crtc_free_hw_state(crtc_state); in intel_crtc_destroy_state()
310 kfree(crtc_state); in intel_crtc_destroy_state()
402 struct intel_crtc_state *crtc_state) in intel_atomic_setup_scalers() argument
408 &crtc_state->scaler_state; in intel_atomic_setup_scalers()
409 struct drm_atomic_state *drm_state = crtc_state->uapi.state; in intel_atomic_setup_scalers()
544 struct drm_crtc_state *crtc_state; in intel_atomic_get_crtc_state() local
545 crtc_state = drm_atomic_get_crtc_state(state, &crtc->base); in intel_atomic_get_crtc_state()
546 if (IS_ERR(crtc_state)) in intel_atomic_get_crtc_state()
547 return ERR_CAST(crtc_state); in intel_atomic_get_crtc_state()
549 return to_intel_crtc_state(crtc_state); in intel_atomic_get_crtc_state()