Lines Matching defs:tcrtc
24 static void tidss_crtc_finish_page_flip(struct tidss_crtc *tcrtc)
26 struct drm_device *ddev = tcrtc->crtc.dev;
40 busy = dispc_vp_go_busy(tidss->dispc, tcrtc->hw_videoport);
46 event = tcrtc->event;
47 tcrtc->event = NULL;
54 drm_crtc_send_vblank_event(&tcrtc->crtc, event);
58 drm_crtc_vblank_put(&tcrtc->crtc);
63 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
67 tidss_crtc_finish_page_flip(tcrtc);
72 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
74 complete(&tcrtc->framedone_completion);
79 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
82 tcrtc->hw_videoport, irqstatus);
93 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
94 u32 hw_videoport = tcrtc->hw_videoport;
126 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
154 tcrtc->hw_videoport,
158 dispc_ovr_enable_layer(tidss->dispc, tcrtc->hw_videoport, layer,
166 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
188 if (WARN_ON(dispc_vp_go_busy(tidss->dispc, tcrtc->hw_videoport)))
196 dispc_vp_setup(tidss->dispc, tcrtc->hw_videoport, crtc->state, false);
204 dispc_vp_go(tidss->dispc, tcrtc->hw_videoport);
206 WARN_ON(tcrtc->event);
208 tcrtc->event = crtc->state->event;
217 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
228 r = dispc_vp_set_clk_rate(tidss->dispc, tcrtc->hw_videoport,
233 r = dispc_vp_enable_clk(tidss->dispc, tcrtc->hw_videoport);
237 dispc_vp_setup(tidss->dispc, tcrtc->hw_videoport, crtc->state, true);
243 dispc_vp_prepare(tidss->dispc, tcrtc->hw_videoport, crtc->state);
245 dispc_vp_enable(tidss->dispc, tcrtc->hw_videoport, crtc->state);
260 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
267 reinit_completion(&tcrtc->framedone_completion);
269 dispc_vp_disable(tidss->dispc, tcrtc->hw_videoport);
271 if (!wait_for_completion_timeout(&tcrtc->framedone_completion,
274 tcrtc->hw_videoport);
276 dispc_vp_unprepare(tidss->dispc, tcrtc->hw_videoport);
287 dispc_vp_disable_clk(tidss->dispc, tcrtc->hw_videoport);
296 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
300 return dispc_vp_mode_valid(tidss->dispc, tcrtc->hw_videoport, mode);
342 struct tidss_crtc_state *tcrtc;
349 tcrtc = kzalloc(sizeof(*tcrtc), GFP_KERNEL);
350 if (!tcrtc) {
355 __drm_atomic_helper_crtc_reset(crtc, &tcrtc->base);
383 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
386 kfree(tcrtc);
404 struct tidss_crtc *tcrtc;
410 tcrtc = kzalloc(sizeof(*tcrtc), GFP_KERNEL);
411 if (!tcrtc)
414 tcrtc->hw_videoport = hw_videoport;
415 init_completion(&tcrtc->framedone_completion);
417 crtc = &tcrtc->crtc;
422 kfree(tcrtc);
440 return tcrtc;