Lines Matching refs:newstate

706 	struct drm_plane_state *newstate = drm_atomic_get_new_plane_state(state,  in sti_gdp_atomic_update()  local
710 struct drm_crtc *crtc = newstate->crtc; in sti_gdp_atomic_update()
711 struct drm_framebuffer *fb = newstate->fb; in sti_gdp_atomic_update()
728 if ((oldstate->fb == newstate->fb) && in sti_gdp_atomic_update()
729 (oldstate->crtc_x == newstate->crtc_x) && in sti_gdp_atomic_update()
730 (oldstate->crtc_y == newstate->crtc_y) && in sti_gdp_atomic_update()
731 (oldstate->crtc_w == newstate->crtc_w) && in sti_gdp_atomic_update()
732 (oldstate->crtc_h == newstate->crtc_h) && in sti_gdp_atomic_update()
733 (oldstate->src_x == newstate->src_x) && in sti_gdp_atomic_update()
734 (oldstate->src_y == newstate->src_y) && in sti_gdp_atomic_update()
735 (oldstate->src_w == newstate->src_w) && in sti_gdp_atomic_update()
736 (oldstate->src_h == newstate->src_h)) { in sti_gdp_atomic_update()
754 dst_x = newstate->crtc_x; in sti_gdp_atomic_update()
755 dst_y = newstate->crtc_y; in sti_gdp_atomic_update()
756 dst_w = clamp_val(newstate->crtc_w, 0, mode->hdisplay - dst_x); in sti_gdp_atomic_update()
757 dst_h = clamp_val(newstate->crtc_h, 0, mode->vdisplay - dst_y); in sti_gdp_atomic_update()
759 src_x = newstate->src_x >> 16; in sti_gdp_atomic_update()
760 src_y = newstate->src_y >> 16; in sti_gdp_atomic_update()
761 src_w = clamp_val(newstate->src_w >> 16, 0, GAM_GDP_SIZE_MAX_WIDTH); in sti_gdp_atomic_update()
762 src_h = clamp_val(newstate->src_h >> 16, 0, GAM_GDP_SIZE_MAX_HEIGHT); in sti_gdp_atomic_update()