Home
last modified time | relevance | path

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

12

/linux-6.6.21/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.6.21/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()
480 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()
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()
1658 struct ww_acquire_ctx *ww_ctx, in __rt_mutex_slowlock()
1711 struct ww_acquire_ctx *ww_ctx, in __rt_mutex_slowlock_locked()
1734 struct ww_acquire_ctx *ww_ctx, in rt_mutex_slowlock()
Dmutex.h17 struct ww_acquire_ctx *ww_ctx;
Drtmutex_common.h58 struct ww_acquire_ctx *ww_ctx;
Dlocktorture.c504 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()
/linux-6.6.21/include/drm/ttm/
Dttm_execbuf_util.h36 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,
Dttm_bo.h240 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);
/linux-6.6.21/drivers/gpu/drm/ttm/
Dttm_execbuf_util.c42 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()
Dttm_bo.c565 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()
/linux-6.6.21/drivers/gpu/drm/i915/
Di915_gem_ww.h11 struct ww_acquire_ctx ctx;
/linux-6.6.21/include/drm/
Ddrm_gem.h530 struct ww_acquire_ctx *acquire_ctx);
532 struct ww_acquire_ctx *acquire_ctx);
Ddrm_exec.h26 struct ww_acquire_ctx ticket;
Ddrm_modeset_lock.h48 struct ww_acquire_ctx ww_ctx;
/linux-6.6.21/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.6.21/drivers/gpu/drm/v3d/
Dv3d_gem.c253 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()
/linux-6.6.21/drivers/gpu/drm/vmwgfx/
Dvmwgfx_validation.h66 struct ww_acquire_ctx ticket;
Dvmwgfx_resource.c508 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()
/linux-6.6.21/drivers/regulator/
Dcore.c142 struct ww_acquire_ctx *ww_ctx) in regulator_lock_nested()
220 struct ww_acquire_ctx *ww_ctx) in regulator_lock_two()
268 struct ww_acquire_ctx *ww_ctx) in regulator_unlock_two()
317 struct ww_acquire_ctx *ww_ctx) in regulator_lock_recursive()
372 struct ww_acquire_ctx *ww_ctx) in regulator_unlock_dependent()
387 struct ww_acquire_ctx *ww_ctx) in regulator_lock_dependent()
2061 struct ww_acquire_ctx ww_ctx; in regulator_resolve_supply()
2950 struct ww_acquire_ctx ww_ctx; in regulator_enable()
3060 struct ww_acquire_ctx ww_ctx; in regulator_disable()
3109 struct ww_acquire_ctx ww_ctx; in regulator_force_disable()
[all …]
/linux-6.6.21/drivers/gpu/drm/radeon/
Dradeon_object.h155 struct ww_acquire_ctx *ticket,
/linux-6.6.21/drivers/gpu/drm/vc4/
Dvc4_gem.c584 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()

12