Lines Matching refs:new_state

113 static void mtk_plane_update_new_state(struct drm_plane_state *new_state,  in mtk_plane_update_new_state()  argument
116 struct drm_framebuffer *fb = new_state->fb; in mtk_plane_update_new_state()
128 addr += (new_state->src.x1 >> 16) * fb->format->cpp[0]; in mtk_plane_update_new_state()
129 addr += (new_state->src.y1 >> 16) * pitch; in mtk_plane_update_new_state()
135 mtk_plane_state->pending.x = new_state->dst.x1; in mtk_plane_update_new_state()
136 mtk_plane_state->pending.y = new_state->dst.y1; in mtk_plane_update_new_state()
137 mtk_plane_state->pending.width = drm_rect_width(&new_state->dst); in mtk_plane_update_new_state()
138 mtk_plane_state->pending.height = drm_rect_height(&new_state->dst); in mtk_plane_update_new_state()
139 mtk_plane_state->pending.rotation = new_state->rotation; in mtk_plane_update_new_state()
145 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in mtk_plane_atomic_async_update() local
149 plane->state->crtc_x = new_state->crtc_x; in mtk_plane_atomic_async_update()
150 plane->state->crtc_y = new_state->crtc_y; in mtk_plane_atomic_async_update()
151 plane->state->crtc_h = new_state->crtc_h; in mtk_plane_atomic_async_update()
152 plane->state->crtc_w = new_state->crtc_w; in mtk_plane_atomic_async_update()
153 plane->state->src_x = new_state->src_x; in mtk_plane_atomic_async_update()
154 plane->state->src_y = new_state->src_y; in mtk_plane_atomic_async_update()
155 plane->state->src_h = new_state->src_h; in mtk_plane_atomic_async_update()
156 plane->state->src_w = new_state->src_w; in mtk_plane_atomic_async_update()
157 swap(plane->state->fb, new_state->fb); in mtk_plane_atomic_async_update()
159 mtk_plane_update_new_state(new_state, new_plane_state); in mtk_plane_atomic_async_update()
162 mtk_drm_crtc_async_update(new_state->crtc, plane, state); in mtk_plane_atomic_async_update()
209 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in mtk_plane_atomic_disable() local
211 struct mtk_plane_state *mtk_plane_state = to_mtk_plane_state(new_state); in mtk_plane_atomic_disable()
220 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in mtk_plane_atomic_update() local
222 struct mtk_plane_state *mtk_plane_state = to_mtk_plane_state(new_state); in mtk_plane_atomic_update()
224 if (!new_state->crtc || WARN_ON(!new_state->fb)) in mtk_plane_atomic_update()
227 if (!new_state->visible) { in mtk_plane_atomic_update()
232 mtk_plane_update_new_state(new_state, mtk_plane_state); in mtk_plane_atomic_update()