/Linux-v5.15/drivers/gpu/drm/via/ |
D | via_mm.c | 49 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/ |
D | sis_mm.c | 71 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/ |
D | drm_context.c | 66 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 …]
|
D | drm_bufs.c | 352 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 …]
|
D | drm_irq.c | 191 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()
|
D | drm_vm.c | 244 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()
|
D | drm_legacy_misc.c | 82 mutex_lock(&dev->struct_mutex); in drm_legacy_dev_reinit() 90 mutex_unlock(&dev->struct_mutex); in drm_legacy_dev_reinit()
|
D | drm_lock.c | 364 mutex_lock(&dev->struct_mutex); in drm_legacy_lock_master_cleanup() 372 mutex_unlock(&dev->struct_mutex); in drm_legacy_lock_master_cleanup()
|
D | drm_drv.c | 576 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/ |
D | msm_debugfs.c | 32 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()
|
D | msm_fbdev.c | 84 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()
|
D | msm_gpu.h | 530 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()
|
D | msm_ringbuffer.c | 35 mutex_lock(&gpu->dev->struct_mutex); in msm_job_run() 39 mutex_unlock(&gpu->dev->struct_mutex); in msm_job_run()
|
D | msm_rd.c | 184 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()
|
D | msm_perf.c | 158 mutex_lock(&dev->struct_mutex); in perf_open() 174 mutex_unlock(&dev->struct_mutex); in perf_open()
|
D | msm_gpu.c | 153 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()
|
D | msm_drv.c | 729 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/ |
D | a5xx_debugfs.c | 110 mutex_lock(&dev->struct_mutex); in reset_set() 136 mutex_unlock(&dev->struct_mutex); in reset_set()
|
D | adreno_device.c | 411 mutex_lock(&dev->struct_mutex); in adreno_load_gpu() 413 mutex_unlock(&dev->struct_mutex); in adreno_load_gpu()
|
/Linux-v5.15/include/drm/ |
D | drm_device.h | 146 struct mutex struct_mutex; member
|
/Linux-v5.15/drivers/gpu/drm/i915/gt/uc/ |
D | intel_guc_log.c | 518 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/ |
D | todo.rst | 149 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``.
|
D | i915.rst | 349 #. 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/ |
D | i915_irq.c | 1023 mutex_lock(&dev_priv->drm.struct_mutex); in ivb_parity_work() 1080 mutex_unlock(&dev_priv->drm.struct_mutex); in ivb_parity_work()
|