/linux-6.1.9/include/linux/ |
D | ww_mutex.h | 49 struct ww_acquire_ctx *ctx; 55 struct ww_acquire_ctx { struct 132 static inline void ww_acquire_init(struct ww_acquire_ctx *ctx, in ww_acquire_init() 168 static inline void ww_acquire_done(struct ww_acquire_ctx *ctx) in ww_acquire_done() 185 static inline void ww_acquire_fini(struct ww_acquire_ctx *ctx) in ww_acquire_fini() 234 extern int /* __must_check */ ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx); 267 struct ww_acquire_ctx *ctx); 293 ww_mutex_lock_slow(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock_slow() 330 struct ww_acquire_ctx *ctx) in ww_mutex_lock_slow_interruptible() 341 struct ww_acquire_ctx *ctx);
|
D | dma-resv.h | 343 struct ww_acquire_ctx *ctx) in dma_resv_lock() 370 struct ww_acquire_ctx *ctx) in dma_resv_lock_interruptible() 387 struct ww_acquire_ctx *ctx) in dma_resv_lock_slow() 403 struct ww_acquire_ctx *ctx) in dma_resv_lock_slow_interruptible() 450 static inline struct ww_acquire_ctx *dma_resv_locking_ctx(struct dma_resv *obj) in dma_resv_locking_ctx()
|
/linux-6.1.9/kernel/locking/ |
D | ww_mutex.h | 181 ww_mutex_lock_acquired(struct ww_mutex *ww, struct ww_acquire_ctx *ww_ctx) in ww_mutex_lock_acquired() 228 __ww_ctx_less(struct ww_acquire_ctx *a, struct ww_acquire_ctx *b) in __ww_ctx_less() 278 struct ww_acquire_ctx *ww_ctx) in __ww_mutex_die() 301 struct ww_acquire_ctx *ww_ctx, in __ww_mutex_wound() 302 struct ww_acquire_ctx *hold_ctx) in __ww_mutex_wound() 355 __ww_mutex_check_waiters(struct MUTEX *lock, struct ww_acquire_ctx *ww_ctx) in __ww_mutex_check_waiters() 378 ww_mutex_set_context_fastpath(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_set_context_fastpath() 413 __ww_mutex_kill(struct MUTEX *lock, struct ww_acquire_ctx *ww_ctx) in __ww_mutex_kill() 442 struct ww_acquire_ctx *ctx) in __ww_mutex_check_kill() 445 struct ww_acquire_ctx *hold_ctx = READ_ONCE(ww->ctx); in __ww_mutex_check_kill() [all …]
|
D | ww_rt_mutex.c | 12 int ww_mutex_trylock(struct ww_mutex *lock, struct ww_acquire_ctx *ww_ctx) in ww_mutex_trylock() 38 __ww_rt_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ww_ctx, in __ww_rt_mutex_lock() 79 ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock() 86 ww_mutex_lock_interruptible(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock_interruptible()
|
D | mutex.c | 304 bool ww_mutex_spin_on_owner(struct mutex *lock, struct ww_acquire_ctx *ww_ctx, in ww_mutex_spin_on_owner() 353 struct ww_acquire_ctx *ww_ctx, struct mutex_waiter *waiter) in mutex_spin_on_owner() 441 mutex_optimistic_spin(struct mutex *lock, struct ww_acquire_ctx *ww_ctx, in mutex_optimistic_spin() 517 mutex_optimistic_spin(struct mutex *lock, struct ww_acquire_ctx *ww_ctx, in mutex_optimistic_spin() 571 struct ww_acquire_ctx *ww_ctx, const bool use_ww_ctx) in __mutex_lock_common() 752 unsigned long ip, struct ww_acquire_ctx *ww_ctx) in __ww_mutex_lock() 770 int ww_mutex_trylock(struct ww_mutex *ww, struct ww_acquire_ctx *ww_ctx) in ww_mutex_trylock() 840 ww_mutex_deadlock_injection(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_deadlock_injection() 866 ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock() 881 ww_mutex_lock_interruptible(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock_interruptible() [all …]
|
D | test-ww_mutex.c | 61 struct ww_acquire_ctx ctx; in __test_mutex() 124 struct ww_acquire_ctx ctx; in test_aa() 189 struct ww_acquire_ctx ctx; in test_abba_work() 221 struct ww_acquire_ctx ctx; in test_abba() 289 struct ww_acquire_ctx ctx; in test_cycle_work() 423 struct ww_acquire_ctx ctx; in stress_inorder_work() 481 struct ww_acquire_ctx ctx; in stress_reorder_work()
|
D | rtmutex.c | 37 struct ww_acquire_ctx *ww_ctx) in __ww_mutex_add_waiter() 43 struct ww_acquire_ctx *ww_ctx) in __ww_mutex_check_waiters() 48 struct ww_acquire_ctx *ww_ctx) in ww_mutex_lock_acquired() 54 struct ww_acquire_ctx *ww_ctx) in __ww_mutex_check_kill() 1127 struct ww_acquire_ctx *ww_ctx, in task_blocks_on_rt_mutex() 1521 struct ww_acquire_ctx *ww_ctx, in rt_mutex_slowlock_block() 1599 struct ww_acquire_ctx *ww_ctx, in __rt_mutex_slowlock() 1652 struct ww_acquire_ctx *ww_ctx, in __rt_mutex_slowlock_locked() 1675 struct ww_acquire_ctx *ww_ctx, in rt_mutex_slowlock()
|
D | mutex.h | 17 struct ww_acquire_ctx *ww_ctx;
|
D | rtmutex_common.h | 41 struct ww_acquire_ctx *ww_ctx;
|
D | locktorture.c | 377 static struct ww_acquire_ctx *ww_acquire_ctxs; 407 struct ww_acquire_ctx *ctx = &ww_acquire_ctxs[tid]; in torture_ww_mutex_lock() 446 struct ww_acquire_ctx *ctx = &ww_acquire_ctxs[tid]; in torture_ww_mutex_unlock()
|
/linux-6.1.9/include/drm/ttm/ |
D | ttm_execbuf_util.h | 61 void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, 98 int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, 114 void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket,
|
D | ttm_bo_driver.h | 107 struct ww_acquire_ctx *ticket) in ttm_bo_reserve() 141 struct ww_acquire_ctx *ticket) in ttm_bo_reserve_slowpath()
|
D | ttm_bo_api.h | 447 struct ww_acquire_ctx *ticket);
|
/linux-6.1.9/drivers/gpu/drm/ttm/ |
D | ttm_execbuf_util.c | 46 void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, in ttm_eu_backoff_reservation() 78 int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, in ttm_eu_reserve_buffers() 145 void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket, in ttm_eu_fence_buffer_objects()
|
/linux-6.1.9/include/drm/ |
D | drm_gem.h | 466 struct ww_acquire_ctx *acquire_ctx); 468 struct ww_acquire_ctx *acquire_ctx);
|
D | drm_modeset_lock.h | 48 struct ww_acquire_ctx ww_ctx;
|
/linux-6.1.9/drivers/gpu/drm/i915/ |
D | i915_gem_ww.h | 11 struct ww_acquire_ctx ctx;
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_cs.h | 63 struct ww_acquire_ctx ticket;
|
D | amdgpu_csa.c | 68 struct ww_acquire_ctx ticket; in amdgpu_map_static_csa()
|
/linux-6.1.9/Documentation/locking/ |
D | ww-mutex-design.rst | 141 int lock_objs(struct list_head *list, struct ww_acquire_ctx *ctx) 187 int lock_objs(struct list_head *list, struct ww_acquire_ctx *ctx) 225 void unlock_objs(struct list_head *list, struct ww_acquire_ctx *ctx) 288 void lock_objs(struct list_head *list, struct ww_acquire_ctx *ctx) 321 void unlock_objs(struct list_head *list, struct ww_acquire_ctx *ctx) 383 - Using a different ww_class for the mutex than for the ww_acquire_ctx. 387 - Calling ww_acquire_init to initialize a second ww_acquire_ctx before
|
/linux-6.1.9/drivers/gpu/drm/v3d/ |
D | v3d_gem.c | 252 struct ww_acquire_ctx *acquire_ctx) in v3d_lock_bo_reservations() 532 struct ww_acquire_ctx *acquire_ctx, in v3d_attach_fences_and_unlock_reservation() 724 struct ww_acquire_ctx acquire_ctx; in v3d_submit_cl_ioctl() 874 struct ww_acquire_ctx acquire_ctx; in v3d_submit_tfu_ioctl() 974 struct ww_acquire_ctx acquire_ctx; in v3d_submit_csd_ioctl()
|
/linux-6.1.9/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_validation.h | 66 struct ww_acquire_ctx ticket;
|
D | vmwgfx_resource.c | 503 vmw_resource_check_buffer(struct ww_acquire_ctx *ticket, in vmw_resource_check_buffer() 594 vmw_resource_backoff_reservation(struct ww_acquire_ctx *ticket, in vmw_resource_backoff_reservation() 617 static int vmw_resource_do_evict(struct ww_acquire_ctx *ticket, in vmw_resource_do_evict() 885 struct ww_acquire_ctx ticket; in vmw_resource_evict_type()
|
/linux-6.1.9/drivers/gpu/drm/radeon/ |
D | radeon_object.h | 155 struct ww_acquire_ctx *ticket,
|
/linux-6.1.9/drivers/regulator/ |
D | core.c | 142 struct ww_acquire_ctx *ww_ctx) in regulator_lock_nested() 252 struct ww_acquire_ctx *ww_ctx) in regulator_lock_recursive() 307 struct ww_acquire_ctx *ww_ctx) in regulator_unlock_dependent() 322 struct ww_acquire_ctx *ww_ctx) in regulator_lock_dependent() 2883 struct ww_acquire_ctx ww_ctx; in regulator_enable() 2990 struct ww_acquire_ctx ww_ctx; in regulator_disable() 3039 struct ww_acquire_ctx ww_ctx; in regulator_force_disable() 3067 struct ww_acquire_ctx ww_ctx; in regulator_disable_work() 4100 struct ww_acquire_ctx ww_ctx; in regulator_set_voltage() 4180 struct ww_acquire_ctx ww_ctx; in regulator_set_suspend_voltage() [all …]
|