/Linux-v4.19/include/linux/ |
D | ww_mutex.h | 31 struct ww_acquire_ctx { struct 53 struct ww_acquire_ctx *ctx; argument 129 static inline void ww_acquire_init(struct ww_acquire_ctx *ctx, in ww_acquire_init() 165 static inline void ww_acquire_done(struct ww_acquire_ctx *ctx) in ww_acquire_done() 182 static inline void ww_acquire_fini(struct ww_acquire_ctx *ctx) in ww_acquire_fini() 230 extern int /* __must_check */ ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx); 263 struct ww_acquire_ctx *ctx); 289 ww_mutex_lock_slow(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock_slow() 326 struct ww_acquire_ctx *ctx) in ww_mutex_lock_slow_interruptible()
|
D | reservation.h | 164 struct ww_acquire_ctx *ctx) in reservation_object_lock() 186 struct ww_acquire_ctx *ctx) in reservation_object_lock_interruptible()
|
D | mutex.h | 23 struct ww_acquire_ctx; 85 struct ww_acquire_ctx *ww_ctx;
|
/Linux-v4.19/kernel/locking/ |
D | mutex.c | 279 ww_mutex_lock_acquired(struct ww_mutex *ww, struct ww_acquire_ctx *ww_ctx) in ww_mutex_lock_acquired() 325 __ww_ctx_stamp_after(struct ww_acquire_ctx *a, struct ww_acquire_ctx *b) in __ww_ctx_stamp_after() 341 struct ww_acquire_ctx *ww_ctx) in __ww_mutex_die() 363 struct ww_acquire_ctx *ww_ctx, in __ww_mutex_wound() 364 struct ww_acquire_ctx *hold_ctx) in __ww_mutex_wound() 417 __ww_mutex_check_waiters(struct mutex *lock, struct ww_acquire_ctx *ww_ctx) in __ww_mutex_check_waiters() 438 ww_mutex_set_context_fastpath(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_set_context_fastpath() 475 bool ww_mutex_spin_on_owner(struct mutex *lock, struct ww_acquire_ctx *ww_ctx, in ww_mutex_spin_on_owner() 524 struct ww_acquire_ctx *ww_ctx, struct mutex_waiter *waiter) in mutex_spin_on_owner() 611 mutex_optimistic_spin(struct mutex *lock, struct ww_acquire_ctx *ww_ctx, in mutex_optimistic_spin() [all …]
|
D | test-ww_mutex.c | 65 struct ww_acquire_ctx ctx; in __test_mutex() 128 struct ww_acquire_ctx ctx; in test_aa() 173 struct ww_acquire_ctx ctx; in test_abba_work() 200 struct ww_acquire_ctx ctx; in test_abba() 262 struct ww_acquire_ctx ctx; in test_cycle_work() 396 struct ww_acquire_ctx ctx; in stress_inorder_work() 454 struct ww_acquire_ctx ctx; in stress_reorder_work()
|
D | locktorture.c | 386 struct ww_acquire_ctx ctx; in torture_ww_mutex_lock()
|
/Linux-v4.19/include/drm/ttm/ |
D | ttm_execbuf_util.h | 62 extern void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, 99 extern int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, 116 extern void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket,
|
D | ttm_bo_driver.h | 625 struct ww_acquire_ctx *ticket) in __ttm_bo_reserve() 693 struct ww_acquire_ctx *ticket) in ttm_bo_reserve() 718 struct ww_acquire_ctx *ticket) in ttm_bo_reserve_slowpath()
|
/Linux-v4.19/drivers/gpu/drm/ttm/ |
D | ttm_execbuf_util.c | 56 void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, in ttm_eu_backoff_reservation() 94 int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, in ttm_eu_reserve_buffers() 182 void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket, in ttm_eu_fence_buffer_objects()
|
/Linux-v4.19/include/drm/ |
D | drm_modeset_lock.h | 45 struct ww_acquire_ctx ww_ctx;
|
/Linux-v4.19/Documentation/locking/ |
D | ww-mutex-design.txt | 139 int lock_objs(struct list_head *list, struct ww_acquire_ctx *ctx) 185 int lock_objs(struct list_head *list, struct ww_acquire_ctx *ctx) 223 void unlock_objs(struct list_head *list, struct ww_acquire_ctx *ctx) 284 void lock_objs(struct list_head *list, struct ww_acquire_ctx *ctx) 317 void unlock_objs(struct list_head *list, struct ww_acquire_ctx *ctx) 374 - Using a different ww_class for the mutex than for the ww_acquire_ctx. 378 - Calling ww_acquire_init to initialize a second ww_acquire_ctx before
|
/Linux-v4.19/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_resource.c | 444 vmw_resource_check_buffer(struct ww_acquire_ctx *ticket, in vmw_resource_check_buffer() 533 vmw_resource_backoff_reservation(struct ww_acquire_ctx *ticket, in vmw_resource_backoff_reservation() 555 static int vmw_resource_do_evict(struct ww_acquire_ctx *ticket, in vmw_resource_do_evict() 819 struct ww_acquire_ctx ticket; in vmw_resource_evict_type()
|
/Linux-v4.19/drivers/gpu/drm/msm/ |
D | msm_gem.h | 143 struct ww_acquire_ctx ticket;
|
/Linux-v4.19/drivers/gpu/drm/v3d/ |
D | v3d_gem.c | 227 struct ww_acquire_ctx *acquire_ctx) in v3d_unlock_bo_reservations() 250 struct ww_acquire_ctx *acquire_ctx) in v3d_lock_bo_reservations() 502 struct ww_acquire_ctx acquire_ctx; in v3d_submit_cl_ioctl()
|
/Linux-v4.19/drivers/gpu/drm/virtio/ |
D | virtgpu_ioctl.c | 56 static int virtio_gpu_object_list_validate(struct ww_acquire_ctx *ticket, in virtio_gpu_object_list_validate() 116 struct ww_acquire_ctx ticket; in virtio_gpu_execbuffer_ioctl() 228 struct ww_acquire_ctx ticket; in virtio_gpu_resource_create_ioctl()
|
/Linux-v4.19/drivers/gpu/drm/radeon/ |
D | radeon_object.h | 144 struct ww_acquire_ctx *ticket,
|
D | radeon_gem.c | 547 struct ww_acquire_ctx ticket; in radeon_gem_va_update_vm()
|
D | radeon_object.c | 531 struct ww_acquire_ctx *ticket, in radeon_bo_list_validate()
|
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_vm.h | 321 void amdgpu_vm_bo_trace_cs(struct amdgpu_vm *vm, struct ww_acquire_ctx *ticket);
|
D | amdgpu_virt.c | 80 struct ww_acquire_ctx ticket; in amdgpu_map_static_csa()
|
D | amdgpu_gem.c | 164 struct ww_acquire_ctx ticket; in amdgpu_gem_object_close() 563 struct ww_acquire_ctx ticket; in amdgpu_gem_va_ioctl()
|
D | amdgpu_amdkfd_gpuvm.c | 643 struct ww_acquire_ctx ticket; /* Reservation ticket */ 1762 struct ww_acquire_ctx ticket; in validate_invalid_user_pages()
|
/Linux-v4.19/drivers/gpu/drm/etnaviv/ |
D | etnaviv_gem_submit.c | 119 struct ww_acquire_ctx *ticket) in submit_lock_objects() 417 struct ww_acquire_ctx ticket; in etnaviv_ioctl_gem_submit()
|
/Linux-v4.19/drivers/gpu/drm/vc4/ |
D | vc4_gem.c | 557 struct ww_acquire_ctx *acquire_ctx) in vc4_unlock_bo_reservations() 580 struct ww_acquire_ctx *acquire_ctx) in vc4_lock_bo_reservations() 659 struct ww_acquire_ctx *acquire_ctx, in vc4_queue_submit() 1123 struct ww_acquire_ctx acquire_ctx; in vc4_submit_cl_ioctl()
|
/Linux-v4.19/drivers/gpu/drm/qxl/ |
D | qxl_drv.h | 173 struct ww_acquire_ctx ticket;
|