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