Lines Matching refs:new_state
369 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in ipu_plane_atomic_check() local
375 struct drm_framebuffer *fb = new_state->fb; in ipu_plane_atomic_check()
385 if (WARN_ON(!new_state->crtc)) in ipu_plane_atomic_check()
390 new_state->crtc); in ipu_plane_atomic_check()
394 ret = drm_atomic_helper_check_plane_state(new_state, crtc_state, in ipu_plane_atomic_check()
408 if (drm_rect_width(&new_state->dst) < 13) in ipu_plane_atomic_check()
418 if (drm_rect_height(&new_state->dst) < 2) in ipu_plane_atomic_check()
429 (drm_rect_width(&new_state->dst) != drm_rect_width(&old_state->dst) || in ipu_plane_atomic_check()
430 drm_rect_height(&new_state->dst) != drm_rect_height(&old_state->dst) || in ipu_plane_atomic_check()
434 eba = drm_plane_state_to_eba(new_state, 0); in ipu_plane_atomic_check()
466 vbo = drm_plane_state_to_vbo(new_state); in ipu_plane_atomic_check()
483 ubo = drm_plane_state_to_ubo(new_state); in ipu_plane_atomic_check()
504 if (((new_state->src.x1 >> 16) & (fb->format->hsub - 1)) || in ipu_plane_atomic_check()
505 ((new_state->src.y1 >> 16) & (fb->format->vsub - 1))) in ipu_plane_atomic_check()
514 alpha_eba = drm_plane_state_to_eba(new_state, 1); in ipu_plane_atomic_check()
580 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, in ipu_plane_atomic_update() local
582 struct ipu_plane_state *ipu_state = to_ipu_plane_state(new_state); in ipu_plane_atomic_update()
583 struct drm_crtc_state *crtc_state = new_state->crtc->state; in ipu_plane_atomic_update()
584 struct drm_framebuffer *fb = new_state->fb; in ipu_plane_atomic_update()
585 struct drm_rect *dst = &new_state->dst; in ipu_plane_atomic_update()
600 if (new_state->normalized_zpos == 1) { in ipu_plane_atomic_update()
609 if (new_state->normalized_zpos == 1) { in ipu_plane_atomic_update()
617 eba = drm_plane_state_to_eba(new_state, 0); in ipu_plane_atomic_update()
626 ipu_src_rect_width(new_state), in ipu_plane_atomic_update()
627 drm_rect_height(&new_state->src) >> 16, in ipu_plane_atomic_update()
634 old_state->color_encoding != new_state->color_encoding || in ipu_plane_atomic_update()
635 old_state->color_range != new_state->color_range) { in ipu_plane_atomic_update()
639 ipu_dp_setup_channel(ipu_plane->dp, new_state->color_encoding, in ipu_plane_atomic_update()
640 new_state->color_range, ics, 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()
683 width = ipu_src_rect_width(new_state); in ipu_plane_atomic_update()
684 height = drm_rect_height(&new_state->src) >> 16; in ipu_plane_atomic_update()
706 ubo = drm_plane_state_to_ubo(new_state); in ipu_plane_atomic_update()
707 vbo = drm_plane_state_to_vbo(new_state); in ipu_plane_atomic_update()
718 new_state->src.x1 >> 16, new_state->src.y1 >> 16); in ipu_plane_atomic_update()
722 ubo = drm_plane_state_to_ubo(new_state); in ipu_plane_atomic_update()
729 new_state->src.x1 >> 16, new_state->src.y1 >> 16); in ipu_plane_atomic_update()
737 alpha_eba = drm_plane_state_to_eba(new_state, 1); in ipu_plane_atomic_update()
741 eba, alpha_eba, new_state->src.x1 >> 16, in ipu_plane_atomic_update()
742 new_state->src.y1 >> 16); in ipu_plane_atomic_update()
748 ipu_src_rect_width(new_state), in ipu_plane_atomic_update()
749 drm_rect_height(&new_state->src) >> 16); in ipu_plane_atomic_update()
760 eba, new_state->src.x1 >> 16, new_state->src.y1 >> 16); in ipu_plane_atomic_update()