Lines Matching refs:exynos_state

60 static void exynos_plane_mode_set(struct exynos_drm_plane_state *exynos_state)  in exynos_plane_mode_set()  argument
62 struct drm_plane_state *state = &exynos_state->base; in exynos_plane_mode_set()
91 exynos_state->h_ratio = (src_w << 16) / crtc_w; in exynos_plane_mode_set()
92 exynos_state->v_ratio = (src_h << 16) / crtc_h; in exynos_plane_mode_set()
100 src_x += ((-crtc_x) * exynos_state->h_ratio) >> 16; in exynos_plane_mode_set()
106 src_y += ((-crtc_y) * exynos_state->v_ratio) >> 16; in exynos_plane_mode_set()
111 exynos_state->src.x = src_x; in exynos_plane_mode_set()
112 exynos_state->src.y = src_y; in exynos_plane_mode_set()
113 exynos_state->src.w = (actual_w * exynos_state->h_ratio) >> 16; in exynos_plane_mode_set()
114 exynos_state->src.h = (actual_h * exynos_state->v_ratio) >> 16; in exynos_plane_mode_set()
117 exynos_state->crtc.x = crtc_x; in exynos_plane_mode_set()
118 exynos_state->crtc.y = crtc_y; in exynos_plane_mode_set()
119 exynos_state->crtc.w = actual_w; in exynos_plane_mode_set()
120 exynos_state->crtc.h = actual_h; in exynos_plane_mode_set()
123 exynos_state->crtc.x, exynos_state->crtc.y, in exynos_plane_mode_set()
124 exynos_state->crtc.w, exynos_state->crtc.h); in exynos_plane_mode_set()
130 struct exynos_drm_plane_state *exynos_state; in exynos_drm_plane_reset() local
133 exynos_state = to_exynos_plane_state(plane->state); in exynos_drm_plane_reset()
134 if (exynos_state->base.fb) in exynos_drm_plane_reset()
135 drm_framebuffer_put(exynos_state->base.fb); in exynos_drm_plane_reset()
136 kfree(exynos_state); in exynos_drm_plane_reset()
140 exynos_state = kzalloc(sizeof(*exynos_state), GFP_KERNEL); in exynos_drm_plane_reset()
141 if (exynos_state) { in exynos_drm_plane_reset()
142 plane->state = &exynos_state->base; in exynos_drm_plane_reset()
151 struct exynos_drm_plane_state *exynos_state; in exynos_drm_plane_duplicate_state() local
154 exynos_state = to_exynos_plane_state(plane->state); in exynos_drm_plane_duplicate_state()
155 copy = kzalloc(sizeof(*exynos_state), GFP_KERNEL); in exynos_drm_plane_duplicate_state()
238 struct exynos_drm_plane_state *exynos_state = in exynos_plane_atomic_check() local
246 exynos_plane_mode_set(exynos_state); in exynos_plane_atomic_check()
248 ret = exynos_drm_plane_check_format(exynos_plane->config, exynos_state); in exynos_plane_atomic_check()
252 ret = exynos_drm_plane_check_size(exynos_plane->config, exynos_state); in exynos_plane_atomic_check()