Lines Matching refs:new_state
534 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in tegra_shared_plane_atomic_update() local
536 struct tegra_plane_state *tegra_plane_state = to_tegra_plane_state(new_state); in tegra_shared_plane_atomic_update()
537 struct tegra_dc *dc = to_tegra_dc(new_state->crtc); in tegra_shared_plane_atomic_update()
538 unsigned int zpos = new_state->normalized_zpos; in tegra_shared_plane_atomic_update()
539 struct drm_framebuffer *fb = new_state->fb; in tegra_shared_plane_atomic_update()
548 if (!new_state->crtc || !new_state->fb) in tegra_shared_plane_atomic_update()
551 if (!new_state->visible) { in tegra_shared_plane_atomic_update()
583 min_width = min(new_state->src_w >> 16, new_state->crtc_w); in tegra_shared_plane_atomic_update()
601 if (new_state->src_w != new_state->crtc_w << 16) { in tegra_shared_plane_atomic_update()
602 fixed20_12 width = dfixed_init(new_state->src_w >> 16); in tegra_shared_plane_atomic_update()
603 u32 incr = compute_phase_incr(width, new_state->crtc_w) & ~0x1; in tegra_shared_plane_atomic_update()
612 if (new_state->src_h != new_state->crtc_h << 16) { in tegra_shared_plane_atomic_update()
613 fixed20_12 height = dfixed_init(new_state->src_h >> 16); in tegra_shared_plane_atomic_update()
614 u32 incr = compute_phase_incr(height, new_state->crtc_h) & ~0x1; in tegra_shared_plane_atomic_update()
644 value = V_POSITION(new_state->crtc_y) | in tegra_shared_plane_atomic_update()
645 H_POSITION(new_state->crtc_x); in tegra_shared_plane_atomic_update()
648 value = V_SIZE(new_state->crtc_h) | H_SIZE(new_state->crtc_w); in tegra_shared_plane_atomic_update()
654 value = V_SIZE(new_state->src_h >> 16) | H_SIZE(new_state->src_w >> 16); in tegra_shared_plane_atomic_update()
703 value = OFFSET_X(new_state->src_y >> 16) | in tegra_shared_plane_atomic_update()
704 OFFSET_Y(new_state->src_x >> 16); in tegra_shared_plane_atomic_update()