Lines Matching refs:priv_state
144 struct drm_private_state *priv_state; in ingenic_drm_get_priv_state() local
146 priv_state = drm_atomic_get_private_obj_state(state, &priv->private_obj); in ingenic_drm_get_priv_state()
147 if (IS_ERR(priv_state)) in ingenic_drm_get_priv_state()
148 return ERR_CAST(priv_state); in ingenic_drm_get_priv_state()
150 return to_ingenic_drm_priv_state(priv_state); in ingenic_drm_get_priv_state()
156 struct drm_private_state *priv_state; in ingenic_drm_get_new_priv_state() local
158 priv_state = drm_atomic_get_new_private_obj_state(state, &priv->private_obj); in ingenic_drm_get_new_priv_state()
159 if (!priv_state) in ingenic_drm_get_new_priv_state()
162 return to_ingenic_drm_priv_state(priv_state); in ingenic_drm_get_new_priv_state()
246 struct ingenic_drm_private_state *priv_state; in ingenic_drm_crtc_atomic_enable() local
249 priv_state = ingenic_drm_get_priv_state(priv, state); in ingenic_drm_crtc_atomic_enable()
250 if (WARN_ON(IS_ERR(priv_state))) in ingenic_drm_crtc_atomic_enable()
254 next_id = priv_state->use_palette ? HWDESC_PALETTE : 0; in ingenic_drm_crtc_atomic_enable()
462 struct ingenic_drm_private_state *priv_state; in ingenic_drm_plane_atomic_check() local
478 priv_state = ingenic_drm_get_priv_state(priv, state); in ingenic_drm_plane_atomic_check()
479 if (IS_ERR(priv_state)) in ingenic_drm_plane_atomic_check()
480 return PTR_ERR(priv_state); in ingenic_drm_plane_atomic_check()
500 priv_state->use_palette = new_plane_state->fb && in ingenic_drm_plane_atomic_check()
663 struct ingenic_drm_private_state *priv_state; in ingenic_drm_plane_atomic_update() local
681 priv_state = ingenic_drm_get_new_priv_state(priv, state); in ingenic_drm_plane_atomic_update()
682 next_id = (priv_state && priv_state->use_palette) ? HWDESC_PALETTE : plane_id; in ingenic_drm_plane_atomic_update()
944 struct ingenic_drm_private_state *priv_state = to_ingenic_drm_priv_state(state); in ingenic_drm_destroy_state() local
946 kfree(priv_state); in ingenic_drm_destroy_state()