Home
last modified time | relevance | path

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

/linux-4.1.27/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.1.27/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.1.27/drivers/gpu/drm/
Ddrm_context.c56 mutex_lock(&dev->struct_mutex); in drm_legacy_ctxbitmap_free()
58 mutex_unlock(&dev->struct_mutex); in drm_legacy_ctxbitmap_free()
74 mutex_lock(&dev->struct_mutex); in drm_legacy_ctxbitmap_next()
77 mutex_unlock(&dev->struct_mutex); in drm_legacy_ctxbitmap_next()
104 mutex_lock(&dev->struct_mutex); in drm_legacy_ctxbitmap_cleanup()
106 mutex_unlock(&dev->struct_mutex); in drm_legacy_ctxbitmap_cleanup()
164 mutex_lock(&dev->struct_mutex); in drm_legacy_getsareactx()
168 mutex_unlock(&dev->struct_mutex); in drm_legacy_getsareactx()
181 mutex_unlock(&dev->struct_mutex); in drm_legacy_getsareactx()
208 mutex_lock(&dev->struct_mutex); in drm_legacy_setsareactx()
[all …]
Ddrm_auth.c62 mutex_lock(&dev->struct_mutex); in drm_find_file()
67 mutex_unlock(&dev->struct_mutex); in drm_find_file()
94 mutex_lock(&dev->struct_mutex); in drm_add_magic()
97 mutex_unlock(&dev->struct_mutex); in drm_add_magic()
119 mutex_lock(&dev->struct_mutex); in drm_remove_magic()
121 mutex_unlock(&dev->struct_mutex); in drm_remove_magic()
127 mutex_unlock(&dev->struct_mutex); in drm_remove_magic()
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_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_gem.c769 BUG_ON(!mutex_is_locked(&dev->struct_mutex)); in drm_gem_object_free()
782 mutex_lock(&obj->dev->struct_mutex); in drm_gem_vm_open()
784 mutex_unlock(&obj->dev->struct_mutex); in drm_gem_vm_open()
793 mutex_lock(&dev->struct_mutex); in drm_gem_vm_close()
796 mutex_unlock(&dev->struct_mutex); in drm_gem_vm_close()
831 lockdep_assert_held(&dev->struct_mutex); in drm_gem_mmap_obj()
884 mutex_lock(&dev->struct_mutex); in drm_gem_mmap()
890 mutex_unlock(&dev->struct_mutex); in drm_gem_mmap()
893 mutex_unlock(&dev->struct_mutex); in drm_gem_mmap()
900 mutex_unlock(&dev->struct_mutex); in drm_gem_mmap()
Ddrm_fops.c226 mutex_lock(&dev->struct_mutex); in drm_open_helper()
228 mutex_unlock(&dev->struct_mutex); in drm_open_helper()
342 mutex_lock(&dev->struct_mutex); in drm_lastclose()
350 mutex_unlock(&dev->struct_mutex); in drm_lastclose()
381 mutex_lock(&dev->struct_mutex); in drm_release()
383 mutex_unlock(&dev->struct_mutex); in drm_release()
428 mutex_lock(&dev->struct_mutex); in drm_release()
436 mutex_unlock(&dev->struct_mutex); in drm_release()
Ddrm_gem_cma_helper.c292 mutex_lock(&drm->struct_mutex); in drm_gem_cma_dumb_map_offset()
297 mutex_unlock(&drm->struct_mutex); in drm_gem_cma_dumb_map_offset()
305 mutex_unlock(&drm->struct_mutex); in drm_gem_cma_dumb_map_offset()
387 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in drm_gem_cma_describe()
495 mutex_lock(&dev->struct_mutex); in drm_gem_cma_prime_mmap()
497 mutex_unlock(&dev->struct_mutex); in drm_gem_cma_prime_mmap()
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.c131 mutex_lock(&dev->struct_mutex); in drm_master_destroy()
150 mutex_unlock(&dev->struct_mutex); in drm_master_destroy()
569 mutex_init(&dev->struct_mutex); in drm_dev_alloc()
Ddrm_fb_cma_helper.c218 ret = mutex_lock_interruptible(&dev->struct_mutex); in drm_fb_cma_debugfs_show()
227 mutex_unlock(&dev->struct_mutex); in drm_fb_cma_debugfs_show()
Ddrm_ioctl.c182 mutex_lock(&dev->struct_mutex); in drm_getmap()
191 mutex_unlock(&dev->struct_mutex); in drm_getmap()
211 mutex_unlock(&dev->struct_mutex); in drm_getmap()
Ddrm_irq.c549 mutex_lock(&dev->struct_mutex); in drm_control()
551 mutex_unlock(&dev->struct_mutex); in drm_control()
555 mutex_lock(&dev->struct_mutex); in drm_control()
557 mutex_unlock(&dev->struct_mutex); in drm_control()
/linux-4.1.27/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_fbdev.c71 mutex_lock(&dev->struct_mutex); in msm_fbdev_mmap()
75 mutex_unlock(&dev->struct_mutex); in msm_fbdev_mmap()
112 mutex_lock(&dev->struct_mutex); in msm_fbdev_create()
115 mutex_unlock(&dev->struct_mutex); in msm_fbdev_create()
134 mutex_lock(&dev->struct_mutex); in msm_fbdev_create()
185 mutex_unlock(&dev->struct_mutex); in msm_fbdev_create()
190 mutex_unlock(&dev->struct_mutex); in msm_fbdev_create()
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()
275 mutex_lock(&dev->struct_mutex); in recover_worker()
280 mutex_unlock(&dev->struct_mutex); in recover_worker()
429 mutex_lock(&dev->struct_mutex); in retire_worker()
448 mutex_unlock(&dev->struct_mutex); in retire_worker()
617 mutex_lock(&drm->struct_mutex); in msm_gpu_init()
619 mutex_unlock(&drm->struct_mutex); in msm_gpu_init()
Dmsm_gem_prime.c44 mutex_lock(&obj->dev->struct_mutex); in msm_gem_prime_mmap()
46 mutex_unlock(&obj->dev->struct_mutex); in msm_gem_prime_mmap()
Dmsm_drv.c146 mutex_lock(&dev->struct_mutex); in msm_unload()
148 mutex_unlock(&dev->struct_mutex); in msm_unload()
414 mutex_lock(&dev->struct_mutex); in msm_preclose()
417 mutex_unlock(&dev->struct_mutex); in msm_preclose()
555 ret = mutex_lock_interruptible(&dev->struct_mutex); in show_locked()
561 mutex_unlock(&dev->struct_mutex); in show_locked()
690 mutex_lock(&dev->struct_mutex); in msm_queue_fence_cb()
699 mutex_unlock(&dev->struct_mutex); in msm_queue_fence_cb()
709 mutex_lock(&dev->struct_mutex); in msm_update_fence()
725 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.c342 mutex_lock(&dev->struct_mutex); in msm_ioctl_gem_submit()
425 mutex_unlock(&dev->struct_mutex); in msm_ioctl_gem_submit()
/linux-4.1.27/drivers/gpu/drm/omapdrm/
Domap_irq.c272 mutex_lock(&dev->struct_mutex); in omap_drm_irq_install()
275 mutex_unlock(&dev->struct_mutex); in omap_drm_irq_install()
279 mutex_unlock(&dev->struct_mutex); in omap_drm_irq_install()
288 mutex_lock(&dev->struct_mutex); in omap_drm_irq_install()
290 mutex_unlock(&dev->struct_mutex); in omap_drm_irq_install()
299 mutex_lock(&dev->struct_mutex); in omap_drm_irq_install()
301 mutex_unlock(&dev->struct_mutex); in omap_drm_irq_install()
314 mutex_lock(&dev->struct_mutex); in omap_drm_irq_uninstall()
317 mutex_unlock(&dev->struct_mutex); in omap_drm_irq_uninstall()
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.c180 mutex_lock(&dev->struct_mutex); in omap_fbdev_create()
230 mutex_unlock(&dev->struct_mutex); in omap_fbdev_create()
235 mutex_unlock(&dev->struct_mutex); in omap_fbdev_create()
Domap_gem_dmabuf.c149 mutex_lock(&dev->struct_mutex); in omap_gem_dmabuf_mmap()
151 mutex_unlock(&dev->struct_mutex); in omap_gem_dmabuf_mmap()
/linux-4.1.27/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.c168 if (!mutex_trylock(&dev->struct_mutex)) { in i915_gem_shrinker_lock()
169 if (!mutex_is_locked_by(&dev->struct_mutex, current)) in i915_gem_shrinker_lock()
219 mutex_unlock(&dev->struct_mutex); in i915_gem_shrinker_count()
247 mutex_unlock(&dev->struct_mutex); in i915_gem_shrinker_scan()
306 mutex_unlock(&dev->struct_mutex); in i915_gem_shrinker_oom()
Di915_gem_context.c247 BUG_ON(!mutex_is_locked(&dev->struct_mutex)); in i915_gem_create_context()
459 mutex_lock(&dev->struct_mutex); in i915_gem_context_open()
461 mutex_unlock(&dev->struct_mutex); in i915_gem_context_open()
826 WARN_ON(!mutex_is_locked(&dev_priv->dev->struct_mutex)); in i915_switch_context()
862 mutex_unlock(&dev->struct_mutex); in i915_gem_context_create_ioctl()
889 mutex_unlock(&dev->struct_mutex); in i915_gem_context_destroy_ioctl()
895 mutex_unlock(&dev->struct_mutex); in i915_gem_context_destroy_ioctl()
915 mutex_unlock(&dev->struct_mutex); in i915_gem_context_getparam_ioctl()
928 mutex_unlock(&dev->struct_mutex); in i915_gem_context_getparam_ioctl()
947 mutex_unlock(&dev->struct_mutex); in i915_gem_context_setparam_ioctl()
[all …]
Di915_suspend.c109 mutex_lock(&dev->struct_mutex); in i915_save_state()
132 mutex_unlock(&dev->struct_mutex); in i915_save_state()
142 mutex_lock(&dev->struct_mutex); in i915_restore_state()
166 mutex_unlock(&dev->struct_mutex); in i915_restore_state()
Di915_debugfs.c197 ret = mutex_lock_interruptible(&dev->struct_mutex); in i915_gem_object_list_info()
212 mutex_unlock(&dev->struct_mutex); in i915_gem_object_list_info()
225 mutex_unlock(&dev->struct_mutex); in i915_gem_object_list_info()
253 ret = mutex_lock_interruptible(&dev->struct_mutex); in i915_gem_stolen_list_info()
286 mutex_unlock(&dev->struct_mutex); in i915_gem_stolen_list_info()
415 ret = mutex_lock_interruptible(&dev->struct_mutex); in i915_gem_object_info()
497 mutex_unlock(&dev->struct_mutex); in i915_gem_object_info()
512 ret = mutex_lock_interruptible(&dev->struct_mutex); in i915_gem_gtt_info()
529 mutex_unlock(&dev->struct_mutex); in i915_gem_gtt_info()
545 ret = mutex_lock_interruptible(&dev->struct_mutex); in i915_gem_pageflip_info()
[all …]
Di915_gem_batch_pool.c61 WARN_ON(!mutex_is_locked(&pool->dev->struct_mutex)); in i915_gem_batch_pool_fini()
96 WARN_ON(!mutex_is_locked(&pool->dev->struct_mutex)); in i915_gem_batch_pool_get()
Dintel_fbdev.c65 mutex_lock(&fb_helper->dev->struct_mutex); in intel_fbdev_set_par()
68 mutex_unlock(&fb_helper->dev->struct_mutex); in intel_fbdev_set_par()
91 mutex_lock(&fb_helper->dev->struct_mutex); in intel_fbdev_blank()
93 mutex_unlock(&fb_helper->dev->struct_mutex); in intel_fbdev_blank()
186 mutex_lock(&dev->struct_mutex); in intelfb_create()
277 mutex_unlock(&dev->struct_mutex); in intelfb_create()
285 mutex_unlock(&dev->struct_mutex); in intelfb_create()
Di915_gem.c138 ret = mutex_lock_interruptible(&dev->struct_mutex); in i915_mutex_lock_interruptible()
156 mutex_lock(&dev->struct_mutex); in i915_gem_get_aperture_ioctl()
160 mutex_unlock(&dev->struct_mutex); in i915_gem_get_aperture_ioctl()
361 mutex_unlock(&dev->struct_mutex); in i915_gem_phys_pwrite()
363 mutex_lock(&dev->struct_mutex); in i915_gem_phys_pwrite()
663 mutex_unlock(&dev->struct_mutex); in i915_gem_shmem_pread()
679 mutex_lock(&dev->struct_mutex); in i915_gem_shmem_pread()
749 mutex_unlock(&dev->struct_mutex); in i915_gem_pread_ioctl()
999 mutex_unlock(&dev->struct_mutex); in i915_gem_shmem_pwrite()
1005 mutex_lock(&dev->struct_mutex); in i915_gem_shmem_pwrite()
[all …]
Dintel_overlay.c397 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in intel_overlay_release_old_vid()
715 BUG_ON(!mutex_is_locked(&dev->struct_mutex)); in intel_overlay_do_put_image()
827 BUG_ON(!mutex_is_locked(&dev->struct_mutex)); in intel_overlay_switch_off()
1077 mutex_lock(&dev->struct_mutex); in intel_overlay_put_image()
1081 mutex_unlock(&dev->struct_mutex); in intel_overlay_put_image()
1106 mutex_lock(&dev->struct_mutex); in intel_overlay_put_image()
1186 mutex_unlock(&dev->struct_mutex); in intel_overlay_put_image()
1194 mutex_unlock(&dev->struct_mutex); in intel_overlay_put_image()
1271 mutex_lock(&dev->struct_mutex); in intel_overlay_attrs()
1335 mutex_unlock(&dev->struct_mutex); in intel_overlay_attrs()
[all …]
Di915_gem_tiling.c338 mutex_lock(&dev->struct_mutex); in i915_gem_set_tiling()
429 mutex_unlock(&dev->struct_mutex); in i915_gem_set_tiling()
449 mutex_lock(&dev->struct_mutex); in i915_gem_get_tiling()
477 mutex_unlock(&dev->struct_mutex); in i915_gem_get_tiling()
Dintel_frontbuffer.c140 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in intel_fb_obj_invalidate()
205 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in intel_fb_obj_flush()
Di915_sysfs.c222 mutex_unlock(&drm_dev->struct_mutex); in i915_l3_read()
255 mutex_unlock(&drm_dev->struct_mutex); in i915_l3_write()
263 mutex_unlock(&drm_dev->struct_mutex); in i915_l3_write()
280 mutex_unlock(&drm_dev->struct_mutex); in i915_l3_write()
595 ret = mutex_lock_interruptible(&dev->struct_mutex); in error_state_write()
600 mutex_unlock(&dev->struct_mutex); in error_state_write()
Di915_drv.c695 mutex_lock(&dev->struct_mutex); in i915_drm_resume()
697 mutex_unlock(&dev->struct_mutex); in i915_drm_resume()
715 mutex_lock(&dev->struct_mutex); in i915_drm_resume()
720 mutex_unlock(&dev->struct_mutex); in i915_drm_resume()
835 mutex_lock(&dev->struct_mutex); in i915_reset()
859 mutex_unlock(&dev->struct_mutex); in i915_reset()
887 mutex_unlock(&dev->struct_mutex); in i915_reset()
1387 if (!mutex_trylock(&dev->struct_mutex)) { in intel_runtime_suspend()
1402 mutex_unlock(&dev->struct_mutex); in intel_runtime_suspend()
Di915_gem_execbuffer.c804 mutex_unlock(&dev->struct_mutex); in i915_gem_execbuffer_relocate_slow()
815 mutex_lock(&dev->struct_mutex); in i915_gem_execbuffer_relocate_slow()
830 mutex_lock(&dev->struct_mutex); in i915_gem_execbuffer_relocate_slow()
848 mutex_lock(&dev->struct_mutex); in i915_gem_execbuffer_relocate_slow()
859 mutex_lock(&dev->struct_mutex); in i915_gem_execbuffer_relocate_slow()
1368 mutex_lock(&dev->struct_mutex); in gen8_dispatch_bsd_ring()
1377 mutex_unlock(&dev->struct_mutex); in gen8_dispatch_bsd_ring()
1496 mutex_unlock(&dev->struct_mutex); in i915_gem_do_execbuffer()
1511 mutex_unlock(&dev->struct_mutex); in i915_gem_do_execbuffer()
1537 BUG_ON(!mutex_is_locked(&dev->struct_mutex)); in i915_gem_do_execbuffer()
[all …]
Di915_gem_userptr.c70 mutex_lock(&dev->struct_mutex); in cancel_userptr()
94 mutex_unlock(&dev->struct_mutex); in cancel_userptr()
264 mutex_unlock(&dev->struct_mutex); in i915_mmu_notifier_add()
580 mutex_lock(&dev->struct_mutex); in __i915_gem_userptr_get_pages_worker()
594 mutex_unlock(&dev->struct_mutex); in __i915_gem_userptr_get_pages_worker()
Di915_dma.c467 mutex_lock(&dev->struct_mutex); in i915_load_modeset_init()
470 mutex_unlock(&dev->struct_mutex); in i915_load_modeset_init()
1073 mutex_lock(&dev->struct_mutex); in i915_driver_unload()
1077 mutex_unlock(&dev->struct_mutex); in i915_driver_unload()
1134 mutex_lock(&dev->struct_mutex); in i915_driver_preclose()
1137 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.c1114 mutex_lock(&dev->struct_mutex); in intel_uncore_fw_domains_init()
1118 mutex_unlock(&dev->struct_mutex); in intel_uncore_fw_domains_init()
1291 ret = mutex_lock_interruptible(&dev->struct_mutex); in i915_get_reset_stats_ioctl()
1297 mutex_unlock(&dev->struct_mutex); in i915_get_reset_stats_ioctl()
1310 mutex_unlock(&dev->struct_mutex); in i915_get_reset_stats_ioctl()
Dintel_display.c2366 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in intel_pin_and_fence_fb_obj()
2456 WARN_ON(!mutex_is_locked(&obj->base.dev->struct_mutex)); in intel_unpin_fb_obj()
2574 mutex_lock(&dev->struct_mutex); in intel_alloc_initial_plane_obj()
2580 mutex_unlock(&dev->struct_mutex); in intel_alloc_initial_plane_obj()
2587 mutex_unlock(&dev->struct_mutex); in intel_alloc_initial_plane_obj()
3814 mutex_lock(&dev->struct_mutex); in intel_crtc_wait_for_pending_flips()
3816 mutex_unlock(&dev->struct_mutex); in intel_crtc_wait_for_pending_flips()
4447 mutex_lock(&dev->struct_mutex); in intel_crtc_dpms_overlay()
4451 mutex_unlock(&dev->struct_mutex); in intel_crtc_dpms_overlay()
4472 mutex_lock(&dev->struct_mutex); in intel_crtc_enable_planes()
[all …]
Dintel_sprite.c821 mutex_lock(&dev->struct_mutex); in intel_post_enable_primary()
823 mutex_unlock(&dev->struct_mutex); in intel_post_enable_primary()
843 mutex_lock(&dev->struct_mutex); in intel_pre_disable_primary()
846 mutex_unlock(&dev->struct_mutex); in intel_pre_disable_primary()
Dintel_fbc.c333 mutex_lock(&dev->struct_mutex); in intel_fbc_work_fn()
348 mutex_unlock(&dev->struct_mutex); in intel_fbc_work_fn()
Dintel_lrc.c749 WARN_ON(!mutex_is_locked(&ring->dev->struct_mutex)); in intel_execlists_retire_requests()
841 WARN_ON(!mutex_is_locked(&ring->dev->struct_mutex)); in intel_lr_context_pin()
872 WARN_ON(!mutex_is_locked(&ring->dev->struct_mutex)); in intel_lr_context_unpin()
Di915_trace.h586 mutex_is_locked(&ring->dev->struct_mutex);
Dintel_pm.c4753 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in cherryview_setup_pctx()
4776 WARN_ON(!mutex_is_locked(&dev->struct_mutex)); in valleyview_setup_pctx()
5752 mutex_lock(&dev->struct_mutex); in intel_enable_gt_powersave()
5755 mutex_unlock(&dev->struct_mutex); in intel_enable_gt_powersave()
Di915_irq.c1168 mutex_lock(&dev_priv->dev->struct_mutex); in ivybridge_parity_work()
1224 mutex_unlock(&dev_priv->dev->struct_mutex); in ivybridge_parity_work()
Di915_drv.h2142 WARN_ON(!mutex_is_locked(&req->ring->dev->struct_mutex)); in i915_gem_request_unreference()
/linux-4.1.27/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()
247 mutex_lock(&dev->struct_mutex); in vgem_drm_gem_mmap()
280 mutex_unlock(&dev->struct_mutex); in vgem_drm_gem_mmap()
285 mutex_unlock(&dev->struct_mutex); in vgem_drm_gem_mmap()
/linux-4.1.27/drivers/gpu/drm/exynos/
Dexynos_drm_gem.c361 mutex_lock(&dev->struct_mutex); in exynos_drm_gem_get_ioctl()
366 mutex_unlock(&dev->struct_mutex); in exynos_drm_gem_get_ioctl()
376 mutex_unlock(&dev->struct_mutex); in exynos_drm_gem_get_ioctl()
484 mutex_lock(&drm_dev->struct_mutex); in exynos_gem_map_sgt_with_dma()
489 mutex_unlock(&drm_dev->struct_mutex); in exynos_gem_map_sgt_with_dma()
493 mutex_unlock(&drm_dev->struct_mutex); in exynos_gem_map_sgt_with_dma()
566 mutex_lock(&dev->struct_mutex); in exynos_drm_gem_dumb_map_offset()
591 mutex_unlock(&dev->struct_mutex); in exynos_drm_gem_dumb_map_offset()
607 mutex_lock(&dev->struct_mutex); in exynos_drm_gem_fault()
613 mutex_unlock(&dev->struct_mutex); in exynos_drm_gem_fault()
Dexynos_drm_fbdev.c143 mutex_lock(&dev->struct_mutex); in exynos_drm_fbdev_create()
197 mutex_unlock(&dev->struct_mutex); in exynos_drm_fbdev_create()
215 mutex_unlock(&dev->struct_mutex); in exynos_drm_fbdev_create()
Dexynos_drm_dmabuf.c98 mutex_lock(&dev->struct_mutex); in exynos_gem_map_dma_buf()
125 mutex_unlock(&dev->struct_mutex); in exynos_gem_map_dma_buf()
/linux-4.1.27/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.c410 mutex_lock(&dev->struct_mutex); in psbfb_create()
479 mutex_unlock(&dev->struct_mutex); in psbfb_create()
487 mutex_unlock(&dev->struct_mutex); in psbfb_create()
803 mutex_lock(&dev->struct_mutex); in psb_modeset_cleanup()
809 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.1.27/include/drm/
Ddrm_gem.h158 if (kref_put_mutex(&obj->refcount, drm_gem_object_free, &dev->struct_mutex)) in drm_gem_object_unreference_unlocked()
159 mutex_unlock(&dev->struct_mutex); in drm_gem_object_unreference_unlocked()
161 might_lock(&dev->struct_mutex); in drm_gem_object_unreference_unlocked()
DdrmP.h726 struct mutex struct_mutex; /**< For others */ member
/linux-4.1.27/drivers/gpu/drm/rockchip/
Drockchip_drm_gem.c85 mutex_lock(&drm->struct_mutex); in rockchip_gem_mmap_buf()
87 mutex_unlock(&drm->struct_mutex); in rockchip_gem_mmap_buf()
203 mutex_lock(&dev->struct_mutex); in rockchip_gem_dumb_map_offset()
222 mutex_unlock(&dev->struct_mutex); in rockchip_gem_dumb_map_offset()
/linux-4.1.27/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()
420 mutex_lock(&drm->struct_mutex); in tegra_bo_dumb_map_offset()
425 mutex_unlock(&drm->struct_mutex); in tegra_bo_dumb_map_offset()
435 mutex_unlock(&drm->struct_mutex); in tegra_bo_dumb_map_offset()
Ddrm.c271 mutex_lock(&drm->struct_mutex); in host1x_bo_lookup()
273 mutex_unlock(&drm->struct_mutex); in host1x_bo_lookup()
/linux-4.1.27/drivers/gpu/drm/armada/
Darmada_gem.c146 mutex_lock(&dev->struct_mutex); in armada_gem_linear_back()
149 mutex_unlock(&dev->struct_mutex); in armada_gem_linear_back()
160 mutex_lock(&dev->struct_mutex); in armada_gem_linear_back()
162 mutex_unlock(&dev->struct_mutex); in armada_gem_linear_back()
276 mutex_lock(&dev->struct_mutex); in armada_gem_dumb_map_offset()
298 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.c857 mutex_lock(&dev->struct_mutex); in armada_drm_crtc_cursor_set()
871 mutex_unlock(&dev->struct_mutex); in armada_drm_crtc_cursor_set()
886 mutex_lock(&dev->struct_mutex); in armada_drm_crtc_cursor_move()
890 mutex_unlock(&dev->struct_mutex); in armada_drm_crtc_cursor_move()
/linux-4.1.27/drivers/gpu/drm/mgag200/
Dmgag200_cursor.c109 mutex_lock(&dev->struct_mutex); in mga_crtc_cursor_set()
112 mutex_unlock(&dev->struct_mutex); in mga_crtc_cursor_set()
117 mutex_unlock(&dev->struct_mutex); in mga_crtc_cursor_set()
Dmgag200_main.c351 mutex_lock(&dev->struct_mutex); in mgag200_dumb_mmap_offset()
364 mutex_unlock(&dev->struct_mutex); in mgag200_dumb_mmap_offset()
/linux-4.1.27/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.1.27/drivers/gpu/drm/msm/adreno/
Dadreno_device.c136 mutex_lock(&dev->struct_mutex); in adreno_load_gpu()
138 mutex_unlock(&dev->struct_mutex); in adreno_load_gpu()
Dadreno_gpu.c355 mutex_lock(&drm->struct_mutex); in adreno_gpu_init()
358 mutex_unlock(&drm->struct_mutex); in adreno_gpu_init()
/linux-4.1.27/drivers/gpu/drm/cirrus/
Dcirrus_main.c299 mutex_lock(&dev->struct_mutex); in cirrus_dumb_mmap_offset()
312 mutex_unlock(&dev->struct_mutex); in cirrus_dumb_mmap_offset()
/linux-4.1.27/drivers/gpu/drm/qxl/
Dqxl_object.c278 mutex_lock(&qdev->ddev->struct_mutex); in qxl_bo_force_delete()
287 mutex_unlock(&qdev->ddev->struct_mutex); in qxl_bo_force_delete()
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_fbcon.c390 mutex_lock(&dev->struct_mutex); in nouveau_fbcon_create()
438 mutex_unlock(&dev->struct_mutex); in nouveau_fbcon_create()
453 mutex_unlock(&dev->struct_mutex); in nouveau_fbcon_create()
Dnouveau_ttm.c427 mutex_lock(&drm->dev->struct_mutex); in nouveau_ttm_fini()
430 mutex_unlock(&drm->dev->struct_mutex); in nouveau_ttm_fini()
/linux-4.1.27/drivers/gpu/drm/ast/
Dast_main.c577 mutex_lock(&dev->struct_mutex); in ast_dumb_mmap_offset()
590 mutex_unlock(&dev->struct_mutex); in ast_dumb_mmap_offset()
/linux-4.1.27/drivers/gpu/drm/bochs/
Dbochs_mm.c460 mutex_lock(&dev->struct_mutex); in bochs_dumb_mmap_offset()
473 mutex_unlock(&dev->struct_mutex); in bochs_dumb_mmap_offset()
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp4/
Dmdp4_kms.c504 mutex_lock(&dev->struct_mutex); in mdp4_kms_init()
506 mutex_unlock(&dev->struct_mutex); in mdp4_kms_init()
/linux-4.1.27/drivers/gpu/drm/msm/dsi/
Ddsi_host.c926 mutex_lock(&dev->struct_mutex); in dsi_tx_buf_alloc()
932 mutex_unlock(&dev->struct_mutex); in dsi_tx_buf_alloc()
941 mutex_unlock(&dev->struct_mutex); in dsi_tx_buf_alloc()
957 mutex_lock(&dev->struct_mutex); in dsi_tx_buf_free()
960 mutex_unlock(&dev->struct_mutex); in dsi_tx_buf_free()
/linux-4.1.27/drivers/gpu/drm/radeon/
Dradeon_object.c429 mutex_lock(&rdev->ddev->struct_mutex); in radeon_bo_force_delete()
438 mutex_unlock(&rdev->ddev->struct_mutex); in radeon_bo_force_delete()
Dradeon_pm.c256 mutex_lock(&rdev->ddev->struct_mutex); in radeon_pm_set_clocks()
271 mutex_unlock(&rdev->ddev->struct_mutex); in radeon_pm_set_clocks()
307 mutex_unlock(&rdev->ddev->struct_mutex); in radeon_pm_set_clocks()
1069 mutex_lock(&rdev->ddev->struct_mutex); in radeon_dpm_change_power_state_locked()
1120 mutex_unlock(&rdev->ddev->struct_mutex); in radeon_dpm_change_power_state_locked()
Dradeon_kms.c184 mutex_lock(&dev->struct_mutex); in radeon_set_filp_rights()
195 mutex_unlock(&dev->struct_mutex); in radeon_set_filp_rights()