Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/gpu/drm/via/
Dvia_mm.c50 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/
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 …]
/kernel/linux/linux-5.10/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.c351 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 …]
Ddrm_irq.c243 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()
Ddrm_vm.c249 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()
Ddrm_legacy_misc.c84 mutex_lock(&dev->struct_mutex); in drm_legacy_dev_reinit()
92 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.c572 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/
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()
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()
Dmsm_gem_shrinker.c25 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()
Dmsm_gpu.h323 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()
Dmsm_fbdev.c90 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()
Dmsm_gem.c641 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 …]
Dmsm_gpu.c254 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()
Dmsm_rd.c184 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()
Dmsm_perf.c158 mutex_lock(&dev->struct_mutex); in perf_open()
174 mutex_unlock(&dev->struct_mutex); in perf_open()
Dmsm_gem.h103 WARN_ON(!mutex_is_locked(&msm_obj->base.dev->struct_mutex)); in is_purgeable()
Dmsm_drv.c625 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()
Dmsm_gem_submit.c667 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/
Da5xx_debugfs.c110 mutex_lock(&dev->struct_mutex); in reset_set()
136 mutex_unlock(&dev->struct_mutex); in reset_set()
Dadreno_device.c317 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/
Ddrm_device.h153 struct mutex struct_mutex; member
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/uc/
Dintel_guc_log.c525 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/
Dtodo.rst142 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``.

12