Lines Matching refs:new_state

73 	struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state,  in armada_drm_overlay_plane_atomic_update()  local
82 if (!new_state->fb || WARN_ON(!new_state->crtc)) in armada_drm_overlay_plane_atomic_update()
87 new_state->crtc->base.id, new_state->crtc->name, in armada_drm_overlay_plane_atomic_update()
88 new_state->fb->base.id, in armada_drm_overlay_plane_atomic_update()
89 old_state->visible, new_state->visible); in armada_drm_overlay_plane_atomic_update()
91 dcrtc = drm_to_armada_crtc(new_state->crtc); in armada_drm_overlay_plane_atomic_update()
95 if (!old_state->visible && new_state->visible) in armada_drm_overlay_plane_atomic_update()
99 val = armada_src_hw(new_state); in armada_drm_overlay_plane_atomic_update()
102 val = armada_dst_yx(new_state); in armada_drm_overlay_plane_atomic_update()
105 val = armada_dst_hw(new_state); in armada_drm_overlay_plane_atomic_update()
109 if (old_state->src.x1 != new_state->src.x1 || in armada_drm_overlay_plane_atomic_update()
110 old_state->src.y1 != new_state->src.y1 || in armada_drm_overlay_plane_atomic_update()
111 old_state->fb != new_state->fb || in armada_drm_overlay_plane_atomic_update()
112 new_state->crtc->state->mode_changed) { in armada_drm_overlay_plane_atomic_update()
116 armada_reg_queue_set(regs, idx, armada_addr(new_state, 0, 0), in armada_drm_overlay_plane_atomic_update()
118 armada_reg_queue_set(regs, idx, armada_addr(new_state, 0, 1), in armada_drm_overlay_plane_atomic_update()
120 armada_reg_queue_set(regs, idx, armada_addr(new_state, 0, 2), in armada_drm_overlay_plane_atomic_update()
122 armada_reg_queue_set(regs, idx, armada_addr(new_state, 1, 0), in armada_drm_overlay_plane_atomic_update()
124 armada_reg_queue_set(regs, idx, armada_addr(new_state, 1, 1), in armada_drm_overlay_plane_atomic_update()
126 armada_reg_queue_set(regs, idx, armada_addr(new_state, 1, 2), in armada_drm_overlay_plane_atomic_update()
129 val = armada_pitch(new_state, 0) << 16 | armada_pitch(new_state, in armada_drm_overlay_plane_atomic_update()
132 val = armada_pitch(new_state, 1) << 16 | armada_pitch(new_state, in armada_drm_overlay_plane_atomic_update()
136 cfg = CFG_DMA_FMT(drm_fb_to_armada_fb(new_state->fb)->fmt) | in armada_drm_overlay_plane_atomic_update()
137 CFG_DMA_MOD(drm_fb_to_armada_fb(new_state->fb)->mod) | in armada_drm_overlay_plane_atomic_update()
139 if (new_state->visible) in armada_drm_overlay_plane_atomic_update()
147 format = new_state->fb->format; in armada_drm_overlay_plane_atomic_update()
148 src_x = new_state->src.x1 >> 16; in armada_drm_overlay_plane_atomic_update()
151 if (to_armada_plane_state(new_state)->interlace) in armada_drm_overlay_plane_atomic_update()
158 } else if (old_state->visible != new_state->visible) { in armada_drm_overlay_plane_atomic_update()
159 cfg = new_state->visible ? CFG_DMA_ENA : 0; in armada_drm_overlay_plane_atomic_update()
164 if (drm_rect_width(&old_state->src) != drm_rect_width(&new_state->src) || in armada_drm_overlay_plane_atomic_update()
165 drm_rect_width(&old_state->dst) != drm_rect_width(&new_state->dst)) { in armada_drm_overlay_plane_atomic_update()
167 if (drm_rect_width(&new_state->src) >> 16 != in armada_drm_overlay_plane_atomic_update()
168 drm_rect_width(&new_state->dst)) in armada_drm_overlay_plane_atomic_update()
176 val = armada_spu_contrast(new_state); in armada_drm_overlay_plane_atomic_update()
177 if ((!old_state->visible && new_state->visible) || in armada_drm_overlay_plane_atomic_update()
180 val = armada_spu_saturation(new_state); in armada_drm_overlay_plane_atomic_update()
181 if ((!old_state->visible && new_state->visible) || in armada_drm_overlay_plane_atomic_update()
184 if (!old_state->visible && new_state->visible) in armada_drm_overlay_plane_atomic_update()
186 val = armada_csc(new_state); in armada_drm_overlay_plane_atomic_update()
187 if ((!old_state->visible && new_state->visible) || in armada_drm_overlay_plane_atomic_update()
191 val = drm_to_overlay_state(new_state)->colorkey_yr; in armada_drm_overlay_plane_atomic_update()
192 if ((!old_state->visible && new_state->visible) || in armada_drm_overlay_plane_atomic_update()
195 val = drm_to_overlay_state(new_state)->colorkey_ug; in armada_drm_overlay_plane_atomic_update()
196 if ((!old_state->visible && new_state->visible) || in armada_drm_overlay_plane_atomic_update()
199 val = drm_to_overlay_state(new_state)->colorkey_vb; in armada_drm_overlay_plane_atomic_update()
200 if ((!old_state->visible && new_state->visible) || in armada_drm_overlay_plane_atomic_update()
203 val = drm_to_overlay_state(new_state)->colorkey_mode; in armada_drm_overlay_plane_atomic_update()
204 if ((!old_state->visible && new_state->visible) || in armada_drm_overlay_plane_atomic_update()
209 val = drm_to_overlay_state(new_state)->colorkey_enable; in armada_drm_overlay_plane_atomic_update()
210 if (((!old_state->visible && new_state->visible) || in armada_drm_overlay_plane_atomic_update()