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()
159 offset = (new_state->src.x1 >> 16) * fb->format->cpp[0]; in mtk_plane_update_new_state()
161 offset = (new_state->src.y1 >> 16) * pitch; in mtk_plane_update_new_state()
168 int x_offset_in_blocks = (new_state->src.x1 >> 16) / AFBC_DATA_BLOCK_WIDTH; in mtk_plane_update_new_state()
169 int y_offset_in_blocks = (new_state->src.y1 >> 16) / AFBC_DATA_BLOCK_HEIGHT; in mtk_plane_update_new_state()
207 mtk_plane_state->pending.x = new_state->dst.x1; in mtk_plane_update_new_state()
208 mtk_plane_state->pending.y = new_state->dst.y1; in mtk_plane_update_new_state()
209 mtk_plane_state->pending.width = drm_rect_width(&new_state->dst); in mtk_plane_update_new_state()
210 mtk_plane_state->pending.height = drm_rect_height(&new_state->dst); in mtk_plane_update_new_state()
211 mtk_plane_state->pending.rotation = new_state->rotation; in mtk_plane_update_new_state()
212 mtk_plane_state->pending.color_encoding = new_state->color_encoding; in mtk_plane_update_new_state()
218 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in mtk_plane_atomic_async_update() local
222 plane->state->crtc_x = new_state->crtc_x; in mtk_plane_atomic_async_update()
223 plane->state->crtc_y = new_state->crtc_y; in mtk_plane_atomic_async_update()
224 plane->state->crtc_h = new_state->crtc_h; in mtk_plane_atomic_async_update()
225 plane->state->crtc_w = new_state->crtc_w; in mtk_plane_atomic_async_update()
226 plane->state->src_x = new_state->src_x; in mtk_plane_atomic_async_update()
227 plane->state->src_y = new_state->src_y; in mtk_plane_atomic_async_update()
228 plane->state->src_h = new_state->src_h; in mtk_plane_atomic_async_update()
229 plane->state->src_w = new_state->src_w; in mtk_plane_atomic_async_update()
230 plane->state->dst.x1 = new_state->dst.x1; in mtk_plane_atomic_async_update()
231 plane->state->dst.y1 = new_state->dst.y1; in mtk_plane_atomic_async_update()
233 mtk_plane_update_new_state(new_state, new_plane_state); in mtk_plane_atomic_async_update()
234 swap(plane->state->fb, new_state->fb); in mtk_plane_atomic_async_update()
237 mtk_crtc_async_update(new_state->crtc, plane, state); in mtk_plane_atomic_async_update()
285 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in mtk_plane_atomic_disable() local
287 struct mtk_plane_state *mtk_plane_state = to_mtk_plane_state(new_state); in mtk_plane_atomic_disable()
301 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in mtk_plane_atomic_update() local
303 struct mtk_plane_state *mtk_plane_state = to_mtk_plane_state(new_state); in mtk_plane_atomic_update()
305 if (!new_state->crtc || WARN_ON(!new_state->fb)) in mtk_plane_atomic_update()
308 if (!new_state->visible) { in mtk_plane_atomic_update()
313 mtk_plane_update_new_state(new_state, mtk_plane_state); in mtk_plane_atomic_update()