/openbmc/linux/include/linux/ |
H A 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);
|
H A 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()
|
/openbmc/linux/include/drm/ttm/ |
H A D | ttm_execbuf_util.h | 36 struct ww_acquire_ctx; 63 void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, 100 int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, 116 void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket,
|
H A D | ttm_bo.h | 240 struct ww_acquire_ctx *ticket) in ttm_bo_reserve() 275 struct ww_acquire_ctx *ticket) in ttm_bo_reserve_slowpath() 384 struct ww_acquire_ctx *ticket);
|
/openbmc/linux/kernel/locking/ |
H A 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 …]
|
H A 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()
|
H A 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() 866 ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock() 1051 __ww_mutex_lock_slowpath(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in __ww_mutex_lock_slowpath() 1059 struct ww_acquire_ctx *ctx) in __ww_mutex_lock_interruptible_slowpath() [all …]
|
H A 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() 480 struct ww_acquire_ctx ctx; in stress_reorder_work()
|
H A 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() 1183 struct ww_acquire_ctx *ww_ctx, in task_blocks_on_rt_mutex() 1580 struct ww_acquire_ctx *ww_ctx, in rt_mutex_slowlock_block() 1659 struct ww_acquire_ctx *ww_ctx, in __rt_mutex_slowlock() 1712 struct ww_acquire_ctx *ww_ctx, in __rt_mutex_slowlock_locked() 1735 struct ww_acquire_ctx *ww_ctx, in rt_mutex_slowlock()
|
H A D | mutex.h | 17 struct ww_acquire_ctx *ww_ctx;
|
H A D | rtmutex_common.h | 58 struct ww_acquire_ctx *ww_ctx;
|
H A D | locktorture.c | 504 static struct ww_acquire_ctx *ww_acquire_ctxs; 534 struct ww_acquire_ctx *ctx = &ww_acquire_ctxs[tid]; in torture_ww_mutex_lock() 573 struct ww_acquire_ctx *ctx = &ww_acquire_ctxs[tid]; in torture_ww_mutex_unlock()
|
/openbmc/linux/drivers/gpu/drm/ttm/ |
H A D | ttm_execbuf_util.c | 42 void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, in ttm_eu_backoff_reservation() 74 int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, in ttm_eu_reserve_buffers() 141 void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket, in ttm_eu_fence_buffer_objects()
|
H A D | ttm_bo.c | 565 struct ww_acquire_ctx *ticket) in ttm_mem_evict_wait_busy() 593 struct ww_acquire_ctx *ticket) in ttm_mem_evict_first() 733 struct ww_acquire_ctx *ticket; in ttm_bo_mem_force_space()
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | i915_gem_ww.h | 11 struct ww_acquire_ctx ctx;
|
/openbmc/linux/include/drm/ |
H A D | drm_gem.h | 530 struct ww_acquire_ctx *acquire_ctx); 532 struct ww_acquire_ctx *acquire_ctx);
|
H A D | drm_exec.h | 26 struct ww_acquire_ctx ticket;
|
H A D | drm_modeset_lock.h | 48 struct ww_acquire_ctx ww_ctx;
|
/openbmc/linux/Documentation/locking/ |
H A 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
|
/openbmc/linux/drivers/gpu/drm/v3d/ |
H A D | v3d_gem.c | 253 struct ww_acquire_ctx *acquire_ctx) in v3d_lock_bo_reservations() 480 struct ww_acquire_ctx *acquire_ctx, in v3d_attach_fences_and_unlock_reservation() 672 struct ww_acquire_ctx acquire_ctx; in v3d_submit_cl_ioctl() 822 struct ww_acquire_ctx acquire_ctx; in v3d_submit_tfu_ioctl() 917 struct ww_acquire_ctx acquire_ctx; in v3d_submit_csd_ioctl()
|
/openbmc/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_validation.h | 66 struct ww_acquire_ctx ticket;
|
H A D | vmwgfx_resource.c | 508 vmw_resource_check_buffer(struct ww_acquire_ctx *ticket, in vmw_resource_check_buffer() 602 vmw_resource_backoff_reservation(struct ww_acquire_ctx *ticket, in vmw_resource_backoff_reservation() 625 static int vmw_resource_do_evict(struct ww_acquire_ctx *ticket, in vmw_resource_do_evict() 892 struct ww_acquire_ctx ticket; in vmw_resource_evict_type()
|
/openbmc/linux/drivers/regulator/ |
H A D | core.c | 142 struct ww_acquire_ctx *ww_ctx) in regulator_lock_nested() 268 struct ww_acquire_ctx *ww_ctx) in regulator_unlock_two() 2066 struct ww_acquire_ctx ww_ctx; in regulator_resolve_supply() 2955 struct ww_acquire_ctx ww_ctx; in regulator_enable() 3065 struct ww_acquire_ctx ww_ctx; in regulator_disable() 3114 struct ww_acquire_ctx ww_ctx; in regulator_force_disable() 3142 struct ww_acquire_ctx ww_ctx; in regulator_disable_work() 4176 struct ww_acquire_ctx ww_ctx; in regulator_set_voltage() 4256 struct ww_acquire_ctx ww_ctx; in regulator_set_suspend_voltage() 4497 struct ww_acquire_ctx ww_ctx; in regulator_get_voltage() [all …]
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_object.h | 155 struct ww_acquire_ctx *ticket,
|
/openbmc/linux/drivers/gpu/drm/vc4/ |
H A D | vc4_gem.c | 584 struct ww_acquire_ctx *acquire_ctx) in vc4_unlock_bo_reservations() 604 struct ww_acquire_ctx *acquire_ctx) in vc4_lock_bo_reservations() 682 struct ww_acquire_ctx *acquire_ctx, in vc4_queue_submit() 1126 struct ww_acquire_ctx acquire_ctx; in vc4_submit_cl_ioctl()
|