Lines Matching refs:new_state

133 static void mtk_plane_update_new_state(struct drm_plane_state *new_state,  in mtk_plane_update_new_state()  argument
136 struct drm_framebuffer *fb = new_state->fb; in mtk_plane_update_new_state()
153 addr += (new_state->src.x1 >> 16) * fb->format->cpp[0]; in mtk_plane_update_new_state()
154 addr += (new_state->src.y1 >> 16) * pitch; in mtk_plane_update_new_state()
160 int x_offset_in_blocks = (new_state->src.x1 >> 16) / AFBC_DATA_BLOCK_WIDTH; in mtk_plane_update_new_state()
161 int y_offset_in_blocks = (new_state->src.y1 >> 16) / AFBC_DATA_BLOCK_HEIGHT; in mtk_plane_update_new_state()
186 mtk_plane_state->pending.x = new_state->dst.x1; in mtk_plane_update_new_state()
187 mtk_plane_state->pending.y = new_state->dst.y1; in mtk_plane_update_new_state()
188 mtk_plane_state->pending.width = drm_rect_width(&new_state->dst); in mtk_plane_update_new_state()
189 mtk_plane_state->pending.height = drm_rect_height(&new_state->dst); in mtk_plane_update_new_state()
190 mtk_plane_state->pending.rotation = new_state->rotation; in mtk_plane_update_new_state()
191 mtk_plane_state->pending.color_encoding = new_state->color_encoding; in mtk_plane_update_new_state()
197 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in mtk_plane_atomic_async_update() local
201 plane->state->crtc_x = new_state->crtc_x; in mtk_plane_atomic_async_update()
202 plane->state->crtc_y = new_state->crtc_y; in mtk_plane_atomic_async_update()
203 plane->state->crtc_h = new_state->crtc_h; in mtk_plane_atomic_async_update()
204 plane->state->crtc_w = new_state->crtc_w; in mtk_plane_atomic_async_update()
205 plane->state->src_x = new_state->src_x; in mtk_plane_atomic_async_update()
206 plane->state->src_y = new_state->src_y; in mtk_plane_atomic_async_update()
207 plane->state->src_h = new_state->src_h; in mtk_plane_atomic_async_update()
208 plane->state->src_w = new_state->src_w; in mtk_plane_atomic_async_update()
209 swap(plane->state->fb, new_state->fb); in mtk_plane_atomic_async_update()
211 mtk_plane_update_new_state(new_state, new_plane_state); in mtk_plane_atomic_async_update()
214 mtk_drm_crtc_async_update(new_state->crtc, plane, state); in mtk_plane_atomic_async_update()
262 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in mtk_plane_atomic_disable() local
264 struct mtk_plane_state *mtk_plane_state = to_mtk_plane_state(new_state); in mtk_plane_atomic_disable()
273 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in mtk_plane_atomic_update() local
275 struct mtk_plane_state *mtk_plane_state = to_mtk_plane_state(new_state); in mtk_plane_atomic_update()
277 if (!new_state->crtc || WARN_ON(!new_state->fb)) in mtk_plane_atomic_update()
280 if (!new_state->visible) { in mtk_plane_atomic_update()
285 mtk_plane_update_new_state(new_state, mtk_plane_state); in mtk_plane_atomic_update()