Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/gpu/drm/via/
Dvia_mm.c45 mutex_lock(&dev->struct_mutex); in via_agp_init()
50 mutex_unlock(&dev->struct_mutex); in via_agp_init()
61 mutex_lock(&dev->struct_mutex); in via_fb_init()
67 mutex_unlock(&dev->struct_mutex); in via_fb_init()
98 mutex_lock(&dev->struct_mutex); in via_lastclose()
107 mutex_unlock(&dev->struct_mutex); in via_lastclose()
124 mutex_lock(&dev->struct_mutex); in via_mem_alloc()
129 mutex_unlock(&dev->struct_mutex); in via_mem_alloc()
157 mutex_unlock(&dev->struct_mutex); in via_mem_alloc()
170 mutex_unlock(&dev->struct_mutex); in via_mem_alloc()
[all …]
/linux-4.4.14/drivers/gpu/drm/sis/
Dsis_mm.c68 mutex_lock(&dev->struct_mutex); in sis_fb_init()
76 mutex_unlock(&dev->struct_mutex); in sis_fb_init()
92 mutex_lock(&dev->struct_mutex); in sis_drm_alloc()
98 mutex_unlock(&dev->struct_mutex); in sis_drm_alloc()
139 mutex_unlock(&dev->struct_mutex); in sis_drm_alloc()
153 mutex_unlock(&dev->struct_mutex); in sis_drm_alloc()
171 mutex_lock(&dev->struct_mutex); in sis_drm_free()
174 mutex_unlock(&dev->struct_mutex); in sis_drm_free()
187 mutex_unlock(&dev->struct_mutex); in sis_drm_free()
206 mutex_lock(&dev->struct_mutex); in sis_ioctl_agp_init()
[all …]
/linux-4.4.14/drivers/gpu/drm/
Ddrm_context.c60 mutex_lock(&dev->struct_mutex); in drm_legacy_ctxbitmap_free()
62 mutex_unlock(&dev->struct_mutex); in drm_legacy_ctxbitmap_free()
78 mutex_lock(&dev->struct_mutex); in drm_legacy_ctxbitmap_next()
81 mutex_unlock(&dev->struct_mutex); in drm_legacy_ctxbitmap_next()
115 mutex_lock(&dev->struct_mutex); in drm_legacy_ctxbitmap_cleanup()
117 mutex_unlock(&dev->struct_mutex); in drm_legacy_ctxbitmap_cleanup()
183 mutex_lock(&dev->struct_mutex); in drm_legacy_getsareactx()
187 mutex_unlock(&dev->struct_mutex); in drm_legacy_getsareactx()
200 mutex_unlock(&dev->struct_mutex); in drm_legacy_getsareactx()
231 mutex_lock(&dev->struct_mutex); in drm_legacy_setsareactx()
[all …]
Ddrm_info.c87 mutex_lock(&dev->struct_mutex); in drm_vm_info()
110 mutex_unlock(&dev->struct_mutex); in drm_vm_info()
124 mutex_lock(&dev->struct_mutex); in drm_bufs_info()
127 mutex_unlock(&dev->struct_mutex); in drm_bufs_info()
152 mutex_unlock(&dev->struct_mutex); in drm_bufs_info()
177 mutex_lock(&dev->struct_mutex); in drm_clients_info()
193 mutex_unlock(&dev->struct_mutex); in drm_clients_info()
Ddrm_auth.c51 mutex_lock(&dev->struct_mutex); in drm_getmagic()
59 mutex_unlock(&dev->struct_mutex); in drm_getmagic()
84 mutex_lock(&dev->struct_mutex); in drm_authmagic()
90 mutex_unlock(&dev->struct_mutex); in drm_authmagic()
Ddrm_bufs.c337 mutex_lock(&dev->struct_mutex); in drm_addmap_core()
351 mutex_unlock(&dev->struct_mutex); in drm_addmap_core()
356 mutex_unlock(&dev->struct_mutex); in drm_addmap_core()
489 mutex_lock(&dev->struct_mutex); in drm_legacy_rmmap()
491 mutex_unlock(&dev->struct_mutex); in drm_legacy_rmmap()
520 mutex_lock(&dev->struct_mutex); in drm_legacy_rmmap_ioctl()
534 mutex_unlock(&dev->struct_mutex); in drm_legacy_rmmap_ioctl()
540 mutex_unlock(&dev->struct_mutex); in drm_legacy_rmmap_ioctl()
546 mutex_unlock(&dev->struct_mutex); in drm_legacy_rmmap_ioctl()
663 mutex_lock(&dev->struct_mutex); in drm_legacy_addbufs_agp()
[all …]
Ddrm_fops.c255 mutex_lock(&dev->struct_mutex); in drm_open_helper()
257 mutex_unlock(&dev->struct_mutex); in drm_open_helper()
371 mutex_lock(&dev->struct_mutex); in drm_lastclose()
379 mutex_unlock(&dev->struct_mutex); in drm_lastclose()
410 mutex_lock(&dev->struct_mutex); in drm_release()
414 mutex_unlock(&dev->struct_mutex); in drm_release()
456 mutex_lock(&dev->struct_mutex); in drm_release()
464 mutex_unlock(&dev->struct_mutex); in drm_release()
Ddrm_vm.c232 mutex_lock(&dev->struct_mutex); in drm_vm_shm_close()
278 mutex_unlock(&dev->struct_mutex); in drm_vm_shm_close()
427 mutex_lock(&dev->struct_mutex); in drm_vm_open()
429 mutex_unlock(&dev->struct_mutex); in drm_vm_open()
462 mutex_lock(&dev->struct_mutex); in drm_vm_close()
464 mutex_unlock(&dev->struct_mutex); in drm_vm_close()
663 mutex_lock(&dev->struct_mutex); in drm_legacy_mmap()
665 mutex_unlock(&dev->struct_mutex); in drm_legacy_mmap()
693 mutex_lock(&dev->struct_mutex); in drm_vma_info()
732 mutex_unlock(&dev->struct_mutex); in drm_vma_info()
Ddrm_drv.c120 mutex_lock(&dev->struct_mutex); in drm_master_destroy()
130 mutex_unlock(&dev->struct_mutex); in drm_master_destroy()
594 mutex_init(&dev->struct_mutex); in drm_dev_alloc()
Ddrm_ioctl.c179 mutex_lock(&dev->struct_mutex); in drm_getmap()
188 mutex_unlock(&dev->struct_mutex); in drm_getmap()
199 mutex_unlock(&dev->struct_mutex); in drm_getmap()
Ddrm_irq.c647 mutex_lock(&dev->struct_mutex); in drm_control()
649 mutex_unlock(&dev->struct_mutex); in drm_control()
653 mutex_lock(&dev->struct_mutex); in drm_control()
655 mutex_unlock(&dev->struct_mutex); in drm_control()
Ddrm_gem.c770 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in drm_gem_object_free()
/linux-4.4.14/drivers/gpu/drm/msm/
Dmsm_gem.c140 mutex_lock(&dev->struct_mutex); in msm_gem_get_pages()
142 mutex_unlock(&dev->struct_mutex); in msm_gem_get_pages()
205 ret = mutex_lock_interruptible(&dev->struct_mutex); in msm_gem_fault()
228 mutex_unlock(&dev->struct_mutex); in msm_gem_fault()
254 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in mmap_offset()
270 mutex_lock(&obj->dev->struct_mutex); in msm_gem_mmap_offset()
272 mutex_unlock(&obj->dev->struct_mutex); in msm_gem_mmap_offset()
332 mutex_lock(&obj->dev->struct_mutex); in msm_gem_get_iova()
334 mutex_unlock(&obj->dev->struct_mutex); in msm_gem_get_iova()
391 WARN_ON(!mutex_is_locked(&obj->dev->struct_mutex)); in msm_gem_vaddr_locked()
[all …]
Dmsm_gpu.c162 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in msm_gpu_pm_resume()
192 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in msm_gpu_pm_suspend()
228 mutex_lock(&dev->struct_mutex); in inactive_worker()
234 mutex_unlock(&dev->struct_mutex); in inactive_worker()
277 mutex_lock(&dev->struct_mutex); in recover_worker()
293 mutex_unlock(&dev->struct_mutex); in recover_worker()
438 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in retire_submits()
463 mutex_lock(&dev->struct_mutex); in retire_worker()
484 mutex_unlock(&dev->struct_mutex); in retire_worker()
506 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in msm_gpu_submit()
[all …]
Dmsm_fbdev.c107 mutex_lock(&dev->struct_mutex); in msm_fbdev_create()
110 mutex_unlock(&dev->struct_mutex); in msm_fbdev_create()
129 mutex_lock(&dev->struct_mutex); in msm_fbdev_create()
173 mutex_unlock(&dev->struct_mutex); in msm_fbdev_create()
178 mutex_unlock(&dev->struct_mutex); in msm_fbdev_create()
Dmsm_drv.c215 mutex_lock(&dev->struct_mutex); in msm_unload()
217 mutex_unlock(&dev->struct_mutex); in msm_unload()
482 mutex_lock(&dev->struct_mutex); in msm_preclose()
485 mutex_unlock(&dev->struct_mutex); in msm_preclose()
621 ret = mutex_lock_interruptible(&dev->struct_mutex); in show_locked()
627 mutex_unlock(&dev->struct_mutex); in show_locked()
763 mutex_lock(&dev->struct_mutex); in msm_queue_fence_cb()
772 mutex_unlock(&dev->struct_mutex); in msm_queue_fence_cb()
782 mutex_lock(&dev->struct_mutex); in msm_update_fence()
798 mutex_unlock(&dev->struct_mutex); in msm_update_fence()
Dmsm_rd.c169 mutex_lock(&dev->struct_mutex); in rd_open()
188 mutex_unlock(&dev->struct_mutex); in rd_open()
295 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in msm_rd_dump_submit()
Dmsm_perf.c168 mutex_lock(&dev->struct_mutex); in perf_open()
184 mutex_unlock(&dev->struct_mutex); in perf_open()
Dmsm_gem_submit.c341 mutex_lock(&dev->struct_mutex); in msm_ioctl_gem_submit()
424 mutex_unlock(&dev->struct_mutex); in msm_ioctl_gem_submit()
/linux-4.4.14/drivers/gpu/drm/i915/
Di915_gem_dmabuf.c77 mutex_unlock(&obj->base.dev->struct_mutex); in i915_gem_map_dma_buf()
87 mutex_unlock(&obj->base.dev->struct_mutex); in i915_gem_map_dma_buf()
98 mutex_lock(&obj->base.dev->struct_mutex); in i915_gem_unmap_dma_buf()
106 mutex_unlock(&obj->base.dev->struct_mutex); in i915_gem_unmap_dma_buf()
150 mutex_unlock(&dev->struct_mutex); in i915_gem_dmabuf_vmap()
156 mutex_unlock(&dev->struct_mutex); in i915_gem_dmabuf_vmap()
165 mutex_lock(&dev->struct_mutex); in i915_gem_dmabuf_vunmap()
172 mutex_unlock(&dev->struct_mutex); in i915_gem_dmabuf_vunmap()
211 mutex_unlock(&dev->struct_mutex); in i915_gem_begin_cpu_access()
Di915_gem_shrinker.c177 if (!mutex_trylock(&dev->struct_mutex)) { in i915_gem_shrinker_lock()
178 if (!mutex_is_locked_by(&dev->struct_mutex, current)) in i915_gem_shrinker_lock()
230 mutex_unlock(&dev->struct_mutex); in i915_gem_shrinker_count()
258 mutex_unlock(&dev->struct_mutex); in i915_gem_shrinker_scan()
317 mutex_unlock(&dev->struct_mutex); in i915_gem_shrinker_oom()
Di915_gem_context.c269 BUG_ON(!mutex_is_locked(&dev->struct_mutex)); in i915_gem_create_context()
480 mutex_lock(&dev->struct_mutex); in i915_gem_context_open()
482 mutex_unlock(&dev->struct_mutex); in i915_gem_context_open()
829 WARN_ON(!mutex_is_locked(&dev_priv->dev->struct_mutex)); in i915_switch_context()
865 mutex_unlock(&dev->struct_mutex); in i915_gem_context_create_ioctl()
892 mutex_unlock(&dev->struct_mutex); in i915_gem_context_destroy_ioctl()
898 mutex_unlock(&dev->struct_mutex); in i915_gem_context_destroy_ioctl()
918 mutex_unlock(&dev->struct_mutex); in i915_gem_context_getparam_ioctl()
934 mutex_unlock(&dev->struct_mutex); in i915_gem_context_getparam_ioctl()
953 mutex_unlock(&dev->struct_mutex); in i915_gem_context_setparam_ioctl()
[all …]
Dintel_fbdev.c58 mutex_lock(&fb_helper->dev->struct_mutex); in intel_fbdev_set_par()
60 mutex_unlock(&fb_helper->dev->struct_mutex); in intel_fbdev_set_par()
76 mutex_lock(&fb_helper->dev->struct_mutex); in intel_fbdev_blank()
78 mutex_unlock(&fb_helper->dev->struct_mutex); in intel_fbdev_blank()
95 mutex_lock(&fb_helper->dev->struct_mutex); in intel_fbdev_pan_display()
97 mutex_unlock(&fb_helper->dev->struct_mutex); in intel_fbdev_pan_display()
196 mutex_lock(&dev->struct_mutex); in intelfb_create()
276 mutex_unlock(&dev->struct_mutex); in intelfb_create()
286 mutex_unlock(&dev->struct_mutex); in intelfb_create()
800 mutex_lock(&fb_helper->dev->struct_mutex); in intel_fbdev_restore_mode()
[all …]
Di915_gem_tiling.c179 mutex_lock(&dev->struct_mutex); in i915_gem_set_tiling()
270 mutex_unlock(&dev->struct_mutex); in i915_gem_set_tiling()
300 mutex_lock(&dev->struct_mutex); in i915_gem_get_tiling()
328 mutex_unlock(&dev->struct_mutex); in i915_gem_get_tiling()
Di915_suspend.c109 mutex_lock(&dev->struct_mutex); in i915_save_state()
144 mutex_unlock(&dev->struct_mutex); in i915_save_state()
154 mutex_lock(&dev->struct_mutex); in i915_restore_state()
191 mutex_unlock(&dev->struct_mutex); in i915_restore_state()
Di915_debugfs.c213 ret = mutex_lock_interruptible(&dev->struct_mutex); in i915_gem_object_list_info()
228 mutex_unlock(&dev->struct_mutex); in i915_gem_object_list_info()
241 mutex_unlock(&dev->struct_mutex); in i915_gem_object_list_info()
273 ret = mutex_lock_interruptible(&dev->struct_mutex); in i915_gem_stolen_list_info()
306 mutex_unlock(&dev->struct_mutex); in i915_gem_stolen_list_info()
443 ret = mutex_lock_interruptible(&dev->struct_mutex); in i915_gem_object_info()
523 mutex_unlock(&dev->struct_mutex); in i915_gem_object_info()
538 ret = mutex_lock_interruptible(&dev->struct_mutex); in i915_gem_gtt_info()
555 mutex_unlock(&dev->struct_mutex); in i915_gem_gtt_info()
571 ret = mutex_lock_interruptible(&dev->struct_mutex); in i915_gem_pageflip_info()
[all …]
Di915_gem_batch_pool.c68 WARN_ON(!mutex_is_locked(&pool->dev->struct_mutex)); in i915_gem_batch_pool_fini()
105 WARN_ON(!mutex_is_locked(&pool->dev->struct_mutex)); in i915_gem_batch_pool_get()
Dintel_overlay.c414 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in intel_overlay_release_old_vid()
745 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in intel_overlay_do_put_image()
856 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in intel_overlay_switch_off()
1106 mutex_lock(&dev->struct_mutex); in intel_overlay_put_image()
1110 mutex_unlock(&dev->struct_mutex); in intel_overlay_put_image()
1135 mutex_lock(&dev->struct_mutex); in intel_overlay_put_image()
1215 mutex_unlock(&dev->struct_mutex); in intel_overlay_put_image()
1223 mutex_unlock(&dev->struct_mutex); in intel_overlay_put_image()
1300 mutex_lock(&dev->struct_mutex); in intel_overlay_attrs()
1365 mutex_unlock(&dev->struct_mutex); in intel_overlay_attrs()
[all …]
Dintel_frontbuffer.c85 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in intel_fb_obj_invalidate()
152 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in intel_fb_obj_flush()
Di915_gem.c121 ret = mutex_lock_interruptible(&dev->struct_mutex); in i915_mutex_lock_interruptible()
140 mutex_lock(&dev->struct_mutex); in i915_gem_get_aperture_ioctl()
147 mutex_unlock(&dev->struct_mutex); in i915_gem_get_aperture_ioctl()
345 mutex_unlock(&dev->struct_mutex); in i915_gem_phys_pwrite()
347 mutex_lock(&dev->struct_mutex); in i915_gem_phys_pwrite()
645 mutex_unlock(&dev->struct_mutex); in i915_gem_shmem_pread()
661 mutex_lock(&dev->struct_mutex); in i915_gem_shmem_pread()
731 mutex_unlock(&dev->struct_mutex); in i915_gem_pread_ioctl()
979 mutex_unlock(&dev->struct_mutex); in i915_gem_shmem_pwrite()
985 mutex_lock(&dev->struct_mutex); in i915_gem_shmem_pwrite()
[all …]
Dintel_guc_loader.c507 mutex_lock(&dev->struct_mutex); in guc_fw_fetch()
509 mutex_unlock(&dev->struct_mutex); in guc_fw_fetch()
601 mutex_lock(&dev->struct_mutex); in intel_guc_ucode_fini()
605 mutex_unlock(&dev->struct_mutex); in intel_guc_ucode_fini()
Di915_gem_userptr.c72 mutex_lock(&dev->struct_mutex); in __cancel_userptr__worker()
94 mutex_unlock(&dev->struct_mutex); in __cancel_userptr__worker()
193 mutex_lock(&dev->struct_mutex); in i915_mmu_notifier_add()
230 mutex_unlock(&dev->struct_mutex); in i915_mmu_notifier_add()
600 mutex_lock(&dev->struct_mutex); in __i915_gem_userptr_get_pages_worker()
619 mutex_unlock(&dev->struct_mutex); in __i915_gem_userptr_get_pages_worker()
Di915_sysfs.c192 mutex_unlock(&drm_dev->struct_mutex); in i915_l3_read()
225 mutex_unlock(&drm_dev->struct_mutex); in i915_l3_write()
233 mutex_unlock(&drm_dev->struct_mutex); in i915_l3_write()
250 mutex_unlock(&drm_dev->struct_mutex); in i915_l3_write()
565 ret = mutex_lock_interruptible(&dev->struct_mutex); in error_state_write()
570 mutex_unlock(&dev->struct_mutex); in error_state_write()
Di915_drv.c748 mutex_lock(&dev->struct_mutex); in i915_drm_resume()
750 mutex_unlock(&dev->struct_mutex); in i915_drm_resume()
768 mutex_lock(&dev->struct_mutex); in i915_drm_resume()
773 mutex_unlock(&dev->struct_mutex); in i915_drm_resume()
892 mutex_lock(&dev->struct_mutex); in i915_reset()
916 mutex_unlock(&dev->struct_mutex); in i915_reset()
944 mutex_unlock(&dev->struct_mutex); in i915_reset()
1493 if (!mutex_trylock(&dev->struct_mutex)) { in intel_runtime_suspend()
1508 mutex_unlock(&dev->struct_mutex); in intel_runtime_suspend()
Di915_gem_execbuffer.c815 mutex_unlock(&dev->struct_mutex); in i915_gem_execbuffer_relocate_slow()
826 mutex_lock(&dev->struct_mutex); in i915_gem_execbuffer_relocate_slow()
841 mutex_lock(&dev->struct_mutex); in i915_gem_execbuffer_relocate_slow()
859 mutex_lock(&dev->struct_mutex); in i915_gem_execbuffer_relocate_slow()
870 mutex_lock(&dev->struct_mutex); in i915_gem_execbuffer_relocate_slow()
1292 mutex_lock(&dev->struct_mutex); in gen8_dispatch_bsd_ring()
1301 mutex_unlock(&dev->struct_mutex); in gen8_dispatch_bsd_ring()
1435 mutex_unlock(&dev->struct_mutex); in i915_gem_do_execbuffer()
1452 mutex_unlock(&dev->struct_mutex); in i915_gem_do_execbuffer()
1478 BUG_ON(!mutex_is_locked(&dev->struct_mutex)); in i915_gem_do_execbuffer()
[all …]
Di915_dma.c449 mutex_lock(&dev->struct_mutex); in i915_load_modeset_init()
452 mutex_unlock(&dev->struct_mutex); in i915_load_modeset_init()
1193 mutex_lock(&dev->struct_mutex); in i915_driver_unload()
1196 mutex_unlock(&dev->struct_mutex); in i915_driver_unload()
1255 mutex_lock(&dev->struct_mutex); in i915_driver_preclose()
1258 mutex_unlock(&dev->struct_mutex); in i915_driver_preclose()
Di915_gem_evict.c221 WARN_ON(!mutex_is_locked(&vm->dev->struct_mutex)); in i915_gem_evict_vm()
Dintel_uncore.c1172 mutex_lock(&dev->struct_mutex); in intel_uncore_fw_domains_init()
1176 mutex_unlock(&dev->struct_mutex); in intel_uncore_fw_domains_init()
1347 ret = mutex_lock_interruptible(&dev->struct_mutex); in i915_get_reset_stats_ioctl()
1353 mutex_unlock(&dev->struct_mutex); in i915_get_reset_stats_ioctl()
1366 mutex_unlock(&dev->struct_mutex); in i915_get_reset_stats_ioctl()
Dintel_display.c2344 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in intel_pin_and_fence_fb_obj()
2440 WARN_ON(!mutex_is_locked(&obj->base.dev->struct_mutex)); in intel_unpin_fb_obj()
2569 mutex_lock(&dev->struct_mutex); in intel_alloc_initial_plane_obj()
2575 mutex_unlock(&dev->struct_mutex); in intel_alloc_initial_plane_obj()
2582 mutex_unlock(&dev->struct_mutex); in intel_alloc_initial_plane_obj()
3975 mutex_lock(&dev->struct_mutex); in intel_crtc_wait_for_pending_flips()
3977 mutex_unlock(&dev->struct_mutex); in intel_crtc_wait_for_pending_flips()
4693 mutex_lock(&dev->struct_mutex); in intel_crtc_dpms_overlay_disable()
4697 mutex_unlock(&dev->struct_mutex); in intel_crtc_dpms_overlay_disable()
4847 mutex_lock(&dev->struct_mutex); in intel_pre_plane_update()
[all …]
Dintel_lrc.c951 WARN_ON(!mutex_is_locked(&ring->dev->struct_mutex)); in intel_execlists_retire_requests()
1018 WARN_ON(!mutex_is_locked(&ring->dev->struct_mutex)); in intel_lr_context_do_pin()
1068 WARN_ON(!mutex_is_locked(&ring->dev->struct_mutex)); in intel_lr_context_unpin()
Di915_drv.h2303 WARN_ON(!mutex_is_locked(&req->ring->dev->struct_mutex)); in i915_gem_request_unreference()
2316 if (kref_put_mutex(&req->ref, i915_gem_request_free, &dev->struct_mutex)) in i915_gem_request_unreference__unlocked()
2317 mutex_unlock(&dev->struct_mutex); in i915_gem_request_unreference__unlocked()
Di915_trace.h617 mutex_is_locked(&ring->dev->struct_mutex);
Dintel_pm.c5242 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in cherryview_setup_pctx()
5265 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in valleyview_setup_pctx()
6240 mutex_lock(&dev->struct_mutex); in intel_enable_gt_powersave()
6243 mutex_unlock(&dev->struct_mutex); in intel_enable_gt_powersave()
Di915_irq.c1180 mutex_lock(&dev_priv->dev->struct_mutex); in ivybridge_parity_work()
1236 mutex_unlock(&dev_priv->dev->struct_mutex); in ivybridge_parity_work()
/linux-4.4.14/include/drm/
Ddrm_gem.h146 WARN_ON(!mutex_is_locked(&obj->dev->struct_mutex)); in drm_gem_object_unreference()
161 if (kref_put_mutex(&obj->refcount, drm_gem_object_free, &dev->struct_mutex)) in drm_gem_object_unreference_unlocked()
162 mutex_unlock(&dev->struct_mutex); in drm_gem_object_unreference_unlocked()
164 might_lock(&dev->struct_mutex); in drm_gem_object_unreference_unlocked()
DdrmP.h749 struct mutex struct_mutex; /**< For others */ member
/linux-4.4.14/drivers/gpu/drm/gma500/
Dgem.c65 mutex_lock(&dev->struct_mutex); in psb_gem_dumb_map_gtt()
83 mutex_unlock(&dev->struct_mutex); in psb_gem_dumb_map_gtt()
192 mutex_lock(&dev->struct_mutex); in psb_gem_fault()
218 mutex_unlock(&dev->struct_mutex); in psb_gem_fault()
Dframebuffer.c409 mutex_lock(&dev->struct_mutex); in psbfb_create()
466 mutex_unlock(&dev->struct_mutex); in psbfb_create()
476 mutex_unlock(&dev->struct_mutex); in psbfb_create()
787 mutex_lock(&dev->struct_mutex); in psb_modeset_cleanup()
793 mutex_unlock(&dev->struct_mutex); in psb_modeset_cleanup()
Dgma_display.c352 mutex_lock(&dev->struct_mutex); in gma_crtc_cursor_set()
369 mutex_unlock(&dev->struct_mutex); in gma_crtc_cursor_set()
379 mutex_lock(&dev->struct_mutex); in gma_crtc_cursor_set()
449 mutex_unlock(&dev->struct_mutex); in gma_crtc_cursor_set()
454 mutex_unlock(&dev->struct_mutex); in gma_crtc_cursor_set()
/linux-4.4.14/drivers/gpu/drm/exynos/
Dexynos_drm_gem.c355 mutex_lock(&dev->struct_mutex); in exynos_drm_gem_get_ioctl()
360 mutex_unlock(&dev->struct_mutex); in exynos_drm_gem_get_ioctl()
370 mutex_unlock(&dev->struct_mutex); in exynos_drm_gem_get_ioctl()
381 mutex_lock(&drm_dev->struct_mutex); in exynos_gem_map_sgt_with_dma()
386 mutex_unlock(&drm_dev->struct_mutex); in exynos_gem_map_sgt_with_dma()
390 mutex_unlock(&drm_dev->struct_mutex); in exynos_gem_map_sgt_with_dma()
451 mutex_lock(&dev->struct_mutex); in exynos_drm_gem_dumb_map_offset()
471 mutex_unlock(&dev->struct_mutex); in exynos_drm_gem_dumb_map_offset()
Dexynos_drm_fbdev.c141 mutex_lock(&dev->struct_mutex); in exynos_drm_fbdev_create()
176 mutex_unlock(&dev->struct_mutex); in exynos_drm_fbdev_create()
190 mutex_unlock(&dev->struct_mutex); in exynos_drm_fbdev_create()
/linux-4.4.14/drivers/gpu/drm/omapdrm/
Domap_gem.c311 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in mmap_offset()
327 mutex_lock(&obj->dev->struct_mutex); in omap_gem_mmap_offset()
329 mutex_unlock(&obj->dev->struct_mutex); in omap_gem_mmap_offset()
516 mutex_lock(&dev->struct_mutex); in omap_gem_fault()
536 mutex_unlock(&dev->struct_mutex); in omap_gem_fault()
674 mutex_lock(&obj->dev->struct_mutex); in omap_gem_roll()
688 mutex_unlock(&obj->dev->struct_mutex); in omap_gem_roll()
746 mutex_lock(&obj->dev->struct_mutex); in omap_gem_get_paddr()
803 mutex_unlock(&obj->dev->struct_mutex); in omap_gem_get_paddr()
816 mutex_lock(&obj->dev->struct_mutex); in omap_gem_put_paddr()
[all …]
Domap_debugfs.c35 ret = mutex_lock_interruptible(&dev->struct_mutex); in gem_show()
42 mutex_unlock(&dev->struct_mutex); in gem_show()
Domap_fbdev.c177 mutex_lock(&dev->struct_mutex); in omap_fbdev_create()
220 mutex_unlock(&dev->struct_mutex); in omap_fbdev_create()
225 mutex_unlock(&dev->struct_mutex); in omap_fbdev_create()
/linux-4.4.14/drivers/gpu/drm/vgem/
Dvgem_drv.c106 mutex_lock(&dev->struct_mutex); in vgem_gem_fault()
111 mutex_unlock(&dev->struct_mutex); in vgem_gem_fault()
204 mutex_lock(&dev->struct_mutex); in vgem_gem_dumb_map()
234 mutex_unlock(&dev->struct_mutex); in vgem_gem_dumb_map()
/linux-4.4.14/drivers/gpu/drm/tegra/
Dgem.c33 mutex_lock(&drm->struct_mutex); in tegra_bo_put()
35 mutex_unlock(&drm->struct_mutex); in tegra_bo_put()
77 mutex_lock(&drm->struct_mutex); in tegra_bo_get()
79 mutex_unlock(&drm->struct_mutex); in tegra_bo_get()
411 mutex_lock(&drm->struct_mutex); in tegra_bo_dumb_map_offset()
416 mutex_unlock(&drm->struct_mutex); in tegra_bo_dumb_map_offset()
426 mutex_unlock(&drm->struct_mutex); in tegra_bo_dumb_map_offset()
Ddrm.c280 mutex_lock(&drm->struct_mutex); in host1x_bo_lookup()
282 mutex_unlock(&drm->struct_mutex); in host1x_bo_lookup()
/linux-4.4.14/drivers/gpu/drm/armada/
Darmada_gem.c147 mutex_lock(&dev->struct_mutex); in armada_gem_linear_back()
150 mutex_unlock(&dev->struct_mutex); in armada_gem_linear_back()
161 mutex_lock(&dev->struct_mutex); in armada_gem_linear_back()
163 mutex_unlock(&dev->struct_mutex); in armada_gem_linear_back()
277 mutex_lock(&dev->struct_mutex); in armada_gem_dumb_map_offset()
299 mutex_unlock(&dev->struct_mutex); in armada_gem_dumb_map_offset()
Darmada_debugfs.c24 mutex_lock(&dev->struct_mutex); in armada_debugfs_gem_linear_show()
26 mutex_unlock(&dev->struct_mutex); in armada_debugfs_gem_linear_show()
Darmada_crtc.c931 mutex_lock(&dev->struct_mutex); in armada_drm_crtc_cursor_set()
945 mutex_unlock(&dev->struct_mutex); in armada_drm_crtc_cursor_set()
960 mutex_lock(&dev->struct_mutex); in armada_drm_crtc_cursor_move()
964 mutex_unlock(&dev->struct_mutex); in armada_drm_crtc_cursor_move()
/linux-4.4.14/drivers/gpu/drm/udl/
Dudl_gem.c219 mutex_lock(&dev->struct_mutex); in udl_gem_mmap()
239 mutex_unlock(&dev->struct_mutex); in udl_gem_mmap()
Dudl_dmabuf.c115 mutex_lock(&dev->struct_mutex); in udl_map_dma_buf()
140 mutex_unlock(&dev->struct_mutex); in udl_map_dma_buf()
/linux-4.4.14/drivers/gpu/drm/msm/adreno/
Dadreno_device.c144 mutex_lock(&dev->struct_mutex); in adreno_load_gpu()
146 mutex_unlock(&dev->struct_mutex); in adreno_load_gpu()
Dadreno_gpu.c383 mutex_lock(&drm->struct_mutex); in adreno_gpu_init()
386 mutex_unlock(&drm->struct_mutex); in adreno_gpu_init()
/linux-4.4.14/drivers/gpu/drm/nouveau/
Dnouveau_fbcon.c389 mutex_lock(&dev->struct_mutex); in nouveau_fbcon_create()
429 mutex_unlock(&dev->struct_mutex); in nouveau_fbcon_create()
444 mutex_unlock(&dev->struct_mutex); in nouveau_fbcon_create()
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp4/
Dmdp4_kms.c528 mutex_lock(&dev->struct_mutex); in mdp4_kms_init()
530 mutex_unlock(&dev->struct_mutex); in mdp4_kms_init()
/linux-4.4.14/drivers/gpu/drm/msm/dsi/
Ddsi_host.c841 mutex_lock(&dev->struct_mutex); in dsi_tx_buf_alloc()
847 mutex_unlock(&dev->struct_mutex); in dsi_tx_buf_alloc()
856 mutex_unlock(&dev->struct_mutex); in dsi_tx_buf_alloc()
872 mutex_lock(&dev->struct_mutex); in dsi_tx_buf_free()
875 mutex_unlock(&dev->struct_mutex); in dsi_tx_buf_free()