Lines Matching refs:show_priv
34 struct msm_gpu_show_priv *show_priv = m->private; in msm_gpu_show() local
35 struct msm_drm_private *priv = show_priv->dev->dev_private; in msm_gpu_show()
44 gpu->funcs->show(gpu, show_priv->state, &p); in msm_gpu_show()
54 struct msm_gpu_show_priv *show_priv = m->private; in msm_gpu_release() local
55 struct msm_drm_private *priv = show_priv->dev->dev_private; in msm_gpu_release()
59 gpu->funcs->gpu_state_put(show_priv->state); in msm_gpu_release()
62 kfree(show_priv); in msm_gpu_release()
72 struct msm_gpu_show_priv *show_priv; in msm_gpu_open() local
78 show_priv = kmalloc(sizeof(*show_priv), GFP_KERNEL); in msm_gpu_open()
79 if (!show_priv) in msm_gpu_open()
88 show_priv->state = gpu->funcs->gpu_state_get(gpu); in msm_gpu_open()
93 if (IS_ERR(show_priv->state)) { in msm_gpu_open()
94 ret = PTR_ERR(show_priv->state); in msm_gpu_open()
98 show_priv->dev = dev; in msm_gpu_open()
100 ret = single_open(file, msm_gpu_show, show_priv); in msm_gpu_open()
107 kfree(show_priv); in msm_gpu_open()