/kernel/linux/linux-5.10/drivers/gpu/drm/via/ |
D | via_mm.c | 50 mutex_lock(&dev->struct_mutex); in via_agp_init() 55 mutex_unlock(&dev->struct_mutex); in via_agp_init() 66 mutex_lock(&dev->struct_mutex); in via_fb_init() 72 mutex_unlock(&dev->struct_mutex); in via_fb_init() 103 mutex_lock(&dev->struct_mutex); in via_lastclose() 112 mutex_unlock(&dev->struct_mutex); in via_lastclose() 129 mutex_lock(&dev->struct_mutex); in via_mem_alloc() 134 mutex_unlock(&dev->struct_mutex); in via_mem_alloc() 162 mutex_unlock(&dev->struct_mutex); in via_mem_alloc() 175 mutex_unlock(&dev->struct_mutex); in via_mem_alloc() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 | 351 mutex_lock(&dev->struct_mutex); in drm_addmap_core() 365 mutex_unlock(&dev->struct_mutex); in drm_addmap_core() 370 mutex_unlock(&dev->struct_mutex); in drm_addmap_core() 480 mutex_lock(&dev->struct_mutex); in drm_legacy_getmap_ioctl() 489 mutex_unlock(&dev->struct_mutex); in drm_legacy_getmap_ioctl() 500 mutex_unlock(&dev->struct_mutex); in drm_legacy_getmap_ioctl() 576 mutex_lock(&dev->struct_mutex); in drm_legacy_rmmap() 578 mutex_unlock(&dev->struct_mutex); in drm_legacy_rmmap() 589 mutex_lock(&dev->struct_mutex); in drm_legacy_master_rmmaps() 596 mutex_unlock(&dev->struct_mutex); in drm_legacy_master_rmmaps() [all …]
|
D | drm_irq.c | 243 mutex_lock(&dev->struct_mutex); in drm_legacy_irq_control() 245 mutex_unlock(&dev->struct_mutex); in drm_legacy_irq_control() 249 mutex_lock(&dev->struct_mutex); in drm_legacy_irq_control() 251 mutex_unlock(&dev->struct_mutex); in drm_legacy_irq_control()
|
D | drm_vm.c | 249 mutex_lock(&dev->struct_mutex); in drm_vm_shm_close() 293 mutex_unlock(&dev->struct_mutex); in drm_vm_shm_close() 415 mutex_lock(&dev->struct_mutex); in drm_vm_open() 417 mutex_unlock(&dev->struct_mutex); in drm_vm_open() 450 mutex_lock(&dev->struct_mutex); in drm_vm_close() 452 mutex_unlock(&dev->struct_mutex); in drm_vm_close() 651 mutex_lock(&dev->struct_mutex); in drm_legacy_mmap() 653 mutex_unlock(&dev->struct_mutex); in drm_legacy_mmap()
|
D | drm_legacy_misc.c | 84 mutex_lock(&dev->struct_mutex); in drm_legacy_dev_reinit() 92 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 | 572 mutex_destroy(&dev->struct_mutex); in drm_dev_init_release() 608 mutex_init(&dev->struct_mutex); in drm_dev_init()
|
/kernel/linux/linux-5.10/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() 84 mutex_unlock(&dev->struct_mutex); in msm_gpu_open() 169 ret = mutex_lock_interruptible(&dev->struct_mutex); in show_locked() 175 mutex_unlock(&dev->struct_mutex); in show_locked()
|
D | msm_gem_shrinker.c | 25 switch (mutex_trylock_recursive(&dev->struct_mutex)) { in msm_gem_shrinker_lock() 60 mutex_unlock(&dev->struct_mutex); in msm_gem_shrinker_count() 88 mutex_unlock(&dev->struct_mutex); in msm_gem_shrinker_scan() 122 mutex_unlock(&dev->struct_mutex); in msm_gem_shrinker_vmap()
|
D | msm_gpu.h | 323 mutex_lock(&gpu->dev->struct_mutex); in msm_gpu_crashstate_get() 330 mutex_unlock(&gpu->dev->struct_mutex); in msm_gpu_crashstate_get() 337 mutex_lock(&gpu->dev->struct_mutex); in msm_gpu_crashstate_put() 344 mutex_unlock(&gpu->dev->struct_mutex); in msm_gpu_crashstate_put()
|
D | msm_fbdev.c | 90 mutex_lock(&dev->struct_mutex); in msm_fbdev_create() 133 mutex_unlock(&dev->struct_mutex); in msm_fbdev_create() 138 mutex_unlock(&dev->struct_mutex); in msm_fbdev_create()
|
D | msm_gem.c | 641 WARN_ON(!mutex_is_locked(&obj->dev->struct_mutex)); in msm_gem_madvise() 658 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in msm_gem_purge() 748 WARN_ON(!mutex_is_locked(&obj->dev->struct_mutex)); in msm_gem_active_get() 763 WARN_ON(!mutex_is_locked(&obj->dev->struct_mutex)); in msm_gem_active_put() 925 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in free_object() 967 mutex_lock(&dev->struct_mutex); in msm_gem_free_work() 973 mutex_unlock(&dev->struct_mutex); in msm_gem_free_work() 1107 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in _msm_gem_new() 1110 mutex_lock(&dev->struct_mutex); in _msm_gem_new() 1112 mutex_unlock(&dev->struct_mutex); in _msm_gem_new() [all …]
|
D | msm_gpu.c | 254 WARN_ON(!mutex_is_locked(&gpu->dev->struct_mutex)); in msm_gpu_hw_init() 433 WARN_ON(!mutex_is_locked(&ring->gpu->dev->struct_mutex)); in find_submit() 454 mutex_lock(&dev->struct_mutex); in recover_worker() 531 mutex_unlock(&dev->struct_mutex); in recover_worker() 718 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in retire_submits() 740 mutex_lock(&dev->struct_mutex); in retire_worker() 742 mutex_unlock(&dev->struct_mutex); in retire_worker() 761 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in msm_gpu_submit()
|
D | msm_rd.c | 184 mutex_lock(&dev->struct_mutex); in rd_open() 206 mutex_unlock(&dev->struct_mutex); in rd_open() 357 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_gem.h | 103 WARN_ON(!mutex_is_locked(&msm_obj->base.dev->struct_mutex)); in is_purgeable()
|
D | msm_drv.c | 625 mutex_lock(&dev->struct_mutex); in msm_postclose() 628 mutex_unlock(&dev->struct_mutex); in msm_postclose() 918 ret = mutex_lock_interruptible(&dev->struct_mutex); in msm_ioctl_gem_madvise() 937 mutex_unlock(&dev->struct_mutex); in msm_ioctl_gem_madvise()
|
D | msm_gem_submit.c | 667 ret = mutex_lock_interruptible(&dev->struct_mutex); in msm_ioctl_gem_submit() 810 mutex_unlock(&dev->struct_mutex); in msm_ioctl_gem_submit()
|
/kernel/linux/linux-5.10/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 | 317 mutex_lock(&dev->struct_mutex); in adreno_load_gpu() 319 mutex_unlock(&dev->struct_mutex); in adreno_load_gpu()
|
/kernel/linux/linux-5.10/include/drm/ |
D | drm_device.h | 153 struct mutex struct_mutex; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/uc/ |
D | intel_guc_log.c | 525 mutex_lock(&dev_priv->drm.struct_mutex); in intel_guc_log_set_level() 543 mutex_unlock(&dev_priv->drm.struct_mutex); in intel_guc_log_set_level()
|
/kernel/linux/linux-5.10/Documentation/gpu/ |
D | todo.rst | 142 Get rid of dev->struct_mutex from GEM drivers 145 ``dev->struct_mutex`` is the Big DRM Lock from legacy days and infested 151 Core GEM doesn't have a need for ``struct_mutex`` any more since kernel 4.8, 153 entirely ``struct_mutex`` free. 155 For drivers that need ``struct_mutex`` it should be replaced with a driver- 161 the ``msm`` and `i915` drivers use ``struct_mutex``.
|