Lines Matching refs:kms
32 msm_disp_snapshot_state_sync(struct msm_kms *kms) in msm_disp_snapshot_state_sync() argument
34 struct drm_device *drm_dev = kms->dev; in msm_disp_snapshot_state_sync()
37 WARN_ON(!mutex_is_locked(&kms->dump_mutex)); in msm_disp_snapshot_state_sync()
55 struct msm_kms *kms = container_of(work, struct msm_kms, dump_work); in _msm_disp_snapshot_work() local
60 mutex_lock(&kms->dump_mutex); in _msm_disp_snapshot_work()
61 disp_state = msm_disp_snapshot_state_sync(kms); in _msm_disp_snapshot_work()
62 mutex_unlock(&kms->dump_mutex); in _msm_disp_snapshot_work()
84 struct msm_kms *kms; in msm_disp_snapshot_state() local
92 kms = priv->kms; in msm_disp_snapshot_state()
94 kthread_queue_work(kms->dump_worker, &kms->dump_work); in msm_disp_snapshot_state()
100 struct msm_kms *kms; in msm_disp_snapshot_init() local
108 kms = priv->kms; in msm_disp_snapshot_init()
110 mutex_init(&kms->dump_mutex); in msm_disp_snapshot_init()
112 kms->dump_worker = kthread_create_worker(0, "%s", "disp_snapshot"); in msm_disp_snapshot_init()
113 if (IS_ERR(kms->dump_worker)) in msm_disp_snapshot_init()
116 kthread_init_work(&kms->dump_work, _msm_disp_snapshot_work); in msm_disp_snapshot_init()
123 struct msm_kms *kms; in msm_disp_snapshot_destroy() local
132 kms = priv->kms; in msm_disp_snapshot_destroy()
134 if (kms->dump_worker) in msm_disp_snapshot_destroy()
135 kthread_destroy_worker(kms->dump_worker); in msm_disp_snapshot_destroy()
137 mutex_destroy(&kms->dump_mutex); in msm_disp_snapshot_destroy()