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
185 if (WARN_ON(dispc_vp_go_busy(tidss->dispc, tcrtc->hw_videoport))) in tidss_crtc_atomic_flush()
193 dispc_vp_setup(tidss->dispc, tcrtc->hw_videoport, crtc->state, false); in tidss_crtc_atomic_flush()
196 tidss_crtc_position_planes(tidss, crtc, old_crtc_state, false); in tidss_crtc_atomic_flush()
201 dispc_vp_go(tidss->dispc, tcrtc->hw_videoport); in tidss_crtc_atomic_flush()
218 struct tidss_device *tidss = to_tidss(ddev); in tidss_crtc_atomic_enable() local
225 tidss_runtime_get(tidss); in tidss_crtc_atomic_enable()
227 r = dispc_vp_set_clk_rate(tidss->dispc, tcrtc->hw_videoport, in tidss_crtc_atomic_enable()
232 r = dispc_vp_enable_clk(tidss->dispc, tcrtc->hw_videoport); in tidss_crtc_atomic_enable()
236 dispc_vp_setup(tidss->dispc, tcrtc->hw_videoport, crtc->state, true); in tidss_crtc_atomic_enable()
237 tidss_crtc_position_planes(tidss, crtc, old_state, true); in tidss_crtc_atomic_enable()
242 dispc_vp_prepare(tidss->dispc, tcrtc->hw_videoport, crtc->state); in tidss_crtc_atomic_enable()
244 dispc_vp_enable(tidss->dispc, tcrtc->hw_videoport, crtc->state); in tidss_crtc_atomic_enable()
261 struct tidss_device *tidss = to_tidss(ddev); in tidss_crtc_atomic_disable() local
274 for (u32 layer = 0; layer < tidss->feat->num_planes; layer++) in tidss_crtc_atomic_disable()
275 dispc_ovr_enable_layer(tidss->dispc, tcrtc->hw_videoport, layer, in tidss_crtc_atomic_disable()
278 dispc_vp_disable(tidss->dispc, tcrtc->hw_videoport); in tidss_crtc_atomic_disable()
282 dev_err(tidss->dev, "Timeout waiting for framedone on crtc %d", in tidss_crtc_atomic_disable()
285 dispc_vp_unprepare(tidss->dispc, tcrtc->hw_videoport); in tidss_crtc_atomic_disable()
296 dispc_vp_disable_clk(tidss->dispc, tcrtc->hw_videoport); in tidss_crtc_atomic_disable()
298 tidss_runtime_put(tidss); in tidss_crtc_atomic_disable()
307 struct tidss_device *tidss = to_tidss(ddev); in tidss_crtc_mode_valid() local
309 return dispc_vp_mode_valid(tidss->dispc, tcrtc->hw_videoport, mode); in tidss_crtc_mode_valid()
326 struct tidss_device *tidss = to_tidss(ddev); in tidss_crtc_enable_vblank() local
330 tidss_runtime_get(tidss); in tidss_crtc_enable_vblank()
340 struct tidss_device *tidss = to_tidss(ddev); in tidss_crtc_disable_vblank() local
346 tidss_runtime_put(tidss); in tidss_crtc_disable_vblank()
409 struct tidss_crtc *tidss_crtc_create(struct tidss_device *tidss, in tidss_crtc_create() argument
416 bool has_ctm = tidss->feat->vp_feat.color.has_ctm; in tidss_crtc_create()
428 ret = drm_crtc_init_with_planes(&tidss->ddev, crtc, primary, in tidss_crtc_create()
442 if (tidss->feat->vp_feat.color.gamma_size) in tidss_crtc_create()