Home
last modified time | relevance | path

Searched refs:struct_mutex (Results 1 – 24 of 24) sorted by relevance

/Linux-v5.15/drivers/gpu/drm/via/
Dvia_mm.c49 mutex_lock(&dev->struct_mutex); in via_agp_init()
54 mutex_unlock(&dev->struct_mutex); in via_agp_init()
65 mutex_lock(&dev->struct_mutex); in via_fb_init()
71 mutex_unlock(&dev->struct_mutex); in via_fb_init()
102 mutex_lock(&dev->struct_mutex); in via_lastclose()
111 mutex_unlock(&dev->struct_mutex); in via_lastclose()
128 mutex_lock(&dev->struct_mutex); in via_mem_alloc()
131 mutex_unlock(&dev->struct_mutex); in via_mem_alloc()
161 mutex_unlock(&dev->struct_mutex); in via_mem_alloc()
174 mutex_unlock(&dev->struct_mutex); in via_mem_alloc()
[all …]
/Linux-v5.15/drivers/gpu/drm/sis/
Dsis_mm.c71 mutex_lock(&dev->struct_mutex); in sis_fb_init()
79 mutex_unlock(&dev->struct_mutex); in sis_fb_init()
95 mutex_lock(&dev->struct_mutex); in sis_drm_alloc()
101 mutex_unlock(&dev->struct_mutex); in sis_drm_alloc()
140 mutex_unlock(&dev->struct_mutex); in sis_drm_alloc()
154 mutex_unlock(&dev->struct_mutex); in sis_drm_alloc()
172 mutex_lock(&dev->struct_mutex); in sis_drm_free()
175 mutex_unlock(&dev->struct_mutex); in sis_drm_free()
188 mutex_unlock(&dev->struct_mutex); in sis_drm_free()
207 mutex_lock(&dev->struct_mutex); in sis_ioctl_agp_init()
[all …]
/Linux-v5.15/drivers/gpu/drm/
Ddrm_context.c66 mutex_lock(&dev->struct_mutex); in drm_legacy_ctxbitmap_free()
68 mutex_unlock(&dev->struct_mutex); in drm_legacy_ctxbitmap_free()
84 mutex_lock(&dev->struct_mutex); in drm_legacy_ctxbitmap_next()
87 mutex_unlock(&dev->struct_mutex); in drm_legacy_ctxbitmap_next()
121 mutex_lock(&dev->struct_mutex); in drm_legacy_ctxbitmap_cleanup()
123 mutex_unlock(&dev->struct_mutex); in drm_legacy_ctxbitmap_cleanup()
189 mutex_lock(&dev->struct_mutex); in drm_legacy_getsareactx()
193 mutex_unlock(&dev->struct_mutex); in drm_legacy_getsareactx()
206 mutex_unlock(&dev->struct_mutex); in drm_legacy_getsareactx()
237 mutex_lock(&dev->struct_mutex); in drm_legacy_setsareactx()
[all …]
Ddrm_bufs.c352 mutex_lock(&dev->struct_mutex); in drm_addmap_core()
366 mutex_unlock(&dev->struct_mutex); in drm_addmap_core()
371 mutex_unlock(&dev->struct_mutex); in drm_addmap_core()
481 mutex_lock(&dev->struct_mutex); in drm_legacy_getmap_ioctl()
490 mutex_unlock(&dev->struct_mutex); in drm_legacy_getmap_ioctl()
501 mutex_unlock(&dev->struct_mutex); in drm_legacy_getmap_ioctl()
577 mutex_lock(&dev->struct_mutex); in drm_legacy_rmmap()
579 mutex_unlock(&dev->struct_mutex); in drm_legacy_rmmap()
590 mutex_lock(&dev->struct_mutex); in drm_legacy_master_rmmaps()
597 mutex_unlock(&dev->struct_mutex); in drm_legacy_master_rmmaps()
[all …]
Ddrm_irq.c191 mutex_lock(&dev->struct_mutex); in drm_legacy_irq_control()
193 mutex_unlock(&dev->struct_mutex); in drm_legacy_irq_control()
197 mutex_lock(&dev->struct_mutex); in drm_legacy_irq_control()
199 mutex_unlock(&dev->struct_mutex); in drm_legacy_irq_control()
Ddrm_vm.c244 mutex_lock(&dev->struct_mutex); in drm_vm_shm_close()
288 mutex_unlock(&dev->struct_mutex); in drm_vm_shm_close()
410 mutex_lock(&dev->struct_mutex); in drm_vm_open()
412 mutex_unlock(&dev->struct_mutex); in drm_vm_open()
445 mutex_lock(&dev->struct_mutex); in drm_vm_close()
447 mutex_unlock(&dev->struct_mutex); in drm_vm_close()
646 mutex_lock(&dev->struct_mutex); in drm_legacy_mmap()
648 mutex_unlock(&dev->struct_mutex); in drm_legacy_mmap()
Ddrm_legacy_misc.c82 mutex_lock(&dev->struct_mutex); in drm_legacy_dev_reinit()
90 mutex_unlock(&dev->struct_mutex); in drm_legacy_dev_reinit()
Ddrm_lock.c364 mutex_lock(&dev->struct_mutex); in drm_legacy_lock_master_cleanup()
372 mutex_unlock(&dev->struct_mutex); in drm_legacy_lock_master_cleanup()
Ddrm_drv.c576 mutex_destroy(&dev->struct_mutex); in drm_dev_init_release()
611 mutex_init(&dev->struct_mutex); in drm_dev_init()
/Linux-v5.15/drivers/gpu/drm/msm/
Dmsm_debugfs.c32 ret = mutex_lock_interruptible(&show_priv->dev->struct_mutex); in msm_gpu_show()
39 mutex_unlock(&show_priv->dev->struct_mutex); in msm_gpu_show()
51 mutex_lock(&show_priv->dev->struct_mutex); in msm_gpu_release()
53 mutex_unlock(&show_priv->dev->struct_mutex); in msm_gpu_release()
75 ret = mutex_lock_interruptible(&dev->struct_mutex); in msm_gpu_open()
83 mutex_unlock(&dev->struct_mutex); in msm_gpu_open()
193 ret = mutex_lock_interruptible(&dev->struct_mutex); in show_locked()
199 mutex_unlock(&dev->struct_mutex); in show_locked()
Dmsm_fbdev.c84 mutex_lock(&dev->struct_mutex); in msm_fbdev_create()
127 mutex_unlock(&dev->struct_mutex); in msm_fbdev_create()
132 mutex_unlock(&dev->struct_mutex); in msm_fbdev_create()
Dmsm_gpu.h530 mutex_lock(&gpu->dev->struct_mutex); in msm_gpu_crashstate_get()
537 mutex_unlock(&gpu->dev->struct_mutex); in msm_gpu_crashstate_get()
544 mutex_lock(&gpu->dev->struct_mutex); in msm_gpu_crashstate_put()
551 mutex_unlock(&gpu->dev->struct_mutex); in msm_gpu_crashstate_put()
Dmsm_ringbuffer.c35 mutex_lock(&gpu->dev->struct_mutex); in msm_job_run()
39 mutex_unlock(&gpu->dev->struct_mutex); in msm_job_run()
Dmsm_rd.c184 mutex_lock(&dev->struct_mutex); in rd_open()
203 mutex_unlock(&dev->struct_mutex); in rd_open()
358 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in msm_rd_dump_submit()
Dmsm_perf.c158 mutex_lock(&dev->struct_mutex); in perf_open()
174 mutex_unlock(&dev->struct_mutex); in perf_open()
Dmsm_gpu.c153 WARN_ON(!mutex_is_locked(&gpu->dev->struct_mutex)); in msm_gpu_hw_init()
364 mutex_lock(&dev->struct_mutex); in recover_worker()
445 mutex_unlock(&dev->struct_mutex); in recover_worker()
458 mutex_lock(&dev->struct_mutex); in fault_worker()
493 mutex_unlock(&dev->struct_mutex); in fault_worker()
736 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in msm_gpu_submit()
Dmsm_drv.c729 mutex_lock(&dev->struct_mutex); in msm_postclose()
732 mutex_unlock(&dev->struct_mutex); in msm_postclose()
/Linux-v5.15/drivers/gpu/drm/msm/adreno/
Da5xx_debugfs.c110 mutex_lock(&dev->struct_mutex); in reset_set()
136 mutex_unlock(&dev->struct_mutex); in reset_set()
Dadreno_device.c411 mutex_lock(&dev->struct_mutex); in adreno_load_gpu()
413 mutex_unlock(&dev->struct_mutex); in adreno_load_gpu()
/Linux-v5.15/include/drm/
Ddrm_device.h146 struct mutex struct_mutex; member
/Linux-v5.15/drivers/gpu/drm/i915/gt/uc/
Dintel_guc_log.c518 mutex_lock(&dev_priv->drm.struct_mutex); in intel_guc_log_set_level()
536 mutex_unlock(&dev_priv->drm.struct_mutex); in intel_guc_log_set_level()
/Linux-v5.15/Documentation/gpu/
Dtodo.rst149 Get rid of dev->struct_mutex from GEM drivers
152 ``dev->struct_mutex`` is the Big DRM Lock from legacy days and infested
158 Core GEM doesn't have a need for ``struct_mutex`` any more since kernel 4.8,
160 entirely ``struct_mutex`` free.
162 For drivers that need ``struct_mutex`` it should be replaced with a driver-
168 the ``msm`` and `i915` drivers use ``struct_mutex``.
Di915.rst349 #. No struct_mutex anywhere in the code
360 of the shrinker vs. struct_mutex saga, and that would be
/Linux-v5.15/drivers/gpu/drm/i915/
Di915_irq.c1023 mutex_lock(&dev_priv->drm.struct_mutex); in ivb_parity_work()
1080 mutex_unlock(&dev_priv->drm.struct_mutex); in ivb_parity_work()