Home
last modified time | relevance | path

Searched refs:ww_mutex (Results 1 – 18 of 18) sorted by relevance

/linux-6.1.9/include/linux/
Dww_mutex.h47 struct ww_mutex { struct
98 static inline void ww_mutex_init(struct ww_mutex *lock, in ww_mutex_init()
234 extern int /* __must_check */ ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx);
266 extern int __must_check ww_mutex_lock_interruptible(struct ww_mutex *lock,
293 ww_mutex_lock_slow(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock_slow()
329 ww_mutex_lock_slow_interruptible(struct ww_mutex *lock, in ww_mutex_lock_slow_interruptible()
338 extern void ww_mutex_unlock(struct ww_mutex *lock);
340 extern int __must_check ww_mutex_trylock(struct ww_mutex *lock,
351 static inline void ww_mutex_destroy(struct ww_mutex *lock) in ww_mutex_destroy()
364 static inline bool ww_mutex_is_locked(struct ww_mutex *lock) in ww_mutex_is_locked()
Ddma-resv.h166 struct ww_mutex lock;
/linux-6.1.9/kernel/locking/
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()
92 void __sched ww_mutex_unlock(struct ww_mutex *lock) in ww_mutex_unlock()
Dww_mutex.h181 ww_mutex_lock_acquired(struct ww_mutex *ww, struct ww_acquire_ctx *ww_ctx) in ww_mutex_lock_acquired()
378 ww_mutex_set_context_fastpath(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_set_context_fastpath()
417 struct ww_mutex *ww; in __ww_mutex_kill()
419 ww = container_of(lock, struct ww_mutex, base); in __ww_mutex_kill()
444 struct ww_mutex *ww = container_of(lock, struct ww_mutex, base); in __ww_mutex_check_kill()
545 struct ww_mutex *ww = container_of(lock, struct ww_mutex, base); in __ww_mutex_add_waiter()
559 static inline void __ww_mutex_unlock(struct ww_mutex *lock) in __ww_mutex_unlock()
Dmutex.c307 struct ww_mutex *ww; in ww_mutex_spin_on_owner()
309 ww = container_of(lock, struct ww_mutex, base); in ww_mutex_spin_on_owner()
558 void __sched ww_mutex_unlock(struct ww_mutex *lock) in ww_mutex_unlock()
574 struct ww_mutex *ww; in __mutex_lock_common()
584 ww = container_of(lock, struct ww_mutex, base); in __mutex_lock_common()
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()
1051 __ww_mutex_lock_slowpath(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in __ww_mutex_lock_slowpath()
[all …]
Dtest-ww_mutex.c30 struct ww_mutex mutex;
123 struct ww_mutex mutex; in test_aa()
178 struct ww_mutex a_mutex;
179 struct ww_mutex b_mutex;
279 struct ww_mutex a_mutex;
280 struct ww_mutex *b_mutex;
384 struct ww_mutex *locks;
422 struct ww_mutex *locks = stress->locks; in stress_inorder_work()
474 struct ww_mutex *lock;
541 struct ww_mutex *lock = stress->locks + prandom_u32_max(nlocks); in stress_one_work()
[all …]
DMakefile34 obj-$(CONFIG_WW_MUTEX_SELFTEST) += test-ww_mutex.o
Drtmutex.c47 static inline void ww_mutex_lock_acquired(struct ww_mutex *lock, in ww_mutex_lock_acquired()
61 # define ww_container_of(rtm) container_of(rtm, struct ww_mutex, base)
1605 struct ww_mutex *ww = ww_container_of(rtm); in __rt_mutex_slowlock()
Dlocktorture.c376 static struct ww_mutex torture_ww_mutex_0, torture_ww_mutex_1, torture_ww_mutex_2;
405 struct ww_mutex *lock; in torture_ww_mutex_lock()
/linux-6.1.9/tools/testing/selftests/locking/
Dww_mutex.sh8 if ! /sbin/modprobe -q -n test-ww_mutex; then
13 if /sbin/modprobe -q test-ww_mutex; then
14 /sbin/modprobe -q -r test-ww_mutex
DMakefile8 TEST_PROGS := ww_mutex.sh
/linux-6.1.9/Documentation/locking/
Dww-mutex-design.rst125 struct ww_mutex lock;
236 e.g. when adjusting edges in a graph where each node has its own ww_mutex lock,
270 struct ww_mutex ww_mutex;
284 ww_mutex_unlock(entry->ww_mutex)
300 ret = ww_mutex_lock(obj->ww_mutex, ctx);
338 ww_mutex currently encapsulates a struct mutex, this means no extra overhead for
Dlocktypes.rst43 - ww_mutex
/linux-6.1.9/include/drm/
Ddrm_modeset_lock.h89 struct ww_mutex mutex;
/linux-6.1.9/include/linux/regulator/
Ddriver.h627 struct ww_mutex mutex; /* consumer lock */
/linux-6.1.9/Documentation/gpu/
Di915.rst362 dma_resv ww_mutex to serialize against other operations.
379 * -EDEADLK handling with ww_mutex
/linux-6.1.9/lib/
Dlocking-selftest.c65 static struct ww_mutex o, o2, o3;
DKconfig.debug1485 on the struct ww_mutex locking API.