Lines Matching refs:new_state
537 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in tegra_shared_plane_atomic_update() local
539 struct tegra_plane_state *tegra_plane_state = to_tegra_plane_state(new_state); in tegra_shared_plane_atomic_update()
540 struct tegra_dc *dc = to_tegra_dc(new_state->crtc); in tegra_shared_plane_atomic_update()
541 unsigned int zpos = new_state->normalized_zpos; in tegra_shared_plane_atomic_update()
542 struct drm_framebuffer *fb = new_state->fb; in tegra_shared_plane_atomic_update()
551 if (!new_state->crtc || !new_state->fb) in tegra_shared_plane_atomic_update()
554 if (!new_state->visible) { in tegra_shared_plane_atomic_update()
586 min_width = min(new_state->src_w >> 16, new_state->crtc_w); in tegra_shared_plane_atomic_update()
604 if (new_state->src_w != new_state->crtc_w << 16) { in tegra_shared_plane_atomic_update()
605 fixed20_12 width = dfixed_init(new_state->src_w >> 16); in tegra_shared_plane_atomic_update()
606 u32 incr = compute_phase_incr(width, new_state->crtc_w) & ~0x1; in tegra_shared_plane_atomic_update()
615 if (new_state->src_h != new_state->crtc_h << 16) { in tegra_shared_plane_atomic_update()
616 fixed20_12 height = dfixed_init(new_state->src_h >> 16); in tegra_shared_plane_atomic_update()
617 u32 incr = compute_phase_incr(height, new_state->crtc_h) & ~0x1; in tegra_shared_plane_atomic_update()
647 value = V_POSITION(new_state->crtc_y) | in tegra_shared_plane_atomic_update()
648 H_POSITION(new_state->crtc_x); in tegra_shared_plane_atomic_update()
651 value = V_SIZE(new_state->crtc_h) | H_SIZE(new_state->crtc_w); in tegra_shared_plane_atomic_update()
657 value = V_SIZE(new_state->src_h >> 16) | H_SIZE(new_state->src_w >> 16); in tegra_shared_plane_atomic_update()
712 value = OFFSET_X(new_state->src_y >> 16) | in tegra_shared_plane_atomic_update()
713 OFFSET_Y(new_state->src_x >> 16); in tegra_shared_plane_atomic_update()