Lines Matching refs:new_state

141 	struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state,  in armada_drm_primary_plane_atomic_update()  local
150 if (!new_state->fb || WARN_ON(!new_state->crtc)) in armada_drm_primary_plane_atomic_update()
155 new_state->crtc->base.id, new_state->crtc->name, in armada_drm_primary_plane_atomic_update()
156 new_state->fb->base.id, in armada_drm_primary_plane_atomic_update()
157 old_state->visible, new_state->visible); in armada_drm_primary_plane_atomic_update()
159 dcrtc = drm_to_armada_crtc(new_state->crtc); in armada_drm_primary_plane_atomic_update()
163 if (!old_state->visible && new_state->visible) { in armada_drm_primary_plane_atomic_update()
165 if (drm_fb_to_armada_fb(new_state->fb)->fmt > CFG_420) in armada_drm_primary_plane_atomic_update()
169 val = armada_src_hw(new_state); in armada_drm_primary_plane_atomic_update()
172 val = armada_dst_yx(new_state); in armada_drm_primary_plane_atomic_update()
175 val = armada_dst_hw(new_state); in armada_drm_primary_plane_atomic_update()
178 if (old_state->src.x1 != new_state->src.x1 || in armada_drm_primary_plane_atomic_update()
179 old_state->src.y1 != new_state->src.y1 || in armada_drm_primary_plane_atomic_update()
180 old_state->fb != new_state->fb || in armada_drm_primary_plane_atomic_update()
181 new_state->crtc->state->mode_changed) { in armada_drm_primary_plane_atomic_update()
182 armada_reg_queue_set(regs, idx, armada_addr(new_state, 0, 0), in armada_drm_primary_plane_atomic_update()
184 armada_reg_queue_set(regs, idx, armada_addr(new_state, 1, 0), in armada_drm_primary_plane_atomic_update()
186 armada_reg_queue_mod(regs, idx, armada_pitch(new_state, 0), in armada_drm_primary_plane_atomic_update()
190 if (old_state->fb != new_state->fb || in armada_drm_primary_plane_atomic_update()
191 new_state->crtc->state->mode_changed) { in armada_drm_primary_plane_atomic_update()
192 cfg = CFG_GRA_FMT(drm_fb_to_armada_fb(new_state->fb)->fmt) | in armada_drm_primary_plane_atomic_update()
193 CFG_GRA_MOD(drm_fb_to_armada_fb(new_state->fb)->mod); in armada_drm_primary_plane_atomic_update()
194 if (drm_fb_to_armada_fb(new_state->fb)->fmt > CFG_420) in armada_drm_primary_plane_atomic_update()
196 if (new_state->visible) in armada_drm_primary_plane_atomic_update()
198 if (to_armada_plane_state(new_state)->interlace) in armada_drm_primary_plane_atomic_update()
205 } else if (old_state->visible != new_state->visible) { in armada_drm_primary_plane_atomic_update()
206 cfg = new_state->visible ? CFG_GRA_ENA : 0; in armada_drm_primary_plane_atomic_update()
211 if (drm_rect_width(&old_state->src) != drm_rect_width(&new_state->src) || in armada_drm_primary_plane_atomic_update()
212 drm_rect_width(&old_state->dst) != drm_rect_width(&new_state->dst)) { in armada_drm_primary_plane_atomic_update()
214 if (drm_rect_width(&new_state->src) >> 16 != in armada_drm_primary_plane_atomic_update()
215 drm_rect_width(&new_state->dst)) in armada_drm_primary_plane_atomic_update()