Lines Matching refs:new_state

536 	struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state,  in tegra_shared_plane_atomic_update()  local
538 struct tegra_plane_state *tegra_plane_state = to_tegra_plane_state(new_state); in tegra_shared_plane_atomic_update()
539 struct tegra_dc *dc = to_tegra_dc(new_state->crtc); in tegra_shared_plane_atomic_update()
540 unsigned int zpos = new_state->normalized_zpos; in tegra_shared_plane_atomic_update()
541 struct drm_framebuffer *fb = new_state->fb; in tegra_shared_plane_atomic_update()
550 if (!new_state->crtc || !new_state->fb) in tegra_shared_plane_atomic_update()
553 if (!new_state->visible) { in tegra_shared_plane_atomic_update()
585 min_width = min(new_state->src_w >> 16, new_state->crtc_w); in tegra_shared_plane_atomic_update()
603 if (new_state->src_w != new_state->crtc_w << 16) { in tegra_shared_plane_atomic_update()
604 fixed20_12 width = dfixed_init(new_state->src_w >> 16); in tegra_shared_plane_atomic_update()
605 u32 incr = compute_phase_incr(width, new_state->crtc_w) & ~0x1; in tegra_shared_plane_atomic_update()
614 if (new_state->src_h != new_state->crtc_h << 16) { in tegra_shared_plane_atomic_update()
615 fixed20_12 height = dfixed_init(new_state->src_h >> 16); in tegra_shared_plane_atomic_update()
616 u32 incr = compute_phase_incr(height, new_state->crtc_h) & ~0x1; in tegra_shared_plane_atomic_update()
646 value = V_POSITION(new_state->crtc_y) | in tegra_shared_plane_atomic_update()
647 H_POSITION(new_state->crtc_x); in tegra_shared_plane_atomic_update()
650 value = V_SIZE(new_state->crtc_h) | H_SIZE(new_state->crtc_w); in tegra_shared_plane_atomic_update()
656 value = V_SIZE(new_state->src_h >> 16) | H_SIZE(new_state->src_w >> 16); in tegra_shared_plane_atomic_update()
711 value = OFFSET_X(new_state->src_y >> 16) | in tegra_shared_plane_atomic_update()
712 OFFSET_Y(new_state->src_x >> 16); in tegra_shared_plane_atomic_update()