Searched refs:exynos_crtc (Results 1 - 4 of 4) sorted by relevance

/linux-4.4.14/drivers/gpu/drm/exynos/
H A Dexynos_drm_crtc.c26 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); exynos_drm_crtc_enable() local
28 if (exynos_crtc->ops->enable) exynos_drm_crtc_enable()
29 exynos_crtc->ops->enable(exynos_crtc); exynos_drm_crtc_enable()
36 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); exynos_drm_crtc_disable() local
40 if (exynos_crtc->ops->disable) exynos_drm_crtc_disable()
41 exynos_crtc->ops->disable(exynos_crtc); exynos_drm_crtc_disable()
47 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); exynos_drm_crtc_mode_set_nofb() local
49 if (exynos_crtc->ops->commit) exynos_drm_crtc_mode_set_nofb()
50 exynos_crtc->ops->commit(exynos_crtc); exynos_drm_crtc_mode_set_nofb()
56 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); exynos_crtc_atomic_check() local
61 if (exynos_crtc->ops->atomic_check) exynos_crtc_atomic_check()
62 return exynos_crtc->ops->atomic_check(exynos_crtc, state); exynos_crtc_atomic_check()
70 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); exynos_crtc_atomic_begin() local
73 exynos_crtc->event = crtc->state->event; exynos_crtc_atomic_begin()
78 if (exynos_crtc->ops->atomic_begin) drm_atomic_crtc_for_each_plane()
79 exynos_crtc->ops->atomic_begin(exynos_crtc, drm_atomic_crtc_for_each_plane()
87 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); exynos_crtc_atomic_flush() local
93 if (exynos_crtc->ops->atomic_flush) drm_atomic_crtc_for_each_plane()
94 exynos_crtc->ops->atomic_flush(exynos_crtc, drm_atomic_crtc_for_each_plane()
110 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); exynos_drm_crtc_destroy() local
113 private->crtc[exynos_crtc->pipe] = NULL; exynos_drm_crtc_destroy()
116 kfree(exynos_crtc); exynos_drm_crtc_destroy()
135 struct exynos_drm_crtc *exynos_crtc; exynos_drm_crtc_create() local
140 exynos_crtc = kzalloc(sizeof(*exynos_crtc), GFP_KERNEL); exynos_drm_crtc_create()
141 if (!exynos_crtc) exynos_drm_crtc_create()
144 exynos_crtc->pipe = pipe; exynos_drm_crtc_create()
145 exynos_crtc->type = type; exynos_drm_crtc_create()
146 exynos_crtc->ops = ops; exynos_drm_crtc_create()
147 exynos_crtc->ctx = ctx; exynos_drm_crtc_create()
149 init_waitqueue_head(&exynos_crtc->wait_update); exynos_drm_crtc_create()
151 crtc = &exynos_crtc->base; exynos_drm_crtc_create()
162 return exynos_crtc; exynos_drm_crtc_create()
166 kfree(exynos_crtc); exynos_drm_crtc_create()
173 struct exynos_drm_crtc *exynos_crtc = exynos_drm_crtc_enable_vblank() local
176 if (exynos_crtc->ops->enable_vblank) exynos_drm_crtc_enable_vblank()
177 return exynos_crtc->ops->enable_vblank(exynos_crtc); exynos_drm_crtc_enable_vblank()
185 struct exynos_drm_crtc *exynos_crtc = exynos_drm_crtc_disable_vblank() local
188 if (exynos_crtc->ops->disable_vblank) exynos_drm_crtc_disable_vblank()
189 exynos_crtc->ops->disable_vblank(exynos_crtc); exynos_drm_crtc_disable_vblank()
192 void exynos_drm_crtc_wait_pending_update(struct exynos_drm_crtc *exynos_crtc) exynos_drm_crtc_wait_pending_update() argument
194 wait_event_timeout(exynos_crtc->wait_update, exynos_drm_crtc_wait_pending_update()
195 (atomic_read(&exynos_crtc->pending_update) == 0), exynos_drm_crtc_wait_pending_update()
199 void exynos_drm_crtc_finish_update(struct exynos_drm_crtc *exynos_crtc, exynos_drm_crtc_finish_update() argument
202 struct drm_crtc *crtc = &exynos_crtc->base; exynos_drm_crtc_finish_update()
207 if (atomic_dec_and_test(&exynos_crtc->pending_update)) exynos_drm_crtc_finish_update()
208 wake_up(&exynos_crtc->wait_update); exynos_drm_crtc_finish_update()
211 if (exynos_crtc->event) exynos_drm_crtc_finish_update()
212 drm_crtc_send_vblank_event(crtc, exynos_crtc->event); exynos_drm_crtc_finish_update()
214 exynos_crtc->event = NULL; exynos_drm_crtc_finish_update()
220 struct exynos_drm_crtc *exynos_crtc; exynos_drm_crtc_complete_scanout() local
229 exynos_crtc = to_exynos_crtc(crtc); exynos_drm_crtc_complete_scanout()
236 if (exynos_crtc->ops->wait_for_vblank) exynos_drm_crtc_complete_scanout()
237 exynos_crtc->ops->wait_for_vblank(exynos_crtc); exynos_drm_crtc_complete_scanout()
247 struct exynos_drm_crtc *exynos_crtc; exynos_drm_crtc_get_pipe_from_type() local
249 exynos_crtc = to_exynos_crtc(crtc); exynos_drm_crtc_get_pipe_from_type()
250 if (exynos_crtc->type == out_type) exynos_drm_crtc_get_pipe_from_type()
251 return exynos_crtc->pipe; exynos_drm_crtc_get_pipe_from_type()
259 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); exynos_drm_crtc_te_handler() local
261 if (exynos_crtc->ops->te_handler) exynos_drm_crtc_te_handler()
262 exynos_crtc->ops->te_handler(exynos_crtc); exynos_drm_crtc_te_handler()
H A Dexynos_drm_plane.c152 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(state->crtc); exynos_plane_atomic_update() local
166 if (exynos_crtc->ops->update_plane) exynos_plane_atomic_update()
167 exynos_crtc->ops->update_plane(exynos_crtc, exynos_plane); exynos_plane_atomic_update()
174 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(old_state->crtc); exynos_plane_atomic_disable() local
179 if (exynos_crtc->ops->disable_plane) exynos_plane_atomic_disable()
180 exynos_crtc->ops->disable_plane(exynos_crtc, exynos_plane_atomic_disable()
H A Dexynos_drm_crtc.h28 void exynos_drm_crtc_wait_pending_update(struct exynos_drm_crtc *exynos_crtc);
29 void exynos_drm_crtc_finish_update(struct exynos_drm_crtc *exynos_crtc,
H A Dexynos_drm_drv.c55 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); for_each_crtc_in_state() local
64 exynos_drm_crtc_wait_pending_update(exynos_crtc); for_each_crtc_in_state()
93 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); for_each_crtc_in_state() local
95 atomic_set(&exynos_crtc->pending_update, 0); for_each_crtc_in_state()
99 struct exynos_drm_crtc *exynos_crtc = for_each_plane_in_state() local
105 atomic_inc(&exynos_crtc->pending_update); for_each_plane_in_state()

Completed in 115 milliseconds