Lines Matching refs:state
85 struct drm_atomic_state *state)
87 struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state,
116 * state. The untouched planes are added to the state in
124 struct drm_atomic_state *ostate = old_state->state;
126 struct drm_crtc_state *cstate = crtc->state;
163 struct drm_atomic_state *state)
165 struct drm_crtc_state *old_crtc_state = drm_atomic_get_old_crtc_state(state,
173 __func__, crtc->name, crtc->state->active ? "" : "not ",
174 drm_atomic_crtc_needs_modeset(crtc->state) ? "needs" : "doesn't need",
175 crtc->state->event);
178 if (!crtc->state->active)
185 if (drm_atomic_crtc_needs_modeset(crtc->state))
193 if (WARN_ON(!crtc->state->event))
197 dispc_vp_setup(tidss->dispc, tcrtc->hw_videoport, crtc->state, false);
209 tcrtc->event = crtc->state->event;
210 crtc->state->event = NULL;
216 struct drm_atomic_state *state)
218 struct drm_crtc_state *old_state = drm_atomic_get_old_crtc_state(state,
223 const struct drm_display_mode *mode = &crtc->state->adjusted_mode;
227 dev_dbg(ddev->dev, "%s, event %p\n", __func__, crtc->state->event);
240 dispc_vp_setup(tidss->dispc, tcrtc->hw_videoport, crtc->state, true);
246 dispc_vp_prepare(tidss->dispc, tcrtc->hw_videoport, crtc->state);
248 dispc_vp_enable(tidss->dispc, tcrtc->hw_videoport, crtc->state);
252 if (crtc->state->event) {
253 drm_crtc_send_vblank_event(crtc, crtc->state->event);
254 crtc->state->event = NULL;
261 struct drm_atomic_state *state)
268 dev_dbg(ddev->dev, "%s, event %p\n", __func__, crtc->state->event);
292 if (crtc->state->event) {
293 drm_crtc_send_vblank_event(crtc, crtc->state->event);
294 crtc->state->event = NULL;
357 if (crtc->state)
358 __drm_atomic_helper_crtc_destroy_state(crtc->state);
360 kfree(crtc->state);
364 crtc->state = NULL;
373 struct tidss_crtc_state *state, *current_state;
375 if (WARN_ON(!crtc->state))
378 current_state = to_tidss_crtc_state(crtc->state);
380 state = kmalloc(sizeof(*state), GFP_KERNEL);
381 if (!state)
384 __drm_atomic_helper_crtc_duplicate_state(crtc, &state->base);
386 state->plane_pos_changed = false;
388 state->bus_format = current_state->bus_format;
389 state->bus_flags = current_state->bus_flags;
391 return &state->base;