Lines Matching defs:tcrtc
21 static void tidss_crtc_finish_page_flip(struct tidss_crtc *tcrtc)
23 struct drm_device *ddev = tcrtc->crtc.dev;
37 busy = dispc_vp_go_busy(tidss->dispc, tcrtc->hw_videoport);
43 event = tcrtc->event;
44 tcrtc->event = NULL;
51 drm_crtc_send_vblank_event(&tcrtc->crtc, event);
55 drm_crtc_vblank_put(&tcrtc->crtc);
60 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
64 tidss_crtc_finish_page_flip(tcrtc);
69 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
71 complete(&tcrtc->framedone_completion);
76 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
79 tcrtc->hw_videoport, irqstatus);
92 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
93 u32 hw_videoport = tcrtc->hw_videoport;
125 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
153 tcrtc->hw_videoport,
157 dispc_ovr_enable_layer(tidss->dispc, tcrtc->hw_videoport, layer,
167 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
189 if (WARN_ON(dispc_vp_go_busy(tidss->dispc, tcrtc->hw_videoport)))
197 dispc_vp_setup(tidss->dispc, tcrtc->hw_videoport, crtc->state, false);
205 dispc_vp_go(tidss->dispc, tcrtc->hw_videoport);
207 WARN_ON(tcrtc->event);
209 tcrtc->event = crtc->state->event;
220 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
231 r = dispc_vp_set_clk_rate(tidss->dispc, tcrtc->hw_videoport,
236 r = dispc_vp_enable_clk(tidss->dispc, tcrtc->hw_videoport);
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);
263 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
270 reinit_completion(&tcrtc->framedone_completion);
279 dispc_ovr_enable_layer(tidss->dispc, tcrtc->hw_videoport, layer,
282 dispc_vp_disable(tidss->dispc, tcrtc->hw_videoport);
284 if (!wait_for_completion_timeout(&tcrtc->framedone_completion,
287 tcrtc->hw_videoport);
289 dispc_vp_unprepare(tidss->dispc, tcrtc->hw_videoport);
300 dispc_vp_disable_clk(tidss->dispc, tcrtc->hw_videoport);
309 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
313 return dispc_vp_mode_valid(tidss->dispc, tcrtc->hw_videoport, mode);
355 struct tidss_crtc_state *tcrtc;
362 tcrtc = kzalloc(sizeof(*tcrtc), GFP_KERNEL);
363 if (!tcrtc) {
368 __drm_atomic_helper_crtc_reset(crtc, &tcrtc->base);
396 struct tidss_crtc *tcrtc = to_tidss_crtc(crtc);
399 kfree(tcrtc);
417 struct tidss_crtc *tcrtc;
423 tcrtc = kzalloc(sizeof(*tcrtc), GFP_KERNEL);
424 if (!tcrtc)
427 tcrtc->hw_videoport = hw_videoport;
428 init_completion(&tcrtc->framedone_completion);
430 crtc = &tcrtc->crtc;
435 kfree(tcrtc);
453 return tcrtc;