Lines Matching defs:new_state

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