Lines Matching refs:show_priv
27 struct msm_gpu_show_priv *show_priv = m->private; in msm_gpu_show() local
28 struct msm_drm_private *priv = show_priv->dev->dev_private; in msm_gpu_show()
32 ret = mutex_lock_interruptible(&show_priv->dev->struct_mutex); in msm_gpu_show()
37 gpu->funcs->show(gpu, show_priv->state, &p); in msm_gpu_show()
39 mutex_unlock(&show_priv->dev->struct_mutex); in msm_gpu_show()
47 struct msm_gpu_show_priv *show_priv = m->private; in msm_gpu_release() local
48 struct msm_drm_private *priv = show_priv->dev->dev_private; in msm_gpu_release()
51 mutex_lock(&show_priv->dev->struct_mutex); in msm_gpu_release()
52 gpu->funcs->gpu_state_put(show_priv->state); in msm_gpu_release()
53 mutex_unlock(&show_priv->dev->struct_mutex); in msm_gpu_release()
55 kfree(show_priv); in msm_gpu_release()
65 struct msm_gpu_show_priv *show_priv; in msm_gpu_open() local
71 show_priv = kmalloc(sizeof(*show_priv), GFP_KERNEL); in msm_gpu_open()
72 if (!show_priv) in msm_gpu_open()
80 show_priv->state = gpu->funcs->gpu_state_get(gpu); in msm_gpu_open()
85 if (IS_ERR(show_priv->state)) { in msm_gpu_open()
86 ret = PTR_ERR(show_priv->state); in msm_gpu_open()
90 show_priv->dev = dev; in msm_gpu_open()
92 ret = single_open(file, msm_gpu_show, show_priv); in msm_gpu_open()
99 kfree(show_priv); in msm_gpu_open()