Lines Matching refs:newstate
291 struct drm_plane_state *newstate = drm_atomic_get_new_plane_state(state, plane); in ingenic_ipu_plane_atomic_update() local
298 if (!newstate || !newstate->fb) in ingenic_ipu_plane_atomic_update()
301 finfo = drm_format_info(newstate->fb->format->format); in ingenic_ipu_plane_atomic_update()
314 needs_modeset = drm_atomic_crtc_needs_modeset(newstate->crtc->state); in ingenic_ipu_plane_atomic_update()
324 drm_fb_cma_sync_non_coherent(ipu->drm, oldstate, newstate); in ingenic_ipu_plane_atomic_update()
327 ipu->addr_y = drm_fb_cma_get_gem_addr(newstate->fb, newstate, 0); in ingenic_ipu_plane_atomic_update()
329 ipu->addr_u = drm_fb_cma_get_gem_addr(newstate->fb, newstate, in ingenic_ipu_plane_atomic_update()
332 ipu->addr_v = drm_fb_cma_get_gem_addr(newstate->fb, newstate, in ingenic_ipu_plane_atomic_update()
350 stride = ((newstate->src_w >> 16) * finfo->cpp[2] / finfo->hsub) in ingenic_ipu_plane_atomic_update()
354 stride |= ((newstate->src_w >> 16) * finfo->cpp[1] / finfo->hsub) in ingenic_ipu_plane_atomic_update()
359 stride = ((newstate->src_w >> 16) * finfo->cpp[0]) << JZ_IPU_Y_STRIDE_Y_LSB; in ingenic_ipu_plane_atomic_update()
364 ((newstate->src_h >> 16) << JZ_IPU_IN_GS_H_LSB)); in ingenic_ipu_plane_atomic_update()
433 ((newstate->crtc_w * 4) << JZ_IPU_OUT_GS_W_LSB) in ingenic_ipu_plane_atomic_update()
434 | newstate->crtc_h << JZ_IPU_OUT_GS_H_LSB); in ingenic_ipu_plane_atomic_update()
435 regmap_write(ipu->map, JZ_REG_IPU_OUT_STRIDE, newstate->crtc_w * 4); in ingenic_ipu_plane_atomic_update()
520 newstate->src_w >> 16, newstate->src_h >> 16, in ingenic_ipu_plane_atomic_update()
521 newstate->crtc_w, newstate->crtc_h, in ingenic_ipu_plane_atomic_update()