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()
618 width = ipu_src_rect_width(new_state); in ipu_plane_atomic_update()
620 width = drm_rect_width(&new_state->src) >> 16; in ipu_plane_atomic_update()
621 height = drm_rect_height(&new_state->src) >> 16; in ipu_plane_atomic_update()
623 eba = drm_plane_state_to_eba(new_state, 0); 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()
709 ubo = drm_plane_state_to_ubo(new_state); in ipu_plane_atomic_update()
710 vbo = drm_plane_state_to_vbo(new_state); in ipu_plane_atomic_update()
721 new_state->src.x1 >> 16, new_state->src.y1 >> 16); in ipu_plane_atomic_update()
725 ubo = drm_plane_state_to_ubo(new_state); in ipu_plane_atomic_update()
732 new_state->src.x1 >> 16, new_state->src.y1 >> 16); in ipu_plane_atomic_update()
740 alpha_eba = drm_plane_state_to_eba(new_state, 1); in ipu_plane_atomic_update()
744 eba, alpha_eba, new_state->src.x1 >> 16, in ipu_plane_atomic_update()
745 new_state->src.y1 >> 16); in ipu_plane_atomic_update()
761 eba, new_state->src.x1 >> 16, new_state->src.y1 >> 16); in ipu_plane_atomic_update()