Home
last modified time | relevance | path

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

12

/linux-6.15/include/linux/
H A Dww_mutex.h49 struct ww_acquire_ctx *ctx;
55 struct ww_acquire_ctx { struct
142 static inline void ww_acquire_init(struct ww_acquire_ctx *ctx, in ww_acquire_init()
181 static inline void ww_acquire_done(struct ww_acquire_ctx *ctx) in ww_acquire_done()
198 static inline void ww_acquire_fini(struct ww_acquire_ctx *ctx) in ww_acquire_fini()
248 extern int /* __must_check */ ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx);
281 struct ww_acquire_ctx *ctx);
307 ww_mutex_lock_slow(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock_slow()
344 struct ww_acquire_ctx *ctx) in ww_mutex_lock_slow_interruptible()
355 struct ww_acquire_ctx *ctx);
H A 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.15/include/drm/ttm/
H A Dttm_execbuf_util.h36 struct ww_acquire_ctx;
63 void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket,
99 int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket,
115 void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket,
H A Dttm_bo.h220 struct ww_acquire_ctx *ticket;
301 struct ww_acquire_ctx *ticket) in ttm_bo_reserve()
336 struct ww_acquire_ctx *ticket) in ttm_bo_reserve_slowpath()
/linux-6.15/kernel/locking/
H A 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, struct wake_q_head *wake_q) 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()
356 __ww_mutex_check_waiters(struct MUTEX *lock, struct ww_acquire_ctx *ww_ctx, in __ww_mutex_check_waiters()
380 ww_mutex_set_context_fastpath(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_set_context_fastpath()
421 __ww_mutex_kill(struct MUTEX *lock, struct ww_acquire_ctx *ww_ctx) in __ww_mutex_kill()
450 struct ww_acquire_ctx *ctx) in __ww_mutex_check_kill()
453 struct ww_acquire_ctx *hold_ctx = READ_ONCE(ww->ctx); in __ww_mutex_check_kill()
[all …]
H A 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()
H A Dmutex.c295 bool ww_mutex_spin_on_owner(struct mutex *lock, struct ww_acquire_ctx *ww_ctx, in ww_mutex_spin_on_owner()
344 struct ww_acquire_ctx *ww_ctx, struct mutex_waiter *waiter) in mutex_spin_on_owner()
432 mutex_optimistic_spin(struct mutex *lock, struct ww_acquire_ctx *ww_ctx, in mutex_optimistic_spin()
508 mutex_optimistic_spin(struct mutex *lock, struct ww_acquire_ctx *ww_ctx, in mutex_optimistic_spin()
567 struct ww_acquire_ctx *ww_ctx, const bool use_ww_ctx) in __mutex_lock_common()
751 unsigned long ip, struct ww_acquire_ctx *ww_ctx) in __ww_mutex_lock()
769 int ww_mutex_trylock(struct ww_mutex *ww, struct ww_acquire_ctx *ww_ctx) in ww_mutex_trylock()
865 ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock()
1049 __ww_mutex_lock_slowpath(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in __ww_mutex_lock_slowpath()
1057 struct ww_acquire_ctx *ctx) in __ww_mutex_lock_interruptible_slowpath()
[all …]
H A Dtest-ww_mutex.c61 struct ww_acquire_ctx ctx; in __test_mutex()
126 struct ww_acquire_ctx ctx; in test_aa()
191 struct ww_acquire_ctx ctx; in test_abba_work()
223 struct ww_acquire_ctx ctx; in test_abba()
291 struct ww_acquire_ctx ctx; in test_cycle_work()
435 struct ww_acquire_ctx ctx; in stress_inorder_work()
493 struct ww_acquire_ctx ctx; in stress_reorder_work()
H A Drtmutex.c38 struct ww_acquire_ctx *ww_ctx, in __ww_mutex_add_waiter()
45 struct ww_acquire_ctx *ww_ctx, in __ww_mutex_check_waiters()
51 struct ww_acquire_ctx *ww_ctx) in ww_mutex_lock_acquired()
57 struct ww_acquire_ctx *ww_ctx) in __ww_mutex_check_kill()
1206 struct ww_acquire_ctx *ww_ctx, in task_blocks_on_rt_mutex()
1605 struct ww_acquire_ctx *ww_ctx, in rt_mutex_slowlock_block()
1692 struct ww_acquire_ctx *ww_ctx, in __rt_mutex_slowlock()
1750 struct ww_acquire_ctx *ww_ctx, in __rt_mutex_slowlock_locked()
1775 struct ww_acquire_ctx *ww_ctx, in rt_mutex_slowlock()
H A Dmutex.h17 struct ww_acquire_ctx *ww_ctx;
H A Drtmutex_common.h58 struct ww_acquire_ctx *ww_ctx;
H A Dlocktorture.c605 static struct ww_acquire_ctx *ww_acquire_ctxs;
635 struct ww_acquire_ctx *ctx = &ww_acquire_ctxs[tid]; in torture_ww_mutex_lock()
674 struct ww_acquire_ctx *ctx = &ww_acquire_ctxs[tid]; in torture_ww_mutex_unlock()
/linux-6.15/drivers/gpu/drm/ttm/
H A 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()
/linux-6.15/drivers/gpu/drm/ttm/tests/
H A Dttm_bo_test.c94 struct ww_acquire_ctx ctx; in ttm_bo_reserve_no_wait_ticket()
112 struct ww_acquire_ctx ctx; in ttm_bo_reserve_double_resv()
142 struct ww_acquire_ctx ctx1, ctx2; in ttm_bo_reserve_deadlock()
173 struct ww_acquire_ctx *ctx;
188 struct ww_acquire_ctx ctx; in threaded_ttm_bo_reserve()
/linux-6.15/drivers/gpu/drm/i915/
H A Di915_gem_ww.h11 struct ww_acquire_ctx ctx;
/linux-6.15/include/drm/
H A Ddrm_gem.h549 struct ww_acquire_ctx *acquire_ctx);
551 struct ww_acquire_ctx *acquire_ctx);
H A Ddrm_exec.h26 struct ww_acquire_ctx ticket;
H A Ddrm_modeset_lock.h48 struct ww_acquire_ctx ww_ctx;
/linux-6.15/drivers/gpu/drm/v3d/
H A Dv3d_submit.c23 struct ww_acquire_ctx *acquire_ctx) in v3d_lock_bo_reservations()
228 struct ww_acquire_ctx *acquire_ctx, in v3d_attach_fences_and_unlock_reservation()
274 struct ww_acquire_ctx *acquire_ctx) in v3d_setup_csd_jobs_and_bos()
900 struct ww_acquire_ctx acquire_ctx; in v3d_submit_cl_ioctl()
1071 struct ww_acquire_ctx acquire_ctx; in v3d_submit_tfu_ioctl()
1172 struct ww_acquire_ctx acquire_ctx; in v3d_submit_csd_ioctl()
1283 struct ww_acquire_ctx acquire_ctx; in v3d_submit_cpu_ioctl()
/linux-6.15/Documentation/locking/
H A 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.15/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_vm.h498 struct ww_acquire_ctx *ticket,
509 struct ww_acquire_ctx *ticket);
555 void amdgpu_vm_bo_trace_cs(struct amdgpu_vm *vm, struct ww_acquire_ctx *ticket);
/linux-6.15/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_validation.h62 struct ww_acquire_ctx ticket;
H A Dvmwgfx_resource.c517 vmw_resource_check_buffer(struct ww_acquire_ctx *ticket, in vmw_resource_check_buffer()
611 vmw_resource_backoff_reservation(struct ww_acquire_ctx *ticket, in vmw_resource_backoff_reservation()
634 static int vmw_resource_do_evict(struct ww_acquire_ctx *ticket, in vmw_resource_do_evict()
901 struct ww_acquire_ctx ticket; in vmw_resource_evict_type()
/linux-6.15/drivers/regulator/
H A Dcore.c146 struct ww_acquire_ctx *ww_ctx) in regulator_lock_nested()
272 struct ww_acquire_ctx *ww_ctx) in regulator_unlock_two()
2046 struct ww_acquire_ctx ww_ctx; in regulator_resolve_supply()
2969 struct ww_acquire_ctx ww_ctx; in regulator_enable()
3081 struct ww_acquire_ctx ww_ctx; in regulator_disable()
3132 struct ww_acquire_ctx ww_ctx; in regulator_force_disable()
3160 struct ww_acquire_ctx ww_ctx; in regulator_disable_work()
4233 struct ww_acquire_ctx ww_ctx; in regulator_set_voltage()
4313 struct ww_acquire_ctx ww_ctx; in regulator_set_suspend_voltage()
4560 struct ww_acquire_ctx ww_ctx; in regulator_get_voltage()
[all …]
/linux-6.15/drivers/gpu/drm/etnaviv/
H A Detnaviv_gem_submit.c121 struct ww_acquire_ctx *ticket) in submit_lock_objects()
423 struct ww_acquire_ctx ticket; in etnaviv_ioctl_gem_submit()

12