Lines Matching refs:new_state

374 	struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state,  in ipu_plane_atomic_check()  local
380 struct drm_framebuffer *fb = new_state->fb; in ipu_plane_atomic_check()
390 if (WARN_ON(!new_state->crtc)) in ipu_plane_atomic_check()
395 new_state->crtc); in ipu_plane_atomic_check()
399 ret = drm_atomic_helper_check_plane_state(new_state, crtc_state, in ipu_plane_atomic_check()
413 if (drm_rect_width(&new_state->dst) < 13) in ipu_plane_atomic_check()
423 if (drm_rect_height(&new_state->dst) < 2) in ipu_plane_atomic_check()
434 (drm_rect_width(&new_state->dst) != drm_rect_width(&old_state->dst) || in ipu_plane_atomic_check()
435 drm_rect_height(&new_state->dst) != drm_rect_height(&old_state->dst) || in ipu_plane_atomic_check()
439 eba = drm_plane_state_to_eba(new_state, 0); in ipu_plane_atomic_check()
471 vbo = drm_plane_state_to_vbo(new_state); in ipu_plane_atomic_check()
488 ubo = drm_plane_state_to_ubo(new_state); in ipu_plane_atomic_check()
509 if (((new_state->src.x1 >> 16) & (fb->format->hsub - 1)) || in ipu_plane_atomic_check()
510 ((new_state->src.y1 >> 16) & (fb->format->vsub - 1))) in ipu_plane_atomic_check()
519 alpha_eba = drm_plane_state_to_eba(new_state, 1); in ipu_plane_atomic_check()
585 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in ipu_plane_atomic_update() local
587 struct ipu_plane_state *ipu_state = to_ipu_plane_state(new_state); in ipu_plane_atomic_update()
588 struct drm_crtc_state *crtc_state = new_state->crtc->state; in ipu_plane_atomic_update()
589 struct drm_framebuffer *fb = new_state->fb; in ipu_plane_atomic_update()
590 struct drm_rect *dst = &new_state->dst; in ipu_plane_atomic_update()
605 if (new_state->normalized_zpos == 1) { in ipu_plane_atomic_update()
614 if (new_state->normalized_zpos == 1) { in ipu_plane_atomic_update()
622 eba = drm_plane_state_to_eba(new_state, 0); in ipu_plane_atomic_update()
631 ipu_src_rect_width(new_state), in ipu_plane_atomic_update()
632 drm_rect_height(&new_state->src) >> 16, in ipu_plane_atomic_update()
639 old_state->color_encoding != new_state->color_encoding || in ipu_plane_atomic_update()
640 old_state->color_range != new_state->color_range) { in ipu_plane_atomic_update()
644 ipu_dp_setup_channel(ipu_plane->dp, new_state->color_encoding, in ipu_plane_atomic_update()
645 new_state->color_range, ics, in ipu_plane_atomic_update()
649 ipu_dp_setup_channel(ipu_plane->dp, new_state->color_encoding, in ipu_plane_atomic_update()
650 new_state->color_range, ics, in ipu_plane_atomic_update()
688 width = ipu_src_rect_width(new_state); in ipu_plane_atomic_update()
689 height = drm_rect_height(&new_state->src) >> 16; in ipu_plane_atomic_update()
711 ubo = drm_plane_state_to_ubo(new_state); in ipu_plane_atomic_update()
712 vbo = drm_plane_state_to_vbo(new_state); in ipu_plane_atomic_update()
723 new_state->src.x1 >> 16, new_state->src.y1 >> 16); in ipu_plane_atomic_update()
727 ubo = drm_plane_state_to_ubo(new_state); in ipu_plane_atomic_update()
734 new_state->src.x1 >> 16, new_state->src.y1 >> 16); in ipu_plane_atomic_update()
742 alpha_eba = drm_plane_state_to_eba(new_state, 1); in ipu_plane_atomic_update()
746 eba, alpha_eba, new_state->src.x1 >> 16, in ipu_plane_atomic_update()
747 new_state->src.y1 >> 16); in ipu_plane_atomic_update()
753 ipu_src_rect_width(new_state), in ipu_plane_atomic_update()
754 drm_rect_height(&new_state->src) >> 16); in ipu_plane_atomic_update()
765 eba, new_state->src.x1 >> 16, new_state->src.y1 >> 16); in ipu_plane_atomic_update()