Home
last modified time | relevance | path

Searched refs:ww_acquire_ctx (Results 1 – 25 of 49) sorted by relevance

12

/linux-6.1.9/include/linux/
Dww_mutex.h49 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);
Ddma-resv.h343 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/
Dww_mutex.h181 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 …]
Dww_rt_mutex.c12 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()
Dmutex.c304 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 …]
Dtest-ww_mutex.c61 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()
Drtmutex.c37 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()
Dmutex.h17 struct ww_acquire_ctx *ww_ctx;
Drtmutex_common.h41 struct ww_acquire_ctx *ww_ctx;
Dlocktorture.c377 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/
Dttm_execbuf_util.h61 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,
Dttm_bo_driver.h107 struct ww_acquire_ctx *ticket) in ttm_bo_reserve()
141 struct ww_acquire_ctx *ticket) in ttm_bo_reserve_slowpath()
Dttm_bo_api.h447 struct ww_acquire_ctx *ticket);
/linux-6.1.9/drivers/gpu/drm/ttm/
Dttm_execbuf_util.c46 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/
Ddrm_gem.h466 struct ww_acquire_ctx *acquire_ctx);
468 struct ww_acquire_ctx *acquire_ctx);
Ddrm_modeset_lock.h48 struct ww_acquire_ctx ww_ctx;
/linux-6.1.9/drivers/gpu/drm/i915/
Di915_gem_ww.h11 struct ww_acquire_ctx ctx;
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_cs.h63 struct ww_acquire_ctx ticket;
Damdgpu_csa.c68 struct ww_acquire_ctx ticket; in amdgpu_map_static_csa()
/linux-6.1.9/Documentation/locking/
Dww-mutex-design.rst141 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/
Dv3d_gem.c252 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/
Dvmwgfx_validation.h66 struct ww_acquire_ctx ticket;
Dvmwgfx_resource.c503 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/
Dradeon_object.h155 struct ww_acquire_ctx *ticket,
/linux-6.1.9/drivers/regulator/
Dcore.c142 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 …]

12