Lines Matching refs:new_state

151 static void mtk_plane_update_new_state(struct drm_plane_state *new_state,  in mtk_plane_update_new_state()  argument
154 struct drm_framebuffer *fb = new_state->fb; in mtk_plane_update_new_state()
171 addr += (new_state->src.x1 >> 16) * fb->format->cpp[0]; in mtk_plane_update_new_state()
172 addr += (new_state->src.y1 >> 16) * pitch; in mtk_plane_update_new_state()
178 int x_offset_in_blocks = (new_state->src.x1 >> 16) / AFBC_DATA_BLOCK_WIDTH; in mtk_plane_update_new_state()
179 int y_offset_in_blocks = (new_state->src.y1 >> 16) / AFBC_DATA_BLOCK_HEIGHT; in mtk_plane_update_new_state()
204 mtk_plane_state->pending.x = new_state->dst.x1; in mtk_plane_update_new_state()
205 mtk_plane_state->pending.y = new_state->dst.y1; in mtk_plane_update_new_state()
206 mtk_plane_state->pending.width = drm_rect_width(&new_state->dst); in mtk_plane_update_new_state()
207 mtk_plane_state->pending.height = drm_rect_height(&new_state->dst); in mtk_plane_update_new_state()
208 mtk_plane_state->pending.rotation = new_state->rotation; in mtk_plane_update_new_state()
209 mtk_plane_state->pending.color_encoding = new_state->color_encoding; in mtk_plane_update_new_state()
215 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in mtk_plane_atomic_async_update() local
219 plane->state->crtc_x = new_state->crtc_x; in mtk_plane_atomic_async_update()
220 plane->state->crtc_y = new_state->crtc_y; in mtk_plane_atomic_async_update()
221 plane->state->crtc_h = new_state->crtc_h; in mtk_plane_atomic_async_update()
222 plane->state->crtc_w = new_state->crtc_w; in mtk_plane_atomic_async_update()
223 plane->state->src_x = new_state->src_x; in mtk_plane_atomic_async_update()
224 plane->state->src_y = new_state->src_y; in mtk_plane_atomic_async_update()
225 plane->state->src_h = new_state->src_h; in mtk_plane_atomic_async_update()
226 plane->state->src_w = new_state->src_w; in mtk_plane_atomic_async_update()
227 swap(plane->state->fb, new_state->fb); in mtk_plane_atomic_async_update()
229 mtk_plane_update_new_state(new_state, new_plane_state); in mtk_plane_atomic_async_update()
232 mtk_drm_crtc_async_update(new_state->crtc, plane, state); in mtk_plane_atomic_async_update()
280 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in mtk_plane_atomic_disable() local
282 struct mtk_plane_state *mtk_plane_state = to_mtk_plane_state(new_state); in mtk_plane_atomic_disable()
291 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in mtk_plane_atomic_update() local
293 struct mtk_plane_state *mtk_plane_state = to_mtk_plane_state(new_state); in mtk_plane_atomic_update()
295 if (!new_state->crtc || WARN_ON(!new_state->fb)) in mtk_plane_atomic_update()
298 if (!new_state->visible) { in mtk_plane_atomic_update()
303 mtk_plane_update_new_state(new_state, mtk_plane_state); in mtk_plane_atomic_update()