Lines Matching refs:show_priv
35 struct msm_gpu_show_priv *show_priv = m->private; in msm_gpu_show() local
36 struct msm_drm_private *priv = show_priv->dev->dev_private; in msm_gpu_show()
45 gpu->funcs->show(gpu, show_priv->state, &p); in msm_gpu_show()
55 struct msm_gpu_show_priv *show_priv = m->private; in msm_gpu_release() local
56 struct msm_drm_private *priv = show_priv->dev->dev_private; in msm_gpu_release()
60 gpu->funcs->gpu_state_put(show_priv->state); in msm_gpu_release()
63 kfree(show_priv); in msm_gpu_release()
73 struct msm_gpu_show_priv *show_priv; in msm_gpu_open() local
79 show_priv = kmalloc(sizeof(*show_priv), GFP_KERNEL); in msm_gpu_open()
80 if (!show_priv) in msm_gpu_open()
89 show_priv->state = gpu->funcs->gpu_state_get(gpu); in msm_gpu_open()
94 if (IS_ERR(show_priv->state)) { in msm_gpu_open()
95 ret = PTR_ERR(show_priv->state); in msm_gpu_open()
99 show_priv->dev = dev; in msm_gpu_open()
101 ret = single_open(file, msm_gpu_show, show_priv); in msm_gpu_open()
108 kfree(show_priv); in msm_gpu_open()