Lines Matching refs:tidss

24 	struct tidss_device *tidss = to_tidss(ddev);  in tidss_crtc_finish_page_flip()  local
37 busy = dispc_vp_go_busy(tidss->dispc, tcrtc->hw_videoport); in tidss_crtc_finish_page_flip()
90 struct tidss_device *tidss = to_tidss(ddev); in tidss_crtc_atomic_check() local
91 struct dispc_device *dispc = tidss->dispc; in tidss_crtc_atomic_check()
119 static void tidss_crtc_position_planes(struct tidss_device *tidss, in tidss_crtc_position_planes() argument
133 for (layer = 0; layer < tidss->feat->num_planes; layer++) { in tidss_crtc_position_planes()
152 dispc_ovr_set_plane(tidss->dispc, tplane->hw_plane_id, in tidss_crtc_position_planes()
157 dispc_ovr_enable_layer(tidss->dispc, tcrtc->hw_videoport, layer, in tidss_crtc_position_planes()
169 struct tidss_device *tidss = to_tidss(ddev); in tidss_crtc_atomic_flush() local
189 if (WARN_ON(dispc_vp_go_busy(tidss->dispc, tcrtc->hw_videoport))) in tidss_crtc_atomic_flush()
197 dispc_vp_setup(tidss->dispc, tcrtc->hw_videoport, crtc->state, false); in tidss_crtc_atomic_flush()
200 tidss_crtc_position_planes(tidss, crtc, old_crtc_state, false); in tidss_crtc_atomic_flush()
205 dispc_vp_go(tidss->dispc, tcrtc->hw_videoport); in tidss_crtc_atomic_flush()
222 struct tidss_device *tidss = to_tidss(ddev); in tidss_crtc_atomic_enable() local
229 tidss_runtime_get(tidss); in tidss_crtc_atomic_enable()
231 r = dispc_vp_set_clk_rate(tidss->dispc, tcrtc->hw_videoport, in tidss_crtc_atomic_enable()
236 r = dispc_vp_enable_clk(tidss->dispc, tcrtc->hw_videoport); in tidss_crtc_atomic_enable()
240 dispc_vp_setup(tidss->dispc, tcrtc->hw_videoport, crtc->state, true); in tidss_crtc_atomic_enable()
241 tidss_crtc_position_planes(tidss, crtc, old_state, true); in tidss_crtc_atomic_enable()
246 dispc_vp_prepare(tidss->dispc, tcrtc->hw_videoport, crtc->state); in tidss_crtc_atomic_enable()
248 dispc_vp_enable(tidss->dispc, tcrtc->hw_videoport, crtc->state); in tidss_crtc_atomic_enable()
265 struct tidss_device *tidss = to_tidss(ddev); in tidss_crtc_atomic_disable() local
272 dispc_vp_disable(tidss->dispc, tcrtc->hw_videoport); in tidss_crtc_atomic_disable()
276 dev_err(tidss->dev, "Timeout waiting for framedone on crtc %d", in tidss_crtc_atomic_disable()
279 dispc_vp_unprepare(tidss->dispc, tcrtc->hw_videoport); in tidss_crtc_atomic_disable()
290 dispc_vp_disable_clk(tidss->dispc, tcrtc->hw_videoport); in tidss_crtc_atomic_disable()
292 tidss_runtime_put(tidss); in tidss_crtc_atomic_disable()
301 struct tidss_device *tidss = to_tidss(ddev); in tidss_crtc_mode_valid() local
303 return dispc_vp_mode_valid(tidss->dispc, tcrtc->hw_videoport, mode); in tidss_crtc_mode_valid()
320 struct tidss_device *tidss = to_tidss(ddev); in tidss_crtc_enable_vblank() local
324 tidss_runtime_get(tidss); in tidss_crtc_enable_vblank()
334 struct tidss_device *tidss = to_tidss(ddev); in tidss_crtc_disable_vblank() local
340 tidss_runtime_put(tidss); in tidss_crtc_disable_vblank()
403 struct tidss_crtc *tidss_crtc_create(struct tidss_device *tidss, in tidss_crtc_create() argument
410 bool has_ctm = tidss->feat->vp_feat.color.has_ctm; in tidss_crtc_create()
422 ret = drm_crtc_init_with_planes(&tidss->ddev, crtc, primary, in tidss_crtc_create()
436 if (tidss->feat->vp_feat.color.gamma_size) in tidss_crtc_create()