Home
last modified time | relevance | path

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

12

/openbmc/linux/include/linux/
H A 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);
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()
/openbmc/linux/include/drm/ttm/
H A 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,
H A 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);
/openbmc/linux/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) 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 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.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()
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 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()
H A 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()
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 Dmutex.h17 struct ww_acquire_ctx *ww_ctx;
H A Drtmutex_common.h58 struct ww_acquire_ctx *ww_ctx;
H A 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()
/openbmc/linux/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()
H A 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()
/openbmc/linux/drivers/gpu/drm/i915/
H A Di915_gem_ww.h11 struct ww_acquire_ctx ctx;
/openbmc/linux/include/drm/
H A Ddrm_gem.h530 struct ww_acquire_ctx *acquire_ctx);
532 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;
/openbmc/linux/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
/openbmc/linux/drivers/gpu/drm/v3d/
H A 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()
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_validation.h66 struct ww_acquire_ctx ticket;
H A 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()
/openbmc/linux/drivers/regulator/
H A Dcore.c142 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 Dradeon_object.h155 struct ww_acquire_ctx *ticket,
/openbmc/linux/drivers/gpu/drm/vc4/
H A 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